What the Playground is
The Playground lives inside Crossway Arena. Pick a dataset, pick a problem, write your answer in SQL, Python or JavaScript, and press Run. It checks your result and tells you what is off if it is wrong. Nothing is timed or graded, so you can try as many times as you like.
Everything runs in your browser: SQLite for SQL, Python 3 with pandas and numpy, and plain JavaScript. There is nothing to install.
The 10 datasets
They go from tiny to large, so you can learn the basics on 10 rows and then practice the same ideas at real scale.
| Dataset | Size | Good for practicing |
|---|---|---|
| Animal shelter | 10 rows | SELECT, WHERE, GROUP BY |
| Neighborhood cafe | about 60 rows | Joins and revenue math |
| Company org chart | 45 employees | Self joins and window functions |
| School report cards | 300 scores | Averages, ranking, comparing a row to its group |
| Movie catalog | 150 movies | HAVING and top N per group |
| Online store | 2,300 rows | Monthly trends and customer metrics |
| Mobile app analytics | about 4,600 events | Active users and retention |
| Ride sharing | 5,000 rides | Time of day analysis and per driver stats |
| Subscription business | about 16,000 payments | Revenue, churn and lifetime |
| Website traffic | 20,000 sessions | Conversion funnels at scale |
Every dataset works in all three languages. In SQL you query the tables by name. In Python each table is a CSV you read with pd.read_csv. In JavaScript each table is a list of row objects.
62 problems that check your answer
Each dataset has 6 or 7 problems from Easy to Hard, like "revenue per city from paid orders", "the top earner in each department" or "day 7 retention by plan". When you run your code, your result is compared to the correct answer row by row. Small rounding differences are fine.
Feedback when you are wrong
Instead of a plain "wrong", you get a reason:
- Wrong row count, with a nudge toward the usual cause: a missing filter, a missing GROUP BY, or a join that repeats or drops rows.
- Wrong number of columns. In Python it will point out when the extra column is the DataFrame index.
- Right rows, wrong order, with how the problem wants it sorted.
- The first row that does not match, so you can see exactly where you went off.
- Rounding and integer division, like getting 9 when the answer is 9.57.
Each problem also has a hint, and after your first try you can reveal the SQL answer.
Bring your own data
Switch the dataset to "Your own data" to write your own tables, or import a CSV and it becomes a table you can query, or a file you can read in pandas. If you just want a quick SQL scratchpad with no sign up, use the free SQL practice board, which also lets you share your work with a link.
A one week plan
- Day 1: all 6 Animal shelter problems in SQL.
- Day 2: Cafe and Company, focus on joins.
- Day 3: School and Movies, focus on window functions.
- Day 4: redo two of those in pandas to learn the same ideas in Python.
- Days 5 and 6: Online store and App analytics, the problems you will see in analyst interviews.
- Day 7: pick up a timed SQL ticket in the Arena queue and put a solve on your profile.
Questions
Is it free?
Yes, for everyone with a Crossway account. The public SQL board needs no account at all.
Which SQL does it use?
SQLite. Joins, CTEs, window functions and date functions all work.
Does pandas really run in the browser?
Yes. The first import takes a few seconds while it loads, then it is fast.