{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,20]],"date-time":"2026-08-20T16:36:42Z","timestamp":1787243802091,"version":"build-2736575974"},"reference-count":96,"publisher":"Association for Computing Machinery (ACM)","issue":"7","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2025,3]]},"abstract":"<jats:p>Current large language model (LLM)-based Natural Language to SQL (NL2SQL) approaches typically rely on the database schema and partial data values for the translation. These approaches are unable to use sufficient data for accurate database understanding due to limitations in data selection methods, and they cannot input the entire database due to the limited context window sizes of LLMs. This insufficient data integration may result in an incomplete understanding of the database, leading to semantically incorrect SQL generation. In this paper, we introduce REDSQL, a novel plug-and-play framework that refines the predicted SQL by utilizing the entire database in the refinement process. The core idea of REDSQL is to enhance SQL refinement by identifying potential errors based on the database content, which is achieved by applying constraints on the input relations of query operations. LLMs can refine the SQL using SQL-related information extracted by REDSQL, which provides concise and informative insights into the database. Additionally, REDSQL enhances schema semantics by integrating data profiling for more effective database utilization. Our experiments demonstrate that REDSQL consistently improves the performance of existing NL2SQL approaches across five benchmarks. Specifically, REDSQL elevates the accuracy of CODES to 67.3% (+8.8%) and PURPLE to 67.7% (+11.1%) on the Bird benchmark.<\/jats:p>","DOI":"10.14778\/3734839.3734847","type":"journal-article","created":{"date-parts":[[2025,8,29]],"date-time":"2025-08-29T16:01:06Z","timestamp":1756483266000},"page":"2097-2111","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":3,"title":["The Power of Constraints in Natural Language to SQL Translation"],"prefix":"10.14778","volume":"18","author":[{"given":"Tonghui","family":"Ren","sequence":"first","affiliation":[{"name":"Fudan University, TCHouse, Tencent Cloud"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Chen","family":"Ke","sequence":"additional","affiliation":[{"name":"Fudan University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yuankai","family":"Fan","sequence":"additional","affiliation":[{"name":"Fudan University, TeleAI, China Telecom"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yinan","family":"Jing","sequence":"additional","affiliation":[{"name":"Fudan University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zhenying","family":"He","sequence":"additional","affiliation":[{"name":"Fudan University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Kai","family":"Zhang","sequence":"additional","affiliation":[{"name":"Fudan University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"X. Sean","family":"Wang","sequence":"additional","affiliation":[{"name":"Fudan University"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,8,29]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-015-0389-y"},{"key":"e_1_2_1_2_1","volume-title":"Data Profiling: A Tutorial. In North American","author":"Abedjan Ziawasch","year":"2017","unstructured":"Ziawasch Abedjan, Lukasz Golab, and Felix Naumann. 2017. Data Profiling: A Tutorial. In North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT. 1747\u20131751."},{"key":"e_1_2_1_3_1","volume-title":"International Conference on Research and Development in Information Retrieval, SIGIR. 272\u2013277","author":"Ahadi Alireza","year":"2016","unstructured":"Alireza Ahadi, Julia Coleman Prior, Vahid Behbood, and Raymond Lister. 2016. Students' Semantic Mistakes in Writing Seven Different Types of SQL Queries. In International Conference on Research and Development in Information Retrieval, SIGIR. 272\u2013277."},{"key":"e_1_2_1_4_1","volume-title":"An Informal and Efficient Approach for Obtaining Semantic Constraints Using Sample Data and Natural Language Processing. In International Conference on Machine Learning, ICML","volume":"1358","author":"Albrecht Meike","year":"1995","unstructured":"Meike Albrecht, Edith Buchholz, Antje D\u00fcsterh\u00f6ft, and Bernhard Thalheim. 1995. An Informal and Efficient Approach for Obtaining Semantic Constraints Using Sample Data and Natural Language Processing. In International Conference on Machine Learning, ICML, Vol. 1358. 1\u201328."},{"key":"e_1_2_1_5_1","volume-title":"Skill-Based Few-Shot Selection for In-Context Learning. arXiv abs\/2305.14210","author":"An Shengnan","year":"2023","unstructured":"Shengnan An, Bo Zhou, Zeqi Lin, Qiang Fu, Bei Chen, Nanning Zheng, Weizhu Chen, and Jian-Guang Lou. 2023. Skill-Based Few-Shot Selection for In-Context Learning. arXiv abs\/2305.14210 (2023)."},{"key":"e_1_2_1_6_1","volume-title":"Dependency Structures of Data Base Relationships. In Applied Natural Language Processing Conference, ANLP. 580\u2013583","author":"Armstrong William Ward","year":"1974","unstructured":"William Ward Armstrong. 1974. Dependency Structures of Data Base Relationships. In Applied Natural Language Processing Conference, ANLP. 580\u2013583."},{"key":"e_1_2_1_7_1","unstructured":"Jinze Bai Shuai Bai Yunfei Chu Zeyu Cui Kai Dang Xiaodong Deng Yang Fan Wenbin Ge Yu Han Fei Huang Binyuan Hui Luo Ji Mei Li Junyang Lin Runji Lin Dayiheng Liu Gao Liu Chengqiang Lu Keming Lu Jianxin Ma Rui Men Xingzhang Ren Xuancheng Ren Chuanqi Tan Sinan Tan Jianhong Tu Peng Wang Shijie Wang Wei Wang Shengguang Wu Benfeng Xu Jin Xu An Yang Hao Yang Jian Yang Shusheng Yang Yang Yao Bowen Yu Hongyi Yuan Zheng Yuan Jianwei Zhang Xingxuan Zhang Yichang Zhang Zhenru Zhang Chang Zhou Jingren Zhou Xiaohuan Zhou and Tianhang Zhu. 2023. Qwen Technical Report. arXiv abs\/2309.16609 (2023)."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/320064.320066"},{"key":"e_1_2_1_9_1","first-page":"73","article-title":"The Implication Problem for Data Dependencies","volume":"115","author":"Beeri Catriel","year":"1981","unstructured":"Catriel Beeri and Moshe Y. Vardi. 1981. The Implication Problem for Data Dependencies. In Human Language Technology, Vol. 115. 73\u201385.","journal-title":"Human Language Technology"},{"key":"e_1_2_1_10_1","volume-title":"Longformer: The Long-Document Transformer. arXiv abs\/2004.05150","author":"Beltagy Iz","year":"2020","unstructured":"Iz Beltagy, Matthew E. Peters, and Arman Cohan. 2020. Longformer: The Long-Document Transformer. arXiv abs\/2004.05150 (2020)."},{"key":"e_1_2_1_11_1","volume-title":"Conference on Empirical Methods in Natural Language Processing and International Joint Conference on Natural Language Processing, EMNLP-IJCNLP. 3657\u20133662","author":"Bogin Ben","year":"2019","unstructured":"Ben Bogin, Matt Gardner, and Jonathan Berant. 2019. Global Reasoning over Database Structures for Text-to-SQL Parsing. In Conference on Empirical Methods in Natural Language Processing and International Joint Conference on Natural Language Processing, EMNLP-IJCNLP. 3657\u20133662."},{"key":"e_1_2_1_12_1","volume-title":"IEEE\/ACM International Conference on Software Engineering: Software Engineering Education and Training, ICSE (SEET). 197\u2013204","author":"Brass Stefan","year":"2005","unstructured":"Stefan Brass and Christian Goldberg. 2005. Proving the safety of SQL queries. In IEEE\/ACM International Conference on Software Engineering: Software Engineering Education and Training, ICSE (SEET). 197\u2013204."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2005.06.028"},{"key":"e_1_2_1_14_1","volume-title":"LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and NonLocal Relations. In Workshop on Neural Machine Translation, NMT@ACL. 2541\u20132555","author":"Cao Ruisheng","year":"2021","unstructured":"Ruisheng Cao, Lu Chen, Zhi Chen, Yanbin Zhao, Su Zhu, and Kai Yu. 2021. LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and NonLocal Relations. In Workshop on Neural Machine Translation, NMT@ACL. 2541\u20132555."},{"key":"e_1_2_1_15_1","volume-title":"SQLFixAgent: Towards Semantic-Accurate SQL Generation via Multi-Agent Collaboration. arXiv","author":"Cen Jipeng","year":"2024","unstructured":"Jipeng Cen, Jiaxin Liu, Zhixu Li, and Jingjing Wang. 2024. SQLFixAgent: Towards Semantic-Accurate SQL Generation via Multi-Agent Collaboration. arXiv (2024)."},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-015-0395-0"},{"key":"e_1_2_1_17_1","volume-title":"How to Prompt LLMs for Text-to-SQL: A Study in Zero-shot, Single-domain, and Cross-domain Settings. arXiv abs\/2305.11853","author":"Chang Shuaichen","year":"2023","unstructured":"Shuaichen Chang and Eric Fosler-Lussier. 2023. How to Prompt LLMs for Text-to-SQL: A Study in Zero-shot, Single-domain, and Cross-domain Settings. arXiv abs\/2305.11853 (2023)."},{"key":"e_1_2_1_18_1","volume-title":"Teaching Large Language Models to Self-Debug. arXiv abs\/2304.05128","author":"Chen Xinyun","year":"2023","unstructured":"Xinyun Chen, Maxwell Lin, Nathanael Sch\u00e4rli, and Denny Zhou. 2023. Teaching Large Language Models to Self-Debug. arXiv abs\/2304.05128 (2023)."},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.14778\/3236187.3236200"},{"key":"e_1_2_1_20_1","unstructured":"E. F. Codd. 1972. Relational Completeness of Data Base Sublanguages. IBM Research Report RJ987 (1972)."},{"key":"e_1_2_1_21_1","volume-title":"A Strong, Economical, and Efficient Mixture-of-Experts Language Model. arXiv abs\/2405.04434","author":"Aixin Liu AI","year":"2024","unstructured":"DeepSeek-AI, Aixin Liu, Bei Feng, Bin Wang, Bingxuan Wang, Bo Liu, Chenggang Zhao, Chengqi Deng, Chong Ruan, Damai Dai, Daya Guo, Dejian Yang, Deli Chen, Dongjie Ji, Erhang Li, Fangyun Lin, Fuli Luo, Guangbo Hao, Guanting Chen, Guowei Li, Hao Zhang, Hanwei Xu, Hao Yang, Haowei Zhang, Honghui Ding, Huajian Xin, Huazuo Gao, Hui Li, Hui Qu, J. L. Cai, Jian Liang, Jianzhong Guo, Jiaqi Ni, Jiashi Li, Jin Chen, Jingyang Yuan, Junjie Qiu, Junxiao Song, Kai Dong, Kaige Gao, Kang Guan, Lean Wang, Lecong Zhang, Lei Xu, Leyi Xia, Liang Zhao, Liyue Zhang, Meng Li, Miaojun Wang, Mingchuan Zhang, Minghua Zhang, Minghui Tang, Mingming Li, Ning Tian, Panpan Huang, Peiyi Wang, Peng Zhang, Qihao Zhu, Qinyu Chen, Qiushi Du, R. J. Chen, R. L. Jin, Ruiqi Ge, Ruizhe Pan, Runxin Xu, Ruyi Chen, S. S. Li, Shanghao Lu, Shangyan Zhou, Shanhuang Chen, Shaoqing Wu, Shengfeng Ye, Shirong Ma, Shiyu Wang, Shuang Zhou, Shuiping Yu, Shunfeng Zhou, Size Zheng, Tao Wang, Tian Pei, Tian Yuan, Tianyu Sun, W. L. Xiao, Wangding Zeng, Wei An, Wen Liu, Wenfeng Liang, Wenjun Gao, Wentao Zhang, X. Q. Li, Xiangyue Jin, Xianzu Wang, Xiao Bi, Xiaodong Liu, Xiaohan Wang, Xiaojin Shen, Xiaokang Chen, Xiaosha Chen, Xiaotao Nie, and Xiaowen Sun. 2024. DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model. arXiv abs\/2405.04434 (2024)."},{"key":"e_1_2_1_22_1","volume-title":"Structure-Grounded Pretraining for Text-to-SQL. In Frontiers in Education Conference, FIE. 1337\u20131350","author":"Deng Xiang","year":"2021","unstructured":"Xiang Deng, Ahmed Hassan Awadallah, Christopher Meek, Oleksandr Polozov, Huan Sun, and Matthew Richardson. 2021. Structure-Grounded Pretraining for Text-to-SQL. In Frontiers in Education Conference, FIE. 1337\u20131350."},{"key":"e_1_2_1_23_1","volume-title":"Proceedings of the ACM on Management of Data, SIGMOD. 865\u2013870","author":"Dietrich Benjamin","year":"2015","unstructured":"Benjamin Dietrich and Torsten Grust. 2015. A SQL Debugger Built from Spare Parts: Turning a SQL: 1999 Database System into Its Own Debugger. In Proceedings of the ACM on Management of Data, SIGMOD. 865\u2013870."},{"key":"e_1_2_1_24_1","volume-title":"C3: Zero-shot Text-to-SQL with ChatGPT. arXiv abs\/2307.07306","author":"Dong Xuemei","year":"2023","unstructured":"Xuemei Dong, Chao Zhang, Yuhang Ge, Yuren Mao, Yunjun Gao, Lu Chen, Jinshu Lin, and Dongfang Lou. 2023. C3: Zero-shot Text-to-SQL with ChatGPT. arXiv abs\/2307.07306 (2023)."},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/320557.320571"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/319587.319592"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/322344.322347"},{"key":"e_1_2_1_28_1","volume-title":"International Conference on Intellectual Systems and Computer Science. 110\u2013122","author":"Fan Yuankai","unstructured":"Yuankai Fan, Zhenying He, Tonghui Ren, Dianjun Guo, Lin Chen, Ruisi Zhu, Guanduo Chen, Yinan Jing, Kai Zhang, and X. Sean Wang. 2023. Gar: A Generate-and-Rank Approach for Natural Language to SQL Translation. In International Conference on Intellectual Systems and Computer Science. 110\u2013122."},{"key":"e_1_2_1_29_1","volume-title":"International Conference on Data Engineering, ICDE. 1765\u20131778","author":"Fan Yuankai","unstructured":"Yuankai Fan, Zhenying He, Tonghui Ren, Can Huang, Yinan Jing, Kai Zhang, and X. Sean Wang. 2024. Metasql: A Generate-Then-Rank Framework for Natural Language to SQL Translation. In International Conference on Data Engineering, ICDE. 1765\u20131778."},{"key":"e_1_2_1_30_1","volume-title":"International Conference on Data Engineering, ICDE. 3603\u20133606","author":"Fan Yuankai","year":"2023","unstructured":"Yuankai Fan, Tonghui Ren, Zhenying He, X. Sean Wang, Ye Zhang, and Xingang Li. 2023. GenSql: A Generative Natural Language Interface to Database Systems. In International Conference on Data Engineering, ICDE. 3603\u20133606."},{"key":"e_1_2_1_31_1","volume-title":"Grounding Natural Language to SQL Translation with Data-Based Self-Explanations. arXiv abs\/2411.02948","author":"Fan Yuankai","year":"2024","unstructured":"Yuankai Fan, Tonghui Ren, Can Huang, Zhenying He, and X. Sean Wang. 2024. Grounding Natural Language to SQL Translation with Data-Based Self-Explanations. arXiv abs\/2411.02948 (2024)."},{"key":"e_1_2_1_32_1","doi-asserted-by":"crossref","first-page":"112718","DOI":"10.1016\/j.knosys.2024.112718","article-title":"A confidence-based knowledge integration framework for cross-domain table question answering","volume":"306","author":"Fan Yuankai","year":"2024","unstructured":"Yuankai Fan, Tonghui Ren, Can Huang, Beini Zheng, Yinan Jing, Zhenying He, Jinbao Li, and Jianxin Li. 2024. A confidence-based knowledge integration framework for cross-domain table question answering. Knowledg-Based Systems 306 (2024), 112718.","journal-title":"Knowledg-Based Systems"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.14778\/3583140.3583165"},{"key":"e_1_2_1_34_1","volume-title":"Workshop on Teaching, Learning and Assessment in Databases. 2505\u20132515","author":"Gan Yujian","year":"2021","unstructured":"Yujian Gan, Xinyun Chen, Qiuping Huang, Matthew Purver, John R. Woodward, Jinxia Xie, and Pengsheng Huang. 2021. Towards Robustness of Text-to-SQL Models against Synonym Substitution. In Workshop on Teaching, Learning and Assessment in Databases. 2505\u20132515."},{"key":"e_1_2_1_35_1","unstructured":"Yujian Gan Xinyun Chen and Matthew Purver. 2021. Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalization. In Conference on Empirical Methods in Natural Language Processing and International Joint Conference on Natural Language Processing EMNLP-IJCNLP. 8926\u20138931."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.14778\/3641204.3641221"},{"key":"e_1_2_1_37_1","volume-title":"Conference on Empirical Methods in Natural Language Processing, EMNLP. 355\u2013368","author":"Gilad Amir","year":"2022","unstructured":"Amir Gilad, Zhengjie Miao, Sudeepa Roy, and Jun Yang. 2022. Understanding Queries by Conditional Instances. In Conference on Empirical Methods in Natural Language Processing, EMNLP. 355\u2013368."},{"key":"e_1_2_1_38_1","volume-title":"An In-Depth Benchmarking of Text-to-SQL Systems. In Text REtrieval Conference, TREC. 632\u2013644","author":"Gkini Orest","unstructured":"Orest Gkini, Theofilos Belmpas, Georgia Koutrika, and Yannis E. Ioannidis. 2021. An In-Depth Benchmarking of Text-to-SQL Systems. In Text REtrieval Conference, TREC. 632\u2013644."},{"key":"e_1_2_1_39_1","volume-title":"Annual Meeting of the Association for Computational Linguistics and International Joint Conference on Natural Language Processing, ACL\/IJCNLP.","author":"Goldberg Christian","year":"2009","unstructured":"Christian Goldberg. 2009. Do you know SQL? About semantic errors in database queries. In Annual Meeting of the Association for Computational Linguistics and International Joint Conference on Natural Language Processing, ACL\/IJCNLP."},{"key":"e_1_2_1_40_1","first-page":"3","article-title":"Observing SQL queries in their natural habitat","volume":"38","author":"Grust Torsten","year":"2013","unstructured":"Torsten Grust and Jan Rittinger. 2013. Observing SQL queries in their natural habitat. ACM Transactions on Database Systems 38, 1 (2013), 3.","journal-title":"ACM Transactions on Database Systems"},{"key":"e_1_2_1_41_1","first-page":"2","volume-title":"Proceedings of the ACM on Management of Data, SIGMOD 1","author":"Gu Zihui","year":"2023","unstructured":"Zihui Gu, Ju Fan, Nan Tang, Lei Cao, Bowen Jia, Sam Madden, and Xiaoyong Du. 2023. Few-shot Text-to-SQL Translation using Structure and Content Prompt Learning. Proceedings of the ACM on Management of Data, SIGMOD 1, 2 (2023), 147:1\u2013147:28."},{"key":"e_1_2_1_42_1","volume-title":"Interleaving Pre-Trained Language Models and Large Language Models for Zero-Shot NL2SQL Generation. arXiv abs\/2306.08891","author":"Gu Zihui","year":"2023","unstructured":"Zihui Gu, Ju Fan, Nan Tang, Songyue Zhang, Yuxin Zhang, Zui Chen, Lei Cao, Guoliang Li, Sam Madden, and Xiaoyong Du. 2023. Interleaving Pre-Trained Language Models and Large Language Models for Zero-Shot NL2SQL Generation. arXiv abs\/2306.08891 (2023)."},{"key":"e_1_2_1_43_1","first-page":"164","article-title":"Qr-Hint: Actionable Hints Towards Correcting Wrong SQL Queries","volume":"2","author":"Hu Yihao","year":"2024","unstructured":"Yihao Hu, Amir Gilad, Kristin Stephens-Martinez, Sudeepa Roy, and Jun Yang. 2024. Qr-Hint: Actionable Hints Towards Correcting Wrong SQL Queries. Proceedings of the ACM on Management of Data, SIGMOD 2, 3 (2024), 164.","journal-title":"Proceedings of the ACM on Management of Data, SIGMOD"},{"key":"e_1_2_1_44_1","volume-title":"Proceedings of the VLDB Endowment. 1254\u20131262","author":"Hui Binyuan","year":"2022","unstructured":"Binyuan Hui, Ruiying Geng, Lihan Wang, Bowen Qin, Yanyang Li, Bowen Li, Jian Sun, and Yongbin Li. 2022. S2SQL: Injecting Syntax to Question-Schema Interaction Graph Encoder for Text-to-SQL Parsers. In Proceedings of the VLDB Endowment. 1254\u20131262."},{"key":"e_1_2_1_45_1","doi-asserted-by":"crossref","first-page":"1737","DOI":"10.14778\/3401960.3401970","article-title":"Natural language to SQL: Where are we today?","volume":"13","author":"Kim Hyeonji","year":"2020","unstructured":"Hyeonji Kim, Byeong-Hoon So, Wook-Shin Han, and Hongrae Lee. 2020. Natural language to SQL: Where are we today?. In Proceedings of the VLDB Endowment, Vol. 13. 1737\u20131750.","journal-title":"Proceedings of the VLDB Endowment"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/322326.322332"},{"key":"e_1_2_1_47_1","volume-title":"MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generation. In International Conference on Computational Linguistics, COLING. 337\u2013353","author":"Lee Dongjun","year":"2025","unstructured":"Dongjun Lee, Choongwon Park, Jaehyuk Kim, and Heesoo Park. 2025. MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generation. In International Conference on Computational Linguistics, COLING. 337\u2013353."},{"key":"e_1_2_1_48_1","doi-asserted-by":"crossref","unstructured":"Aristotelis Leventidis Jiahui Zhang Cody Dunne Wolfgang Gatterbauer H. V. Jagadish and Mirek Riedewald. 2020. QueryVis: Logic-based Diagrams help Users Understand Complicated SQL Queries Faster. In Findings of the Association for Computational Linguistics ACL. 2303\u20132318.","DOI":"10.1145\/3318464.3389767"},{"key":"e_1_2_1_49_1","doi-asserted-by":"crossref","first-page":"3318","DOI":"10.14778\/3681954.3682003","article-title":"The Dawn of Natural Language to SQL: Are We Fully Ready? [Experiment, Analysis & Benchmark]","volume":"17","author":"Li Boyan","year":"2024","unstructured":"Boyan Li, Yuyu Luo, Chengliang Chai, Guoliang Li, and Nan Tang. 2024. The Dawn of Natural Language to SQL: Are We Fully Ready? [Experiment, Analysis & Benchmark]. Proceedings of the VLDB Endowment 17, 11 (2024), 3318\u20133331.","journal-title":"Proceedings of the VLDB Endowment"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.14778\/2735461.2735468"},{"key":"e_1_2_1_51_1","doi-asserted-by":"crossref","unstructured":"Fei Li and H. V. Jagadish. 2014. NaLIR: an interactive natural language interface for querying relational databases. In Findings of the Association for Computational Linguistics EMNLP. 709\u2013712.","DOI":"10.1145\/2588555.2594519"},{"key":"e_1_2_1_52_1","volume-title":"RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL. In Advances in Neural Information Processing Systems, NeurIPS. 13067\u201313075.","author":"Li Haoyang","year":"2023","unstructured":"Haoyang Li, Jing Zhang, Cuiping Li, and Hong Chen. 2023. RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL. In Advances in Neural Information Processing Systems, NeurIPS. 13067\u201313075."},{"key":"e_1_2_1_53_1","volume-title":"Proceedings of the ACM on Management of Data, SIGMOD","volume":"2","author":"Li Haoyang","year":"2024","unstructured":"Haoyang Li, Jing Zhang, Hanbing Liu, Ju Fan, Xiaokang Zhang, Jun Zhu, Renjie Wei, Hongyan Pan, Cuiping Li, and Hong Chen. 2024. CodeS: Towards Building Open-source Language Models for Text-to-SQL. In Proceedings of the ACM on Management of Data, SIGMOD, Vol. 2. 127."},{"key":"e_1_2_1_54_1","volume-title":"Proceedings of the ACM on Management of Data, SIGMOD. 13076\u201313084","author":"Li Jinyang","year":"2023","unstructured":"Jinyang Li, Binyuan Hui, Reynold Cheng, Bowen Qin, Chenhao Ma, Nan Huo, Fei Huang, Wenyu Du, Luo Si, and Yongbin Li. 2023. Graphix-T5: Mixing Pre-trained Transformers with Graph-Aware Layers for Text-to-SQL Parsing. In Proceedings of the ACM on Management of Data, SIGMOD. 13076\u201313084."},{"key":"e_1_2_1_55_1","volume-title":"Fei Huang, Reynold Cheng, and Yongbin Li.","author":"Li Jinyang","year":"2023","unstructured":"Jinyang Li, Binyuan Hui, Ge Qu, Jiaxi Yang, Binhua Li, Bowen Li, Bailin Wang, Bowen Qin, Ruiying Geng, Nan Huo, Xuanhe Zhou, Chenhao Ma, Guoliang Li, Kevin Chen-Chuan Chang, Fei Huang, Reynold Cheng, and Yongbin Li. 2023. Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLs. In Advances in Neural Information Processing Systems, NeurIPS."},{"key":"e_1_2_1_56_1","unstructured":"Raymond Li Loubna Ben Allal Yangtian Zi Niklas Muennighoff Denis Kocetkov Chenghao Mou Marc Marone Christopher Akiki Jia Li Jenny Chim Qian Liu Evgenii Zheltonozhskii Terry Yue Zhuo Thomas Wang Olivier Dehaene Mishig Davaadorj Joel Lamy-Poirier Jo\u00e3o Monteiro Oleh Shliazhko Nicolas Gontier Nicholas Meade Armel Zebaze Ming-Ho Yee Logesh Kumar Umapathi Jian Zhu Benjamin Lipkin Muhtasham Oblokulov Zhiruo Wang Rudra Murthy V Jason Stillerman Siva Sankalp Patel Dmitry Abulkhanov Marco Zocca Manan Dey Zhihan Zhang Nour Moustafa-Fahmy Urvashi Bhattacharyya Wenhao Yu Swayam Singh Sasha Luccioni Paulo Villegas Maxim Kunakov Fedor Zhdanov Manuel Romero Tony Lee Nadav Timor Jennifer Ding Claire Schlesinger Hailey Schoelkopf Jan Ebert Tri Dao Mayank Mishra Alex Gu Jennifer Robinson Carolyn Jane Anderson Brendan Dolan-Gavitt Danish Contractor Siva Reddy Daniel Fried Dzmitry Bahdanau Yacine Jernite Carlos Mu\u00f1oz Ferrandis Sean Hughes Thomas Wolf Arjun Guha Leandro von Werra and Harm de Vries. 2023. StarCoder: may the source be with you! arXiv abs\/2305.06161 (2023)."},{"key":"e_1_2_1_57_1","volume-title":"PET-SQL: A Prompt-enhanced Two-stage Text-to-SQL Framework with Cross-consistency. arXiv abs\/2403.09732","author":"Li Zhishuai","year":"2024","unstructured":"Zhishuai Li, Xiang Wang, Jingjing Zhao, Sun Yang, Guoqing Du, Xiaoru Hu, Bin Zhang, Yuxiao Ye, Ziyue Li, Rui Zhao, and Hangyu Mao. 2024. PET-SQL: A Prompt-enhanced Two-stage Text-to-SQL Framework with Cross-consistency. arXiv abs\/2403.09732 (2024)."},{"key":"e_1_2_1_58_1","volume-title":"Proceedings of the VLDB Endowment","volume":"2020","author":"Lin Xi Victoria","year":"2020","unstructured":"Xi Victoria Lin, Richard Socher, and Caiming Xiong. 2020. Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing. In Proceedings of the VLDB Endowment, Vol. EMNLP 2020. 4870\u20134888."},{"key":"e_1_2_1_59_1","volume-title":"Yu","author":"Liu Aiwei","year":"2023","unstructured":"Aiwei Liu, Xuming Hu, Lijie Wen, and Philip S. Yu. 2023. A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capability. arXiv abs\/2303.13547 (2023)."},{"key":"e_1_2_1_60_1","volume-title":"A Survey of NL2SQL with Large Language Models: Where are we, and where are we going? arXiv abs\/2408.05109","author":"Liu Xinyu","year":"2024","unstructured":"Xinyu Liu, Shuyu Shen, Boyan Li, Peixian Ma, Runzhi Jiang, Yuyu Luo, Yuxin Zhang, Ju Fan, GuoliangLi, and Nan Tang. 2024. A Survey of NL2SQL with Large Language Models: Where are we, and where are we going? arXiv abs\/2408.05109 (2024)."},{"key":"e_1_2_1_61_1","unstructured":"Zhengjie Miao Sudeepa Roy and Jun Yang. 2019. Explaining Wrong Queries Using Small Examples. In Conference on Empirical Methods in Natural Language Processing and International Joint Conference on Natural Language Processing EMNLP-IJCNLP. 503\u2013520."},{"key":"e_1_2_1_62_1","doi-asserted-by":"crossref","first-page":"40","DOI":"10.1145\/2590989.2590995","article-title":"Data profiling revisited. In Proceedings of the ACM on Management of Data","volume":"42","author":"Naumann Felix","year":"2013","unstructured":"Felix Naumann. 2013. Data profiling revisited. In Proceedings of the ACM on Management of Data, SIGMOD, Vol. 42. 40\u201349.","journal-title":"SIGMOD"},{"key":"e_1_2_1_63_1","doi-asserted-by":"publisher","DOI":"10.1145\/32204.32219"},{"key":"e_1_2_1_64_1","doi-asserted-by":"publisher","DOI":"10.1109\/32.31363"},{"key":"e_1_2_1_65_1","volume-title":"Conference on Innovation and Technology in Computer Science Education, ITiCSE.","author":"Poesia Gabriel","year":"2022","unstructured":"Gabriel Poesia, Alex Polozov, Vu Le, Ashish Tiwari, Gustavo Soares, Christopher Meek, and Sumit Gulwani. 2022. Synchromesh: Reliable Code Generation from Pre-trained Language Models. In Conference on Innovation and Technology in Computer Science Education, ITiCSE."},{"key":"e_1_2_1_66_1","unstructured":"Mohammadreza Pourreza and Davood Rafiei. 2023. DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction. In Advances in Neural Information Processing Systems NeurIPS."},{"key":"e_1_2_1_67_1","doi-asserted-by":"crossref","unstructured":"Mohammadreza Pourreza and Davood Rafiei. 2024. DTS-SQL: Decomposed Text-to-SQL with Small Large Language Models. In Findings of the Association for Computational Linguistics EMNLP. 8212\u20138220.","DOI":"10.18653\/v1\/2024.findings-emnlp.481"},{"key":"e_1_2_1_68_1","volume-title":"Stolee","author":"Presler-Marshall Kai","year":"2021","unstructured":"Kai Presler-Marshall, Sarah Heckman, and Kathryn T. Stolee. 2021. SQLRepair: Identifying and Repairing Mistakes in Student-Authored SQL Queries. In Findings of the Association for Computational Linguistics, ACL. 199\u2013210."},{"key":"e_1_2_1_69_1","volume-title":"International Semantic Web Conference and Asian Semantic Web Conference, ISWC + ASWC. 3215\u20133229","author":"Qi Jiexing","year":"2022","unstructured":"Jiexing Qi, Jingyao Tang, Ziwei He, Xiangpeng Wan, Yu Cheng, Chenghu Zhou, Xinbing Wang, Quanshi Zhang, and Zhouhan Lin. 2022. RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL. In International Semantic Web Conference and Asian Semantic Web Conference, ISWC + ASWC. 3215\u20133229."},{"key":"e_1_2_1_70_1","volume-title":"Findings of the Association for Computational Linguistics","author":"Qu Ge","unstructured":"Ge Qu, Jinyang Li, Bowen Li, Bowen Qin, Nan Huo, Chenhao Ma, and Reynold Cheng. 2024. Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generation. In Findings of the Association for Computational Linguistics, ACL. Association for Computational Linguistics, 5456\u20135471."},{"key":"e_1_2_1_71_1","article-title":"Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer","volume":"21","author":"Raffel Colin","year":"2020","unstructured":"Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. Journal of Machine Learning Research 21 (2020), 140:1\u2013140:67.","journal-title":"Journal of Machine Learning Research"},{"key":"e_1_2_1_72_1","volume-title":"International Conference on Data Engineering, ICDE. 15\u201328","author":"Ren Tonghui","unstructured":"Tonghui Ren, Yuankai Fan, Zhenying He, Ren Huang, Jiaqi Dai, Can Huang, Yinan Jing, Kai Zhang, Yifan Yang, and X. Sean Wang. 2024. PURPLE: Making a Large Language Model a Better SQL Writer. In International Conference on Data Engineering, ICDE. 15\u201328."},{"key":"e_1_2_1_73_1","doi-asserted-by":"publisher","DOI":"10.1145\/49346.49347"},{"key":"e_1_2_1_74_1","doi-asserted-by":"crossref","unstructured":"Ohad Rubin and Jonathan Berant. 2021. SmBoP: Semi-autoregressive Bottom-up Semantic Parsing. In Findings of the Association for Computational Linguistics EMNLP. 12\u201321.","DOI":"10.18653\/v1\/2021.spnlp-1.2"},{"key":"e_1_2_1_75_1","doi-asserted-by":"publisher","DOI":"10.14778\/2994509.2994536"},{"key":"e_1_2_1_76_1","doi-asserted-by":"publisher","DOI":"10.1109\/TNN.2008.2005605"},{"key":"e_1_2_1_77_1","volume-title":"Conference on Empirical Methods in Natural Language Processing, EMNLP. 9895\u20139901","author":"Scholak Torsten","year":"2021","unstructured":"Torsten Scholak, Nathan Schucher, and Dzmitry Bahdanau. 2021. PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models. In Conference on Empirical Methods in Natural Language Processing, EMNLP. 9895\u20139901."},{"key":"e_1_2_1_78_1","doi-asserted-by":"crossref","first-page":"2747","DOI":"10.14778\/3407790.3407858","article-title":"ATHENA++: Natural Language Querying for Complex Nested SQL Queries","volume":"13","author":"Sen Jaydeep","year":"2020","unstructured":"Jaydeep Sen, Chuan Lei, Abdul Quamar, Fatma \u00d6zcan, Vasilis Efthymiou, Ayushi Dalmia, Greg Stager, Ashish R. Mittal, Diptikalyan Saha, and Karthik Sankaranarayanan. 2020. ATHENA++: Natural Language Querying for Complex Nested SQL Queries. In Proceedings of the VLDB Endowment, Vol. 13. 2747\u20132759.","journal-title":"Proceedings of the VLDB Endowment"},{"key":"e_1_2_1_79_1","doi-asserted-by":"crossref","first-page":"117","DOI":"10.1007\/s00778-007-0075-9","article-title":"Pr\u00e9cis: from unstructured keywords as queries to structured databases as answers","volume":"17","author":"Simitsis Alkis","year":"2008","unstructured":"Alkis Simitsis, Georgia Koutrika, and Yannis E. Ioannidis. 2008. Pr\u00e9cis: from unstructured keywords as queries to structured databases as answers. VLDB Journal 17, 1 (2008), 117\u2013149.","journal-title":"VLDB Journal"},{"key":"e_1_2_1_80_1","doi-asserted-by":"publisher","DOI":"10.1006\/ijhc.1995.1017"},{"key":"e_1_2_1_81_1","volume-title":"Explaining Causes Behind SQL Query Formulation Errors. In Text REtrieval Conference, TREC. 1\u20139.","author":"Taipalus Toni","year":"2020","unstructured":"Toni Taipalus. 2020. Explaining Causes Behind SQL Query Formulation Errors. In Text REtrieval Conference, TREC. 1\u20139."},{"key":"e_1_2_1_82_1","doi-asserted-by":"publisher","DOI":"10.1145\/3231712"},{"key":"e_1_2_1_83_1","volume-title":"CHESS: Contextual Harnessing for Efficient SQL Synthesis. arXiv preprint arXiv:2405.16755","author":"Talaei Shayan","year":"2024","unstructured":"Shayan Talaei, Mohammadreza Pourreza, Yu-Chen Chang, Azalia Mirhoseini, and Amin Saberi. 2024. CHESS: Contextual Harnessing for Efficient SQL Synthesis. arXiv preprint arXiv:2405.16755 (2024)."},{"key":"e_1_2_1_84_1","unstructured":"Bernhard Thalheim. 1996. An overview on semantical constraints for database models. In Automata Languages and Programming."},{"key":"e_1_2_1_85_1","volume-title":"Kinsey","author":"Thorpe Dayton G.","year":"2024","unstructured":"Dayton G. Thorpe, Andrew J. Duberstein, and Ian A. Kinsey. 2024. Dubo-SQL: Diverse Retrieval-Augmented Generation and Fine Tuning for Text-to-SQL. arXiv abs\/2404.12560 (2024)."},{"key":"e_1_2_1_86_1","volume-title":"International Conference on Learning Representations, ICLR. 137\u2013146","author":"Vardi Moshe Y.","year":"1982","unstructured":"Moshe Y. Vardi. 1982. The Complexity of Relational Query Languages (Extended Abstract). In International Conference on Learning Representations, ICLR. 137\u2013146."},{"key":"e_1_2_1_87_1","first-page":"425","article-title":"Qex: Symbolic SQL Query Explorer. In Proceedings of the ACM on Management of Data","volume":"6355","author":"Veanes Margus","year":"2010","unstructured":"Margus Veanes, Nikolai Tillmann, and Jonathan de Halleux. 2010. Qex: Symbolic SQL Query Explorer. In Proceedings of the ACM on Management of Data, SIGMOD, Vol. 6355. 425\u2013446.","journal-title":"SIGMOD"},{"key":"e_1_2_1_88_1","volume-title":"MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL. In International Conference on Computational Linguistics, COLING. 540\u2013557","author":"Wang Bing","year":"2025","unstructured":"Bing Wang, Changyu Ren, Jian Yang, Xinnian Liang, Jiaqi Bai, Linzheng Chai, Zhao Yan, Qian-Wen Zhang, Di Yin, Xing Sun, and Zhoujun Li. 2025. MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL. In International Conference on Computational Linguistics, COLING. 540\u2013557."},{"key":"e_1_2_1_89_1","volume-title":"RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers. In International Conference on Data Engineering, ICDE. 7567\u20137578","author":"Wang Bailin","year":"2020","unstructured":"Bailin Wang, Richard Shin, Xiaodong Liu, Oleksandr Polozov, and Matthew Richardson. 2020. RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers. In International Conference on Data Engineering, ICDE. 7567\u20137578."},{"key":"e_1_2_1_90_1","volume-title":"Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task. In Conference on Innovative Data Systems Research, CIDR. 3911\u20133921","author":"Yu Tao","unstructured":"Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, Zilin Zhang, and Dragomir R. Radev. 2018. Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task. In Conference on Innovative Data Systems Research, CIDR. 3911\u20133921."},{"key":"e_1_2_1_91_1","volume-title":"Mooney","author":"Zelle John M.","year":"1996","unstructured":"John M. Zelle and Raymond J. Mooney. 1996. Learning to Parse Database Queries Using Inductive Logic Programming. In Advances in Neural Information Processing Systems, NeurIPS. 1050\u20131055."},{"key":"e_1_2_1_92_1","volume-title":"N-Best Hypotheses Reranking for Text-to-SQL Systems. In International Conference on Learning Representations, ICLR. 663\u2013670","author":"Zeng Lu","year":"2022","unstructured":"Lu Zeng, Sree Hari Krishnan Parthasarathi, and Dilek Hakkani-Tur. 2022. N-Best Hypotheses Reranking for Text-to-SQL Systems. In International Conference on Learning Representations, ICLR. 663\u2013670."},{"key":"e_1_2_1_93_1","volume-title":"Rui Zhao, Ziyue Li, and Hangyu Mao.","author":"Zhang Bin","year":"2024","unstructured":"Bin Zhang, Yuxiao Ye, Guoqing Du, Xiaoru Hu, Zhishuai Li, Sun Yang, Chi Harold Liu, Rui Zhao, Ziyue Li, and Hangyu Mao. 2024. Benchmarking the Text-to-SQL Capability of Large Language Models: A Comprehensive Evaluation. arXiv abs\/2403.02951 (2024)."},{"key":"e_1_2_1_94_1","doi-asserted-by":"crossref","unstructured":"Chao Zhang Yuren Mao Yijiang Fan Yu Mi Yunjun Gao Lu Chen Dongfang Lou and Jinshu Lin. 2024. FinSQL: Model-Agnostic LLMs-based Text-to-SQL Framework for Financial Analysis. In Findings of the Association for Computational Linguistics EMNLP. 93\u2013105.","DOI":"10.1145\/3626246.3653375"},{"key":"e_1_2_1_95_1","doi-asserted-by":"publisher","DOI":"10.14778\/3636218.3636225"},{"key":"e_1_2_1_96_1","unstructured":"Qihao Zhu Daya Guo Zhihong Shao Dejian Yang Peiyi Wang Runxin Xu Y Wu Yukun Li Huazuo Gao Shirong Ma et al. 2024. DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligence. arXiv (2024)."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3734839.3734847","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,8,29]],"date-time":"2025-08-29T16:03:26Z","timestamp":1756483406000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3734839.3734847"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,3]]},"references-count":96,"journal-issue":{"issue":"7","published-print":{"date-parts":[[2025,3]]}},"alternative-id":["10.14778\/3734839.3734847"],"URL":"https:\/\/doi.org\/10.14778\/3734839.3734847","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2025,3]]},"assertion":[{"value":"2025-08-29","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}