20 questions left this hour · answered by gpt-5.4-mini
Tested on 60 questions with checked answers: 85% right with table names alone, 100% once the model is given written notes about the data.
How an answer is made
The model writes one query
It gets your question, written notes about the tables and their traps, and six worked examples. If the data can't answer the question, it says so instead of guessing.
Code checks it
The query is parsed, and anything other than a single
SELECTis refused before it reaches the database.It runs read-only
The database is opened read-only, can't read files or web addresses, and stops after 15 seconds or 1,000 rows.
One second try
If the query fails, the error goes back to the model once for a fix. You always see the SQL that produced the answer.