SQL · PySpark · Debug the AI
Practice the data engineering problems that real pipelines throw at you
Duplicate rows, late-arriving data, slowly changing dimensions, joins that multiply
rows. Each problem plants one of these traps in a small synthetic dataset and checks
your answer without giving it away.
Browse all 40 problems
Try one in the browser
Free. No sign-up. SQL problems run on this page; every problem runs in Google Colab.
query.sql
-- attempt 1
AVG(COALESCE(rating, 0)) AS avg_rating
✗ Not correct yet.
Columns and row count are right, but
values are wrong in: avg_rating.
-- attempt 2
AVG(rating) AS avg_rating
✓ Correct. Your result matches the
expected output.