This is a continuously updated handbook for readers to easily track the latest Text-to-SQL techniques in the literature and provide practical guidance for researchers and practitioners.
See the codeThis is the official repository for [TKDE'25] A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going? and [VLDB'24] The Dawn of Natural Language to SQL: Are We Fully Ready?. From this repository, you can explore the latest advancements in Text-to-SQL research (a.k.a NL2SQL). We provide a comprehensive survey, in-depth research papers, and benchmark evaluations.
A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?
Natural Language to SQL: State of the Art and Open Problems
The Dawn of Natural Language to SQL: Are We Fully Ready?
📧If we missed any interesting work, connect with us.
@article{liu2025survey,
title={A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?},
author={Liu, Xinyu and Shen, Shuyu and Li, Boyan and Ma, Peixian and Jiang, Runzhi and Zhang, Yuxin and Fan, Ju and Li, Guoliang and Tang, Nan and Luo, Yuyu},
journal={IEEE Transactions on Knowledge and Data Engineering},
year={2025},
publisher={IEEE}
}
Translating users' natural language queries (NL) into SQL queries can significantly reduce barriers to accessing relational databases and support various commercial applications. The performance of Text-to-SQL has been greatly improved with the emergence of language models (LMs). In this context, it is crucial to assess our current position, determine the Text-to-SQL solutions that should be adopted for specific scenarios by practitioners, and identify the research topics that researchers should explore next.
Model: Text-to-SQL translation techniques that tackle not only NL ambiguity and under-specification, but also properly map NL with database schema and instances;
Data: From the collection of training data, data synthesis due to training data scarcity, to Text-to-SQL benchmarks;
Evaluation: Evaluating Text-to-SQL methods from multiple angles using different metrics and granularities;
Error Analysis: analyzing Text-to-SQL errors to find the root cause and guiding Text-to-SQL models to evolve.
We categorize the challenges of Text-to-SQL into five levels, each addressing specific hurdles. The first three levels cover challenges that have been or are currently being addressed, reflecting the progressive development of Text-to-SQL. The fourth level represents the challenges we aim to tackle in the LLMs stage, while the fifth level outlines our vision for Text-to-SQL system in the next five years.
We describe the evolution of Text-to-SQL solutions from the perspective of language models, categorizing it into four stages. For each stage of Text-to-SQL, we analyze the changes in target users and the extent to which challenges are addressed.
We summarize the key modules of Text-to-SQL solutions utilizing the language model.
We create a timeline of the benchmark's development and mark relevant milestones. You can get more details from this chapter: 📊 Benchmark
You can get more information from our subsection. We introduce representative papers on related concepts:
src/dataset_analysis directory. Benchmark analysis reports can be found in the report/ directory.Litgpt Repository Link
This repository offers access to over 20 high-performance large language models (LLMs) with comprehensive guides for pretraining, fine-tuning, and deploying at scale. It is designed to be beginner-friendly with from-scratch implementations and no complex abstractions.
LLaMA-Factory Repository Link Unified Efficient Fine-Tuning of 100+ LLMs. Integrating various models with scalable training resources, advanced algorithms, practical tricks, and comprehensive experiment monitoring tools, this setup enables efficient and faster inference through optimized APIs and UIs.
Fine-tuning and In-Context learning for BIRD-SQL benchmark Repository Link
A tutorial for both Fine-tuning and In-Context Learning is provided by the BIRD-SQL benchmark.
We collect NL2SQL evaluation metrics for you. You can get more details from this chapter: Evaluation
NLSQL360 Repository Link
NL2SQL360 is a testbed for fine-grained evaluation of NL2SQL solutions. Our testbed integrates existing NL2SQL benchmarks, a repository of NL2SQL models, and various evaluation metrics, which aims to provide an intuitive and user-friendly platform to enable both standard and customized performance evaluations.
Test-suite-sql-eval Repository Link
This repo contains a test suite evaluation metric for 11 text-to-SQL tasks. It is now the official metric of Spider, SParC, and CoSQL, and is also now available for Academic, ATIS, Advising, Geography, IMDB, Restaurants, Scholar, and Yelp (building on the amazing work by Catherine and Jonathan).
BIRD-SQL-Official Repository Link
It is now the official tool of BIRD-SQL. It is the first tool to propose VES and give an official test suite.
You can get some inspiration from the Roadmap and Decision Flow.
Please feel free to contact us if we missed any interesting work.
📧 xliu371[at]connect.hkust-gz.edu.cn
Python
100.0%
This is a continuously updated handbook for readers to easily track the latest Text-to-SQL techniques in the literature and provide practical guidance for researchers and practitioners.
See the codeThis is the official repository for [TKDE'25] A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going? and [VLDB'24] The Dawn of Natural Language to SQL: Are We Fully Ready?. From this repository, you can explore the latest advancements in Text-to-SQL research (a.k.a NL2SQL). We provide a comprehensive survey, in-depth research papers, and benchmark evaluations.
A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?
Natural Language to SQL: State of the Art and Open Problems
The Dawn of Natural Language to SQL: Are We Fully Ready?
📧If we missed any interesting work, connect with us.
@article{liu2025survey,
title={A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?},
author={Liu, Xinyu and Shen, Shuyu and Li, Boyan and Ma, Peixian and Jiang, Runzhi and Zhang, Yuxin and Fan, Ju and Li, Guoliang and Tang, Nan and Luo, Yuyu},
journal={IEEE Transactions on Knowledge and Data Engineering},
year={2025},
publisher={IEEE}
}
Translating users' natural language queries (NL) into SQL queries can significantly reduce barriers to accessing relational databases and support various commercial applications. The performance of Text-to-SQL has been greatly improved with the emergence of language models (LMs). In this context, it is crucial to assess our current position, determine the Text-to-SQL solutions that should be adopted for specific scenarios by practitioners, and identify the research topics that researchers should explore next.
Model: Text-to-SQL translation techniques that tackle not only NL ambiguity and under-specification, but also properly map NL with database schema and instances;
Data: From the collection of training data, data synthesis due to training data scarcity, to Text-to-SQL benchmarks;
Evaluation: Evaluating Text-to-SQL methods from multiple angles using different metrics and granularities;
Error Analysis: analyzing Text-to-SQL errors to find the root cause and guiding Text-to-SQL models to evolve.
We categorize the challenges of Text-to-SQL into five levels, each addressing specific hurdles. The first three levels cover challenges that have been or are currently being addressed, reflecting the progressive development of Text-to-SQL. The fourth level represents the challenges we aim to tackle in the LLMs stage, while the fifth level outlines our vision for Text-to-SQL system in the next five years.
We describe the evolution of Text-to-SQL solutions from the perspective of language models, categorizing it into four stages. For each stage of Text-to-SQL, we analyze the changes in target users and the extent to which challenges are addressed.
We summarize the key modules of Text-to-SQL solutions utilizing the language model.
We create a timeline of the benchmark's development and mark relevant milestones. You can get more details from this chapter: 📊 Benchmark
You can get more information from our subsection. We introduce representative papers on related concepts:
src/dataset_analysis directory. Benchmark analysis reports can be found in the report/ directory.Litgpt Repository Link
This repository offers access to over 20 high-performance large language models (LLMs) with comprehensive guides for pretraining, fine-tuning, and deploying at scale. It is designed to be beginner-friendly with from-scratch implementations and no complex abstractions.
LLaMA-Factory Repository Link Unified Efficient Fine-Tuning of 100+ LLMs. Integrating various models with scalable training resources, advanced algorithms, practical tricks, and comprehensive experiment monitoring tools, this setup enables efficient and faster inference through optimized APIs and UIs.
Fine-tuning and In-Context learning for BIRD-SQL benchmark Repository Link
A tutorial for both Fine-tuning and In-Context Learning is provided by the BIRD-SQL benchmark.
We collect NL2SQL evaluation metrics for you. You can get more details from this chapter: Evaluation
NLSQL360 Repository Link
NL2SQL360 is a testbed for fine-grained evaluation of NL2SQL solutions. Our testbed integrates existing NL2SQL benchmarks, a repository of NL2SQL models, and various evaluation metrics, which aims to provide an intuitive and user-friendly platform to enable both standard and customized performance evaluations.
Test-suite-sql-eval Repository Link
This repo contains a test suite evaluation metric for 11 text-to-SQL tasks. It is now the official metric of Spider, SParC, and CoSQL, and is also now available for Academic, ATIS, Advising, Geography, IMDB, Restaurants, Scholar, and Yelp (building on the amazing work by Catherine and Jonathan).
BIRD-SQL-Official Repository Link
It is now the official tool of BIRD-SQL. It is the first tool to propose VES and give an official test suite.
You can get some inspiration from the Roadmap and Decision Flow.
Please feel free to contact us if we missed any interesting work.
📧 xliu371[at]connect.hkust-gz.edu.cn
Python
100.0%