Shopify·Data Scientist·Technical Phone Screen
- Write a SQL query to produce a monthly trend table showing total active paid theme usages, pirated usages, number of pirating shops, and piracy rate for each month in 2023.
- Write a SQL query to produce a monthly revenue impact table showing potential theme revenue lost, platform revenue from pirating shops, average platform revenue per pirating shop, and the percentage of total platform revenue those shops represent.
- Write a SQL query to build a prioritization table showing the top 10 combinations of theme, subscription plan, and merchant vertical by potential revenue lost, including piracy counts and platform revenue from those shops.
“The core challenge here is generating the month spine first and then joining usage rows correctly.”