Asking databases in plain English
For both
Text-to-SQL with chat assistants and data agents: describing the question, reading the query it wrote, checking results and keeping access read-only
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
You ask a chat assistant: "How many active customers did we have last month?" Why is this request risky even though the model writes valid SQL?
Check yourself · 2 of 5
A query does FROM customers c INNER JOIN orders o ON o.customer_id = c.id. Which customers appear in the result?
Check yourself · 3 of 5
A model writes a query that runs and returns numbers. What does that tell you?
Check yourself · 4 of 5
An assistant reports October revenue of 412,000 EUR. The finance dashboard says 398,500 EUR. What is the right next step?
Check yourself · 5 of 5
What is the most reliable way to stop an AI database assistant from deleting data?
Topics
- Describing the question and the schema3 min read · Giving table and column names, business definitions such as what counts as an active customer, and the time window and time zone
- Reading joins, filters and aggregates4 min read · Reading generated SQL clause by clause: which tables are joined, which rows the filters keep and what each aggregate counts
- Where text-to-SQL goes wrong4 min read · Invented columns, the wrong one of two similar tables, ambiguous business terms and dialect differences; real schemas are far harder than demos
- Sanity-checking query results4 min read · Row counts, known totals, NULL handling, duplicates created by joins and comparison with a trusted dashboard number
- Read-only access and query limits4 min read · Read-only roles, row limits and timeouts, never running writes from a chat, sensitive columns and agents with database tools
Start here
- SQLBolt: interactive SQL lessons (opens in a new tab)CourseFree
Short free exercises on SELECT, WHERE, JOIN and aggregates: enough to read what an assistant wrote.
- BIRD text-to-SQL benchmark (opens in a new tab)PaperFree
A benchmark built on large, messy real databases, with a public leaderboard that shows how far tools still are from perfect.
- Spider 2.0: enterprise text-to-SQL workflows (opens in a new tab)PaperFree
A benchmark of enterprise-sized schemas and multi-step tasks, showing why real warehouses are harder than demos.
Helps to know first
110 questions · last verified 2026-12