BIRD-FanOut finds SQL overcounts in the reference answers, not just the agents
Grain-aware metadata reduced overcounts on a selected BIRD subset. This is not a leaderboard gain, and the study’s model-generated corrections were not human-validated.
A SQL query can run, return one plausible number and still overcount. Take shipping fees: a fee belongs to an order, but joining orders to the lines that match a product filter can repeat the fee before the sum. If the benchmark’s reference query makes the same mistake, matching its output rewards the overcount. Ahmed M. Mahran’s BIRD-FanOut preprint puts numbers on both sides of that problem.
The benchmark answer can be wrong too
The paper’s audit of BIRD’s June 2024 dev release found distortion in 4.2% of reference answers under its labeling criteria. Two model judges had to agree that the question meant to count distinct entities rather than repeated rows. There is an independent cross-check: BIRD’s November 2025 human-reviewed revision changed 44% of the answers with definite audit flags, versus 16% of unflagged answers. Those percentages count all answer changes in the two groups, not verified fan-out fixes. The author reports about 30 remaining distortions in the cleaned dev set under the paper’s labels and no definite flags on 2026 Mini-Dev. These are distinct releases, not contradictory scores.
Fewer overcounts, not a new leaderboard score
On 229 selected BIRD-FanOut train questions whose original reference answers overcounted, eight agents yielded 1,832 runs per condition. Fan-out errors fell from 18.4% without extra evidence and 17.0% with per-column statistics to 13.6% with grain-aware metadata in the prompt and 13.1% when it was delivered through a tool. These rates combine exact matches to the distorted reference result with additional overcounts identified by a model judge. The metadata describes what entity a measure belongs to and how often values of a potential join key repeat. On the 183 train questions withheld from rule design, the two variants reduced errors by 2.7 and 2.9 percentage points against statistics alone. Two measures that did not rely on model judges agreed on the direction of the result.
The limitations matter: the held-out questions were the nonrandom remainder after selecting design cases; agents used SQLite and saw only the tables the reference query used; and the study’s own labeling and correction process used models, not human reviewers. The 486-question suite is a targeted diagnostic, not an estimate of how often production SQL overcounts. The public misqal repository includes the benchmark questions and audit code; the BIRD reruns require separate downloads of the underlying databases. For an evaluation team, the practical next step is to audit the rows entering an aggregate after joins and filters, then review whether repetition is actually intended. A warning is evidence of repeated rows, not a verdict on what the user meant.
sources
comments · 0