r/SQL • • 1h ago

PostgreSQL BIRD verified my text-to-SQL entry on LiveSQLBench-Large, and reproduced a 40.21% agent run

Post image

LiveSQLBench-Large is BIRD's hardest text-to-SQL board: 480 tasks on large, messy Postgres databases.

  • My single-call entry (schemagate + Claude Sonnet 5.5) is #4 overall at 34.58% and now carries BIRD's Verified badge. Their own re-run got 35.21%.
  • An agent version (the model runs its SQL on a rolled-back copy of the database, then fixes it) scored 40.21%. BIRD reproduced that number and is adding it to the board, where it would sit at #2 behind 53.33.

Short write-up: https://doi.org/10.5281/zenodo.24631044

Code and predictions: https://github.com/ashishsinha1602/schemagate/pull/246

If you've run something on this board, I'd like to compare numbers.

0 Upvotes

3 comments sorted by

2

u/No_Tennis_5557 1h ago

That 40% agent run is the real story here. Letting the model execute and self-correct on a sandboxed copy closes a huge chunk of the gap to the top of the board. Curious what the cost-per-task looks like on the agent version compared to the single-call entry.

1

u/Temporary_Papaya1058 29m ago

Thanks! Cost per task at API list prices:

  • Single call (Sonnet 5.5): $0.17
  • Agent (Opus 5.5, ~4 turns): $1.95
  • Agent on Sonnet 5.5: not run yet, should be around $1

schemagate keeps cost down by sending only the ~24 tables a question needs, not the full ~1,000-column schema.

1

u/PossiblePreparation 37m ago

40% doesn’t sound good… it means you’re going to be putting in the work either way to validate code even if it passes some tests.