arXiv:2610.22158cs.CLOct 2026

Manuscript Offprint

arXiv:2610.22158

PremiseSQL: Evaluating Premise Critique and Abstention in Text-to-SQL Systems

Shuo Lin, Jinzhe Li, Chenlu Guo, Yanhan Li, Yuan Wu, Yi Chang

Abstract

Recent advances in large language models (LLMs) have substantially improved Text-to-SQL performance, yet existing NL2SQL systems largely assume that user queries are valid and answerable. As a result, models often generate executable SQL even for queries with flawed premises. We introduce premise critique ability in NL2SQL, namely the ability to recognize flawed queries and abstain from generating misleading SQL. To evaluate this capability, we propose PremiseSQL, a benchmark containing 1,800 flawed NL2SQL queries across four categories of premise failures, along with their 1,800 original queries. We further design an evaluation framework to measure intrinsic and prompt-induced premise-aware behavior across three prompting settings. Experiments on frontier LLMs show that current models are strongly premise-trusting by default and rarely critique flawed premises. Stronger critique-oriented prompting improves detection and abstention on flawed queries, but also increases false invalid judgments and suppresses SQL generation on originals. The code is available at https://github.com/vegeet/PremiseSQL.

1 Introduction

Text-to-SQL (or NL2SQL) translates natural language (NL) questions into executable SQL given a database schema (Popescu et al., 2003). Recent advances in large language models (LLMs) have substantially improved schema understanding, compositional reasoning, and cross-domain generalization in modern NL2SQL systems (OpenAI et al., 2024; Touvron et al., 2023; Yang et al., 2025; DeepSeek

Figure

Figure 1: Illustration of how LLMs handle an NL2SQL query with an ambiguous premise. The example contrasts two model behaviors: one generates executable SQL from an unsupported interpretation directly; the other identifies the ambiguity, requests clarification, and abstains from SQL generation. This contrast demonstrates the necessity of premise critique ability, namely the ability to recognize flawed queries and abstain from generating misleading SQL.

AI, 2025; Chang et al., 2024; Scholak et al., 2021; Yu et al., 2018; Pourreza and Rafiei, 2023).

Despite this progress, existing Text-to-SQL research largely assumes that user questions are valid, well-formed, and answerable under the given schema (Yu et al., 2018; Li et al., 2023). Consequently, most prior work focuses on improving

∗^{*}Corresponding authors.

SQL generation accuracy, schema linking, and complex reasoning capabilities (Wang et al., 2020; Scholak et al., 2021; Pourreza and Rafiei, 2023). However, this assumption is frequently violated in realistic scenarios. User questions may contain logically inconsistent conditions, false schema assumptions, missing premises, or requests beyond the capability of SQL and the underlying database.

Nevertheless, state-of-the-art NL2SQL models often generate executable SQL even for flawed queries, producing SQL that is syntactically valid but semantically invalid (Ji et al., 2023; Whitehead et al., 2022; Ren et al., 2023; Huang et al., 2025). In many cases, models implicitly repair problematic questions by injecting unsupported assumptions (Lin et al., 2022). Figure 1 illustrates this failure: although "person with id 5" is underdetermined by the schema, a model may silently map person to actor and emit executable SQL. The resulting SQL is syntactically valid but rests on an unsupported entity choice.

We introduce premise critique ability in NL2SQL, namely the ability to recognize flawed queries and abstain from generating misleading SQL. Premise critique ability is orthogonal to conventional SQL generation accuracy: a model may produce executable SQL, or even generate SQL that coincidentally matches the user's intent, while still failing to recognize that the provided question itself is ill-posed. Concretely, it consists of two components: (1) premise validation, namely assessing query validity in the corresponding database context and identifying actual flaws; and (2) abstention, namely refraining from generating misleading SQL for flawed queries while maintaining SQL generation for valid queries.

To systematically evaluate this capability, we introduce PremiseSQL, to our knowledge the first benchmark specifically designed to evaluate premise critique ability in NL2SQL systems. Built upon two widely used Text-to-SQL datasets, Spider 1.0 (Yu et al., 2018) and BIRD / BIRD-filtered (Li et al., 2023), PremiseSQL pairs 1,800 constructed flawed queries with their 1,800 unmodified source queries. It evaluates whether models can recognize flawed premises and abstain from generating misleading SQL, while maintaining SQL generation for original queries. We further evaluate frontier LLMs under three prompting settings, including Base, Implicit, and Explicit, to measure both intrinsic and prompt-induced premise-aware behavior.

In summary, our contributions are as follows:

• We formalize premise critique ability as a distinct requirement for reliable NL2SQL.

• We introduce PremiseSQL, a taxonomy-guided benchmark comprising flawed queries as positive samples and their originals as negative samples.

• We develop an evaluation framework that separates intrinsic critique from prompt-induced behavior. Experiments on 16 frontier LLMs reveal a shift from trusting flawed premises under standard prompting to frequently rejecting valid queries under explicit critique instructions.