Slim case-by-case CSVs under 1MB for HF blob preview; official sample ids (question_id/instance_id) + n_schema_columns in eval sets; unified o4-mini gold-construction description; document schemas/ join
Browse files- README.md +17 -12
- comparison_with_prior_golds_by_lexical_matches/bird_dev_case_by_case.csv +0 -0
- comparison_with_prior_golds_by_lexical_matches/spider_dev_case_by_case.csv +0 -0
- evaluation_set/bird_dev.csv +0 -0
- evaluation_set/check_gold.py +2 -2
- evaluation_set/spider2_lite_256.csv +0 -0
- evaluation_set/spider_dev.csv +0 -0
README.md
CHANGED
|
@@ -43,7 +43,9 @@ evaluation_set/
|
|
| 43 |
check_gold.py gold-error checker: every gold set non-empty and
|
| 44 |
every gold column present in the database schema
|
| 45 |
(all four sets pass with 0 errors)
|
| 46 |
-
schemas/
|
|
|
|
|
|
|
| 47 |
comparison_with_prior_golds_by_lexical_matches/
|
| 48 |
{spider,bird}_dev_case_by_case.csv per-question comparison with the prior
|
| 49 |
released gold labels (lexical matching);
|
|
@@ -52,19 +54,22 @@ comparison_with_prior_golds_by_lexical_matches/
|
|
| 52 |
summary_statistics.csv aggregate numbers
|
| 53 |
```
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
## How the gold was built
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
criteria from the shipped files.
|
| 68 |
|
| 69 |
## Citation
|
| 70 |
|
|
|
|
| 43 |
check_gold.py gold-error checker: every gold set non-empty and
|
| 44 |
every gold column present in the database schema
|
| 45 |
(all four sets pass with 0 errors)
|
| 46 |
+
schemas/ full schema list per database (db_id -> columns);
|
| 47 |
+
join on each row's db_id to get the schema of that
|
| 48 |
+
sample; what check_gold.py validates against
|
| 49 |
comparison_with_prior_golds_by_lexical_matches/
|
| 50 |
{spider,bird}_dev_case_by_case.csv per-question comparison with the prior
|
| 51 |
released gold labels (lexical matching);
|
|
|
|
| 54 |
summary_statistics.csv aggregate numbers
|
| 55 |
```
|
| 56 |
|
| 57 |
+
Sample identifiers match the original benchmarks: `question_id` = the official BIRD dev
|
| 58 |
+
`question_id` / the Spider dev row index; `instance_id` = the official Spider 2.0-Lite/Snow
|
| 59 |
+
instance id. Every row carries `db_id`; its full schema is `schemas/<set>_schemas.json[db_id]`.
|
| 60 |
+
|
| 61 |
## How the gold was built
|
| 62 |
|
| 63 |
+
One pipeline for all three benchmarks: **o4-mini** extracts the columns the released gold SQL
|
| 64 |
+
uses, given the SQL plus the database schema; the output then goes through multi-step
|
| 65 |
+
post-processing to guarantee: every gold column exists in the schema (0 invalid), no empty gold
|
| 66 |
+
set, byte-exact provenance to a released gold SQL, and a per-instance audit of every label
|
| 67 |
+
(parser cross-check; a table referenced only via `COUNT(*)`/`SELECT *` is represented by its
|
| 68 |
+
primary key). The only Spider 2.0-specific step happens first: shard tables are grouped into
|
| 69 |
+
schema-node families (`events_20201101`, … → `events_*`). `check_gold.py` re-verifies the
|
| 70 |
+
schema-membership and non-emptiness criteria directly from the shipped files. Prior released
|
| 71 |
+
golds for Spider/BIRD were built by lexical name matching, which credits a name to every table
|
| 72 |
+
containing it — the case-by-case CSVs list each resulting error.
|
|
|
|
| 73 |
|
| 74 |
## Citation
|
| 75 |
|
comparison_with_prior_golds_by_lexical_matches/bird_dev_case_by_case.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
comparison_with_prior_golds_by_lexical_matches/spider_dev_case_by_case.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation_set/bird_dev.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation_set/check_gold.py
CHANGED
|
@@ -55,12 +55,12 @@ def check_flat(rows, schemas):
|
|
| 55 |
for r in rows:
|
| 56 |
cols = [c for c in r["gold_columns"].split("; ") if c]
|
| 57 |
if not cols:
|
| 58 |
-
bad.append((r["
|
| 59 |
continue
|
| 60 |
schema = set(schemas.get(r["db_id"], []))
|
| 61 |
miss = [c for c in cols if c not in schema]
|
| 62 |
if miss:
|
| 63 |
-
bad.append((r["
|
| 64 |
return bad
|
| 65 |
|
| 66 |
|
|
|
|
| 55 |
for r in rows:
|
| 56 |
cols = [c for c in r["gold_columns"].split("; ") if c]
|
| 57 |
if not cols:
|
| 58 |
+
bad.append((r["question_id"], r["db_id"], "EMPTY_GOLD", ""))
|
| 59 |
continue
|
| 60 |
schema = set(schemas.get(r["db_id"], []))
|
| 61 |
miss = [c for c in cols if c not in schema]
|
| 62 |
if miss:
|
| 63 |
+
bad.append((r["question_id"], r["db_id"], "NOT_IN_SCHEMA", "|".join(miss)))
|
| 64 |
return bad
|
| 65 |
|
| 66 |
|
evaluation_set/spider2_lite_256.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation_set/spider_dev.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|