cs.CLNov 2, 2026

GRIPS: An Empirical Study of Pre-SQL Grounding Information for SQL Generation

Authors: Ekata Mitra, Yufei Tao, Kamalamalini Nagasundaram, Ameeta Agrawal

Organizations: Department of Computer Science, Portland State University, USA

Abstract

Text-to-SQL systems answer natural language questions over structured data, but can fail before SQL generation by linking question mentions to the wrong table, column, value, or relation. Even valid SQL can then return an incorrect answer. This raises a central question: What pre-SQL information helps a SQL generator, and when does additional information cease to help? We investigate this question on TempTabQA-C and BIRD. Among the audited SQL Static failures, grounding errors form the largest category on both benchmarks. We introduce GRIPS (Grounding Representation and Input Processing for SQL generation), a three-stage method that derives structured pre-SQL information to make these decisions explicit before query generation. Across GPT-5-nano and Llama-70B, GRIPS-Adaptive improves over SQL Static in 18 of 20 settings, with an average accuracy gain of 11.8 percentage points, while reducing model-call token usage by 47.8%. Our controlled analysis shows which grounding information can improve SQL generation, whereas adding more pre-SQL information does not consistently help. By separating question-input grounding from SQL generation, GRIPS makes text-to-SQL more accurate, efficient, and easier to diagnose.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

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

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

  2. EntSQL: A Benchmark for Grounding Text-to-SQL in Long-Context Enterprise Knowledge

    Jun 2, 2026Chengxi Liao, Tao Xu, Zulong Chen +7LLM GroundingText-to-SQL

  3. ACE-SQL: Adaptive Co-Optimization via Empirical Credit Assignment for Text-to-SQL

    Jun 4, 2026Xiaobing Chen, Ai Jian, Eryu Guo +1Execution-Guided Code GenerationSchema Linking