cs.CLOct 15, 2026

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

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

Organizations: School of Artificial Intelligence, Jilin University · International Center of Future Science, Jilin University · Bilibili Inc. · Xingchen AGI Lab, China Telecom Artificial Intelligence Technology (Beijing) Co., Ltd · 

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.

Figures & tables

Appendix figures & tables38 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. SQLStructEval: Structural Evaluation of LLM Text-to-SQL Generation

    Apr 8, 2026Yixi Zhou, Fan Zhang, Zhiqiao Guo +4Text-to-SQL EvaluationText-to-SQL

  2. DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generation

    Aug 12, 2026Anik Pramanik, Murat Kantarcioglu, Vincent Oria +1LLM PromptingSchema Linking

  3. Reliable Text-to-SQL in Resource-Constrained Settings with Small LLMs via Iterative Retry Workflows

    Oct 12, 2026Bilel Abderrahmane Benziane, Xavier ScheplerText-to-SQLSmall Language Models