Papers › Evaluating and Enhancing LLMs for Multi-turn Text-to-SQL with Multiple Question Types

Evaluating and Enhancing LLMs for Multi-turn Text-to-SQL with Multiple Question Types

21 Dec 2024arXiv:2412.17867archive 2025-07-28

Ziming Guo, Chao Ma, Yinggang Sun, Tiancheng Zhao, Guangyao Wang, Hai Huang

Recent advancements in large language models (LLMs) have significantly advanced text-to-SQL systems. However, most LLM-based methods often narrowly focus on SQL generation, neglecting the complexities of real-world conversational queries. This oversight can lead to unreliable responses, particularly for ambiguous questions that cannot be directly addressed with SQL. To bridge this gap, we propose MMSQL, a comprehensive test suite designed to evaluate the question classification and SQL generation capabilities of LLMs by simulating real-world scenarios with diverse question types and multi-turn Q\&A interactions. Using MMSQL, we assessed the performance of popular LLMs, including both open-source and closed-source models, and identified key factors impacting their performance in such scenarios. Moreover, we introduce an LLM-based multi-agent framework that employs specialized agents to identify question types and determine appropriate answering strategies. Our experiments demonstrate that this approach significantly enhances the model's ability to navigate the complexities of conversational dynamics, effectively handling the diverse and complex nature of user queries.

PaperPDFCode

Code

mcxiaoxiao/MMSQL officialmentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

MMSQL performanceNavigateText to SQLText-To-SQL

Datasets

Introduced by this paper, per the archive.

MMSQL

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
MMSQL performance MMSQL GPT-4 Turbo TDEX 67.0 #1 of 6 Archive leaderboard report
MMSQL performance MMSQL Gemini-1.5 Flash TDEX 65.8 #2 of 6 Archive leaderboard report
MMSQL performance MMSQL GPT-3.5 Turbo TDEX 64.1 #3 of 6 Archive leaderboard report
MMSQL performance MMSQL Llama3-8B TDEX 64.0 #4 of 6 Archive leaderboard report
MMSQL performance MMSQL Llama3-70B TDEX 62.8 #5 of 6 Archive leaderboard report
MMSQL performance MMSQL SQLCoder-8B TDEX 30.7 #6 of 6 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

CoT PromptingFocus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections