Skip to main content
7BBusyBoss

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.

sqldatabaseexplain

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

271/8000
Output will appear here after you click Run.
Or run in your favourite chatbot

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.

Browse the full free AI prompt library.