cs.DBNov 3, 2026

Text-to-SQL Models Make Choices Without Saying So

Authors: Yichen Xu, Shipei Lin, Chenhao Ma

Organizations: University of California, Berkeley Berkeley, CA, USA · School of Data Science The Chinese University of Hong Kong, Shenzhen Shenzhen, China

Abstract

A text-to-SQL answer can run, return a plausible number and still compute something other than what the analyst meant. This can happen when the request leaves a calculation choice open, such as whether to count rows or distinct entities, and the model settles it without saying so. Standard benchmarks cannot detect this, because they score each question against a single reference interpretation. We introduce SpecBridge, which tests such a choice by varying it alone: it poses three otherwise identical requests, one leaving the choice open and one per interpretation, and scores each answer by running it. The databases are real, and the choices are ones that made models fail on existing benchmarks. On 204 hand-validated tests, four language models usually compute each interpretation when asked for it, yet for the open request return both in only 15-58% of the tests where they can, often without mentioning the choice. The gap lies in reporting, not in computing. Benchmarks even penalize the alternative: on BIRD questions where such a choice changes the answer, over two in five of the answers marked wrong are right under the other interpretation. Because the gap lies in reporting, a system can narrow it without a stronger model: it first decides whether a request leaves a choice open, then answers each interpretation in its own call. On our tests and on AMBROSIA, an existing benchmark of ambiguous questions, this approach raises the share of open requests that get every interpretation by 29-63 points over the single answer that production assistants give, without lowering precision on clear requests. It also needs fewer user turns than asking a clarifying question.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Beyond Correctness: Resolving Underspecification in Agentic Text-to-SQL

    Oct 2, 2026Wen-Zhi Li, Yue Gong, Konstantinos Kanellis +1Text-to-SQLClarification Question Generation

  2. How far do on-premises open LLMs get on Text-to-SQL? A cross-family size and technique frontier on BIRD

    Jun 29, 2026Vladimir BeskorovainyiLLM Self-CorrectionLLM Evaluation

  3. ARCS: Towards Precise Text-to-SQL via Structured Disambiguation

    Oct 7, 2026Yihao Hu, Yanlin Feng, Naoki Otani +1Text-to-SQL