SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error Correction
By: Saumya Chaturvedi, Aman Chadha, Laurent Bindschaedler
Potential Business Impact:
Lets computers understand questions to find data.
Converting natural language queries into SQL queries is a crucial challenge in both industry and academia, aiming to increase access to databases and large-scale applications. This work examines how in-context learning and chain-of-thought can be utilized to develop a robust solution for text-to-SQL systems. We propose SQL-of-Thought: a multi-agent framework that decomposes the Text2SQL task into schema linking, subproblem identification, query plan generation, SQL generation, and a guided correction loop. Unlike prior systems that rely only on execution-based static correction, we introduce taxonomy-guided dynamic error modification informed by in-context learning. SQL-of-Thought achieves state-of-the-art results on the Spider dataset and its variants, combining guided error taxonomy with reasoning-based query planning.
Similar Papers
SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error Correction
Databases
Helps computers understand questions to find data.
GBV-SQL: Guided Generation and SQL2Text Back-Translation Validation for Multi-Agent Text2SQL
Artificial Intelligence
Fixes computer questions that misunderstand what you mean.
Continual Learning of Domain Knowledge from Human Feedback in Text-to-SQL
Computation and Language
Teaches computers to answer questions from data better.