The full problem statement is available to Pro members.
preloaded fixtures
import pandas as pd
import numpy as np
sales = pd.DataFrame({
"order_id": [1, 2, 3, 4, 5, 6, 7, 8],
"customer": ["ada", "grace", "ada", "alan", "grace", "marie", "alan", "ada"],
"country": ["UK", "USA", "UK", "UK", "USA", "France", "UK", "UK"],
"category": ["hardware", "audio", "audio", "furniture", "hardware", "audio", "hardware", "furniture"],
"units": [1, 2, 1, 3, 1, 2, 4, 1],
"price": [129.0, 249.99, 199.0, 420.0, 329.5, 249.99, 59.0, 540.0],
"rating": [4.5, np.nan, 3.0, 5.0, np.nan, 4.0, 4.5, 2.5],
})
customers = pd.DataFrame({
"customer": ["ada", "grace", "alan", "hedy"],
"segment": ["pro", "pro", "starter", "starter"],
})
events = pd.DataFrame({
"user_id": [1, 1, 2, 1, 3, 2, 3, 3, 1, 2],
"event": ["visit", "signup", "visit", "purchase", "visit", "signup", "signup", "purchase", "visit", "purchase"],
"ts": pd.to_datetime([
"2026-01-01 09:00", "2026-01-01 09:05", "2026-01-02 10:00", "2026-01-03 12:00", "2026-01-03 13:00",
"2026-01-04 08:30", "2026-01-05 18:00", "2026-01-08 11:00", "2026-01-09 09:00", "2026-01-10 20:00",
]),
"amount": [0.0, 0.0, 0.0, 50.0, 0.0, 0.0, 0.0, 80.0, 0.0, 30.0],
})
Guest mode · solve history stays on this device; code isn’t saved. Sign in to save future work
Pro problem
“Signup-to-purchase funnel”
This is one of the real interview questions in Pro. Try Pro free for 7 days to unlock it and everything below:
- 383 interview-grade problems across SQL, Python & pandas
- 104+ real-world SQL problems: SaaS retention, fintech ledgers, supply chain, recursive CTEs
- 18 company interview packs (Amazon, Meta, Google, Uber and more)
- AI "explain my mistake" tutor and mock interviews
- Use QueryLab inside Claude, Cursor & other AI assistants
// built for real interview rounds
Practice the patterns 18 top companies test
419 problems · 36 free forever · 383 unlocked with Pro
Card required. Then $12/month. Cancel before your trial ends and you pay nothing.
or keep practicing free problems →Secure checkout by Paddle · instant access · cancel anytime from your account
Pro problem
“Signup-to-purchase funnel”
This is one of the real interview questions in Pro. Try Pro free for 7 days to unlock it and everything below:
- 383 interview-grade problems across SQL, Python & pandas
- 104+ real-world SQL problems: SaaS retention, fintech ledgers, supply chain, recursive CTEs
- 18 company interview packs (Amazon, Meta, Google, Uber and more)
- AI "explain my mistake" tutor and mock interviews
- Use QueryLab inside Claude, Cursor & other AI assistants
// built for real interview rounds
Practice the patterns 18 top companies test
419 problems · 36 free forever · 383 unlocked with Pro
Card required. Then $12/month. Cancel before your trial ends and you pay nothing.
or keep practicing free problems →Secure checkout by Paddle · instant access · cancel anytime from your account