6 of 6‹
Turn a question into SQL
Best with Claude or GPTAsk in English, get a readable query plus its assumptions.
Updated Jul 26, 2026
Write a SQL query for me.
Database: Postgres, MySQL, SQLite or BigQuery. Tables and columns: [paste your schema, or describe it — e.g. orders(id, customer_id, created_at, total), customers(id, name, city)]. What I want to know: your question in plain English.
Return: 1) the query, 2) what it assumes about the data — nulls, duplicates, time zones, 3) one realistic way it could give me a misleading answer.
Keep it readable: CTEs rather than nested subqueries, and no clever tricks I'd struggle to edit later.
Stop losing good prompts. Sign up free / log in
What to try next
Popular elsewhere in the library.
More in Data & analysis
Spreadsheet formula builder
Describe the calculation in plain words, get a working formula.
View prompt →
Clean up a messy spreadsheet
Turn inconsistent, half-finished data into a table you can trust.
View prompt →1 copies
What is this data actually telling me?
★ PremiumA careful read of your numbers, including what they don't support.
View prompt →