Skip to main navigation Skip to search Skip to main content

MQA-SQL: Mitigating Question Ambiguity in Text-to-SQL with Multi-model Collaboration and Multi-variant Query Rephrasing

  • Yiming Huang
  • , Jiyu Guo
  • , Jichuan Zeng
  • , Cuiyun Gao*
  • , Peiyi Han
  • , Chuanyi Liu
  • *Corresponding author for this work
  • Harbin Institute of Technology Shenzhen
  • The Chinese University of Hong Kong, Shenzhen
  • Peng Cheng Laboratory

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Large Language Model (LLM)-based approaches have become pivotal in text-to-SQL tasks. However, these methods struggle to effectively mitigate question ambiguity, thereby hindering their practical utility. To tackle this issue, we present MQA-SQL, which comprises the following stages: (1) Preliminary SQL Generation: MQA-SQL preliminarily produces SQL by leveraging multiple open-source LLMs through Supervised Fine-Tuning, providing a solid foundation for the subsequent process; (2) Rephrased Question-based SQL Generation: The framework seeks to improve the comprehension of user intent by generating multiple rephrased variants of the original question. The SQL candidates generated in the first stage are then synthesized by a closed-source LLM based on the original and rephrased questions to enhance SQL generation. The final SQL is selected based on the consistency of execution results among these candidates. Extensive experiments on diverse datasets substantiate the effectiveness of MQA-SQL in improving SQL generation.

Original languageEnglish
Title of host publicationNatural Language Processing and Chinese Computing - 14th National CCF Conference, NLPCC 2025, Proceedings
EditorsXian-Ling Mao, Zhaochun Ren, Muyun Yang
PublisherSpringer Science and Business Media Deutschland GmbH
Pages289-300
Number of pages12
ISBN (Print)9789819533459
DOIs
StatePublished - 2026
Externally publishedYes
Event14th National CCF Conference on Natural Language Processing and Chinese Computing, NLPCC 2025 - Urumqi, China
Duration: 7 Aug 20259 Aug 2025

Publication series

NameLecture Notes in Computer Science
Volume16103 LNAI
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference14th National CCF Conference on Natural Language Processing and Chinese Computing, NLPCC 2025
Country/TerritoryChina
CityUrumqi
Period7/08/259/08/25

Keywords

  • Large Language Model
  • Question Ambiguity
  • Text to SQL

Fingerprint

Dive into the research topics of 'MQA-SQL: Mitigating Question Ambiguity in Text-to-SQL with Multi-model Collaboration and Multi-variant Query Rephrasing'. Together they form a unique fingerprint.

Cite this