mlsanityData to 14 Oct 2026

Text to Query Plans for Question Answering on Large Tables

arXiv 2508.18758 ↗First posted 26 Aug 2025cs.DB cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Efficient querying and analysis of large tabular datasets remain significant challenges, especially for users without expertise in programming languages like SQL. Text-to-SQL approaches have shown promising performance on benchmark data; however, they inherit SQL's drawbacks, including inefficiency with large datasets and limited support for complex data analyses beyond basic querying. We propose a novel framework that transforms natural language queries into query plans. Our solution is implemented outside traditional databases, allowing us to support classical SQL commands while avoiding SQL's inherent limitations. Additionally, we enable complex analytical functions, such as principal component analysis and anomaly detection, providing greater flexibility and extensibility than traditional SQL capabilities. We leverage LLMs to iteratively interpret queries and construct operation sequences, addressing computational complexity by incrementally building solutions. By executing operations directly on the data, we overcome context length limitations without requiring the entire dataset to be processed by the model. We validate our framework through experiments on both standard databases and large scientific tables, demonstrating its effectiveness in handling extensive datasets and performing sophisticated data analyses.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 33 references that are in the map. First posted on arXiv 26 Aug 2025.

Builds on

17 of 33 references.

References · 17

  1. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  2. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  3. 2022A Survey on In-context Learningcited by 721
  4. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  5. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
  6. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  7. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
  8. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
  9. 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 343
  10. 2022Binding Language Models in Symbolic Languagescited by 228
  11. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 195
  12. 2023TableLlama: Towards Open Large Generalist Models for Tablescited by 137
5 more
  1. 2022Large Language Models are few(1)-shot Table Reasonerscited by 116
  2. 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsingcited by 93
  3. 2022RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLcited by 85
  4. 2023ReAcTable: Enhancing ReAct for Table Question Answeringcited by 76
  5. 2022N-Best Hypotheses Reranking for Text-To-SQL Systemscited by 19

Built on by

Not cited yet.