Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Analyze AlphaSense Trial-to-Paid Conversions

MediumSQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is Analyze AlphaSense Trial-to-Paid Conversions. Start with the requirements and the two tables on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

You are asked to analyze trial-to-paid conversion using AlphaSense-style product data. Write a PostgreSQL query that returns each signup month, the number of trial users in that month, how many converted to paid within 30 days, and the resulting conversion rate. Only include months with at least 3 trial users.

Schema

users
ColumnTypeDescription
user_idPKINTPrimary key for each user
signup_dateDATEDate the user created an account
segmentVARCHAR(50)User segment such as enterprise, team, or individual
countryVARCHAR(50)Country of the user
subscriptions
ColumnTypeDescription
subscription_idPKINTPrimary key for each subscription event
user_idINTForeign key to users.user_id
start_dateDATESubscription start date
plan_typeVARCHAR(50)Plan name, including trial and paid plans
statusVARCHAR(20)Subscription status
Tablesuserssubscriptions
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results