A Systematic Literature Review of Text-to-SQL: Performance, Challenges, and Limitations
Article Information
Abstract
This literature review examines the state of Text-to-SQL technology, which translates natural language queries into SQL. It analyzes rule-based, neural, and hybrid approaches, assessing their strengths and weaknesses, and surveys commonly used datasets, benchmarks, and evaluation metrics. The study identifies research gaps concerning generalization, scalability, and interpretability, and suggests integrating user feedback and domain knowledge. To better understand the implementation and potential improvements of machine learning in this domain, we conducted a systematic literature review (SLR) of publications from 2015 to 2023, with select post-2023 works cited as contextual references in the emerging trends discussion. From 439 gathered papers, 23 were identified as highly relevant. The review analyzes these works across four areas: (i) datasets employed, (ii) evolution of learning methods, (iii) development of evaluation procedures, and (iv) a meta-analysis of model performance. The findings confirm significant room for improvement in learning strategies. Persistent research gaps include cross-domain generalization, schema linking for complex databases, a lack of robust multilingual models, and the trade-off between model accuracy and interpretability. We propose future directions such as integrating contrastive schema linking, zero-shot/few-shot learning, explainability-driven design, and developing diverse, large-scale benchmarks that reflect real-world database complexity.
Graphical Abstract
Keywords
Data Availability Statement
Funding
Conflicts of Interest
Ethical Approval and Consent to Participate
References
- Katsogiannis-Meimarakis, G., & Koutrika, G. (2023). A survey on deep learning approaches for text-to-SQL. The VLDB Journal, 32(4), 905-936.
[CrossRef] [Google Scholar] - Huang, P. S., Wang, C., Singh, R., Yih, W. T., & He, X. (2018, June). Natural language to structured query generation via meta-learning. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers) (pp. 732-738).
[CrossRef] [Google Scholar] - Yu, T., Yasunaga, M., Yang, K., Zhang, R., Wang, D., Li, Z., & Radev, D. (2018). SyntaxSQLNet: Syntax tree networks for complex and cross-domain text-to-SQL task. In Proceedings of the 2018 conference on empirical methods in natural language processing (pp. 1653-1663).
[CrossRef] [Google Scholar] - Finegan-Dollak, C., Kummerfeld, J. K., Zhang, L., Ramanathan, K., Sadasivam, S., Zhang, R., & Radev, D. (2018, July). Improving Text-to-SQL Evaluation Methodology. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) (pp. 351-360).
[CrossRef] [Google Scholar] - Affolter, K., Stockinger, K., & Bernstein, A. (2019). A comparative survey of recent natural language interfaces for databases. The VLDB Journal, 28(5), 793-819.
[CrossRef] [Google Scholar] - Gan, Y., Chen, X., Huang, Q., Purver, M., Woodward, J. R., Xie, J., & Huang, P. (2021, August). Towards robustness of text-to-SQL models against synonym substitution. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) (pp. 2505-2515).
[CrossRef] [Google Scholar] - Liu, A., Hu, X., Lin, L., & Wen, L. (2022, August). Semantic enhanced text-to-sql parsing via iteratively learning schema linking graph. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (pp. 1021-1030).
[CrossRef] [Google Scholar] - Katsogiannis-Meimarakis, G., & Koutrika, G. (2021, June). A deep dive into deep learning approaches for text-to-sql systems. In Proceedings of the 2021 International Conference on Management of Data (pp. 2846-2851).
[CrossRef] [Google Scholar] - Choi, D., Shin, M. C., Kim, E., & Shin, D. R. (2021). Ryansql: Recursively applying sketch-based slot fillings for complex text-to-sql in cross-domain databases. Computational Linguistics, 47(2), 309-332.
[CrossRef] [Google Scholar] - Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019, June). Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers) (pp. 4171-4186).
[CrossRef] [Google Scholar] - Rajkumar, N., Li, R., & Bahdanau, D. (2022). Evaluating the text-to-sql capabilities of large language models. arXiv preprint arXiv:2204.00498.
[CrossRef] [Google Scholar] - Wang, L., Zhang, A., Wu, K., Sun, K., Li, Z., Wu, H., ... & Wang, H. (2020, November). DuSQL: A large-scale and pragmatic Chinese text-to-SQL dataset. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) (pp. 6923-6935).
[CrossRef] [Google Scholar] - Yu, T., Zhang, R., Yasunaga, M., Tan, Y. C., Lin, X. V., Li, S., ... & Radev, D. (2019, July). Sparc: Cross-domain semantic parsing in context. In Proceedings of the 57th annual meeting of the association for computational linguistics (pp. 4511-4523).
[CrossRef] [Google Scholar] - Yaghmazadeh, N., Wang, Y., Dillig, I., & Dillig, T. (2017). SQLizer: Query synthesis from natural language. Proceedings of the ACM on Programming Languages, 1(OOPSLA), 1-26.
[CrossRef] [Google Scholar] - Yu, T., Li, Z., Zhang, Z., Zhang, R., & Radev, D. (2018, June). Typesql: Knowledge-based type-aware neural text-to-sql generation. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers) (pp. 588-594).
[CrossRef] [Google Scholar] - Yin, P., & Neubig, G. (2018, November). TRANX: A transition-based neural abstract syntax parser for semantic parsing and code generation. In Proceedings of the 2018 conference on empirical methods in natural language processing: System demonstrations (pp. 7-12).
[CrossRef] [Google Scholar] - Zhong, V., Xiong, C., & Socher, R. (2017). Seq2sql: Generating structured queries from natural language using reinforcement learning. arXiv preprint arXiv:1709.00103.
[CrossRef] [Google Scholar] - Gan, Y., Chen, X., & Purver, M. (2021, November). Exploring underexplored limitations of cross-domain text-to-sql generalization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (pp. 8926-8931).
[CrossRef] [Google Scholar] - Xu, X., Liu, C., & Song, D. (2017). Sqlnet: Generating structured queries from natural language without reinforcement learning. arXiv preprint arXiv:1711.04436.
[CrossRef] [Google Scholar] - Page, M. J., McKenzie, J. E., Bossuyt, P. M., Boutron, I., Hoffmann, T. C., Mulrow, C. D., ... & Moher, D. (2021). The PRISMA 2020 statement: an updated guideline for reporting systematic reviews. BMJ, 372.
[CrossRef] [Google Scholar] - Qi, J., Tang, J., He, Z., Wan, X., Cheng, Y., Zhou, C., ... & Lin, Z. (2022, December). Rasat: Integrating relational structures into pretrained seq2seq model for text-to-sql. In Proceedings of the 2022 conference on empirical methods in natural language processing (pp. 3215-3229).
[CrossRef] [Google Scholar] - Yu, T., Wu, C. S., Lin, X. V., Wang, B., Tan, Y. C., Yang, X., ... & Xiong, C. (2020). Grappa: Grammar-augmented pre-training for table semantic parsing. arXiv preprint arXiv:2009.13845.
[CrossRef] [Google Scholar] - Gao, D., Wang, H., Li, Y., Sun, X., Qian, Y., Ding, B., & Zhou, J. (2023). Text-to-sql empowered by large language models: A benchmark evaluation. arXiv preprint arXiv:2308.15363.
[CrossRef] [Google Scholar] - Wang, B., Shin, R., Liu, X., Polozov, O., & Richardson, M. (2020, July). Rat-sql: Relation-aware schema encoding and linking for text-to-sql parsers. In Proceedings of the 58th annual meeting of the association for computational linguistics (pp. 7567-7578).
[CrossRef] [Google Scholar] - Cai, R., Yuan, J., Xu, B., & Hao, Z. (2021). Sadga: Structure-aware dual graph aggregation network for text-to-sql. Advances in Neural Information Processing Systems, 34, 7664-7676.
[Google Scholar] - Deng, X., Awadallah, A. H., Meek, C., Polozov, O., Sun, H., & Richardson, M. (2021). Structure-grounded pretraining for text-to-SQL. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (pp. 1337-1350).
[CrossRef] [Google Scholar] - Guo, J., Zhan, Z., Gao, Y., Xiao, Y., Lou, J. G., Liu, T., & Zhang, D. (2019, July). Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (pp. 4524-4535).
[CrossRef] [Google Scholar] - Yu, T., Zhang, R., Yang, K., Yasunaga, M., Wang, D., Li, Z., ... & Radev, D. (2018). Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task. In Proceedings of the 2018 conference on empirical methods in natural language processing (pp. 3911-3921).
[CrossRef] [Google Scholar] - Hwang, W., Yim, J., Park, S., & Seo, M. (2019). A comprehensive exploration on wikisql with table-aware word contextualization. arXiv preprint arXiv:1902.01069.
[CrossRef] [Google Scholar] - Lin, K., Bogin, B., Neumann, M., Berant, J., & Gardner, M. (2019). Grammar-based neural text-to-sql generation. arXiv preprint arXiv:1905.13326.
[CrossRef] [Google Scholar] - Bogin, B., Berant, J., & Gardner, M. (2019, July). Representing schema structure with graph neural networks for text-to-SQL parsing. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (pp. 4560-4565).
[CrossRef] [Google Scholar] - Lei, W., Wang, W., Ma, Z., Gan, T., Lu, W., Kan, M. Y., & Chua, T. S. (2020). Re-examining the role of schema linking in text-to-SQL. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (pp. 6943-6954).
[CrossRef] [Google Scholar] - Hui, B., Geng, R., Wang, L., Qin, B., Li, Y., Li, B., ... & Li, Y. (2022, May). S2sql: Injecting syntax to question-schema interaction graph encoder for text-to-sql parsers. In Findings of the Association for Computational Linguistics: ACL 2022 (pp. 1254-1262).
[CrossRef] [Google Scholar] - Li, J., Hui, B., Cheng, R., Qin, B., Ma, C., Huo, N., ... & Li, Y. (2023, June). Graphix-t5: Mixing pre-trained transformers with graph-aware layers for text-to-sql parsing. In Proceedings of the AAAI conference on artificial intelligence (Vol. 37, No. 11, pp. 13076-13084).
[CrossRef] [Google Scholar] - Scholak, T., Schucher, N., & Bahdanau, D. (2021, November). PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (pp. 9895-9901).
[CrossRef] [Google Scholar] - Deng, X., Sun, H., Lees, A., Wu, Y., & Yu, C. (2022). Turl: Table understanding through representation learning. ACM SIGMOD Record, 51(1), 33-40.
[CrossRef] [Google Scholar] - Xuan, H., Liu, Y., Li, B., & Yin, J. (2022). SeaD: End-to-end text-to-SQL generation with schema-aware denoising. arXiv preprint arXiv:2105.07911.
[CrossRef] [Google Scholar] - Dong, L., & Lapata, M. (2018, July). Coarse-to-fine decoding for neural semantic parsing. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) (pp. 731-742).
[CrossRef] [Google Scholar] - Lin, X. V., Socher, R., & Xiong, C. (2020, November). Bridging textual and tabular data for cross-domain text-to-SQL semantic parsing. In Findings of the Association for Computational Linguistics: EMNLP 2020 (pp. 4870-4888).
[CrossRef] [Google Scholar] - Mellah, Y., Rhouati, A., Ettifouri, E. H., Bouchentouf, T., & Belkasmi, M. G. (2021, April). COMBINE: A Pipeline for SQL Generation from Natural Language. In International Conference on Advances in Computing and Data Sciences (pp. 97-106). Cham: Springer International Publishing.
[CrossRef] [Google Scholar] - Li, H., Zhang, J., Li, C., & Chen, H. (2023, June). Resdsql: Decoupling schema linking and skeleton parsing for text-to-sql. In Proceedings of the AAAI Conference on Artificial Intelligence (Vol. 37, No. 11, pp. 13067-13075).
[CrossRef] [Google Scholar] - Shi, T., Tatwawadi, K., Chakrabarti, K., Mao, Y., Polozov, O., & Chen, W. (2018). Incsql: Training incremental text-to-sql parsers with non-deterministic oracles. arXiv preprint arXiv:1809.05054.
[CrossRef] [Google Scholar] - He, P., Mao, Y., Chakrabarti, K., & Chen, W. (2019). X-SQL: reinforce schema representation with context. arXiv preprint arXiv:1908.08113.
[CrossRef] [Google Scholar] - Wang, C., Tatwawadi, K., Brockschmidt, M., Huang, P. S., Mao, Y., Polozov, O., & Singh, R. (2018). Robust text-to-sql generation with execution-guided decoding. arXiv preprint arXiv:1807.03100.
[CrossRef] [Google Scholar] - Lee, D. (2019, November). Clause-wise and recursive decoding for complex and cross-domain text-to-SQL generation. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) (pp. 6045-6051).
[CrossRef] [Google Scholar] - Sun, J., Feng, S., Gu, J., Sun, J., Hu, C., Zhang, Y., & Luo, J. (2023). SQL-PaLM: Improved large language model adaptation for text-to-SQL (extended). arXiv preprint arXiv:2306.00739.
[CrossRef] [Google Scholar] - Pourreza, M., & Rafiei, D. (2023). Din-sql: Decomposed in-context learning of text-to-sql with self-correction. Advances in Neural Information Processing Systems, 36, 36339-36348.
[Google Scholar] - Rubin, O., & Berant, J. (2021, June). SmBoP: Semi-autoregressive bottom-up semantic parsing. In Proceedings of the 2021 conference of the North American chapter of the association for computational linguistics: human language technologies (pp. 311-324).
[CrossRef] [Google Scholar] - Li, J., Hui, B., Qu, G., Yang, J., Li, B., Li, B., ... & Li, Y. (2023). Can llm already serve as a database interface? a big bench for large-scale database grounded text-to-sqls. Advances in Neural Information Processing Systems, 36, 42330-42357.
[Google Scholar] - Gan, Y., Chen, X., & Purver, M. (2023, July). Re-appraising the Schema Linking for Text-to-SQL. In Findings of the Association for Computational Linguistics: ACL 2023 (pp. 835-852).
[CrossRef] [Google Scholar] - Liu, G., Tan, Y., Zhong, R., Xie, Y., Zhao, L., Wang, Q., ... & Li, Z. (2025, January). Solid-SQL: Enhanced schema-linking based in-context learning for robust text-to-SQL. In Proceedings of the 31st International Conference on Computational Linguistics (pp. 9793-9803). https://aclanthology.org/2025.coling-main.654/
[Google Scholar] - Dou, L., Gao, Y., Pan, M., Wang, D., Che, W., Zhan, D., & Lou, J. G. (2023, June). MultiSpider: towards benchmarking multilingual text-to-SQL semantic parsing. In Proceedings of the AAAI Conference on Artificial Intelligence (Vol. 37, No. 11, pp. 12745-12753).
[CrossRef] [Google Scholar] - Yu, T., Zhang, R., Er, H., Li, S., Xue, E., Pang, B., ... & Radev, D. (2019, November). Cosql: A conversational text-to-sql challenge towards cross-domain natural language interfaces to databases. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP) (pp. 1962-1979).
[CrossRef] [Google Scholar] - Vougiouklis, P., Papasarantopoulos, N., Zheng, D., Tuckey, D., Diao, C., Shen, Z., & Pan, J. (2023, November). Fastrat: Fast and efficient cross-lingual text-to-sql semantic parsing. In Proceedings of the 13th International Joint Conference on Natural Language Processing and the 3rd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics (Volume 1: Long Papers) (pp. 564-576).
[CrossRef] [Google Scholar] - Qin, B., Hui, B., Wang, L., Yang, M., Li, J., Li, B., ... & Li, Y. (2022). A survey on text-to-sql parsing: Concepts, methods, and future directions. arXiv preprint arXiv:2208.13629.
[CrossRef] [Google Scholar] - Cao, R., Chen, L., Chen, Z., Zhao, Y., Zhu, S., & Yu, K. (2021, August). LGESQL: Line graph enhanced text-to-SQL model with mixed local and non-local relations. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) (pp. 2541-2555).
[CrossRef] [Google Scholar] - Zhang, R., Yu, T., Er, H., Shim, S., Xue, E., Lin, X. V., ... & Radev, D. (2019, November). Editing-based SQL query generation for cross-domain context-dependent questions. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) (pp. 5338-5349).
[CrossRef] [Google Scholar] - Kelkar, A., Relan, R., Bhardwaj, V., Vaichal, S., Khatri, C., & Relan, P. (2020). Bertrand-dr: Improving text-to-sql using a discriminative re-ranker. arXiv preprint arXiv:2002.00557.
[CrossRef] [Google Scholar] - Gan, Y., Chen, X., Xie, J., Purver, M., Woodward, J. R., Drake, J., & Zhang, Q. (2021, November). Natural SQL: Making SQL easier to infer from natural language specifications. In Findings of the Association for Computational Linguistics: EMNLP 2021 (pp. 2030-2042).
[CrossRef] [Google Scholar] - Scholak, T., Li, R., Bahdanau, D., de Vries, H., & Pal, C. (2021, June). DuoRAT: towards simpler text-to-SQL models. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (pp. 1313-1321).
[CrossRef] [Google Scholar]
Cited By (1)
-
Fan Xu, Wenjie Jiang. Artificial intelligence enabled behavior modeling and dual-task performance analysis of cloud-native software with fused multi-source heterogeneous data.
Scientific Reports, 2026 , 16 (1).
[CrossRef]
Cite This Article
TY - JOUR AU - Baig, Muhammad Shahzaib AU - Sher, Tahir AU - Rehman, Abdul AU - Sheikh, Saim PY - 2025 DA - 2025/11/17 TI - A Systematic Literature Review of Text-to-SQL: Performance, Challenges, and Limitations JO - ICCK Transactions on Advanced Computing and Systems T2 - ICCK Transactions on Advanced Computing and Systems JF - ICCK Transactions on Advanced Computing and Systems VL - 2 IS - 1 SP - 1 EP - 24 DO - 10.62762/TACS.2025.497935 UR - https://www.icck.org/article/abs/tacs.2025.497935 KW - Text-to-SQL KW - systematic literature review KW - natural language processing KW - meta analysis AB - This literature review examines the state of Text-to-SQL technology, which translates natural language queries into SQL. It analyzes rule-based, neural, and hybrid approaches, assessing their strengths and weaknesses, and surveys commonly used datasets, benchmarks, and evaluation metrics. The study identifies research gaps concerning generalization, scalability, and interpretability, and suggests integrating user feedback and domain knowledge. To better understand the implementation and potential improvements of machine learning in this domain, we conducted a systematic literature review (SLR) of publications from 2015 to 2023, with select post-2023 works cited as contextual references in the emerging trends discussion. From 439 gathered papers, 23 were identified as highly relevant. The review analyzes these works across four areas: (i) datasets employed, (ii) evolution of learning methods, (iii) development of evaluation procedures, and (iv) a meta-analysis of model performance. The findings confirm significant room for improvement in learning strategies. Persistent research gaps include cross-domain generalization, schema linking for complex databases, a lack of robust multilingual models, and the trade-off between model accuracy and interpretability. We propose future directions such as integrating contrastive schema linking, zero-shot/few-shot learning, explainability-driven design, and developing diverse, large-scale benchmarks that reflect real-world database complexity. SN - 3068-7969 PB - Institute of Central Computation and Knowledge LA - English ER -
@article{Baig2025A,
author = {Muhammad Shahzaib Baig and Tahir Sher and Abdul Rehman and Saim Sheikh},
title = {A Systematic Literature Review of Text-to-SQL: Performance, Challenges, and Limitations},
journal = {ICCK Transactions on Advanced Computing and Systems},
year = {2025},
volume = {2},
number = {1},
pages = {1-24},
doi = {10.62762/TACS.2025.497935},
url = {https://www.icck.org/article/abs/tacs.2025.497935},
abstract = {This literature review examines the state of Text-to-SQL technology, which translates natural language queries into SQL. It analyzes rule-based, neural, and hybrid approaches, assessing their strengths and weaknesses, and surveys commonly used datasets, benchmarks, and evaluation metrics. The study identifies research gaps concerning generalization, scalability, and interpretability, and suggests integrating user feedback and domain knowledge. To better understand the implementation and potential improvements of machine learning in this domain, we conducted a systematic literature review (SLR) of publications from 2015 to 2023, with select post-2023 works cited as contextual references in the emerging trends discussion. From 439 gathered papers, 23 were identified as highly relevant. The review analyzes these works across four areas: (i) datasets employed, (ii) evolution of learning methods, (iii) development of evaluation procedures, and (iv) a meta-analysis of model performance. The findings confirm significant room for improvement in learning strategies. Persistent research gaps include cross-domain generalization, schema linking for complex databases, a lack of robust multilingual models, and the trade-off between model accuracy and interpretability. We propose future directions such as integrating contrastive schema linking, zero-shot/few-shot learning, explainability-driven design, and developing diverse, large-scale benchmarks that reflect real-world database complexity.},
keywords = {Text-to-SQL, systematic literature review, natural language processing, meta analysis},
issn = {3068-7969},
publisher = {Institute of Central Computation and Knowledge}
}
Article Metrics
Publisher's Note
ICCK stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and Permissions
Copyright © 2025 by the Author(s). Published by Institute of Central Computation and Knowledge. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made.
Portico