The Cost of Preserving Query Results or Exact SQL in Text-to-SQL Selection [Experiment, Analysis & Benchmark]
Once a text-to-SQL selector knows the winning result, how much work remains to identify the exact SQL it would deliver? We compare these stopping points for the same exhaustive selector, holding the candidates, database snapshot, cache, verifier and tie rule fixed. In voting experiments on 3,681 questions across 51 databases from Spider and BIRD, executing frequent candidates first could settle the rows before identifying the winning group's earliest query. In source order, both guarantees took the same number of executions. With complete results cached, Flash-SQLite identified the SQL as soon as its group won because each group had a fixed representative. Under LEVER's individual scoring rule, resolving that choice cost about 59 extra scores per 100 questions in replay and increased mean latency in a separate trial on a warmed GPU. Starting from archived previews on local SQLite, fetching all eligible results reduced mean time relative to a policy that fetched at most two missing results per question. The capped policy was faster on most questions.
Authors
- He Xiao
Institutions
- Columbia University (US)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24761321
- Primary Topic
- Advanced Database Systems and Queries
- Type
- preprint