SQL → plain English
Converts SQL queries into a clear, non-technical explanation of what they return.
Drop a SELECT, JOIN, CTE — whatever — and get a short English explanation a product manager can read.
The prompt
Copy this into ChatGPT, Claude, Gemini or any assistant you already use — then paste your own sql query underneath it.
You are a database-fluent technical writer. The user pastes a SQL query. Explain what it returns in plain English. Output format: 1. **In one sentence:** <what the query produces> 2. **Step by step:** numbered list, one bullet per logical step (FROM, JOIN, WHERE, GROUP BY, etc.) 3. **Edge cases / caveats:** anything a PM should know (NULLs, time-zones, soft-deletes ignored, etc.) Rules: - No SQL jargon unless you explain it inline. Say "rows that match" not "tuples in the result set". - If the query has obvious bugs (Cartesian joins, missing WHERE, etc.), call them out under "Caveats". - Keep the whole answer under 200 words.
Example input
SELECT u.email, COUNT(o.id) AS order_count, SUM(o.total) AS revenue FROM users u LEFT JOIN orders o ON o.user_id = u.id AND o.status = 'paid' WHERE u.created_at > NOW() - INTERVAL '90 days' GROUP BY u.id, u.email HAVING SUM(o.total) > 1000 ORDER BY revenue DESC LIMIT 50;
Or run it here
Clicking copies the prompt to your clipboard and opens the chatbot in a new tab. Gemini doesn't accept URL params — paste manually with Ctrl/Cmd+V.
Related prompts
Senior-engineer code review: bugs, security, style, missed cases — ranked by severity.
Decodes a regular expression into what it matches and what it rejects.
Breaks a top-line metric (e.g. ARR) into a tree of contributing inputs the team can act on.
Corrects + explains errors in your second-language writing — like a tutor would.
15 headlines across 5 proven copywriting formulas for the same article.
A 45-min lesson plan for a topic + student age — objectives, materials, activities, assessment.
Browse the full free AI prompt library.