Paste a query and get a plain-English breakdown of every clause — what each part does, plus the actual order the database runs them in (which isn't the order they're written in).
Runs fully in your browser · nothing is sent anywhere
query.sql
Waiting for input…0 chars
breakdown
The breakdown will appear here.
—
How it works
Everything runs client-side with a small hand-written tokenizer — no network request, no upload, no server round-trip.
Recognizes SELECT / INSERT / UPDATE / DELETE / WITH statements, JOINs (all types), WHERE / HAVING conditions, GROUP BY, ORDER BY, LIMIT / OFFSET, UNION, and CTEs.
Subqueries and expressions inside parentheses are treated as a single opaque piece — they aren't recursively broken down clause-by-clause.
This is a pattern-based explainer, not a full SQL parser or validator — it won't catch every syntax error, and very unusual formatting can trip it up.
Click the ⌖ button on any clause card to highlight that exact text back in the query.