Datasets:
dataset_name large_stringclasses 2
values | split large_stringclasses 1
value | prompt_raw large_stringlengths 583 9k | messages listlengths 2 2 | question large_stringlengths 19 325 | sample_id int64 0 9.43k | db_id large_stringclasses 215
values | groundtruth_sqls listlengths 1 49 | k_init int64 0 7 | k_ref int64 0 8 | bin large_stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|---|---|
bird | train | Database Schema:
Table jobs: This table defines various job roles within the company, including their descriptions, unique identifiers, and the minimum and maximum levels associated with each position.
jobs.min_lvl: INTEGER - min level
Sample values: "10"
jobs.job_desc: TEXT - job description
Sample values... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Calculate the percentage of the employees who are Editor or Designer? | 196 | book_publishing_company | [
"SELECT CAST(SUM(CASE WHEN T2.job_desc IN ('Editor', 'Designer') THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.job_id) FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id",
"SELECT SUM(CASE WHEN jobs.job_desc IN ('Editor', 'Designer') THEN 1 ELSE 0 END) * 100.0 / COUNT(employee.emp_id) FROM employee... | 5 | 5 | LEARNABLE |
bird | train | Database Schema:
Table actors: This table contains information about actors, including their gender, quality rating, and unique identifier.
actors.actorid: INTEGER PRIMARY KEY - actor id
Sample values: "4"
actors.a_gender: TEXT - actor gender
Sample values: "M"
Value description: M: male; F: female
... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List down 5 non English adventure movies from UK? | 2,273 | movielens | [
"SELECT T1.movieid FROM movies2directors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'UK' AND T1.genre = 'Adventure' AND T2.isEnglish = 'F' LIMIT 5",
"SELECT m.movieid\nFROM movies AS m\nJOIN movies2directors AS d ON m.movieid = d.movieid\nWHERE m.country = 'UK'\n AND m.isEnglish ... | 5 | 4 | LEARNABLE |
spider | train | Database Schema:
Table school
school.Location: TEXT - location
Sample values: "Honolulu, Hawaii"
school.Type: TEXT - type
Sample values: "Public"
school.School_ID: INT PRIMARY KEY - school id
Sample values: "1"
school.Grade: TEXT - grade
Sample values: "Kindergarten"
school.School: TEXT - sch... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the party with drivers from Hartford and drivers older than 40. | 6,354 | school_bus | [
"SELECT party FROM driver WHERE home_city = 'Hartford' AND age > 40",
"SELECT d.Party FROM driver d WHERE d.Home_city IN ('Hartford', 'East Hartford') AND d.Age > 40",
"SELECT Party FROM driver WHERE Home_city LIKE 'Hart%' AND Age > 40",
"SELECT d.Party FROM driver d WHERE d.Home_city = 'Hartford' AND d.A... | 1 | 0 | LEARNABLE |
spider | train | Database Schema:
Table employees
employees.SALARY: DECIMAL(8,2) - salary
Sample values: "24000"
employees.MANAGER_ID: DECIMAL(6,0) - manager id
Sample values: "0"
employees.COMMISSION_PCT: DECIMAL(2,2) - commission pct
Sample values: "0"
employees.JOB_ID: VARCHAR(10) - job id
Sample values: "AD... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which employees were hired after September 7th, 1987? | 3,440 | hr_1 | [
"SELECT * FROM employees WHERE hire_date > '1987-09-07'"
] | 1 | 0 | LEARNABLE |
spider | train | Database Schema:
Table basketball_match
basketball_match.ACC_Home: TEXT - acc home
Sample values: "6–2"
basketball_match.All_Games: TEXT - all games
Sample values: "35–2"
basketball_match.Team_ID: INT PRIMARY KEY - team id
Sample values: "1"
basketball_match.All_Neutral: TEXT - all neutral
Samp... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the total and minimum enrollment of all schools? | 999 | university_basketball | [
"SELECT sum(enrollment) , min(enrollment) FROM university",
"SELECT SUM(enrollment) AS Total, MIN(enrollment) AS Minimum FROM university",
"SELECT SUM(Enrollment) AS total_enrollment, MIN(Enrollment) AS min_enrollment FROM university",
"SELECT SUM(CAST(Enrollment AS REAL)) AS total_enrollment, MIN(Enrollment... | 4 | 4 | LEARNABLE |
spider | train | Database Schema:
Table roller_coaster
roller_coaster.Country_ID: INT - country id
Sample values: "1"
roller_coaster.Length: REAL - length
Sample values: "3236.0"
roller_coaster.Speed: TEXT - speed
Sample values: "51"
roller_coaster.Height: REAL - height
Sample values: "96.0"
roller_coaster.Na... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the names of countries and the average speed of roller coasters from each country. | 6,217 | roller_coaster | [
"SELECT T1.Name , avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name",
"SELECT c.Name, AVG(rc.Speed) AS avg_speed FROM country c JOIN roller_coaster rc ON rc.Country_ID = c.Country_ID GROUP BY c.Name",
"SELECT c.Name, AVG( CAST(rc.Speed AS REAL) ) AS ... | 7 | 5 | LEARNABLE |
bird | train | Database Schema:
Table game_platform: This table records the platforms on which games published by specific publishers were released, along with their release years.
game_platform.game_publisher_id: INTEGER - game publisher id
Sample values: "8564"
game_platform.id: INTEGER PRIMARY KEY
Sample values: "1"
... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What genres are the games published by 'Agatsuma Entertainment'? | 3,437 | video_games | [
"SELECT T4.genre_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T1.publisher_name = 'Agatsuma Entertainment'",
"SELECT DISTINCT g.genre_name\nFROM publisher p\nJOIN game_publisher ... | 1 | 1 | LEARNABLE |
bird | train | Database Schema:
Table Crime: This table records detailed information about individual crime incidents in Chicago, including location, date, type, and arrest status.
Crime.report_no: INTEGER PRIMARY KEY - report number
Sample values: "23757"
Crime.domestic: TEXT
Sample values: "FALSE"
Crime.district_no: ... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many incidents are considered "severe" in the IUCR classification? | 8,758 | chicago_crime | [
"SELECT COUNT(*) FROM IUCR WHERE index_code = 'I'",
"SELECT COUNT(*) AS severe_incidents_count\nFROM IUCR\nWHERE index_code = 'I';",
"SELECT COUNT(*) AS severe_incidents\nFROM IUCR\nWHERE index_code = 'I';",
"SELECT COUNT(DISTINCT iucr_no) AS severe_incidents\nFROM IUCR\nWHERE index_code = 'I';",
"SELECT CO... | 3 | 4 | LEARNABLE |
bird | train | Database Schema:
Table ProductSubcategory: This table categorizes products into subcategories, linking each to a product category and tracking the last modification date.
ProductSubcategory.Name: TEXT
Sample values: "Caps", "Mountain Bikes"
ProductSubcategory.ProductCategoryID: INTEGER - Product Category ID
... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the order reference number for the "Mountain End Caps" product? | 7,361 | works_cycles | [
"SELECT T2.ReferenceOrderID FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Mountain End Caps'",
"SELECT th.ReferenceOrderID\nFROM TransactionHistory AS th\nJOIN Product AS p ON th.ProductID = p.ProductID\nWHERE p.Name = 'Mountain End Caps';",
"SELECT TH.Re... | 1 | 2 | LEARNABLE |
spider | train | Database Schema:
Table student
student.ID: VARCHAR(5) PRIMARY KEY - id
Sample values: "1000"
student.dept_name: VARCHAR(20) - department name
Sample values: "History"
Table classroom
classroom.capacity: NUMERIC(4,0)
Sample values: "10"
classroom.building: VARCHAR(15) PRIMARY KEY
Sample values:... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students? | 1,329 | college_2 | [
"SELECT building , room_number FROM classroom WHERE capacity BETWEEN 50 AND 100",
"SELECT building, room_number FROM classroom WHERE capacity BETWEEN 50 AND 100"
] | 1 | 3 | LEARNABLE |
bird | train | Database Schema:
Table patients: This table contains detailed demographic and identification information for individuals receiving healthcare services.
patients.address: TEXT
Sample values: "87074 Koss Valleys Grafton MA 01519 US", "232 Koss Bridge Apt. 470 Groveland MA 01834 US"
patients.prefix: TEXT
Samp... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Why did Elly Koss need to take Acetaminophen? | 1,366 | synthea | [
"SELECT T2.REASONDESCRIPTION FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.description LIKE 'Acetaminophen%'",
"SELECT DISTINCT medications.reasondescription FROM patients INNER JOIN medications ON patients.patient = medications.pat... | 6 | 5 | LEARNABLE |
bird | train | Database Schema:
Table RA: This table records the capabilities, associated professor IDs, salary levels, and student IDs of research assistants.
RA.capability: INTEGER
Sample values: "2"
Value description: higher --> higher research ability / capability
RA.salary: TEXT
Sample values: "med"
Value de... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Find the university from which the professor who advised most undergraduate students graduated. | 956 | cs_semester | [
"SELECT T1.graduate_from FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.type = 'UG' GROUP BY T1.prof_id ORDER BY COUNT(T2.student_id) DESC LIMIT 1",
"SELECT prof.graduate_from FROM prof INNER JOIN ra ON prof.prof_id = ra.prof_id IN... | 2 | 3 | LEARNABLE |
bird | train | Database Schema:
Table alias: This table stores alternative names or aliases associated with specific zip codes.
alias.zip_code: INTEGER PRIMARY KEY - zip code
Sample values: "501"
Table zip_data: This table provides demographic, economic, and geographic data associated with specific ZIP codes, including popula... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many cities does congressman Pierluisi Pedro represent? | 5,193 | address | [
"SELECT COUNT(DISTINCT T1.city) FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T3.first_name = 'Pierluisi' AND T3.last_name = 'Pedro'",
"SELECT COUNT(DISTINCT z.city) AS city_count\nFROM congress c\nJOIN zip_congre... | 0 | 3 | HARD_reachable |
bird | train | Database Schema:
Table film: This table stores detailed information about films, including their titles, descriptions, release years, languages, durations, ratings, rental terms, costs, and special features.
film.rental_duration: INTEGER - rental duration
Sample values: "6"
Value description: commonsense evi... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Compute the total payment made by Sarah Lewis for film rentals so far. | 9,364 | movie_3 | [
"SELECT SUM(T3.amount) FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id INNER JOIN payment AS T3 ON T1.rental_id = T3.rental_id WHERE T2.first_name = 'SARAH' AND T2.last_name = 'LEWIS'",
"SELECT SUM(p.amount) AS total_payment\nFROM payment p\nJOIN customer c ON p.customer_id = c.cust... | 7 | 8 | LEARNABLE |
spider | train | Database Schema:
Table Tourist_Attraction_Features
Tourist_Attraction_Features.Feature_ID: INTEGER PRIMARY KEY - feature id
Sample values: "528"
Tourist_Attraction_Features.Tourist_Attraction_ID: INTEGER PRIMARY KEY - tourist attraction id
Sample values: "5076"
Table Locations
Locations.Other_Details: V... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find all the distinct visit dates. | 5,908 | cre_Theme_park | [
"SELECT DISTINCT Visit_Date FROM VISITS",
"SELECT DISTINCT Visit_Date FROM Visits ORDER BY Visit_Date"
] | 6 | 5 | LEARNABLE |
spider | train | Database Schema:
Table Student
Student.Age: INTEGER - age
Sample values: "18"
Student.city_code: VARCHAR(3) - city code
Sample values: "BAL"
Student.Fname: VARCHAR(12) - first name
Sample values: "Linda"
Student.Major: INTEGER - major
Sample values: "600"
Student.StuID: INTEGER PRIMARY KEY - ... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Who are the members of the club named "Bootup Baltimore"? Give me their last names. | 4,259 | club_1 | [
"SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"",
"SELECT DISTINCT s.LName FROM Member_of_club m JOIN Student s ON s.StuID = m.StuID JOIN Club c ON c.ClubID = m.ClubID WHERE c.ClubName = 'B... | 5 | 8 | LEARNABLE |
bird | train | Database Schema:
Table donations: This table records detailed information about individual donations, including amounts, payment methods, donor details, messages, and timestamps.
donations.projectid: TEXT - project id
Sample values: "ffffac55ee02a49d1abc87ba6fc61135"
donations.donor_city: TEXT - donor city
... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | State the number of public magnet schools in New York Manhattan. | 3,228 | donor | [
"SELECT COUNT(schoolid) FROM projects WHERE school_county = 'New York (Manhattan)' AND school_magnet = 't'",
"SELECT COUNT(DISTINCT projectid) AS num_schools FROM projects WHERE school_magnet = 't' AND school_city = 'New York' AND school_county = 'New York (Manhattan)';",
"SELECT COUNT(*) AS num_public_magnets_... | 1 | 0 | LEARNABLE |
spider | train | Database Schema:
Table mission
mission.Launched_Year: INT - launched year
Sample values: "1930"
mission.Speed_knots: INT - speed knots
Sample values: "25"
mission.Location: TEXT - location
Sample values: "Germany"
mission.Mission_ID: INT PRIMARY KEY - mission id
Sample values: "1"
mission.Fat... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the most common type of ships? | 4,013 | ship_mission | [
"SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1",
"SELECT Type FROM ship GROUP BY Type ORDER BY COUNT(*) DESC, Type LIMIT 1",
"SELECT s.Type FROM ship s GROUP BY s.Type ORDER BY COUNT(*) DESC LIMIT 1",
"SELECT Type FROM ship WHERE Type IS NOT NULL GROUP BY Type ORDER BY COUNT(*) DESC LIMIT... | 7 | 8 | LEARNABLE |
spider | train | Database Schema:
Table Students
Students.personal_name: VARCHAR(40) - personal name
Sample values: "Wilson"
Students.login_name: VARCHAR(40) - login name
Sample values: "annamae.hoppe"
Students.student_id: INTEGER PRIMARY KEY - student id
Sample values: "1"
Table Courses
Courses.subject_id: INTEGE... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the number of distinct courses that have enrolled students. | 3,783 | e_learning | [
"SELECT count(course_id) FROM Student_Course_Enrolment",
"SELECT COUNT(*) AS number_of_courses_with_students FROM Student_Course_Enrolment"
] | 5 | 8 | LEARNABLE |
bird | train | Database Schema:
Table Keyword: This table associates specific keywords with individual episodes identified by their unique episode IDs.
Keyword.episode_id: TEXT PRIMARY KEY - episode id
Sample values: "tt0629239"
Keyword.keyword: TEXT PRIMARY KEY
Sample values: "nun"
Table Episode: This table contains de... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Describe what happened in the episode of award no.296. | 1,262 | law_episode | [
"SELECT T1.summary FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.award_id = 296",
"SELECT episode.summary FROM episode INNER JOIN award ON episode.episode_id = award.episode_id WHERE award.award_id = 296;",
"SELECT episode.summary FROM award INNER JOIN episode ON award.epis... | 4 | 6 | LEARNABLE |
spider | train | Database Schema:
Table Customer
Customer.Phone: VARCHAR(24) - phone
Sample values: "+55 (12) 3923-5555"
Contains null values: True
Customer.CustomerId: INTEGER PRIMARY KEY - customer id
Sample values: "1"
Customer.Email: VARCHAR(60) - email
Sample values: "luisg@embraer.com.br"
Customer.Fax: VA... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the first name and last name of the customer that has email "luisg@embraer.com.br"? | 845 | chinook_1 | [
"SELECT FirstName , LastName FROM CUSTOMER WHERE Email = \"luisg@embraer.com.br\"",
"SELECT FirstName, LastName FROM Customer WHERE Email = 'luisg@embraer.com.br'",
"SELECT c.FirstName, c.LastName FROM Customer c WHERE c.Email = 'luisg@embraer.com.br'"
] | 6 | 7 | LEARNABLE |
BIRD and Spider training samples selected by model difficulty
The training subset contains 9,687 examples: 5,100 BIRD train and 4,587 Spider train. It removes examples answered correctly in all eight observed samples by the released FINER-SQL 0.5B BIRD model. Difficulty is measured from model outputs, rather than SQL length or a required number of joins.
This is a dataset release requested by its owner. The selection rule has not been established to preserve or improve downstream accuracy; the earlier small pilot described below failed its Spider accuracy criterion.
Configurations
| Configuration | Rows | BIRD train | Spider train |
|---|---|---|---|
train_hard (default) |
9,687 | 5,100 | 4,587 |
train_all_labelled |
18,087 | 9,428 | 8,659 |
train_hard_ori_screened |
9,687 | 5,100 | 4,587 |
train_hard_core_screened |
9,687 | 5,100 | 4,587 |
spurious500_ori |
500 | 329 | 171 |
spurious500_core |
500 | 329 | 171 |
The default configuration is the selected training set. The second configuration preserves every source example, including those excluded from training, so the selection can be inspected. Neither configuration contains a dev/test split.
from datasets import load_dataset
train = load_dataset("thanhdath/bird-spider-rl-hard-train",
"train_hard", split="train")
Selection rule
k_init counts original-database execution matches among eight samples from
griffith-bigdata/FINER-SQL-0.5B-BIRD. k_ref is the same measurement for a
0.5B policy continued on original databases, AP24 checkpoint 828.
Keep an example exactly when:
gold_valid and k_init <= 7 and (k_init >= 1 or k_ref >= 1)
- 8,802 examples have
1 <= k_init <= 7: the initialization sometimes succeeds and sometimes fails. - 885 examples have
k_init = 0andk_ref >= 1: the initialization failed all eight draws, while the reference policy solved at least one draw. - The selected set contains zero examples with
k_init = 8.
All original source fields and selected row order are preserved: dataset_name,
split, prompt_raw, messages, question, sample_id, db_id, and
groundtruth_sqls. The subset adds k_init, k_ref, and bin. It includes the
full prompt messages, question and gold SQL; it does not bundle database files.
The full labelled configuration additionally contains the membership flag
r2_keep, gold execution status and exclusion reasons, and SQL-structure
descriptors. Structural descriptors are for inspection; they do not filter rows.
Exclusions and interpretation
| Bin in the full source corpus | Rows | Included in train_hard |
|---|---|---|
LEARNABLE: valid gold, 1–7 initialization matches |
8,802 | Yes |
HARD_reachable: valid gold, 0 initialization matches, reference succeeds |
885 | Yes |
EASY: valid gold, 8 initialization matches |
2,528 | No |
NEVER_SOLVED: valid gold, no match in either policy's eight draws |
3,265 | No |
INVALID: unusable gold execution under the fixed rules |
2,607 | No |
Eight successful draws do not prove an example will always be correct.
NEVER_SOLVED means zero of sixteen observed draws, not that learning the
example is impossible. Difficulty is specific to the two measured 0.5B policies;
it has not been measured for 1.5B or 3B models.
Gold validity excludes execution errors/timeouts at the reward limit, empty
results, all-NULL results, and results reaching the 10,000-row cap. The full
configuration preserves all 366 rows with unknown k_init/k_ref values as
null, rather than replacing unknown values with zero. Existing ORDER/LIMIT tie and bare-aggregate flags are
retained for inspection and are not additional selection filters.
Execution agreement is measured on original training databases, not CoRE databases. A match is not a proof of semantic equivalence. The frozen labeller uses BIRD set-result comparison and Spider's evaluation-aligned comparison, including its existing DISTINCT handling. This release changes neither SQL nor the comparator and introduces no DISTINCT-specific selection rule. Selecting this dataset is not evidence that CoRE training outperforms original-DB training.
Provenance and reproducibility
The source is an existing joint BIRD/Spider training corpus of 18,087 rows. The initialization labels use the released FINER-SQL weights, not the earlier SQL-Writer SFT model. Both policies were decoded with eight samples per prompt, temperature 1.0, top-p 1.0, seed 4242, and maximum completion length 2,048 tokens: 144,696 recorded samples per policy. No new model generation, sampling sweep or training run was performed for this upload.
- Initialization weights MD5:
22c730ffe79fdcdd7a935ff6f03d790e. - Reference weights SHA-256:
38b89afd56b61410e0b3ba72590f24242f7c25b74fd56955befc46ec78be41f1. - Source Arrow SHA-256:
2e203ca0789f7b6f23c466bd23d9cd1286e437586defb1345736139060c1db16.
STATS_v1.json records file hashes and composition; VALIDATION.json records
independent membership, label-provenance, train-split and exact source-value
checks. Scalar Arrow strings widen to Parquet large_string; logical source
values and nested list fields are preserved.
Reference-screened configurations (2026-10-23)
train_hard_ori_screened and train_hard_core_screened are the same 9,687 rows,
in the same order and with the same columns as train_hard. Only
groundtruth_sqls differs. Its first entry is still the original BIRD/Spider
gold, unchanged. The entries after it are the alternative reference SQLs that
the atomic-operations reward compares against.
How the screen works. Each reference was run as if it were a model
prediction, using the FINER-SQL trainer's own verdict function
(check_sql_correct in grpo_writer.py: 60 s timeout, 10,000-row cap, row-set
comparison, and the rule that an unusable gold can never certify a prediction).
Each reference was compared against the gold on that configuration's
databases. A reference was kept only when the trainer judged it correct.
References that returned different rows, failed to run, or timed out were
removed.
train_hard_ori_screened: screened on the original BIRD-train and Spider-train databases (215 databases).train_hard_core_screened: screened on the CoRE bundle tree BJ (724 SQLite databases, digest69a2e60923e2d900764fda6d9c88265c; 215 base databases, each bundled with its CoRE members). A reference is kept only when its rows equal the gold's on the base database and on every bundle member.
ORI arms must train on train_hard_ori_screened, and CoRE arms on
train_hard_core_screened. The two reference lists differ because a
reference can match the gold on the original data but not on the CoRE
databases.
| ORI screened | CoRE screened | |
|---|---|---|
| Rows | 9,687 | 9,687 |
| References in | 122,714 | 122,714 |
| References kept | 122,710 | 106,808 |
| References dropped (result mismatch) | 4 (0.003%) | 15,906 (12.962%) |
| Dropped: execution error / timeout / unusable gold | 0 / 0 / 0 | 0 / 0 / 0 |
| BIRD references kept / in | 78,169 / 78,173 | 67,273 / 78,173 |
| Spider references kept / in | 44,541 / 44,541 | 39,535 / 44,541 |
| Rows left with the gold only (screen) | 0 | 261 |
Rows with the gold only already in train_hard |
468 | 468 |
Checks: every one of the 8,055 distinct golds is judged correct when scored as
its own prediction in both settings, and 50 randomly chosen kept references gave
the same verdict when scored a second time. All 4 ORI drops are references for
one BIRD question (sample 8323, mondial_geo). Its gold selects two columns
named Name; these merge into one column in the comparator's row records, so
no two-column reference can match it.
| File | SHA-256 |
|---|---|
data/train_hard_ori_screened.parquet |
a787785cac513f08f22596fb3e49eb14006631f0761133f013e278333e656d04 |
data/train_hard_core_screened.parquet |
3d005e30ad9563c8269551a4c96d222438a8a8f6f953f5156b851184b0b29c31 |
screen receipt, ORI (RECEIPT_ori.json) |
53bdc9b54b4f606d74219eb0a775adf7c5d142ea423f6d2ecca312b558e60c13 |
screen receipt, CoRE (RECEIPT_core.json) |
7fb01d5f552b994987b9107329039b79eb5f39fe268920ef9721f5ef646671b6 |
input data/train_hard.parquet |
1e5a7dd375424c3dd21a742ffed4a0480393b514fa87f9004ec52a80b21b7fe7 |
Prior pilot: accuracy was not preserved on Spider
An earlier, different experiment applied this fixed rule to a 2,208-example random sample. It retained 1,419 examples; this 9,687-example full subset has not itself been evaluated in a matched training experiment.
| Original-DB arm | Training steps | BIRD dev / 1,534 | Spider dev / 1,034 |
|---|---|---|---|
| Full random sample, APRAND | 1,104 | 602 (39.24%) | 694 (67.12%) |
| Selected random subset, AHRAND | 712 | 613 (39.96%) | 674 (65.18%) |
The selected pilot used 35.5% fewer optimizer steps, gained 0.72 percentage points on BIRD, and lost 1.93 points on Spider. It failed the fixed criterion of at most 0.5 points lost on either benchmark. Step reduction alone is not an end-to-end speedup or accuracy improvement. Selection costs are separate from training cost.
The source questions and SQL retain their upstream BIRD and Spider terms; this release does not assign a new license to those source contents.
Spurious-correctness subsets (spurious500_ori, spurious500_core)
These are 500 prompts from train_hard, picked for having the most references that match the gold on the original databases but not on the CoRE databases. For each prompt, the selection counts that prompt's references in the CoRE screen's dropped list. Prompts are ranked by that count, then by the dropped fraction, then by sample_id (ascending), then by dataset_name (ascending). Prompts whose gold is not usable in either GT cache, and prompts with no dropped reference, are excluded. Both configurations hold the same 500 rows in the original file order. spurious500_ori takes each row's references from train_hard_ori_screened, and spurious500_core takes them from train_hard_core_screened. Dropped references per prompt: min 11, median 16, max 38. The rule, counts and examples are in selection/SELECTION.md, and the hashes are in selection/RECEIPT.json.
- Downloads last month
- 79