Lune

EMNLP2025Top-tier venue

Weaver: Interweaving SQL and LLM for Table Reasoning

Rohit Khoja, Devanshu Gupta, Yanjie Fu, Dan Roth, Vivek Gupta

Abstract

Querying tables with unstructured data is challenging due to the presence of text (or image), either embedded in the table or in external paragraphs, which traditional SQL struggles to process, especially for tasks requiring semantic reasoning. While Large Language Models (LLMs) excel at understanding context, they face limitations with long input sequences. Existing approaches that combine SQL and LLM typically rely on rigid, predefined workflows, limiting their adaptability to complex queries. To address these issues, we introduce Weaver , a modular pipeline that dynamically integrates SQL and LLM for table-based question answering (Table QA ). Weaver generates a flexible, step-by-step plan that combines SQL for structured data retrieval with LLMs for semantic processing. By decomposing complex queries into manageable subtasks, Weaver improves accuracy and generalization. Our experiments show that Weaver consistently outperforms state-ofthe-art methods across four Table QA datasets, reducing both API calls and error rates.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Same Content, Different Representations: A Controlled Study for Table QA cites TabFact: A Large-scale Dataset for Table-based Fact Verification
  • ASTRA: Adaptive Semantic Tree Reasoning Architecture for Complex Table Question Answering cites ReAcTable: Enhancing ReAct for Table Question Answering
  • TableMix: Enhancing Multimodal Table Reasoning in MLLMs from a Data-Centric Perspective cites TabFact: A Large-scale Dataset for Table-based Fact Verification
  • Binding Language Models in Symbolic Languages cites TabFact: A Large-scale Dataset for Table-based Fact Verification
  • Table Question Answering in the Era of Large Language Models: A Comprehensive Survey of Tasks, Methods, and Evaluation cites Binding Language Models in Symbolic Languages
  • Table Question Answering in the Era of Large Language Models: A Comprehensive Survey of Tasks, Methods, and Evaluation cites ReAcTable: Enhancing ReAct for Table Question Answering
  • ReAcTable: Enhancing ReAct for Table Question Answering cites Binding Language Models in Symbolic Languages
  • Chain-of-Table: Evolving Tables in the Reasoning Chain for Table Understanding cites TabFact: A Large-scale Dataset for Table-based Fact Verification
  • Chain-of-Table: Evolving Tables in the Reasoning Chain for Table Understanding cites Binding Language Models in Symbolic Languages
  • When TableQA Meets Noise: A Dual Denoising Framework for Complex Questions and Large-scale Tables cites TabFact: A Large-scale Dataset for Table-based Fact Verification
  • When TableQA Meets Noise: A Dual Denoising Framework for Complex Questions and Large-scale Tables cites Binding Language Models in Symbolic Languages
  • When TableQA Meets Noise: A Dual Denoising Framework for Complex Questions and Large-scale Tables cites ReAcTable: Enhancing ReAct for Table Question Answering
  • When TableQA Meets Noise: A Dual Denoising Framework for Complex Questions and Large-scale Tables cites Chain-of-Table: Evolving Tables in the Reasoning Chain for Table Understanding
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. When TableQA Meets Noise: A Dual Denoising Framework for Complex Questions and Large-scale TablesShenghao Ye, Yu Guo, Dong Jin, Yuxiang Wang et al.ACL 2026 · 8 citations
  2. Same Content, Different Representations: A Controlled Study for Table QAYue Zhang, Seiji Maekawa, Nikita BhutaniICLR 2026 · 5 citations
  3. ASTRA: Adaptive Semantic Tree Reasoning Architecture for Complex Table Question AnsweringXiaoke Guo, Songze Li, Zhiqiang Liu, Zhaoyan Gong et al.ACL 2026 · 3 citations
  4. Table Question Answering in the Era of Large Language Models: A Comprehensive Survey of Tasks, Methods, and EvaluationWei Zhou, Bolei Ma, Annemarie Friedrich, Mohsen MesgarACL 2026 · 3 citations
  5. TableMix: Enhancing Multimodal Table Reasoning in MLLMs from a Data-Centric PerspectiveChaohu Liu, Shida Wang, Yubo Wang, Linli XuCVPR 2026

Builds on12

  1. Self-Refine: Iterative Refinement with Self-FeedbackAman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan et al.NeurIPS 2023 · 4,972 citations
  2. TabFact: A Large-scale Dataset for Table-based Fact VerificationWenhu Chen, Hongmin Wang, Jianshu Chen, Yunkai Zhang et al.ICLR 2020 · 674 citations
  3. Chain-of-Table: Evolving Tables in the Reasoning Chain for Table UnderstandingZilong Wang, Hao Zhang, Chun-Liang Li, Julian Martin Eisenschlos et al.ICLR 2024 · 244 citations
  4. ReAcTable: Enhancing ReAct for Table Question AnsweringYunjia Zhang, Jordan Henkel, Avrilia Floratou, Joyce Cahoon et al.VLDB 2024 · 120 citations
  5. Binding Language Models in Symbolic LanguagesZhoujun Cheng, Tianbao Xie, Peng Shi, Chengzu Li et al.ICLR 2023 · 38 citations

Related papers

  1. SEMA: A High-performance System for LLM-based Semantic Query ProcessingKangkang Qi, Dongyang Xie, Wenbo Li, Hao Zhang et al.VLDB 2026 · 5 citations
  2. Plugging Schema Graph into Multi-Table QA: A Human-Guided Framework for Reducing LLM RelianceXixi Wang, Miguel Costa, Jordanka Kovaceva, Shuai Wang et al.EMNLP Findings 2025 · 1 citation
  3. Large Language Models are Versatile Decomposers: Decomposing Evidence and Questions for Table-based ReasoningYunhu Ye, Binyuan Hui, Min Yang, Binhua Li et al.SIGIR 2023 · 75 citations
  4. TableRAG: A Retrieval Augmented Generation Framework for Heterogeneous Document ReasoningXiaohan Yu, Pu Jian, Chong ChenEMNLP 2025 · 4 citations
  5. Logical and Physical Optimizations for SQL Query Execution over Large Language ModelsDario Satriani, Enzo Veltri, Donatello Santoro, Sara Rosato et al.SIGMOD 2025 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines