atlas

Research map / Large language models / Language, safety and interpretability

Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflows

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces Spider 2.0, a benchmark of 632 enterprise-scale text-to-SQL workflow tasks (plus Spider 2.0-lite/snow text-to-SQL variants) in real codebases and cloud/local databases, showing frontier LLM code agents solve only ~21% of tasks.

Problem

Existing text-to-SQL benchmarks use small, simple databases and single SQL queries, failing to reflect real enterprise data workflows that involve large schemas, multiple SQL dialects, project codebases, documentation, and multi-step data transformation and analytics.

Approach

An agentic benchmark where the model must navigate project codebases, documentation, and live cloud/local database interfaces to iteratively write SQL/Python and produce a final result, paired with text-to-SQL variants (Spider 2.0-lite/snow) and a ReAct-style code agent (Spider-Agent) baseline.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Spider-Agent with o1-preview instead of GPT-4o code-agent frameworksSpider 2.0 code-agent task · Spider 2.0success rate: 12.34% -> 21.36%Helped
Use o3-mini instead of o1-preview in Spider-AgentSpider-Agent · Spider 2.0-Liteexecution accuracy: 23.22% -> 23.40%Helped
Use o1-preview instead of o3-mini in Spider-AgentSpider-Agent · Spider 2.0-Snowexecution accuracy: 19.20% -> 23.77%Helped
Use DAIL-SQL + GPT-4o instead of DIN-SQL + GPT-4otext-to-SQL baseline · Spider 2.0-Liteexecution accuracy: 1.46% -> 5.68%Helped
Use DAIL-SQL + GPT-4o instead of CHESS + GPT-4otext-to-SQL baseline · Spider 2.0-Snowexecution accuracy: 1.28% -> 2.20%Helped
Add oracle SQL function documentation (ablation)DAIL-SQL + GPT-4o · Spider 2.0-Liteexecution accuracy: 5.68% -> 5.85%Helped
Add oracle SQL function documentation (ablation)DAIL-SQL + o1-preview · Spider 2.0-Liteexecution accuracy: 12.60% -> 9.51%Hurt
Use 1-shot prompting instead of 0-shot prompting (ablation)DAIL-SQL + GPT-4o · Spider 2.0-Liteexecution accuracy: 5.68% -> 6.40%Helped
Use 3-shot prompting instead of 0-shot prompting (ablation)DAIL-SQL + GPT-4o · Spider 2.0-Liteexecution accuracy: 5.68% -> 6.76%Helped
Require handling nested columnsSpider-Agent on non-DBT projects · Spider 2.0 tasks with nested columnssuccess rate: 27.38% -> 10.34%Hurt
Require consulting external documentsSpider-Agent on non-DBT projects · Spider 2.0 tasks with external documentssuccess rate: 26.64% -> 11.54%Hurt
Require completing DBT project workflowsSpider-Agent · Spider 2.0 DBT-project taskssuccess rate: 23.22% -> 12.82%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Spider 1.0 BIRD

Benchmarks: Spider 2.0 Spider 2.0-lite Spider 2.0-snow Spider 1.0 BIRD

Metrics: success rate execution accuracy

Baselines: Reflexion CodeR AutoEval DIN-SQL DAIL-SQL CHESS SFT CodeS-15B

Builds on: ReAct Reflexion InterCode DAIL-SQL CHESS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy