Spider
223 papers · 603 extracted observations · text to sql · code · Markdown · CSV · JSON API
Comparable Cohort Timeline (proposed/measured methods; excludes quoted baselines)
Proposed/measured results matching split=val.
Click any point on the timeline to inspect method, protocol, and paper.
| # | Method | Score ↑ | Year | Protocol / Settings | Paper & Evidence |
|---|---|---|---|---|---|
| 1 | HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features) SOTA frontier (+5 variants) | 98.21% | 2025-08-01 | epochs=20 · classes=86 · batch-size=16 · 86 classes; 70/15/15 train/validation/test split. Maximum across the search run; one … | HHNAS-AM: Hierarchical Hybrid Neural Architecture Search using Adaptive Mutation PoliciesSource quoteM4 │ 98.21 │ 94.76 │ 10 |
| 2 | SQL-of-Thought (Claude 3 Opus) SOTA frontier (+3 variants) | 95% | 2025-01-01 | model=Claude 3 Opus · subset=first 100 samples · First 100 samples; Claude 3 Opus; full SQL-of-Thought configuration; temperature 0 | SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error CorrectionSource quoteClaude 3 Opus │ 95 │ 85 │ 90 |
| 3 | DecoSearch (DeepSeek backbone) | 88.31% | 2026-06-01 | backbone=DeepSeek · training=training-free · Training-free; dev split per the comparison-table headers. | DecoSearch: Complexity-Aware Routing and Plan-Level Repair for Text-to-SQLSource quoteDecoSearch achieves 70.53% execution accuracy on BIRD and 88.31% on Spider with a DeepSeek backbone, surpassing all training-free baselines while consuming an order of magnitude fewer tokens than competing methods. |
| 4 | DataGpt-sql-7B + Invalid-SQL Feedback SOTA frontier (+1 variant) | 87.2% | 2024-09-01 | params=7B · feedback=invalid-SQL · model-size=7B · Spider-dev evaluation; system includes Invalid-SQL Feedback. | DataGpt-SQL-7B: An Open-Source Language Model for Text-to-SQLSource quoteDataGpt-sql-7B + Invalid-SQL Feedback │ 87.2 │ 83.8 \tabularnewline |
| 5 | MATS (9B) | 87.1% | 2025-12-01 | params=9B · Development split; MATS framework, 9B total parameters. | A Multi-agent Text2SQL Framework using Small Language Models and Execution FeedbackSource quote\texttt{MATS}\xspace │ 9B │ 87.1 │ 82.3 │ 13.9 |
| 6 | SuperSQL (GPT-4) SOTA frontier | 87% | 2024-01-01 | model=GPT-4 · Overall development-set result; reported in the Spider/BIRD development-set economy t… | The Dawn of Natural Language to SQL: Are We Fully Ready? [Experiment, Analysis & Benchmark ]Source quote\multicolumn{1}{c|}{87.0} |
| 7 | Progress-SQL-7B (+1 variant) | 86.6% | 2026-06-01 | params=7B · decoding=greedy · difficulty=all · All-difficulty aggregate; greedy decoding; evaluated with standard single-turn infere… | Progress-SQL: Improving Reinforcement Learning for Text-to-SQL via Progressive RewardsSource quote96.0 │ 90.4 │ 82.2 │ 66.9 │ 86.6 |
| 8 | SQLForge-LM | 85.7% | 2025-01-01 | Dev split; greedy decoding; reported among open-source models. | SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMsSource quoteBuilding on the augmented data, we fine-tune a variety of open-source models with different architectures and parameter sizes, resulting in a family of models termed SQLForgeLM. SQLForge-LM achieves the state-of-theart performance on the widely recognized Spider and BIRD benchmarks among the opensource models. Specifically, SQLForge-LM achieves EX accuracy of 85.7% on Spider Dev and 59.8% on BIRD Dev, significantly narrowing the performance gap with closed-source methods. |
| 9 | FINER-SQL 3B | 85% | 2026-05-01 | params=3B · Development set; schema filtering retrieves the top 30 relevant columns; generates 30… | FINER-SQL: Boosting Small Language Models for Text-to-SQLSource quote\texttt{FINER-SQL}\xspace 3B (Ours) │ 67.73 │ 85.0 |
| 10 | ORM-based BoN | 84.53% | 2026-06-01 | candidates=32 · N=32 candidates; test-time selection. The table reports execution accuracy (%) across… | Test-Time Verification for Text-to-SQL via Outcome Reward ModelsSource quote32 │ 66.04 │ 82.79 │ 85.14 │ 66.95 │ 83.75 │ 85.47 │ 68.90 │ 84.53 │ 87.47 │ 80.57 │ 91.68 │ 93.29 |
| 11 | Open-SQL (7B; same procedure as the BIRD experiments) | 84.1% | 2024-05-01 | method=Open-SQL · params=7B · model-size=7B · Spider leaderboard result; the conclusion says the same procedures were used on Spide… | Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language ModelsSource quote5 │ Open-SQL (Ours) │ 7B │ 84.1 |
| 12 | PARSQL-3Bllm (+1 variant) | 83.8% | 2025-01-01 | params=3B · backbone=CodeS-3B · inference=first-valid-execution · CodeS-3B backbone; LLM-based reason pairs; PARSQLllm uses first-valid-execution at in… | PARSQL: Enhancing Text-to-SQL through SQL Parsing and ReasoningSource quote83.8 (+1.6) |
| 13 | SQL component pre-generation + AST matching reward (GRPO; Qwen2.5-Coder-7B-Instruct) | 83% | 2026-01-01 | params=7B · Main model setup; trained on BIRD only, without SPIDER training data. | Addressing Semantic Blind Spots in Text-to-SQL via Component Pre-generation and AST Matching RewardsSource quote(2) Our method has good generalization. We train only on the BIRD training set, yet achieve 83% and 84.4% execution accuracy on SPIDER-DEV and SPIDER-TEST. This |
| 14 | LogicalBeam SOTA frontier | 81.3% | 2023-01-01 | outputs=top-5 · dev split. | Benchmarking and Improving Text-to-SQL Generation under AmbiguitySource quoteLogicalBeam │ 78.4 │ 81.3 |
| 15 | S²SQL + ELECTRA SOTA frontier | 76.4% | 2022-01-01 | pretraining=ELECTRA · Development set; ELECTRA pre-training | S²SQL: Injecting Syntax to Question-Schema Interaction Graph Encoder for Text-to-SQL ParsersSource quoteSimilarity, the accuracy of the SOTA model LGESQL + ELECTRA is 72.0% on the hidden test set, and 75.1% on the development set, while S^2SQL + ELECTRA can reach 72.1% test and 76.4 development accuracy. |
| 16 | MTSQL | 75.6% | 2024-03-01 | Development split: 1,034 question-SQL pairs; databases do not overlap with training. | Schema-Aware Multi-Task Learning for Complex Text-to-SQLSource quoteMTSQL │ 75.6 \\[2pt] |
| 17 | Turing + RoBERTa (best reported run) SOTA frontier | 75.1% | 2021-01-01 | backbone=RoBERTa · Cross-domain Text-to-SQL; best result reported in the comparison table. | TURING: an Accurate and Interpretable Multi-Hypothesis Cross-Domain Natural Language Database InterfaceSource quote{Turing + RoBERTa} │ {75.1 (\text{best}), 73.8 ± 0.7} |
| 18 | RAT-SQL + NatSQL | 74.6% | 2021-01-01 | RAT-SQL extended with GAP; NatSQL representation. | Natural SQL: Making SQL Easier to Infer from Natural Language SpecificationsSource quoteRAT-SQL + NatSQL │ \bf 73.7% │ 74.6% |
| 19 | RECPARSER (BERT) SOTA frontier (+3 variants) | 63.1% | 2020-01-01 | backbone=BERT-base · database-content=used · Development set; BERT-enhanced RECPARSER (BERT-base), using database content. | RECPARSER: A Recursive Semantic Parsing Framework for Text-to-SQL TaskSource quote63.1% |
| 20 | SyntaxSQLNet + Data Augmentation SOTA frontier (+5 variants) | 61.9% | 2019-01-01 | Development set; Spider split has 1,034 examples and 40 databases. Table 2. | Graph Enhanced Cross-Domain Text-to-SQL GenerationSource quote61.9% |
| 21 | IRNet + PIIA (+1 variant) | 59.3% | 2020-01-01 | selection=ideal · evaluation=PIIA simulation · simulated-options=up to 100 combinations · Simulation comparison on the Spider development set (1,034 samples); the test set is … | "What Do You Mean by That?" A Parser-Independent Interactive Approach for Enhancing Text-to-SQLSource quote{~~~~~~+PIIA} │ 59.3 │ {N/A} │ 2.9 |
| 22 | Base Parser + DG-MAML (+1 variant) | 58.5% | 2021-01-01 | Development set; base parser without pretrained representations, trained with DG-MAML… | Meta-Learning for Domain Generalization in Semantic ParsingSource quote\quad Base Parser + DG-MAML │ 58.5 |
| 23 | EditSQL + Bertrand-DR (+1 variant) | 58.5% | 2020-02-01 | beam-size=10 · candidate-generator=EditSQL · Bertrand-DR reranks EditSQL beam candidates; the reranker training/dev candidate data… | Bertrand-DR: Improving Text-to-SQL using a Discriminative Re-rankerSource quoteEditSQL │ 57.6 │ 58.5 │ 78.7 |
| 24 | EditSQL+Feedback (BERT-equipped) | 53.73% | 2020-01-01 | backbone=BERT · interaction=two-turn · initial-parser=Seq2Struct · Two-turn interaction: Seq2Struct parses first; if incorrect, the correction model use… | Speak to your Parser: Interactive Text-to-SQL with Natural Language FeedbackSource quote\ \ \ \ \ \Rightarrow EditSQL+Feedback │ 25.16 │ 53.73 |
| 25 | CFGNN (ours, full model) | 48.7% | 2020-01-01 | Development set; all SQL queries; official exact-matching evaluation. | CFGNN: Cross Flow Graph Neural Networks for Question Answering on Complex TablesSource quote48.7% |
| 26 | SyntaxSQLNet (BERT), SemQL output (+1 variant) | 35.8% | 2019-01-01 | output=SemQL · backbone=BERT · evaluation=database-split · Development set; database split; BERT-augmented SyntaxSQLNet trained to generate SemQ… | Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate RepresentationSource quoteSyntaxSQLNet(BERT) │ 25.0% │ 35.8%(+10.8) |
| 27 | SyntaxSQLNetAug + DAE (+1 variant) | 27.4% | 2019-01-01 | Spider dev set; overall across query hardness levels. | Data-Anonymous Encoding for Text-to-SQL GenerationSource quote27.4(+2.5) |
Showing 23 of 23 matching observations.
| Year | Method | Metric | Score | Protocol / Facets | Paper & Evidence |
|---|---|---|---|---|---|
| 2025 | OpenSearch-SQL + GPT-4o proposed | EX | 87.1% | split: test · few-shot · model=GPT-4o-0513 | OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency AlignmentSource quoteL422: OpenSearch-SQL+GPT-4o │ 87.1 |
| 2025 | MageSQL proposed | EX (%) | 87.4% | split: val · few-shot · backbone=GPT-4 | MageSQL: Enhancing In-context Learning for Text-to-SQL Applications with Large Language ModelsSource quoteL429: \ensuremath{\mathsf{MageSQL}}\xspace │ 69.7 │ 87.4 │ 67.2 │ 86.8 |
| 2025 | MageSQL proposed | EX (%) | 86.8% | split: test · few-shot · backbone=GPT-4 | MageSQL: Enhancing In-context Learning for Text-to-SQL Applications with Large Language ModelsSource quoteL429: \ensuremath{\mathsf{MageSQL}}\xspace │ 69.7 │ 87.4 │ 67.2 │ 86.8 |
| 2024 | Fine-tuned gpt-3.5-turbo-16k (few-shot) + gpt-4-turbo (zero-shot error correction) proposed | execution accuracy | 82.1% | few-shot · error-correction=zero-shot · generation-model=gpt-3.5-turbo-16k · error-correction-model=gpt-4-turbo | Analyzing the Effectiveness of Large Language Models on Text-to-SQL SynthesisSource quoteL4: This study investigates various approaches to using Large Language Models (LLMs) for Text-to-SQL program synthesis, focusing on the outcomes and insights derived. Employing the popular Text-to-SQL dataset, spider, the goal was to input a natural language question along with the database schema and output the correct SQL SELECT query. The initial approach was to fine-tune a local and open-source model to generate the SELECT query. After QLoRa fine-tuning WizardLM's WizardCoder-15B model on the spider dataset, the execution accuracy for generated queries rose to a high of 61%. With the second approach, using the fine-tuned gpt-3.5-turbo-16k (Few-shot) + gpt-4-turbo (Zero-shot error correction), the execution accuracy reached a high of 82.1%. Of all the incorrect queries, most can be categorized into a seven different categories of what went wrong: selecting the wrong columns or wrong order of columns, grouping by the wrong column, predicting the wrong values in conditionals, using different aggregates than the ground truth, extra or too few JOIN clauses, inconsistencies in the Spider dataset, and lastly completely incorrect query structure. Most if not all of the queries fall into these categories and it is insightful to understanding where the faults still lie with LLM program synthesis and where they can be improved. |
| 2024 | Tool-SQL + GPT-4 proposed | Execution Accuracy | 86.0 | split: test · few-shot · backbone=GPT-4 | Tool-Assisted Agent on SQL Inspection and Refinement in Real-World ScenariosSource quoteL180: Tool-SQL + GPT-4 │ 86.9 │ 85.6 │ 86.0 |
| 2024 | PTD-SQL + GPT-4 proposed | EX | 85.7 | split: val · few-shot · backbone=GPT-4-0613 | PTD-SQL: Partitioning and Targeted Drilling with LLMs in Text-to-SQLSource quoteL141: PTD-SQL + GPT-4-ours │ Few-shot │ 85.7 |
| 2024 | PTD-SQL + ChatGPT proposed | EX | 80.3 | split: val · few-shot · backbone=GPT-3.5-turbo-0613 | PTD-SQL: Partitioning and Targeted Drilling with LLMs in Text-to-SQLSource quoteL140: PTD-SQL + ChatGPT-ours │ Few-shot │ 80.3 |
| 2024 | ByCS proposed | %Acc. | 69.63% | few-shot · k=1 · model=GPT-3.5-Turbo · datastore=kNN-narrowed | Bayesian Example Selection Improves In-Context Learning for Speech, Text and Visual ModalitiesSource quoteL412: 69.63 |
| 2023 | SQLPrompt with MixLLMs proposed | execution accuracy (EX) | 77.3 | split: val · few-shot · num-mixture=6 | SQLPrompt: In-Context Text-to-SQL with Minimal Labeled DataSource quoteL206: EX │ 74 │ 76.6 │ 77.3 │ 77.1 |
| 2023 | SQLPrompt with MixLLMs proposed | test-suite accuracy (TS) | 68.6 | split: val · few-shot · num-mixture=16 | SQLPrompt: In-Context Text-to-SQL with Minimal Labeled DataSource quoteL207: TS │ 65.5 │ 68.0 │ 68.3 │ 68.6 |
| 2023 | T5-3B real + syn proposed non-standard slice | Exact set match | 59.9 | split: val · few-shot · params=3B · subset=512 training examples · backbone=T5-3B | Importance of Synthesizing High-quality Data for Text-to-SQL ParsingSource quoteL456: 59.9 |
| 2023 | ACT-SQL (GPT-4) proposed | EM (exact match accuracy) | 61.7 | split: val · few-shot · n_d=2 · n_s=2 · model=GPT-4 · database-style=Create(EoT) · api-calls-per-sql=1 | ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-ThoughtSource quoteL172: GPT-4 │ ACT-SQL (Ours) │ 1 │ 61.7 │ 82.9 │ 74.5 |
| 2023 | ACT-SQL (GPT-4) proposed | EX (execution accuracy) | 82.9 | split: val · few-shot · n_d=2 · n_s=2 · model=GPT-4 · database-style=Create(EoT) · api-calls-per-sql=1 | ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-ThoughtSource quoteL172: GPT-4 │ ACT-SQL (Ours) │ 1 │ 61.7 │ 82.9 │ 74.5 |
| 2023 | ACT-SQL (GPT-4) proposed | TS (test-suite accuracy) | 74.5 | split: val · few-shot · n_d=2 · n_s=2 · model=GPT-4 · database-style=Create(EoT) · api-calls-per-sql=1 | ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-ThoughtSource quoteL172: GPT-4 │ ACT-SQL (Ours) │ 1 │ 61.7 │ 82.9 │ 74.5 |
| 2023 | SEED Opt proposed | F1 | 85.7 | few-shot · manual-examples=1 | SEED: Domain-Specific Data Curation With Large Language ModelsSource quoteL731: SEED\xspace Opt │ 85.7 │ 67.8 │ 63.5 |
| 2023 | DIN-SQL + GPT-4 proposed | execution accuracy | 85.3% | split: test · few-shot · model=GPT-4 | DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionSource quoteL57: Previous works on text-to-SQL prompting using LLMs are only evaluated in a zero-shot setting \citep{rajkumar2022evaluating,liu2023comprehensive}. However, zero-shot prompting only provides a lower bound on the potential power of LLMs for most tasks \citep{zhang2022automatic, kojima2022large, wei2022chain, wei2021finetuned, brown2020language}. We show that our proposed method outperforms the few-shot prompting method by a large margin. We also compare our method with previous approaches on two cross-domain challenging benchmarks, Spider and BIRD. For Spider dataset, we use the two official evaluation metrics of execution accuracy and exact set match accuracy \citep{ruiqi20}. We utilize two variants of the CodeX family, namely Davinci and Cushman \citep{chen2021evaluating}, and the GPT-4 model for prompting. On the holdout test set of Spider, our method achieves an execution accuracy of 85.3% and 78.2% respectively using GPT-4 and CodeX Davinci models and an exact set match accuracy of 60% and 57% respectively using the same models. The large gap between the exact match and execution accuracies is due to the few-shot in-context nature of our method. Pretrained and fine-tuned approaches are more likely to generate SQL queries with a higher exact set match accuracy simply because these models have seen many examples during training that follow the composition style of the queries in the test set (queries in both sets are often written by the same people). Before our work, the SOTA on the test set had an execution accuracy of 79.9% \citep{li2023decoupling} and an exact set match accuracy of 74% \citep{li2023graphix}, and our method sets a new ground in terms of the execution accuracy. On the BIRD benchmark, our approach achieves a new SOTA result, attaining an execution accuracy of 55.9% on the holdout test set and 50.72% on the development set when employing GPT-4. Moreover, using the valid efficiency score introduced in this benchmark, our approach outperformed a GPT-4 baseline, demonstrating a 9% improvement on the development set. This highlights the effectiveness of our method. |
| 2023 | DIN-SQL + CodeX Davinci proposed | execution accuracy | 78.2% | split: test · few-shot · model=CodeX Davinci | DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionSource quoteL57: Previous works on text-to-SQL prompting using LLMs are only evaluated in a zero-shot setting \citep{rajkumar2022evaluating,liu2023comprehensive}. However, zero-shot prompting only provides a lower bound on the potential power of LLMs for most tasks \citep{zhang2022automatic, kojima2022large, wei2022chain, wei2021finetuned, brown2020language}. We show that our proposed method outperforms the few-shot prompting method by a large margin. We also compare our method with previous approaches on two cross-domain challenging benchmarks, Spider and BIRD. For Spider dataset, we use the two official evaluation metrics of execution accuracy and exact set match accuracy \citep{ruiqi20}. We utilize two variants of the CodeX family, namely Davinci and Cushman \citep{chen2021evaluating}, and the GPT-4 model for prompting. On the holdout test set of Spider, our method achieves an execution accuracy of 85.3% and 78.2% respectively using GPT-4 and CodeX Davinci models and an exact set match accuracy of 60% and 57% respectively using the same models. The large gap between the exact match and execution accuracies is due to the few-shot in-context nature of our method. Pretrained and fine-tuned approaches are more likely to generate SQL queries with a higher exact set match accuracy simply because these models have seen many examples during training that follow the composition style of the queries in the test set (queries in both sets are often written by the same people). Before our work, the SOTA on the test set had an execution accuracy of 79.9% \citep{li2023decoupling} and an exact set match accuracy of 74% \citep{li2023graphix}, and our method sets a new ground in terms of the execution accuracy. On the BIRD benchmark, our approach achieves a new SOTA result, attaining an execution accuracy of 55.9% on the holdout test set and 50.72% on the development set when employing GPT-4. Moreover, using the valid efficiency score introduced in this benchmark, our approach outperformed a GPT-4 baseline, demonstrating a 9% improvement on the development set. This highlights the effectiveness of our method. |
| 2023 | ODIS (Codex) proposed | Execution accuracy (EX) | 85.2 | split: val · few-shot · backbone=Codex · evaluation=official-test-suite | Selective Demonstrations for Cross-domain Text-to-SQLSource quoteL308: \multirow{3}{*}{ODIS} │ Codex │ 85.2 |
| 2023 | Ours (GPT-3.5, text-davinci-003; skeleton retrieval) proposed | Execution accuracy (EX) | 87.8 | few-shot · backbone=GPT-3.5 / text-davinci-003 · retrieval-demonstrations=8 | Prompting GPT-3.5 for Text-to-SQL with De-semanticization and Skeleton RetrievalSource quoteL250: 87.8 |
| 2023 | Proposed approach (semantic reranking and output-based methods; all techniques combined as applicable) proposed non-standard slice | Execution match accuracy @K=1 | 76.0% | few-shot · model=code-davinci-002 · candidates=25 | From Words to Code: Harnessing Data for Program Synthesis from Natural LanguageSource quoteL682: {Target} │ {Benchmark} │ {K=1} │ {K=3} │ {K=5} SQL │ Spider │ 76.0 (+02.8) │ 90.5 (+12.1) │ 92.8 (+11.9) |
| 2023 | Proposed approach (semantic reranking and output-based methods; all techniques combined as applicable) proposed non-standard slice | Execution match accuracy @K=3 | 90.5% | few-shot · model=code-davinci-002 · candidates=25 | From Words to Code: Harnessing Data for Program Synthesis from Natural LanguageSource quoteL682: {Target} │ {Benchmark} │ {K=1} │ {K=3} │ {K=5} SQL │ Spider │ 76.0 (+02.8) │ 90.5 (+12.1) │ 92.8 (+11.9) |
| 2023 | Skill-KNN proposed | execution accuracy | 76.6% | few-shot · backbone=text-davinci-003 | Skill-Based Few-Shot Selection for In-Context LearningSource quoteL65: For instance, with text-davinci-003 as the backbone model, Skill-KNN can achieve 76.6% execution accuracy on Spider, while the best raw-input-based selection method reaches 72.2% and target sketch matching\footnote{One of the oracle methods, detailed in Section~\ref{sec:selection_methods}.} attains 76.4%. |
| 2022 | Context distillation (Post-distill Student) proposed | exact set match accuracy | 27.9% | split: val · few-shot · params=6.7B · backbone=Incoder-6.7B · examples-per-database=8 | Learning by Distilling ContextSource quoteL255: Post-distill Student │ 22.1 │ 27.9 |