OmniSQL: Synthesizing High-Quality Text-to-SQL Data at Scale
Haoyang LiShang WuXiaokang ZhangXinmei HuangJing ZhangFuxin JiangShuai WangTieying ZhangJianjun ChenRui ShiHong ChenCuiping Li
Haoyang Li
Shang Wu
Xiaokang Zhang
Xinmei Huang
Jing Zhang
Fuxin Jiang
Shuai Wang
Tieying Zhang
Jianjun Chen
Rui Shi
Hong Chen
Cuiping Li
+12
To address the limited coverage of public training data that hampers fine-tuning-based text-to-SQL generalization, the authors propose a scalable data synthesis framework that automatically generates large-scale, high-quality, diverse text-to-SQL datasets with minimal human intervention. Using it, they build SynSQL-2.5M, described as the first million-scale text-to-SQL dataset: 2.5 million samples over more than 16,000 synthetic databases, each comprising a database, SQL query, natural language question, and chain-of-thought solution. Fine-tuning this data yields OmniSQL, an open-source model in 7B, 14B, and 32B sizes that, across nine datasets, matches or surpasses leading closed-source and open-source LLMs including GPT-4o and DeepSeek-V3.

PVLDB · September 4, 2025