Is the free trial paying off?
HardSpotifycohortsconversionrevenueleft joinrank· 160 XP (40 per question)
Mock interview. You're interviewing for a senior analyst job on a subscriptions team. The interviewer explains: "New Premium subscribers get a 30-day free trial. Finance wants to know if it's worth it. You've got an hour, let's go step by step."
How the subscriptions table works:
- A first-time subscriber's row has a
trial_ends_ondate. People coming back after cancelling get no trial, so theirtrial_ends_onis empty. - A trial converts if it wasn't cancelled on or before
trial_ends_on(cancelled_onis empty, or later thantrial_ends_on). - The data runs to 30 June 2026. Only judge trials that ended on or before 30 June 2026; later ones are still running.
Question 1: Conversion by start month
"Start with the basics: for each month in which trials started, how many trials were there, how many converted, and what's the conversion rate?"
Expected output
start_monthas the first day of the month;conversion_rateas a percentage rounded to 1 decimal; sorted bystart_month
Example of the shape (made-up values):
| start_month | trials | converted | conversion_rate |
|---|---|---|---|
| 2025-09-01 | 20 | 12 | 60.0 |
Hints, the later questions and the answer come with Pro.
Question 1 of 4
Write your query here. Ctrl + Enter submits.