Example rows helped small Qwen models more than SQL retries in a Chinook test
A 50-question SQLite benchmark separates the value of showing real database values from the value of letting the model try again.
A new MIT-licensed text-to-SQL reference project offers a useful baseline for teams deciding what to try before building a SQL repair loop. On its 50-question Chinook music-store benchmark, giving two small Qwen2.5-Coder models three example rows per table improved execution accuracy more than letting them retry failed queries. The result comes from the repository author on one SQLite database, not from an independent reproduction.
What the comparison measured
The Nov. 24 GitHub Actions run shows that the 0.5B model went from 23/50 with schema alone to 31/50 with example rows. Enabling repair left it at 31/50. Strict and headline accuracy were identical for that model across all three strategies. The run summary reports that mean time per question increased from 17.9 seconds with examples to 30.4 seconds with repair enabled, without an additional correct answer. Those timings describe that run, not a production latency estimate.
The maintainer’s results table reports 32/50, then 36/50, then 37/50 for the 1.5B model. Its reported two-point gain from repair is one question. The test bank has 15 easy, 20 medium and 15 hard questions; the README reports that the strongest setup still answered only 8 of the 15 hard questions correctly. It also distinguishes strict scoring from the headline score, which permits extra output columns.
What to test next
The project’s repair loop responds to execution errors and empty results, rather than checking whether a successful query actually answers the question. That distinction matters: the wrong join or filter can return a nonempty result without giving an error-driven loop anything to fix. Conversely, a legitimate question can have an empty answer. The published Chinook bank checks that each gold query returns rows, so it does not establish performance on that second case.
For a rollout decision, compare schema-only, approved example values and repair separately on the same held-out questions. Include queries whose correct result is empty, report exact-result scores alongside any lenient match, and measure how many extra correct answers a retry buys at its actual latency cost. The Chinook run makes example values a plausible first experiment; it does not make arbitrary production rows safe to disclose or show that retries fail on other models or schemas.
sources
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