Description
Explains what a SQL query does in plain English and suggests safe optimizations, flagging anything that could change results.
Prompt
39 words
Explain the SQL query below in plain English, step by step. Then suggest optimizations (indexes, rewrites) - but clearly separate changes that are purely faster from changes that could alter the result set. Never silently change semantics.
Query:
{{query}}How to use
Copy the prompt and paste it into your AI tool of choice. It works best with claude-sonnet-4. See more prompts in Data analysis for related workflows.
Reviews
Loading reviews