Skip to content

Reference Benchmarks (birdsql/bird_mini_dev)

All five evaluators are exercised together in the isolated benchmark harness under examples/ against birdsql/bird_mini_dev (sqlite, full 500 rows: 460 challenging, 32 moderate, 8 simple across 11 databases).

Note: ML inference dependencies (transformers, torch, datasets, huggingface_hub, accelerate) live strictly under [project.optional-dependencies] examples so the core package stays sqlglot-only. Offline score runs execute with zero ML dependencies.


Offline Re-Scoring Command

# Score the bundled 5-row smoke fixture with core dependencies only
uv run python examples/bird_eval.py score \
  --input examples/fixtures/bird_sample.jsonl

See examples/README.md and examples/bird_eval.py for generate / score CLI flags and DDL {table: [columns]} + foreign_keys extraction details.


Comparative Summary (SQLite, n = 500)

Evaluated with extract_fenced_or_last_sql, group_by_vibes 0.1.3, and sqlglot 30.33.0:

Metric seeklhy/OmniSQL-14B seeklhy/OmniSQL-32B Snowflake/Arctic-Text2SQL-R1-7B Qwen/Qwen2.5-Coder-7B-Instruct griffith-bigdata/FINER-SQL-3B-v2 Qwen/Qwen2.5-Coder-3B-Instruct
SQL-BLEU 0.3703 0.3699 0.3620 0.2880 0.2646 0.2130
Parsed Queries (SQL-BLEU) 495/500 (99.0%) 498/500 (99.6%) 496/500 (99.2%) 483/500 (96.6%) 495/500 (99.0%) 478/500 (95.6%)
Exact Match Accuracy 2.4% (12/500) 2.6% (13/500) 2.4% (12/500) 1.2% (6/500) 1.2% (6/500) 1.2% (6/500)
Valid SQL Rate 91.8% (459/500) 95.4% (477/500) 96.0% (480/500) 72.0% (360/500) 84.2% (421/500) 56.2% (281/500)
Wildcard Rate (SELECT *) 0.0% (0/495) 0.0% (0/498) 0.0% (0/496) 0.4% (2/483) 0.0% (0/495) 0.0% (0/478)

Component Matching F1 (bird_mini_dev, n = 500)

Every single one of the 500/500 (100.0%) gold SQLite queries in bird_mini_dev parses and decomposes cleanly through matching.py—whereas taoyds/spider/process_sql.py fails on >90% and flat-dict lowering fails on 75.2% (376/500).

Component seeklhy/OmniSQL-14B seeklhy/OmniSQL-32B Snowflake/Arctic-Text2SQL-R1-7B Qwen/Qwen2.5-Coder-7B-Instruct griffith-bigdata/FINER-SQL-3B-v2 Qwen/Qwen2.5-Coder-3B-Instruct
select 0.326 0.327 0.343 0.275 0.279 0.219
select(no AGG) 0.328 0.327 0.345 0.279 0.281 0.219
where 0.134 0.140 0.153 0.111 0.126 0.102
where(no OP) 0.194 0.187 0.202 0.146 0.155 0.129
group(no Having) 0.481 0.486 0.486 0.444 0.420 0.352
group 0.342 0.350 0.355 0.311 0.303 0.215
order 0.149 0.147 0.148 0.105 0.097 0.085
and/or 0.650 0.676 0.680 0.614 0.640 0.655
IUEN 0.000 0.000 0.000 0.000 0.000 0.000
keywords 0.292 0.313 0.299 0.270 0.241 0.271
cte 0.007 0.014 0.000 0.000 0.000 0.000

Bug Fix Visible in Real Numbers

In upstream taoyds/spider/evaluation.py:604-605, IUEN across all six models (and cte across four of the six models, with 0.2%–11.8% CTE rate vs. 30.0% in gold) would have reported 1.000 because precision = 0.0 and recall = 0.0 despite emitted CTE or IUEN clauses. Fixing the zero-match F1 condition reports the true 0.000 score while OmniSQL-14B (26.6% CTE rate) records 0.007 and OmniSQL-32B (28.4% CTE rate) records 0.014.