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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

The Cost of Preserving Query Results or Exact SQL in Text-to-SQL Selection [Experiment, Analysis & Benchmark]

He Xiao
Zenodo (CERN European Organization for Nuclear Research)
Advanced Database Systems and Queries
preprint

The Cost of Preserving Query Results or Exact SQL in Text-to-SQL Selection [Experiment, Analysis & Benchmark]

He Xiao
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Columbia University (US)
Advanced Database Systems and Queries
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon