SQL Query Explainer

Claude for Knowledge Work — Data

SQL Query Explainer

Paste a SQL query and get a plain-English explanation — what it returns, a step-by-step breakdown, the tables and joins, the filters, performance notes, edge cases, and a documentation comment ready to paste above the query.

What the Agent Produces

A clear explanation of your query, based only on the SQL and context you give it.

Plain-English Summary One short paragraph: what the query returns.
Step-by-Step Breakdown The query walked through clause by clause, in order of execution.
Tables & Joins The tables involved and how they are joined together.
Filters & Logic The WHERE, HAVING, and conditional logic, made explicit.
Performance Notes Where the query may be slow and what to watch for.
Possible Issues / Edge Cases NULLs, duplicates, and edge cases the query may handle unexpectedly.
Documentation Comment A ready-to-paste comment block to sit above the query in version control.

SQL Query Explainer

Paste a SQL query and get a plain-English explanation and a ready-to-paste documentation comment.

An explanation built only from the query and context you provide. This agent does not run the query or connect to your database and will not invent tables, columns, or row counts.

How It Works

Paste the query, choose the dialect — PostgreSQL, MySQL, BigQuery, Snowflake, SQL Server, or other — and add any schema or context you have. The agent explains what the query literally does and notes dialect-specific behavior where it matters. Output is available in English, Spanish, and French.

Explanation based on the query and context you provided — validate against your actual schema. This agent does not run the query or connect to your database. It will not invent tables, columns, row counts, or business meaning — where the schema is unknown it marks the meaning [confirm with your schema].

Want it run against live data? Live database connections (Snowflake, BigQuery, Databricks, and more) and query optimization against real schemas are available via CEMI managed.

Explore Knowledge Work Agents Discuss Your Use Case
Did you find this useful?

Ready to Get Started?

Request your personalized program today. Tell us about your goals and we will design a learning experience that fits your needs, schedule, and budget.