As text-to-SQL systems shift from demonstrations toward real-world deployment, ambiguity in user questions has emerged as a leading source of errors. According to a new research paper, these ambiguities are frequently subtle and tied to specific domains or data, allowing system outputs to silently diverge from what the user actually intended.
Traditionally, such ambiguity is handled through conversational clarification. The authors argue this approach is inefficient, cognitively demanding, and poorly matched to how real users work. Instead, they propose structured disambiguation, a paradigm in which ambiguity is resolved through explicit, constrained interactions rather than free-form dialogue.
To support this paradigm, the team built ARCS (Ambiguity Resolution Corpus for SQL), described as the first text-to-SQL benchmark featuring naturally occurring, unconstrained ambiguities over real-world databases. The corpus includes complete annotations of all valid ambiguity points, their interpretations, and corresponding SQL queries.
Experimental results underscore how much work remains: gpt-6-sol reaches only 51% end-to-end execution accuracy, and no open-source model exceeds 27%. The authors conclude that text-to-SQL remains a challenging problem when ambiguity is present.
The paper, dataset, and an interactive demo are publicly available through the project's website and Hugging Face dataset page.