A short schema note lifted text-to-SQL scores on the questions that shaped it
An insurance benchmark shows how a column mapping can fix a real failure without establishing that the fix will generalize.
Update, Dec. 1, 2026: The author posted replacement runs with an 8,192-token context window. The longer note (v3) matched 5 of 42 reference results; the OWL ontology without its schema mappings matched 2 of 42. The short note (v2) again matched 10 of 42, with the same verdicts as before. These are author-run results on the same dataset, not independent or held-out evidence.
Correction, Nov. 30, 2026: An earlier version reported scores for the longer note and the standalone OWL ontology and drew a comparison between the longer and shorter notes. The author withdrew those original results: both prompts exceeded 4,400 tokens, but the harness used Ollama’s 4,096-token default and silently truncated them. The author also withdrew the original interpretation of the v4 comparison against v3. The short-note and bare-schema counts were unaffected, according to the author.
In a public DuckDB experiment, Qwen2.5-Coder 3B matched the reference result on 3 of 42 insurance questions given only table and column names and types. A short note mapping business terms to physical columns raised that to 10 of 42. All seven extra passes came from the 13 simplest questions, the same group whose failures helped shape the note. That makes the result useful as a regression check, not a held-out accuracy estimate.
What the note fixed
For this database, a customer-facing claim number lives in Claim.Company_Claim_Number, not Claim_Identifier. The project report says the shorter first draft stated that distinction, but the model still invented Claim_Number. The next draft repeated that this column does not exist. The author reports that four questions then passed that had failed under the first draft. The score on the 13 simple questions went from 1 with the bare schema to 5 with the first draft and 8 with the revised one. The author says diagnosing failures involved inspecting reference SQL, and cautions that the 8 of 13 result is optimistic. Appending declared primary and foreign keys left the pass count at 3 of 42.
Separate the regression set from the next test
Keep the questions that helped write a rule to catch regressions. Use fresh questions to find out whether the rule helps when the phrasing, joins or business concepts change. Report the two results separately. For comparisons across different lengths of schema documentation, also verify that the model receives each full prompt. The updated methods report one substantive difference across two 13-question runs at identical settings, another reason not to overread small changes.
sources
- SQL Semantic Benchmark repositorygithub.com
- Updated methods and ablation reportgithub.com
- Committed run resultsgithub.com
- Author correction: withdrawal of original v3 and OWL resultsgithub.com
- Author update: replacement v3 and OWL runsgithub.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026