Spider 2.0
Evaluate agents querying and transforming data in complex enterprise databases.
Overview
Spider 2.0 checks whether language-model agents can handle enterprise-style data work rather than short, single-query text-to-SQL. Its databases come from real applications, are often very wide, and live in systems such as BigQuery, Snowflake, DuckDB and SQLite. The authors built it to expose how far current models are from the long-context, multi-step workflows that data engineers face.
What a task looks like
A task gives an agent a natural-language data request plus database metadata, dialect documentation and sometimes a project codebase, and the agent must write what is needed, often several queries longer than 100 lines. The DBT setting instead asks an agent to complete a repository-level data-transformation project.
How it’s scored
Results are reported as the percentage of tasks solved, checked by the official evaluation suite for each setting. The sources do not define the comparison rule in detail.
- Released
- 2024-11
- Size
- Spider 2.0-Snow: 547 tasks; Spider 2.0-Lite: 547 tasks (BigQuery 214, Snowflake 198, SQLite 135); Spider 2.0-DBT: 68 tasks. The paper cites 632 problems for the original release.
- Versions
- Settings are Snow, Lite and DBT. The project page and repository log updates: all examples and partial gold answers released 2024-12-24; ground-truth tables for Lite/Snow released 2025-04-20 (results using them must be labeled oracle); DBT added 2025-05-22, replacing the original Spider2 setting; Snow questions revised 2025-07-13; evaluation-suite fix and leaderboard refresh 2025-10-29.
- Access
- Public code and task files on GitHub under the MIT license; only partial gold SQL is public. Running Snow requires a Snowflake access form, and running Lite requires your own BigQuery and Snowflake accounts.
Summarized by Stubbi from the public sources listed below. Stubbi has not run this benchmark.
Published leaderboard
Explore scores and evaluation settings on the publisher’s leaderboard.
Open leaderboardCoverage
Separate Snow, Lite, and DBT settings: Snow and Lite each contain 547 tasks; DBT contains 68 repository-level tasks.
Methodology
Solve the chosen SQL or data-transformation workflow using its database metadata, documentation, and environment. Evaluate the resulting outputs with the corresponding official task suite.