mlsanityData to 7 Oct 2026

Cooperative SQL Generation for Segmented Databases By Using Multi-functional LLM Agents

arXiv 2412.05850 ↗First posted 8 Dec 2024cs.CLcited by 1

On the map: LLM agents and tool use → Web, search, and research agents

Abstract (arXiv)

Text-to-SQL task aims to automatically yield SQL queries according to user text questions. To address this problem, we propose a Cooperative SQL Generation framework based on Multi-functional Agents (CSMA) through information interaction among large language model (LLM) based agents who own part of the database schema seperately. Inspired by the collaboration in human teamwork, CSMA consists of three stages: 1) Question-related schema collection, 2) Question-corresponding SQL query generation, and 3) SQL query correctness check. In the first stage, agents analyze their respective schema and communicate with each other to collect the schema information relevant to the question. In the second stage, agents try to generate the corresponding SQL query for the question using the collected information. In the third stage, agents check if the SQL query is created correctly according to their known information. This interaction-based method makes the question-relevant part of database schema from each agent to be used for SQL generation and check. Experiments on the Spider and Bird benckmark demonstrate that CSMA achieves a high performance level comparable to the state-of-the-arts, meanwhile holding the private data in these individual agents.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 26 of its 32 references that are in the map. First posted on arXiv 8 Dec 2024.

Builds on

26 of 32 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL18 Dec

Other references · 25

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  4. 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentscited by 1,029
  5. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  6. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  7. 2022LLM-Planner: Few-Shot Grounded Planning for Embodied Agents with Large Language Modelscited by 459
  8. 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 395
  9. 2023Building Cooperative Embodied Agents Modularly with Large Language Modelscited by 231
  10. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  11. 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
  12. 2020Semantic Evaluation for Text-to-SQL with Distilled Test Suitescited by 123
13 more
  1. 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
  2. 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 118
  3. 2018TypeSQL: Knowledge-based Type-Aware Neural Text-to-SQL Generationcited by 81
  4. 2019Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questionscited by 80
  5. 2018SyntaxSQLNet: Syntax Tree Networks for Complex and Cross-DomainText-to-SQL Taskcited by 74
  6. 2019Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsingcited by 74
  7. 2024Scaling Instructable Agents Across Many Simulated Worldscited by 67
  8. 2020RYANSQL: Recursively Applying Sketch-based Slot Fillings for Complex Text-to-SQL in Cross-Domain Databasescited by 63
  9. 2022A Survey on Text-to-SQL Parsing: Concepts, Methods, and Future Directionscited by 51
  10. 2022S2SQL: Injecting Syntax to Question-Schema Interaction Graph Encoder for Text-to-SQL Parserscited by 41
  11. 2021ShadowGNN: Graph Projection Neural Network for Text-to-SQL Parsercited by 35
  12. 2020Bertrand-DR: Improving Text-to-SQL using a Discriminative Re-rankercited by 12
  13. 2023DBCopilot: Natural Language Querying over Massive Databases via Schema Routingcited by 9

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
  2. 2025AGENTIQL: An Agent-Inspired Multi-Expert Framework for Text-to-SQL Generation
  3. 2025RAISE: Reasoning Agent for Interactive SQL Exploration
  4. 2024Evaluating and Enhancing LLMs for Multi-turn Text-to-SQL with Multiple Question Types
  5. 2023On Evaluating the Integration of Reasoning and Action in LLM Agents with Database Question Answering
  6. 2025AskDB: An LLM Agent for Natural Language Interaction with Relational Databases
  7. 2025Text2Schema: Filling the Gap in Designing Database Table Structures based on Natural Language
  8. 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQL