﻿# Spider: evaluate SQL on unseen database schemas

Evaluate Spider 1.0 schema generalization with preserved database identities, original schema names, explicit value access, and a versioned SQL scorer.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-spider-database-disjoint-split/
Language: en

## Identify Spider 1.0 and its corrected release

The [owner task page](https://yale-lily.github.io/spider) distinguishes Spider 1.0 from the separate Spider 2.0 successor. It also records corrections to annotations and database files and states that the earlier leaderboard is no longer accepting updates. A reproducible local comparison should name the selected 1.0 artifact and scorer rather than imply a new official submission. Historical scores can refer to different corrected populations. Save the actual release identity with predictions before interpreting a change as a model improvement.

## Preserve the database as the partition unit

Spider's cross-domain design separates databases across the relevant training and test partitions. A question still arrives with its target schema; the challenge is using unfamiliar tables and relationships. The [dataset repository](https://github.com/taoyds/spider) joins question records to schemas through `db_id`, with `question`, `query`, and parsed `sql` serving different roles. Splitting questions randomly after merging all databases changes the generalization target. Keep database groups intact and apply [leakage checks](/journal/document-level-data-split-leakage/) to any added demonstrations or synthetic examples.

## Distinguish display names from executable identifiers

The schema document separates original table/column names from cleaned names, with column types, primary keys, and foreign-key index relationships. Cleaned names can help the model interpret meaning, but generated SQL must resolve to actual database identifiers. Preserve the index-to-table association when serializing columns; a bare list of names loses which table owns a repeated column. Use [provenance records](/journal/document-markdown-json-provenance/) to track schema normalization separately from the immutable SQLite artifact used for execution.

## State how condition values are obtained

The repository discusses copying question values, retrieving database contents, and generating values. The [test-suite evaluator](https://github.com/taoyds/test-suite-sql-eval) separately supports plugging reference values into a predicted query or requiring the model to predict them. These are different information conditions. Record the value mode and treatment of `DISTINCT` along with the metric. A system receiving reference constants has not demonstrated the same value grounding as one deriving them from the available question and database material.

## Interpret test-suite accuracy as finite evidence

Exact set matching compares structured clauses, while test-suite evaluation executes against the supplied test databases. The latter can expose accidental agreement on one database instance, but it remains a finite semantic test rather than a proof of query equivalence. Keep scorer revision, database package, failures, and prediction order. Spider is useful for studying multi-table schema grounding and complex query generation under a controlled release. Its score does not establish correctness on arbitrary enterprise schemas or execution engines with different dialect and data assumptions.
