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.

12.641.770.9100.0201920232026SyntaxSQLNet: 18.9 (2019)GNN-SQL: 22.0 (2019)SyntaxSQLNet + DAE: 22.1 (2019)SyntaxSQLNet + Data Augmentation: 24.8 (2019)SyntaxSQLNetAug + DAE: 27.4 (2019)SyntaxSQLNet, SemQL output: 27.5 (2019)SyntaxSQLNet (BERT), SemQL output: 35.8 (2019)SyntaxSQLNet: 53.5 (2019)GNN-SQL: 57.0 (2019)SyntaxSQLNet + Data Augmentation: 61.9 (2019)RECPARSER: 39.3 (2020)RECPARSER (BERT): 46.8 (2020)CFGNN (ours, full model): 48.7 (2020)IRNet + PIIA(H): 52.7 (2020)EditSQL+Feedback (BERT-equipped): 53.73 (2020)RECPARSER: 54.3 (2020)IRNet + PIIA: 59.3 (2020)RECPARSER (BERT): 63.1 (2020)GNN + Bertrand-DR: 57.9 (2020)EditSQL + Bertrand-DR: 58.5 (2020)Base Parser: 56.4 (2021)Base Parser + DG-MAML: 58.5 (2021)RAT-SQL + NatSQL: 74.6 (2021)Turing + RoBERTa (best reported run): 75.1 (2021)S²SQL + ELECTRA: 76.4 (2022)LogicalBeam: 81.3 (2023)SuperSQL (GPT-4): 87.0 (2024)MTSQL: 75.6 (2024)Open-SQL (7B; same procedure as the BIRD experiments): 84.1 (2024)DataGpt-sql-7B: 84.8 (2024)DataGpt-sql-7B + Invalid-SQL Feedback: 87.2 (2024)PARSQL-3Bllm: 77.7 (2025)PARSQL-3Bllm: 83.8 (2025)SQL-of-Thought, W/o Error Correction (Claude 3 Opus): 85.0 (2025)SQLForge-LM: 85.7 (2025)SQL-of-Thought, W/o Query Plan Generation (Claude 3 Opus): 90.0 (2025)SQL-of-Thought (with Claude Opus 3): 91.59 (2025)SQL-of-Thought (Claude 3 Opus): 95.0 (2025)HHNAS-AM Model 1 (standalone RoBERTa): 91.02 (2025)HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features): 94.76 (2025)HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features): 97.11 (2025)HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features): 97.66 (2025)HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features): 97.78 (2025)HHNAS-AM Model 4 (RoBERTa with parallel CNNs for LLM and rule-based features): 98.21 (2025)MATS (9B): 87.1 (2025)SQL component pre-generation + AST matching reward (GRPO; Qwen2.5-Coder-7B-Instruct): 83.0 (2026)FINER-SQL 3B: 85.0 (2026)Progress-SQL-7B: 80.0 (2026)ORM-based BoN: 84.53 (2026)Progress-SQL-7B: 86.6 (2026)DecoSearch (DeepSeek backbone): 88.31 (2026)
Click any point on the timeline to inspect method, protocol, and paper.

Showing 22 of 22 matching observations.

YearMethodMetricScoreProtocol / FacetsPaper & Evidence
2024Fine-tuned gpt-3.5-turbo-16k (few-shot) + gpt-4-turbo (zero-shot error correction) proposedexecution accuracy82.1%few-shot · error-correction=zero-shot · generation-model=gpt-3.5-turbo-16k · error-correction-model=gpt-4-turboAnalyzing the Effectiveness of Large Language Models on Text-to-SQL Synthesis
Source quote
L4: 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.
2024Tool-SQL + GPT-4 proposedExecution Accuracy86.0split: test · few-shot · backbone=GPT-4Tool-Assisted Agent on SQL Inspection and Refinement in Real-World Scenarios
Source quote
L180: Tool-SQL + GPT-4 │ 86.9 │ 85.6 │ 86.0
2024ByCS proposed%Acc.69.63%few-shot · k=1 · model=GPT-3.5-Turbo · datastore=kNN-narrowedBayesian Example Selection Improves In-Context Learning for Speech, Text and Visual Modalities
Source quote
L412: 69.63
2024DAIL-SQL + GPT-4 + SC baselineExecution Accuracy85.6split: test · few-shot · backbone=GPT-4Tool-Assisted Agent on SQL Inspection and Refinement in Real-World Scenarios
Source quote
L178: DAIL-SQL + GPT-4 + SC \cite{gao2023text} │ 83.6 │ 86.6 │ 85.6
2024Dail-SQL baselineexecution accuracy (EA)0.824split: val · few-shotSQL-to-Schema Enhances Schema Linking in Text-to-SQL
Source quote
L184: Dail-SQL │ fine-tuning +fewshot │ 0.824
2024KATE+ baseline%Acc.69.44%few-shot · k=1 · model=GPT-3.5-TurboBayesian Example Selection Improves In-Context Learning for Speech, Text and Visual Modalities
Source quote
L383: 69.44
2023SQLPrompt with MixLLMs proposedexecution accuracy (EX)77.3split: val · few-shot · num-mixture=6SQLPrompt: In-Context Text-to-SQL with Minimal Labeled Data
Source quote
L206: EX │ 74 │ 76.6 │ 77.3 │ 77.1
2023SQLPrompt with MixLLMs proposedtest-suite accuracy (TS)68.6split: val · few-shot · num-mixture=16SQLPrompt: In-Context Text-to-SQL with Minimal Labeled Data
Source quote
L207: TS │ 65.5 │ 68.0 │ 68.3 │ 68.6
2023ACT-SQL (GPT-4) proposedEX (execution accuracy)82.9split: val · few-shot · n_d=2 · n_s=2 · model=GPT-4 · database-style=Create(EoT) · api-calls-per-sql=1ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thought
Source quote
L172: GPT-4 │ ACT-SQL (Ours) │ 1 │ 61.7 │ 82.9 │ 74.5
2023ACT-SQL (GPT-4) proposedTS (test-suite accuracy)74.5split: val · few-shot · n_d=2 · n_s=2 · model=GPT-4 · database-style=Create(EoT) · api-calls-per-sql=1ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thought
Source quote
L172: GPT-4 │ ACT-SQL (Ours) │ 1 │ 61.7 │ 82.9 │ 74.5
2023DIN-SQL + GPT-4 proposedexecution accuracy85.3%split: test · few-shot · model=GPT-4DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
Source quote
L57: 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.
2023DIN-SQL + CodeX Davinci proposedexecution accuracy78.2%split: test · few-shot · model=CodeX DavinciDIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
Source quote
L57: 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.
2023ODIS (Codex) proposedExecution accuracy (EX)85.2split: val · few-shot · backbone=Codex · evaluation=official-test-suiteSelective Demonstrations for Cross-domain Text-to-SQL
Source quote
L308: \multirow{3}{*}{ODIS} │ Codex │ 85.2
2023Ours (GPT-3.5, text-davinci-003; skeleton retrieval) proposedExecution accuracy (EX)87.8few-shot · backbone=GPT-3.5 / text-davinci-003 · retrieval-demonstrations=8Prompting GPT-3.5 for Text-to-SQL with De-semanticization and Skeleton Retrieval
Source quote
L250: 87.8
2023Proposed approach (semantic reranking and output-based methods; all techniques combined as applicable) proposed non-standard sliceExecution match accuracy @K=176.0%few-shot · model=code-davinci-002 · candidates=25From Words to Code: Harnessing Data for Program Synthesis from Natural Language
Source quote
L682: {Target} │ {Benchmark} │ {K=1} │ {K=3} │ {K=5} SQL │ Spider │ 76.0 (+02.8) │ 90.5 (+12.1) │ 92.8 (+11.9)
2023Proposed approach (semantic reranking and output-based methods; all techniques combined as applicable) proposed non-standard sliceExecution match accuracy @K=390.5%few-shot · model=code-davinci-002 · candidates=25From Words to Code: Harnessing Data for Program Synthesis from Natural Language
Source quote
L682: {Target} │ {Benchmark} │ {K=1} │ {K=3} │ {K=5} SQL │ Spider │ 76.0 (+02.8) │ 90.5 (+12.1) │ 92.8 (+11.9)
2023Skill-KNN proposedexecution accuracy76.6%few-shot · backbone=text-davinci-003Skill-Based Few-Shot Selection for In-Context Learning
Source quote
L65: 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%.
2023Self-Debugging (Codex) baselineExecution accuracy (EX)84.1split: val · few-shot · backbone=Codex · evaluation=official-test-suiteSelective Demonstrations for Cross-domain Text-to-SQL
Source quote
L293: Self-Debugging \cite{chen2023teaching} │ Codex │ 84.1
2023Best raw-input-based selection method baselineexecution accuracy72.2%few-shot · backbone=text-davinci-003Skill-Based Few-Shot Selection for In-Context Learning
Source quote
L65: 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%.
2023Target sketch matching baseline non-standard sliceexecution accuracy76.4%few-shot · subset=oracle method · backbone=text-davinci-003Skill-Based Few-Shot Selection for In-Context Learning
Source quote
L65: 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%.
2022Context distillation (Post-distill Student) proposedexact set match accuracy27.9%split: val · few-shot · params=6.7B · backbone=Incoder-6.7B · examples-per-database=8Learning by Distilling Context
Source quote
L255: Post-distill Student │ 22.1 │ 27.9
2022Direct Gradient Descent baselineexact set match accuracy18.9%split: val · few-shot · params=6.7B · backbone=Incoder-6.7B · examples-per-database=8Learning by Distilling Context
Source quote
L256: Direct Gradient Descent │ 13.4 │ 18.9