SQL Explainer Prompt
Explain a SQL query in plain English with data implications.
/ quick answer
Ship as a Slack /explain-sql command for non-technical stakeholders. Explain a SQL query in plain English with data implications.
Explain the SQL query below to a non-technical reader.
Include:
- What question it answers.
- Which tables it uses and why.
- Any performance concerns.
- One specific example row that would match.
Query:
{{query}}This query answers 'top 10 customers by revenue in the last 30 days'...
/ frequently asked
What does the SQL Explainer Prompt prompt do?
Ship as a Slack /explain-sql command for non-technical stakeholders.
Which AI models work with this prompt?
It is model-agnostic: it works with any capable general model. Replace the bracketed variables with your own context before running it.
How do I use this prompt?
1) Copy the prompt with the copy button. 2) Replace every bracketed variable with your real details. 3) Paste it into your AI assistant. 4) Compare the answer with the example output and ask for changes if needed.
What output should I expect?
This query answers 'top 10 customers by revenue in the last 30 days'...
/ continue exploring
Related prompts
Reusable prompts for this job.
- →Code Refactor Advisor Prompt
Get a ranked list of refactors before touching a file.
- →Error Diagnoser Prompt
Turn a stack trace + code into a ranked diagnosis with next steps.
- →Test Case Generator Prompt
Generate meaningful test cases from a function signature.
- →Prompt Improver Prompt
Iterate a weak prompt into a strong one using best practices.