arXiv:2610.02739cs.CLOct 2026

Manuscript Offprint

arXiv:2610.02739

Beyond Correctness: Resolving Underspecification in Agentic Text-to-SQL

Wen-Zhi Li, Yue Gong, Konstantinos Kanellis, Balakrishnan Murali Narayanaswamy

ABSTRACT

Agentic Text-to-SQL systems can interact with users to clarify underspecified queries before generating SQL. However, a correct execution result does not necessarily imply that the agent has adequately resolved the underlying underspecification: the agent may silently make unverified assumptions that happen to match the intended answer. We show that this behavior is driven in part by premature clarification termination. Although forcing an agent to ask more questions improves execution accuracy, ambiguities are concentrated in earlier interactions, making brute-force questioning inefficient. More importantly, even when explicitly prompted to plan its clarification process, the agent frequently abandons questions that it has already identified as relevant. To address this failure mode, we introduce PLANPOOL, which externalizes the clarification plan as a mutable question pool. Every planned question must be explicitly asked or dropped before submission, while newly discovered ambiguities can be added during interaction. Across three benchmarks derived from BIRD-Interact and Spider, PLANPOOL consistently improves ambiguity coverage and reduces silent failures over unconstrained and prompt-based alternatives, while maintaining competitive execution accuracy. Our results highlight an important distinction in agentic reasoning: identifying missing information is not sufficient, and the agent must also reliably maintain and resolve it before committing to an answer.

1 INTRODUCTION

Text-to-SQL systems translate natural-language user requests into executable SQL queries over structured databases. Most existing systems assume a single-turn setting: the user provides a sufficiently specified request, and the system directly generates a SQL query Yu et al. (2018); Li et al. (2023). In practice, however, user requests are often underspecified Bhaskar et al. (2023); Saparina & Lapata (2024); Dong et al. (2025). A request to “rank the products” may omit the ranking criterion or direction; and domain-specific concepts may require information that is not available from the database schema alone. In such cases, generating SQL is inherently interactive: a reliable system must recognize what information is missing, decide whether it should be obtained from the database or from the user, and proactively ask clarification questions before committing to an implementation Chen et al. (2025); Ding et al. (2026).

Modern LLM agents make this interaction increasingly feasible. Equipped with tools for inspecting schemas, querying database contents, and communicating with users, an agent can iteratively gather information before producing the final SQL Pourreza & Rafiei (2023); Talaei et al. (2024); Wang et al. (2024; 2025a); Li et al. (2026). Indeed, we find that allowing such interaction dramatically improves execution accuracy compared with single-turn generation—for example, from 22.8% to 74.3% on BIRD-Lite, as shown in Figure 1 (a). Yet high execution accuracy does not imply that the generated query is well grounded in the user's stated intent. On the same benchmark, the agent identifies only 2.6 of 3.6 annotated ambiguities on average. Similar gaps appear on BIRD-Full and Spider, as shown in Figure 1 (b). In other words, an agent can sometimes produce an executable answer without explicitly resolving the underspecifications that determine that answer. Such silent

*Work done during an internship at Amazon Web Services.

Figure

(a)

Figure

(b)

Figure 1: (a) Execution accuracy comparison on three datasets in single- and multiple-turn settings. (b) Ground-truth annotated ambiguity distributions versus ambiguities detected through multiple-turn interaction.

assumptions are undesirable even when they happen to yield the correct execution result, as a small change in the intended interpretation could make the same behavior fail.

Why do capable LLM agents leave these ambiguities unresolved? An intuitive explanation is that they do not ask enough questions. We therefore conduct a controlled question-budget study in which the agent is instructed to ask a fixed number k of clarification questions before submitting its SQL. Increasing k substantially improves execution accuracy on BIRD-Lite, from 64.9% at k = 2 to 88.9% at k = 10. However, the additional questions exhibit sharply diminishing value: annotated ambiguities are concentrated among the earlier questions, whereas later questions increasingly concern answerable but non-critical issues that do not correspond to annotated ambiguities, or unanswerable issues for which the task specification provides no grounded answer. Thus, simply forcing the agent to ask more questions is effective but inefficient. The central challenge is not maximizing the number of questions, but identifying and faithfully resolving the important ones.

Plan mode, where an agent first constructs a workflow before execution, has become a de facto paradigm for achieving state-of-the-art agent performance Yao et al. (2023); Shen et al. (2023). A natural approach is therefore to extend this paradigm to clarification, asking the agent to plan its clarification process in advance. Surprisingly, we find that prompting alone is insufficient. When instructed to first identify and rank potential clarification questions and then execute that plan, the agent frequently abandons questions that it had already identified as relevant. On BIRD-Lite, for example, the agent plans 4.1 questions on average but asks only 3.3. Inspection of the trajectories reveals a characteristic failure pattern: after receiving a few answers or obtaining additional evidence from the database, the agent becomes prematurely confident that it has enough information and proceeds to SQL generation, silently skipping the remaining planned questions. This observation exposes an important distinction between identifying an ambiguity and maintaining a commitment to resolve it.

Motivated by this distinction, we introduce PLANPOOL, an externalized clarification-planning mechanism for agentic Text-to-SQL. Instead of representing the clarification plan only as natural-language context that the model may later ignore, PLANPOOL materializes it as a mutable question pool managed through explicit actions. Specifically, the agent first generates a ranked set of clarification questions after exploring the datasource. During interaction, it may ask the highest-priority question, explicitly drop a question that has become redundant or irrelevant, or add a newly discovered ambiguity. Crucially, the agent is not allowed to submit its final SQL while unresolved questions remain in the pool. Every planned clarification must therefore be explicitly discharged rather than silently forgotten. At the same time, as questions can be added or dropped as new information arrives, the mechanism remains adaptive rather than reducing clarification to a rigid checklist.

We evaluate PLANPOOL on three benchmarks derived from BIRD-Interact-Lite, BIRD-Interact-Full, and Spider, using an agentic interaction framework in which the system can explore the data-source and ask a simulated user for clarification. Across all three datasets, PLANPOOL consistently improves ambiguity coverage and grounded success while substantially reducing silent failures, with competitive end-to-end execution accuracy. For example, on BIRD-Lite, it improves ambiguity recall from 80.8% with prompt-based planning to 87.5% and reduces the silent-failure rate from 10.5% to 8.2%. The mechanism is also genuinely dynamic: on the more challenging BIRD benchmarks, roughly one third of instances invoke pool modifications after initialization.

We summarize the main contributions of this work as follows:

• We identify premature clarification termination as a key failure mode in agentic Text-to-SQL under underspecified queries. Through controlled question-budget and planning analyses, we show that LLM agents can identify important ambiguities yet fail to follow through on resolving them, while brute-force questioning wastes interaction on increasingly low-value questions.

• We propose PLANPOOL, an externalized and dynamically managed clarification protocol. By turning clarification intentions into explicit state that must be asked, deliberately dropped, or augmented before submission, PLANPOOL prevents the silent abandonment of identified ambiguities while remaining adaptive to information revealed during interaction.

• We provide a systematic evaluation of correctness, groundedness, and interaction efficiency across three benchmarks. Our results show that explicit commitment management substantially improves ambiguity coverage and reduces silent failures over unconstrained interaction, post-hoc reflection, and prompt-based planning, while retaining competitive SQL execution accuracy.