runtime
57 / 139

task Funnels & conversion · hard

Paid conversion by acquisition channel

Find workspaces created before 2025-06-01. Return acquisition_channel, workspaces, converted (workspaces with a paid subscription starting within 30 days of creation) and conversion_pct (0–100, 2 decimals).

what to return

Columns
acquisition_channelworkspacesconvertedconversion_pct in this order
Rows
6 rows · any order
Skill
Compare conversion rates across segments with a fixed window. Refresher: Experiment conversion denominators →

expected result

expected result6 rows · any order
acquisition_channelworkspacesconvertedconversion_pct
organic948616.43
outbound_sales226177.52
paid_search700578.14

first 3 of 6 rows

data you can query

accounts7 columns · 3,200 rows
account_idnumber · unique idaccount_nametextindustrytextcompany_sizetextcountrytextacquisition_channeltextcreated_atdate & time
1Iron Capital IncLogistics11-50United Statesorganic2024-01-14 18:52:14
2Vector Data CoNonprofit51-200United Kingdomsocial2024-01-15 13:21:52
3True Foods IncHealthcare201-1000United Statesoutbound_sales2024-01-19 11:22:02
4Meridian WorksSoftware11-50United Statesorganic2024-01-23 23:42:36
5Prism Health GroupSoftware1-10Germanyreferral2024-01-25 11:43:43
6Beacon Supply LtdMedia1000+United Kingdomorganic2024-01-27 20:19:28
7Birch Health GroupSoftware11-50United Statespaid_search2024-01-28 01:19:58
8Slate Robotics GroupEducation51-200United Statespaid_search2024-01-28 08:03:16
9Falcon LearningManufacturing51-200United Statesoutbound_sales2024-02-02 05:14:26
10Pine Software CoHealthcare1-10United Statessocial2024-02-04 18:06:48
account_idnumber · unique id
1
account_nametext
Iron Capital Inc
industrytext
Logistics
company_sizetext
11-50
countrytext
United States
acquisition_channeltext
organic
created_atdate & time
2024-01-14 18:52:14
account_idnumber · unique id
2
account_nametext
Vector Data Co
industrytext
Nonprofit
company_sizetext
51-200
countrytext
United Kingdom
acquisition_channeltext
social
created_atdate & time
2024-01-15 13:21:52
account_idnumber · unique id
3
account_nametext
True Foods Inc
industrytext
Healthcare
company_sizetext
201-1000
countrytext
United States
acquisition_channeltext
outbound_sales
created_atdate & time
2024-01-19 11:22:02
account_idnumber · unique id
4
account_nametext
Meridian Works
industrytext
Software
company_sizetext
11-50
countrytext
United States
acquisition_channeltext
organic
created_atdate & time
2024-01-23 23:42:36
account_idnumber · unique id
5
account_nametext
Prism Health Group
industrytext
Software
company_sizetext
1-10
countrytext
Germany
acquisition_channeltext
referral
created_atdate & time
2024-01-25 11:43:43
account_idnumber · unique id
6
account_nametext
Beacon Supply Ltd
industrytext
Media
company_sizetext
1000+
countrytext
United Kingdom
acquisition_channeltext
organic
created_atdate & time
2024-01-27 20:19:28
account_idnumber · unique id
7
account_nametext
Birch Health Group
industrytext
Software
company_sizetext
11-50
countrytext
United States
acquisition_channeltext
paid_search
created_atdate & time
2024-01-28 01:19:58
account_idnumber · unique id
8
account_nametext
Slate Robotics Group
industrytext
Education
company_sizetext
51-200
countrytext
United States
acquisition_channeltext
paid_search
created_atdate & time
2024-01-28 08:03:16
account_idnumber · unique id
9
account_nametext
Falcon Learning
industrytext
Manufacturing
company_sizetext
51-200
countrytext
United States
acquisition_channeltext
outbound_sales
created_atdate & time
2024-02-02 05:14:26
account_idnumber · unique id
10
account_nametext
Pine Software Co
industrytext
Healthcare
company_sizetext
1-10
countrytext
United States
acquisition_channeltext
social
created_atdate & time
2024-02-04 18:06:48

first 10 of 3,200 rows · your queries use all of them

subscriptions8 columns · 4,583 rows
subscription_idnumber · unique idaccount_idnumber · links to accountsplantextbilling_periodtextmrr_centsnumberstarted_atdate & timeended_atdate & timeend_reasontext
11freeNULL02024-01-14 18:52:142024-10-11 18:52:14upgrade
21promonthly99002024-10-11 18:52:14NULLNULL
32freeNULL02024-01-15 13:21:52NULLNULL
43freeNULL02024-01-19 11:22:022024-08-28 11:22:02upgrade
53starterannual24172024-08-28 11:22:02NULLNULL
64freeNULL02024-01-23 23:42:36NULLNULL
75freeNULL02024-01-25 11:43:432024-02-01 11:43:43upgrade
85startermonthly29002024-02-01 11:43:43NULLNULL
96freeNULL02024-01-27 20:19:28NULLNULL
107freeNULL02024-01-28 01:19:582024-03-09 01:19:58upgrade
subscription_idnumber · unique id
1
account_idnumber · links to accounts
1
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-14 18:52:14
ended_atdate & time
2024-10-11 18:52:14
end_reasontext
upgrade
subscription_idnumber · unique id
2
account_idnumber · links to accounts
1
plantext
pro
billing_periodtext
monthly
mrr_centsnumber
9900
started_atdate & time
2024-10-11 18:52:14
ended_atdate & time
NULL
end_reasontext
NULL
subscription_idnumber · unique id
3
account_idnumber · links to accounts
2
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-15 13:21:52
ended_atdate & time
NULL
end_reasontext
NULL
subscription_idnumber · unique id
4
account_idnumber · links to accounts
3
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-19 11:22:02
ended_atdate & time
2024-08-28 11:22:02
end_reasontext
upgrade
subscription_idnumber · unique id
5
account_idnumber · links to accounts
3
plantext
starter
billing_periodtext
annual
mrr_centsnumber
2417
started_atdate & time
2024-08-28 11:22:02
ended_atdate & time
NULL
end_reasontext
NULL
subscription_idnumber · unique id
6
account_idnumber · links to accounts
4
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-23 23:42:36
ended_atdate & time
NULL
end_reasontext
NULL
subscription_idnumber · unique id
7
account_idnumber · links to accounts
5
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-25 11:43:43
ended_atdate & time
2024-02-01 11:43:43
end_reasontext
upgrade
subscription_idnumber · unique id
8
account_idnumber · links to accounts
5
plantext
starter
billing_periodtext
monthly
mrr_centsnumber
2900
started_atdate & time
2024-02-01 11:43:43
ended_atdate & time
NULL
end_reasontext
NULL
subscription_idnumber · unique id
9
account_idnumber · links to accounts
6
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-27 20:19:28
ended_atdate & time
NULL
end_reasontext
NULL
subscription_idnumber · unique id
10
account_idnumber · links to accounts
7
plantext
free
billing_periodtext
NULL
mrr_centsnumber
0
started_atdate & time
2024-01-28 01:19:58
ended_atdate & time
2024-03-09 01:19:58
end_reasontext
upgrade

first 10 of 4,583 rows · your queries use all of them

solution.sql
 
Output

Hints and the answer are always available. Using them counts the question as solved with help.

Paid conversion by acquisition channel — SQL practice · Runtime