[Paper Review] A Survey on Text-to-SQL Parsing: Concepts, Methods, and Future Directions
This survey reviews deep learning approaches to text-to-SQL parsing, covering datasets, encoder/decoder architectures, pre-trained language models, and future directions.
Text-to-SQL parsing is an essential and challenging task. The goal of text-to-SQL parsing is to convert a natural language (NL) question to its corresponding structured query language (SQL) based on the evidences provided by relational databases. Early text-to-SQL parsing systems from the database community achieved a noticeable progress with the cost of heavy human engineering and user interactions with the systems. In recent years, deep neural networks have significantly advanced this task by neural generation models, which automatically learn a mapping function from an input NL question to an output SQL query. Subsequently, the large pre-trained language models have taken the state-of-the-art of the text-to-SQL parsing task to a new level. In this survey, we present a comprehensive review on deep learning approaches for text-to-SQL parsing. First, we introduce the text-to-SQL parsing corpora which can be categorized as single-turn and multi-turn. Second, we provide a systematical overview of pre-trained language models and existing methods for text-to-SQL parsing. Third, we present readers with the challenges faced by text-to-SQL parsing and explore some potential future directions in this field.
Motivation & Objective
- Define the task and formalize single-turn vs. multi-turn text-to-SQL parsing.
- Classify and summarize representative datasets and benchmarks used to train and evaluate models.
- Review encoder/decoder architectures, including PLM-based encoders and graph/dialogue-aware decoders.
- Discuss challenges such as schema linking and cross-domain generalization and outline future research directions.
Proposed method
- Survey the literature on text-to-SQL parsing with emphasis on neural generation models.
- Describe encoder architectures (Bi-LSTM, Transformer-based, PLM-enhanced) and their role in integrating questions with table schemas.
- Explain decoding strategies (sketch-based vs. generation-based) and their impact on SQL structure generation.
- Highlight advances in schema linking, graph-based representations, and TaLMs (tabular language models).
- Summarize datasets, evaluation metrics, and benchmark results to contextualize progress.
Experimental results
Research questions
- RQ1What datasets and benchmarks define the scope of text-to-SQL research, and how do they differ (single-turn vs. multi-turn, cross-domain, robustness)?
- RQ2What encoder/decoder architectures and pre-training strategies yield state-of-the-art performance in text-to-SQL parsing?
- RQ3How do schema linking, graph representations, and TaLMs impact generalization to unseen schemas and complex queries?
- RQ4What are the key challenges in text-to-SQL parsing and what future directions are likely to address them?
Key findings
- Neural sequence-to-SQL approaches dominate, with encoders that fuse NL questions and schema information.
- Transformers and pre-trained language models significantly boost parsing accuracy, especially when combined with schema-aware encoders.
- Graph-based models and relation-aware attention improve schema linking and relational reasoning between questions and schemas.
- Tabular Language Models (TaLMs) like TaBERT, TaPas, and Grappa enhance cross-domain generalization by jointly encoding tables and text.
- Sketch-based and generation-based decoding strategies offer complementary strengths in producing correct SQL structure.
- Comprehensive datasets (e.g., WikiSQL, Spider, SQuALL, DuSQL, CoSQL) and robust evaluation metrics (EM, EX, QM, IM) are central to advancing the field.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.