Spider
Models turn natural language questions into SQL over 200 multi-table databases from 138 domains. Test databases are unseen in training, and answers are scored by exact match or execution.
10,181 questions and 5,693 unique SQL queries annotated by 11 Yale students. The Spider site announced Spider 2.0 as its successor in 2024.
In the authors’ words
We present Spider, a large-scale, complex and cross-domain semantic parsing and text-to-SQL dataset annotated by 11 college students. It consists of 10,181 questions and 5,693 unique complex SQL queries on 200 databases with multiple tables, covering 138 different domains. We define a new complex and cross-domain semantic parsing and text-to-SQL task where different complex SQL queries and databases appear in train and test sets. In this way, the task requires the model to generalize well to both new SQL queries and new database schemas. Spider is distinct from most of the previous semantic parsing tasks because they all use a single database and the exact same programs in the train set and the test set. We experiment with various state-of-the-art models and the best model achieves only 12.4% exact matching accuracy on a database split setting. This shows that Spider presents a strong challenge for future research. Our dataset and task are publicly available at https://yale-lily.github.io/spider
- Level
- University Undergraduates and entry-level professionals
- Scored
- Checked automatically A program checks the result against an answer key, unit tests or the expected final state.
- Answers
- Code A program or patch run against tests.
GPT-4 leads with 86.6% among models released by Jun 2023
Best score per entry from the benchmark's own leaderboard, read on 2 Nov 2026. Where a model ran with several settings or harnesses, we keep its best. Names in gray aren't in our model list: fine-tunes, agent systems, products and older models. They don't count toward leaders.
The newest model with a score here came out in Jun 2023, and nobody has tested a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- GPT-6 Astra
- Claude Opus 5.5
- GPT-6.1 Terra
- GPT-6.1 Sol
- and 16 more
- 1 GPT-4 Jun 2023 86.6%
- 2 GPT-4 Mar 2023 85.3%
- 3 GPT-3.5 Turbo (Mar 2023) 82.3%
- 4 CodeX 78.2%
- 5
T5-3B 78%
- 6 T5-Base 71.1%
| # | Entry | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | GPT-4 Jun 2023 | 86.6% | DAIL-SQL + GPT-4 + Self-Consistency | Jun 2023 | Official leaderboard |
| 2 | GPT-4 Mar 2023 | 85.3% | DIN-SQL + GPT-4 | Mar 2023 | Official leaderboard |
| 3 | GPT-3.5 Turbo (Mar 2023) | 82.3% | C3 + ChatGPT + Zero-Shot | Mar 2023 | Official leaderboard |
| 4 | CodeX | 78.2% | DIN-SQL + CodeX | Apr 2023 | Official leaderboard |
| 5 | | 78% | T5-3B+NatSQL+Token Preprocessing | Oct 2019 | Official leaderboard |
| 6 | T5-Base | 71.1% | T5-Base+NatSQL+Token Preprocessing | Aug 2021 | Official leaderboard |
Labs report scores for 4 models in their cards. We plot every source in the charts below.
4 models have held number one since 2023
Lab claims count from the day the card came out, independent runs from the model’s release. We draw one row each for the benchmark’s own leaderboard and what labs claim in their cards.
The best score passed 85% in Mar 2023
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Labs dropped it from launch posts once the best score passed 85%
Launch posts from every lab that has listed it, one tick per post. Tall colored ticks include it, and short gray ones leave it out.
| Date | Launch post | Score | As the post writes it |
|---|---|---|---|
| 13 Jan 2025 | 66.5 | Spider (SQL) |
3 system cards report it, from 3 labs
Besides launch posts, we read the system cards, model cards and technical reports labs publish with a release. They report far more, including safety and frontier-risk tests.
| Date | Document | Score | As the document writes it | Section |
|---|---|---|---|---|
| 28 Feb 2026 | | 83.7 | Spider (Table 7) | Capabilities |
| 1 Apr 2025 | | 80.2 | Spider Test execution accuracy (Table 14). Dev 79.5 | Capabilities |
| 3 Mar 2025 | | 42.2 | Spider (4-Shot) (Table 8) | Capabilities |
Versions
More in Coding
- SWE-bench Verified In use 500 human-validated GitHub issues from 12 Python repos. Agent writes a patch that must pass hidden tests. Claude Opus 4.7 83.5%
- SWE-bench Multilingual In use 300 GitHub-issue tasks across nine programming languages in SWE-bench format. Patch graded by repository tests. Claude Opus 5.5 93.9%
- LiveCodeBench v6 In use Competitive programming problems collected after model cutoffs from LeetCode, AtCoder, Codeforces. Scored pass@1 on hidden tests.
DeepSeek-V4-Pro 93.5%
- DeepSWE In use 113 original long-horizon engineering tasks across 91 repos and five languages, written from scratch. Hand-written verifiers accept alternative solutions. GPT-6 Astra 74.1%
- SciCode In use Scientist-curated research coding problems split into subproblems across natural sciences. Code checked against test cases.
Seed2.1 Pro 59.8%
- Codeforces rating In use Model solves recent Codeforces contest problems. An Elo-style rating is computed from simulated contest performance.
DeepSeek V4.1 Flash 3,471