Chain-of-Query: Unleashing the Power of LLMs in SQL-Aided Table Understanding via Multi-Agent Collaboration
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
Table understanding requires structured, multi-step reasoning. Large Language Models (LLMs) struggle with it due to the structural complexity of tabular data. Recently, multi-agent frameworks for SQL generation have shown promise in tackling the challenges of understanding tabular data, but existing approaches often suffer from limitations such as the inability to comprehend table structure for reliable SQL generation, error propagation that results in invalid queries, and over-reliance on execution correctness. To address these issues, we propose Chain-of-Query (CoQ), a novel multi-agent framework for SQL-aided table understanding. CoQ adopts natural-language-style representations of table schemas to abstract away structural noise and enhance understanding. It employs a clause-by-clause SQL generation strategy to improve query quality and introduces a hybrid reasoning division that separates SQL-based mechanical reasoning from LLM-based logical inference, thereby reducing reliance on execution outcomes. Extensive experiments across four models and five widely used benchmarks demonstrate that CoQ achieves substantial accuracy improvements and significantly lowers invalid SQL rates compared to prior generic LLM-based, SQL-aided, and hybrid baselines, confirming its superior effectiveness in table understanding. The code is available at https://github.com/SongyuanSui/ChainofQuery.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 42 of its 57 references that are in the map. First posted on arXiv 14 Aug 2025.
Builds on
42 of 57 references.
Closest ancestors · 2
Same direction, newest first
- 2024Efficient Multi-Agent Collaboration with Tool Use for Online Planning in Complex Table Question Answering28 Dec
- 2024MAG-SQL: Multi-Agent Generative Approach with Soft Schema Linking and Iterative Sub-SQL Refinement for Text-to-SQL15 Aug
Other references · 40
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
- 2015Compositional Semantic Parsing on Semi-Structured Tablescited by 515
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
- 2020TAPAS: Weakly Supervised Table Parsing via Pre-trainingcited by 434
- 2019TabFact: A Large-scale Dataset for Table-based Fact Verificationcited by 428
- 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 343
- 2022Binding Language Models in Symbolic Languagescited by 228
28 more
- 2024Chain-of-Table: Evolving Tables in the Reasoning Chain for Table Understandingcited by 188
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
- 2023Large Language Models are Versatile Decomposers: Decompose Evidence and Questions for Table-based Reasoningcited by 178
- 2021FeTaQA: Free-form Table Question Answeringcited by 175
- 2023TableLlama: Towards Open Large Generalist Models for Tablescited by 137
- 2023Chain-of-Knowledge: Grounding Large Language Models via Dynamic Knowledge Adapting over Heterogeneous Sourcescited by 122
- 2024Data-efficient Fine-tuning for LLM-based Recommendationcited by 104
- 2023ReAcTable: Enhancing ReAct for Table Question Answeringcited by 76
- 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
- 2022Don't Generate, Discriminate: A Proposal for Grounding Language Models to Real-World Environmentscited by 57
- 2023Generative Table Pre-training Empowers Models for Tabular Predictioncited by 55
- 2024Large Language Model for Table Processing: A Surveycited by 52
- 2024TableRAG: Million-Token Table Understanding with Language Modelscited by 41
- 2023Open-WikiTable: Dataset for Open Domain Question Answering with Complex Reasoning over Tablecited by 40
- 2024TabSQLify: Enhancing Reasoning Capabilities of LLMs Through Table Decompositioncited by 39
- 2024TokenRec: Learning to Tokenize ID for LLM-based Generative Recommendationcited by 35
- 2023TAP4LLM: Table Provider on Sampling, Augmenting, and Packing Semi-structured Data for Large Language Model Reasoningcited by 32
- 2024StructLM: Towards Building Generalist Models for Structured Knowledge Groundingcited by 29
- 2024Call Me When Necessary: LLMs can Efficiently and Faithfully Reason over Structured Environmentscited by 27
- 2024QueryAgent: A Reliable and Efficient Reasoning Framework with Environmental Feedback-based Self-Correctioncited by 27
- 2024OpenTab: Advancing Large Language Models as Open-domain Table Reasonerscited by 25
- 2024Exploring the Impact of Table-to-Text Methods on Augmenting LLM-based Question Answering with Domain Hybrid Datacited by 24
- 2024H-STAR: LLM-driven Hybrid SQL-Text Adaptive Reasoning on Tablescited by 21
- 2024Tree-of-Table: Unleashing the Power of LLMs for Enhanced Large-Scale Table Understandingcited by 20
- 2025Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errorscited by 14
- 2024SynTQA: Synergistic Table-based Question Answering via Mixture of Text-to-SQL and E2E TQAcited by 9
- 2025Enhancing LLM Reasoning for Time Series Classification by Tailored Thinking and Fused Decisioncited by 8
- 2025CoVE: Compressed Vocabulary Expansion Makes Better LLM-based Recommender Systemscited by 3
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025Towards Agents That Know When They Don't Know: Uncertainty as a Control Signal for Structured Reasoningcited by 10
- 2025Training-Free Time Series Classification via In-Context Reasoning with LLM Agentscited by 4
- 2026Do LLM-Generated Skills Make Better AI Data Scientists? A Component Ablation Across Data-Science Workflowscited by 3
- 2026SemanticAgent: A Semantics-Aware Framework for Text-to-SQL Data Synthesiscited by 0
- 2026Does Every User Need a Private LoRA? Decoupling Personalization from Per-User Adaptationcited by 0
- 2026Do More Modalities Always Help? A Geometric Perspective on Missing-Modality Robustnesscited by 0
- 2026Do More Modalities Always Help? A Geometric Perspective on Missing-Modality Robustness3 Oct 2026
- 2026Does Every User Need a Private LoRA? Decoupling Personalization from Per-User Adaptation1 Oct 2026
- 2026Do LLM-Generated Skills Make Better AI Data Scientists? A Component Ablation Across Data-Science Workflows8 Jul 2026
- 2026SemanticAgent: A Semantics-Aware Framework for Text-to-SQL Data Synthesis23 Apr 2026
- 2025Training-Free Time Series Classification via In-Context Reasoning with LLM Agents7 Oct 2025
- 2025Towards Agents That Know When They Don't Know: Uncertainty as a Control Signal for Structured Reasoning2 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligence
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL
- 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
- 2025RAISE: Reasoning Agent for Interactive SQL Exploration
- 2025Weaver: Interweaving SQL and LLM for Table Reasoning
- 2025SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error Correction
- 2025AGENTIQL: An Agent-Inspired Multi-Expert Framework for Text-to-SQL Generation
- 2025From Queries to Insights: Agentic LLM Pipelines for Spatio-Temporal Text-to-SQL