Classic painting used as the article cover
← Back to blog

Benchmarks

BIRD vs. Spider: What Text-to-SQL Benchmarks Actually Measure

BIRD and Spider rank the same systems differently for three separable reasons: the dataset, the grading rule and the deployment each system ran on. What each benchmark actually measures, and what transfers to your warehouse.

•Oct 12, 2026•Updated Oct 29, 2026•21 min
EvaluationReliabilityBest Practices

TL;DR

A text-to-SQL leaderboard position is a property of the benchmark and its grading rule, not of the system being graded. Hold the system fixed, change the rule, and the order changes.

Disagreements between two boards come from three separable places, and this piece takes them one at a time. The dataset: which questions, over which databases, with which answer key. The grading rule: the few dozen lines of code that turn a returned table into a verdict. The deployment: the platform each system ran on, the semantic metadata it was given there, and the limits that platform imposed. Mixing the three is what makes two numbers look like a disagreement about quality.

Our own published comparison shows the second one. On Spider 1.0, Databricks Genie beats Snowflake Cortex Analyst by 7.2 points under exact match (63.6 vs 56.4) and by 0.4 points under a got-the-facts rule (77.5 vs 77.1). Same two systems, same questions, same runs. A clear win becomes a tie.

The usual reading of a BIRD-versus-Spider disagreement is that one benchmark is harder, or that somebody overfit. Mostly it's simpler. The benchmarks ask different questions of different databases and score the answers with different code. BIRD's grader demands set equality of result rows. Spider 2.0's grader accepts any result that contains the reference columns.

None of this says benchmarks are useless, and it does not say ours are better. An audit of BIRD Mini-Dev and Spider 2.0-Snow found annotation error rates of 52.8% and 62.8%, and re-scoring 16 leaderboard agents on corrected data moved them by up to nine positions in either direction. Our numbers sit on that same ground.

So use a published number as a filter, not a decision. Shortlist two or three systems with it, then run your questions against your schema and grade them with the rule your users care about.

Overview

Someone sends you two tabs. On one, a system is fourth. On the other, the same system is second and the thing that beat it is now seventh. Both tabs are text-to-SQL leaderboards, both are current, and nobody is lying.

The reason is that a leaderboard score has four inputs and only one of them is the system. The other three sort cleanly, and the rest of this page takes them in order:

  1. The dataset. Which questions, over which databases, with which answer key. Spider 1.0, BIRD and Spider 2.0 differ on all three, deliberately, because they were built to test different things.
  2. The grading rule. The code that converts a returned table into a pass or a fail. Within a single benchmark, on a single set of answers, swapping the rule is enough to reorder the board.
  3. The deployment. The platform each system actually ran on, the schema metadata it was handed there, and the limits that platform imposed. Two systems scored on the same questions under the same rule can still have been given materially different information about the data.

Keeping them apart matters because each one has a different remedy. A dataset difference means the two numbers were never comparable. A grading-rule difference means they are the same measurement read two ways. A deployment difference means somebody's harness, not somebody's model, produced the gap. We think this is the most under-discussed fact in the field, because it means a vendor can be honest, reproducible and still irrelevant to your decision.

This page is narrower than our earlier post on reading agent benchmarks honestly, which covers agent evaluation in general. Here the subject is one specific confusion: why two text-to-SQL boards rank the same systems differently, and what that tells you about which number to trust. The head-to-head case, Cortex Analyst against Genie, has its own page; this one is about the machinery that makes any such comparison move. We use the vocabulary from our text-to-SQL evaluation taxonomy for the moving parts, specifically four of its dimensions: grading rule, answer shape, benchmark corpus and failure mode. The taxonomy is ours and it's vendor-neutral.

Take a hypothetical finance platform team picking a text-to-SQL layer for a Snowflake warehouse with a few thousand columns and fifteen years of accumulated naming conventions. They have two shortlisted vendors and two leaderboards that disagree. We'll come back to them at the end, because the honest answer to their question is not on either board.

The core claim: a published text-to-SQL score is a property of the triple (dataset, grading rule, deployment). Quote any one of the three without the other two and you have said almost nothing.

Axis one: the dataset — three benchmarks that measure three different things

Start with what the benchmarks were built to do, in their authors' words.

Spider 1.0 (EMNLP 2018) is a cross-domain schema-generalisation test. It is "a large-scale, complex and cross-domain semantic parsing and text-to-SQL dataset annotated by 11 college students," with 10,181 questions and 5,693 unique complex SQL queries across 200 databases covering 138 domains. The defining choice is the split: different databases appear in train and test, so "the task requires the model to generalize well to both new SQL queries and new database schemas." The databases themselves are small and tidy.

BIRD (NeurIPS 2023) was built because that tidiness was the problem. Its authors note that Spider and WikiSQL "focus on database schema with few rows of database contents leaving the gap between academic study and real-world applications." BIRD ships 12,751 text-to-SQL pairs over 95 databases totalling 33.4 GB across 37 professional domains, and adds three things Spider does not have: dirty database contents, external knowledge that bridges the question and the stored values, and SQL efficiency. At publication, the best model managed 40.08% execution accuracy against a human result of 92.96%.

Spider 2.0 (ICLR 2025) moved again, this time to enterprise workflows. Its 632 problems come from real data applications, with databases "often containing over 1,000 columns and stored in local or cloud database systems such as BigQuery and Snowflake." Solutions routinely run past 100 lines and span several queries. The same code agent that solved 91.2% of Spider 1.0 and 73.0% of BIRD with o1-preview solved 21.3% of Spider 2.0.

BenchmarkCorpusWhat it was built to test
Spider 1.010,181 questions, 5,693 unique SQL queries, 200 small databases, 138 domainsgeneralising to schemas never seen in training
BIRD12,751 pairs, 95 databases, 33.4 GB, 37 professional domainsdirty values, external knowledge, query efficiency
Spider 2.0632 workflow problems, BigQuery and Snowflake, often 1,000+ columnsenterprise workflows, long context, multi-query solutions

Table 1 — Three corpora, three design goals. Counts are from each benchmark's own paper.

Those are three different jobs. A system tuned for schema linking across many small unfamiliar databases is being asked for something else than a system that has to read dialect documentation and write a hundred lines of Snowflake SQL. Ranking disagreement between them is not a contradiction to be resolved. It is the benchmarks working.

That is the whole of axis one, and it is the easy axis: a score on one dataset is simply not a score on another, and there is no conversion factor. The dataset also carries its answer key, which turns out to be the shakiest part of the whole arrangement — that gets its own section rather than being folded in here, because an answer-key problem is a defect and a corpus difference is a design choice.

Axis two: the grading rule changes the ranking

Here is the part that surprises people. Even inside one benchmark, on one set of answers, the rule that converts a returned table into a verdict decides the order.

Four rules are in circulation. Exact set match compares the query text, not the result: Spider 1.0 decomposes each query into clauses and does set comparison within each clause, ignoring literal values. It punishes any correct query written differently from the reference. Execution accuracy runs both queries and compares results. Test-suite accuracy runs them against several generated databases, so that a wrong query cannot survive by coincidence on one. Containment, which we call got-the-facts, asks only whether every reference value appears somewhere in what came back.

The difference is not philosophical. It's a few lines of each project's evaluator. BIRD:

python
# bird-bench/mini_dev — evaluation/evaluation_ex.py
def calculate_ex(predicted_res, ground_truth_res):
    res = 0
    if set(predicted_res) == set(ground_truth_res):
        res = 1
    return res

Set equality over result rows. Add one helpful column and every tuple changes, so the answer is wrong. The Spider test-suite evaluator is explicit about the same constraint, while permuting column order before it decides:

python
# taoyds/test-suite-sql-eval — exec_eval.py
num_cols = len(result1[0])
# if the results do not have the same number of columns, they are different
if len(result2[0]) != num_cols:
    return False

Spider 2.0 inverts it. Its comparison walks the reference columns and asks whether each one turns up anywhere in the prediction:

python
# xlang-ai/Spider2 — spider2-lite/evaluation_suite/evaluate_utils.py
tolerance = 1e-2
for _, gold in enumerate(t_gold_list):
    if not any(vectors_match(gold, pred, ignore_order_=ignore_order)
               for pred in t_pred_list):
        score = 0

Extra columns are free. Numbers match within 0.01. Row order can be ignored per example.

So each rule rewards a different style of answer and punishes a different innocent one. Exact result match rewards tight answers that return only what was asked, and wrongly fails a query that is right but shaped differently: extra context columns, a different column order, a rounded average, a DISTINCT the annotator didn't write. Got-the-facts rewards wide answers, and wrongly passes a query that returns the right numbers buried in a result set nobody could read, or that got there through a join path that will break next quarter. Exact set match rewards queries that look like the reference and fails novel SQL that is semantically identical. In taxonomy terms these are the tsqlet:grading-rule terms exact-result-match and got-the-facts, and the thing they disagree about is the tsqlet:answer-shape dimension. The taxonomy's own note on right-data-wrong-shape calls it the main reason rankings flip between benchmarks, and the evaluator code above is why.

BIRD's maintainers reached the same conclusion from the inside. The Mini-Dev set ships a soft F1 score, "a more lenient metric that reduces the impact of column order and missing values in the tables produced by predicted SQL queries," alongside EX and a reward-based efficiency score. Three rules, one question set.

If you remember one mechanism: BIRD's grader fails an answer for having an extra column, and Spider 2.0's grader does not care. Any comparison that crosses those two benchmarks is comparing answer shapes as much as answer correctness.

Axis three: the deployment the questions ran on

The third axis gets the least attention and is the one most likely to be responsible for a gap you are about to attribute to a model. A benchmark is a set of questions and an answer key. Running it against a hosted analytics product means first loading those databases into a warehouse and configuring that product against them, and the loading and the configuring are not neutral.

Four things move inside this axis, none of them a property of the system under test.

The dialect and the identifier rules. A benchmark written around SQLite behaviour does not transfer unchanged to a warehouse that uppercases unquoted identifiers, which is what Snowflake does. Something has to give: either the gold SQL gets rewritten, which changes the benchmark, or the schema load gets adjusted so the original queries still run, which changes the deployment. Our own run took the second option and said so.

The metadata that survives the load. Several benchmark formats drop declared primary and foreign keys when their databases are loaded into a warehouse, and that is not cosmetic: a product that reasons about joins from declared relationships will refuse questions it could otherwise answer. In our comparison the keys had to be replayed from the benchmark metadata onto both warehouse setups. A type mismatch in our own Databricks loader had silently dropped around twenty foreign keys; fixing it and rerunning moved Genie's result by about half a point. A further 73 relationships could not be represented in Unity Catalog at all, and we published that rather than working around it. Nothing in any of those sentences is a statement about either vendor's model.

The platform's own limits. One Spider 2.0 schema contains 38 tables; a Genie space holds 30. Which eight tables you drop is a harness decision that lands directly in the score — we kept the largest connected component of the foreign-key graph and disclosed the tables removed, but a different and equally defensible choice would produce a different number.

Harness bugs that look like results. At one point a dotted namespace in Unity Catalog caused one benchmark to score Genie at exactly 0%. The run looked legitimate. Fixing the harness and regrading the same answers, unchanged, moved it to 66.7%. A summary score is perfectly capable of being believable and wrong, which is the argument for publishing per-question results.

The refusal data makes the same point from the other side. Cortex Analyst refused 27 of the 135 Spider 2.0 questions, and reading all 27 messages, 24 were caused by missing join metadata, a deployment property, against two genuine inabilities to answer. Scored as failures, those 27 read as a weak model. Attributed correctly, most of them read as a schema-loading problem.

AxisWhat differsWhat a gap on it means
Datasetquestions, databases, answer keythe two numbers were never comparable; no conversion exists
Grading rulewhat counts as a matching resultthe same answers, read two ways; report both readings
Deploymentdialect, surviving keys, platform limits, harness correctnesssomebody's loader or their configuration produced the gap, not their model

Table 2 — The three axes and their remedies. Only the third one is anybody's fault, and it is usually the harness author's.

Two consequences for reading any published comparison. First, the deployment axis is why "we used the same questions and the same grader" is necessary and not sufficient — it says nothing about what each system was told about the data. Second, it is the axis that does partly transfer to you, because the same work has to happen on your warehouse: your keys, your dialect, your table counts, your metadata. The dataset and the grading rule stay behind on the leaderboard. The configuration burden follows you home.

Where rankings flip

Our own numbers are the cleanest demonstration of the grading-rule axis we can point at, and they come with a conflict of interest we should state first: Agentic Fabriq ran this comparison, including against its own system, so treat it as first-party. Each product ran on its own platform with its own semantic tooling (the deployment caveats above are ours) on the same questions, with the same external grader and three runs per cell where possible.

SystemBIRD mini-devSpider 1.0Spider 2.0-lite
mnemiq (tier 2 enrichment, hosted frontier model)52.2 / 64.968.4 / 79.536.6 / 59.8
Databricks Genie37.4 / 53.163.6 / 77.527.3 / 45.5
Snowflake Cortex Analyst33.3 / 48.956.4 / 77.117.4 / 24.2

Table 3 — First-party comparison published by Agentic Fabriq, exact match / got-the-facts.

Look at the Spider 1.0 column. Under exact match, Genie leads Cortex Analyst by 7.2 points, which anyone would report as a win. Under got-the-facts the gap is 0.4 points, which is a tie. Nothing about either system changed between those two readings. The grader changed, and with it the answer to "which of these is better at Spider 1.0."

exact result match
columns must match reference

got the facts
reference values must appear

Same two systems
same Spider 1.0 questions
same runs

Which grading rule?

Genie 63.6
Cortex Analyst 56.4

Genie 77.5
Cortex Analyst 77.1

7.2 points apart
reported as a clear win

0.4 points apart
inside run-to-run noise

Ranking is a property
of the rule, not the system

Figure 1 — The same pair of systems, reordered by the grader alone.

We read the collapse from 7.2 to 0.4 as mostly answer shape: under containment, results that differ from the reference only in which columns came along stop being wrong. That reading is ours, not a measured decomposition, and we have not isolated it per question.

The public Spider 1.0 board makes the same point without us. It publishes two leaderboards over one benchmark, execution with values and exact set match without values. The top submission, MiniSeek, scores 91.2 on the first and 81.5 on the second. Below it the two lists barely overlap: the execution board is a run of 2023 GPT-4 prompting methods, while the exact-match board is still led by 2022 fine-tuned parsers like Graphix-3B + PICARD and CatSQL + GraPPa. Part of that is which board people chose to submit to. Part of it is that the two rules reward different machinery.

The answer keys are broken too

There is a worse problem underneath the grading rule, and it is well documented. The reference answers themselves are frequently wrong.

Jin, Choi, Zhu and Kang audited two benchmarks and published the result at CIDR 2026 with an extended version on arXiv in January 2026. They classify annotation errors into four patterns: question-versus-SQL mismatch, question-versus-database mismatch from limited understanding of the data and schema, missing or wrong domain knowledge, and plain ambiguity in the question. Then they counted. In BIRD Mini-Dev, 263 of 498 unique examples contain at least one such error, a rate of 52.8%. In Spider 2.0-Snow, 76 of the 121 examples whose gold SQL is public are wrong, a rate of 62.8%, which the earlier CIDR version of the paper put at 66.1%. They chose Snow over Spider 2.0-lite for a pointed reason: "teams at leading technology companies benchmark their agents on it."

Then they corrected a 100-problem sample of the 1,534-problem BIRD Dev set, fixing 19 questions, 17 external knowledge annotations, 41 gold SQL queries and one schema, and re-ran all 16 reproducible open-source agents from the BIRD leaderboard. Rankings moved an average of five positions, with individual shifts from −9 to +9. CHESS and GenaSQL went from 7th and 6th to a tie for first at 81% execution accuracy. MAC-SQL climbed from 14th to 5th. Contextual-SQL, previously first, fell to 7th. OpenSearch-SQL fell from 2nd to 11th.

The authors also tested whether the uncorrected sample is at least a fair proxy for the full set. Agent rankings on the uncorrected subset track the full BIRD Dev set closely, Spearman's r = 0.85. Rankings on the corrected subset track it weakly, r = 0.32. Their conclusion is blunt: "rankings of methods are highly sensitive to the annotation errors in the benchmark."

This is not new, only bigger than previously thought. Wretblad and colleagues found in 2024 that noise in BIRD's questions and gold queries was prevalent and unevenly distributed across domains, and reported something that should stop anyone leaning on a leaderboard delta: "when evaluating models on corrected SQL queries, zero-shot baselines surpassed the performance of state-of-the-art prompting methods." The elaborate method's advantage was an artifact of the answer key.

What that does to a two-point gap: if half the reference answers in a benchmark are unreliable, a two-point difference between two systems carries no information at all. The taxonomy has a name for the failure mode it produces, tsqlet:failure-mode/reference-error, and it is the only one on the list that is nobody's fault but the benchmark's.

False positives, false negatives, and why execution accuracy is not a reprieve

Execution accuracy is often sold as the honest alternative to exact match. It's better. It is not clean, and the sizes of its two error modes are measured.

A wrong query can return the right table by accident. Zhong, Yu and Klein built test-suite accuracy for exactly this, distilling small suites of randomly generated databases so a prediction has to survive more than one world. Checking results only on the single database shipped with Spider produces a false positive rate averaging 6.5% across 21 leaderboard submissions, rising to 11.0% on the extra-hard split and 17.6% in the worst case. Those are predictions counted correct that are not.

The reverse error is smaller but real. The adapted exact set match metric shows a false negative rate of 2.6% on average and 8.1% at worst, and on hard queries 4% on average and 12.1% at worst. These are the shape failures: a correct query marked wrong for column order, an extra column, a DISTINCT, a rounding difference. Spider 2.0's grader is lenient here on purpose, with its 0.01 numeric tolerance and optional row-order blindness.

And both error modes reorder boards. On the extra-hard split, the authors found four submissions each having more than three others ranked above them on single-database execution accuracy but below them on test-suite accuracy. On the hard split, five of 21 submissions each had four others scoring lower on semantic accuracy and higher on exact set match. That is the thesis of this page, measured by someone with no product to sell: the metric, not the model, produced the order.

What follows if you're choosing a system

Back to the hypothetical finance platform team with two vendors and two disagreeing boards. Nothing they can read will settle it, and here is the shape of why.

What a published score is made of

transfers only if all four match yours

the only input you are buying

the one that follows you home

1 dataset
Spider 1.0 / BIRD / Spider 2.0
plus its answer key:
52.8% and 62.8% audited error

2 grading rule
set equality, containment, test suite

3 deployment
dialect, surviving keys,
platform limits, harness

the system itself

published score

your warehouse
your schema, your values,
your questions, your users

Figure 2 — Three of the four inputs to any leaderboard number belong to the benchmark and its harness, not to you. The deployment axis is the only one of the three whose work reappears on your own warehouse.

Three of the four inputs are the benchmark's and its harness author's. Your schema has its own join paths and its own fifteen-year-old column names, your users have their own definition of an active customer, and your grading rule is whatever your analysts will accept in a Slack thread. So the practical move is to stop reading scores as rankings and start reading them as filters. A published number is good evidence of a floor and poor evidence of an ordering, which is enough to shortlist and never enough to choose.

Then measure. We wrote the method up separately in how to evaluate text-to-SQL on your own database: write the questions your team actually asks, decide in advance which grading rule matches what your users will accept, and check the answer key before you trust a score computed from it. Pick the rule first, because it is the choice that most determines the result and the one most often left to a default.

This applies to our own numbers. mnemiq leads every cell of Table 3, and we published it, and that is exactly the pair of facts that should make you discount it. The engine's own thesis is that accuracy does not transfer across databases, which is why a language model proposes SQL in it and deterministic checks on shape, access, dialect and query plan decide whether the query runs. A benchmark score cannot tell you whether those checks fit your warehouse. Only your warehouse can.

FAQ

What do BIRD and Spider actually measure? Spider 1.0 measures whether a system generalises to database schemas it has never seen, over 200 small, tidy databases. BIRD measures whether it can cope with dirty stored values and questions that need outside business knowledge, over 95 databases totalling 33.4 GB. Spider 2.0 measures whether it can complete enterprise workflows against thousand-column warehouses, where a solution is often several queries and a hundred lines. None of the three measures how a system behaves on your schema, and none of them measures latency, cost or whether the system respects your access controls.

What is the difference between BIRD and Spider? Dataset, grading rule and intent. BIRD's databases are larger and messier and its questions come with external knowledge; Spider 1.0's are small and clean and its test is schema generalisation; Spider 2.0's are enterprise warehouses on BigQuery and Snowflake. On grading, BIRD's execution metric demands set equality of result rows while Spider 2.0's accepts any result containing the reference values, so an extra column is fatal in one and free in the other.

Two numbers disagree — is it the dataset, the rule, or the harness? Check in that order. Different benchmark names means the dataset, and there is no conversion. Same benchmark and same answers but different numbers means the grading rule. Same benchmark, same rule, surprising gap means look at the deployment: which keys survived the load, what dialect the SQL was generated in, what table or column limits the platform imposed, and whether anyone has read the per-question output. A harness bug can produce a wholly believable score, including a 0%.

Why does my system rank higher on Spider than on BIRD? Most likely because Spider 1.0's databases are small and clean while BIRD's contain dirty values and need external knowledge to connect a question to how the data is stored. BIRD was built specifically to close that gap. A drop from Spider to BIRD is the expected direction, not a regression.

Which text-to-SQL benchmark should I trust? For a shortlist, the one whose corpus most resembles your situation: Spider 2.0 if you run a large cloud warehouse with thousand-column tables, BIRD if your data is messy and your questions need business context. For a decision, none of them.

Is a two-point difference on a BIRD leaderboard meaningful? We don't think so. An audit found annotation errors in 52.8% of BIRD Mini-Dev examples, and re-scoring 16 agents on corrected data moved rankings by an average of five positions. A two-point gap is inside that noise.

Does Spider 2.0 replace BIRD? No. It tests a different thing, and it grades differently, accepting any result that contains the reference values. Scores from the two are not comparable in either direction.

Can I put a vendor's published score in a procurement document? You can cite it as a floor on capability if you also record the corpus, the grading rule, the model and the date. Presenting it as a ranking is the part that misleads, including when the vendor is us.

Conclusion

BIRD and Spider rankings disagree for three reasons at once. They ask different questions of different databases. They grade the answers with different code. And each system ran on a deployment somebody had to configure, against answer keys that are themselves substantially wrong. Each of those facts is documented, and each on its own is enough to reorder a leaderboard. Together they mean the sentence "system A beats system B at text-to-SQL" is incomplete to the point of being unfalsifiable.

What remains useful is the mechanism. Knowing that BIRD's grader fails an extra column and Spider 2.0's does not tells you something real about why two numbers differ, and it tells you which rule to pick when you grade your own. That is a transferable skill. A leaderboard position is not.

The one thing to take away: before you compare two text-to-SQL numbers, check that they came from the same dataset and answer key, the same grading rule and comparably configured deployments. If any of the three differs, you are not comparing systems.

Sources