SQLite Query Explainer
Paste a SQL query and this browser tool captions the database's internal plan line by line in plain English, and the author admits he can't check whether the captions are right.
Every SQLite database quietly compiles your query into a step-by-step plan and a stream of low-level instructions before it fetches a single row. Reading that plan is how you find out why a query is slow, and it is notoriously opaque. Simon Willison's new tool runs your query entirely inside the browser and prints the plan alongside a plain-English caption for each line: this step scans the whole table, this one uses an index, this register holds the running count.
The whole SQLite engine runs in the browser via WebAssembly, so nothing you type ever leaves your machine. — Simon Willison
Nothing you type leaves your machine; the whole SQLite engine runs locally in WebAssembly against a sample database or one you upload. That part is solid and inspectable. The captions are the new thing, and they were not written by a human. Willison had his AI coding agent build the tool from roughly a one-line prompt, and the agent generated the explanations too.
Which is where it gets honest. The tool's entire value is teaching you to read SQLite internals, and Willison says he doesn't know those internals well enough to confirm the AI's captions are correct. He shipped it anyway because they looked plausible to him. It is a small, sharp instance of a pattern spreading through software: an agent writing a teaching tool about a subject its human operator is still learning, with no one in the loop who can grade the answer.
Open the tool, keep the sample database, and run one join with a WHERE clause to see the plan and the captions side by side.
Get the tool at tools.simonwillison.net →The lenses
The facts
How this connects
Tap a node to open it