Turn a question into SQL

Best with Claude or GPT

Ask 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