image
imagewidth (px)
156
1.54k
id
stringlengths
19
19
level
int32
1
6
level_name
stringclasses
6 values
kind
stringclasses
4 values
source_db
stringclasses
139 values
sql
stringlengths
125
2.85k
scene
stringlengths
221
2.98k
num_tol_abs
float32
0
40M
recall_only
bool
1 class
train_s000_L3_00085
3
hierarchical
table
race_track
CREATE TABLE track ( year_opened INTEGER, name TEXT, location TEXT, seating INTEGER ); INSERT INTO track (year_opened, name, location, seating) VALUES (1947, 'Martinsville Speedway', 'Ridgeway, VA', 65000), (1950, 'Darlington Raceway', 'Darlington, SC', 63000), (1959, 'Daytona International Speedway', 'Daytona ...
{"db_id": "race_track", "tables": [{"name": "track", "columns": [{"name": "year_opened", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}, {"name": "location", "type": "TEXT"}, {"name": "seating", "type": "INTEGER"}], "rows": [[1947, "Martinsville Speedway", "Ridgeway, VA", 65000], [1950, "Darlington Raceway", "Dar...
0
false
train_s000_L3_00086
3
hierarchical
table
tracking_grants_for_research
CREATE TABLE projects ( organisation_id INTEGER, project_details TEXT, project_id INTEGER PRIMARY KEY ); INSERT INTO projects (organisation_id, project_details, project_id) VALUES (1, 'ad', 8), (1, 'beatae', 14), (10, 'deserunt', 6), (11, 'vel', 5), (11, 'et', 2), (12, 'omnis', 12), (13, 'impedit', 11), (15, 'por...
{"db_id": "tracking_grants_for_research", "tables": [{"name": "projects", "columns": [{"name": "organisation_id", "type": "INTEGER"}, {"name": "project_details", "type": "TEXT"}, {"name": "project_id", "type": "INTEGER"}], "rows": [[1, "ad", 8], [1, "beatae", 14], [10, "deserunt", 6], [11, "vel", 5], [11, "et", 2], [12...
0
false
train_s000_L3_00087
3
hierarchical
table
storm_record
CREATE TABLE affected_region ( region_id INTEGER, storm_id INTEGER, number_city_affected INTEGER ); INSERT INTO affected_region (region_id, storm_id, number_city_affected) VALUES (1, 4, 22), (2, 1, 15), (2, 5, 12), (3, 3, 30);
{"db_id": "storm_record", "tables": [{"name": "affected_region", "columns": [{"name": "region_id", "type": "INTEGER"}, {"name": "storm_id", "type": "INTEGER"}, {"name": "number_city_affected", "type": "INTEGER"}], "rows": [[1, 4, 22], [2, 1, 15], [2, 5, 12], [3, 3, 30]], "primary_key": null}], "foreign_keys": []}
0
false
train_s000_L3_00088
3
hierarchical
table
department_store
CREATE TABLE supplier_addresses ( supplier_id INTEGER, date_from TEXT, date_to TEXT, address_id INTEGER ); INSERT INTO supplier_addresses (supplier_id, date_from, date_to, address_id) VALUES (2, '2015-03-16 19:30:29', '2018-03-24 00:14:45', 11), (3, '2014-11-07 19:18:49', '2018-03-16 16:39:58', 9), (3, '2008-11...
{"db_id": "department_store", "tables": [{"name": "supplier_addresses", "columns": [{"name": "supplier_id", "type": "INTEGER"}, {"name": "date_from", "type": "TEXT"}, {"name": "date_to", "type": "TEXT"}, {"name": "address_id", "type": "INTEGER"}], "rows": [[2, "2015-03-16 19:30:29", "2018-03-24 00:14:45", 11], [3, "201...
0
false
train_s000_L3_00089
3
hierarchical
table
game_1
CREATE TABLE plays_games ( stu_id INTEGER, game_id INTEGER, hours_played INTEGER ); INSERT INTO plays_games (stu_id, game_id, hours_played) VALUES (1001, 1, 35), (1001, 2, 15), (1001, 5, 1), (1007, 4, 1000), (1008, 3, 50), (1008, 5, 50), (1010, 6, 1337), (1032, 3, 100), (1032, 2, 10), (1032, 1, 47);
{"db_id": "game_1", "tables": [{"name": "plays_games", "columns": [{"name": "stu_id", "type": "INTEGER"}, {"name": "game_id", "type": "INTEGER"}, {"name": "hours_played", "type": "INTEGER"}], "rows": [[1001, 1, 35], [1001, 2, 15], [1001, 5, 1], [1007, 4, 1000], [1008, 3, 50], [1008, 5, 50], [1010, 6, 1337], [1032, 3, 1...
0
false
train_s000_L3_00090
3
hierarchical
table
performance_attendance
CREATE TABLE member_attendance ( member_id INTEGER, performance_id INTEGER, num_of_pieces INTEGER ); INSERT INTO member_attendance (member_id, performance_id, num_of_pieces) VALUES (1, 4, 4), (11, 3, 2), (2, 1, 1), (3, 1, 1), (4, 3, 2), (4, 6, 4), (5, 1, 2), (7, 2, 3);
{"db_id": "performance_attendance", "tables": [{"name": "member_attendance", "columns": [{"name": "member_id", "type": "INTEGER"}, {"name": "performance_id", "type": "INTEGER"}, {"name": "num_of_pieces", "type": "INTEGER"}], "rows": [[1, 4, 4], [11, 3, 2], [2, 1, 1], [3, 1, 1], [4, 3, 2], [4, 6, 4], [5, 1, 2], [7, 2, 3...
0
false
train_s000_L3_00091
3
hierarchical
table
decoration_competition
CREATE TABLE college ( name TEXT, leader_name TEXT, college_location TEXT, college_id INTEGER PRIMARY KEY ); INSERT INTO college (name, leader_name, college_location, college_id) VALUES ('Toronto School', 'Roger Dunbrack', 'Western Ontario', 5), ('Edmonton School', 'Samir Chahine', 'McGill', 4), ('Saskatchewan ...
{"db_id": "decoration_competition", "tables": [{"name": "college", "columns": [{"name": "name", "type": "TEXT"}, {"name": "leader_name", "type": "TEXT"}, {"name": "college_location", "type": "TEXT"}, {"name": "college_id", "type": "INTEGER"}], "rows": [["Toronto School", "Roger Dunbrack", "Western Ontario", 5], ["Edmon...
0
false
train_s000_L3_00092
3
hierarchical
table
manufacturer
CREATE TABLE furniture_manufacte ( manufacturer_id INTEGER, furniture_id INTEGER, price_in_dollar INTEGER ); INSERT INTO furniture_manufacte (manufacturer_id, furniture_id, price_in_dollar) VALUES (1, 3, 239), (4, 2, 450), (5, 1, 443), (7, 4, 1234), (7, 7, 2124);
{"db_id": "manufacturer", "tables": [{"name": "furniture_manufacte", "columns": [{"name": "manufacturer_id", "type": "INTEGER"}, {"name": "furniture_id", "type": "INTEGER"}, {"name": "price_in_dollar", "type": "INTEGER"}], "rows": [[1, 3, 239], [4, 2, 450], [5, 1, 443], [7, 4, 1234], [7, 7, 2124]], "primary_key": null}...
0
false
train_s000_L3_00093
3
hierarchical
table
restaurant_1
CREATE TABLE student ( sex TEXT, city_code TEXT, stu_id INTEGER PRIMARY KEY, age INTEGER, advisor INTEGER ); INSERT INTO student (sex, city_code, stu_id, age, advisor) VALUES ('F', 'WAS', 1035, 26, 5718), ('F', 'HKG', 1015, 16, 8721), ('F', 'BAL', 1024, 18, 7271), ('F', 'PHL', 1031, 20, 8772), ('F', 'PIT', 10...
{"db_id": "restaurant_1", "tables": [{"name": "student", "columns": [{"name": "sex", "type": "TEXT"}, {"name": "city_code", "type": "TEXT"}, {"name": "stu_id", "type": "INTEGER"}, {"name": "age", "type": "INTEGER"}, {"name": "advisor", "type": "INTEGER"}], "rows": [["F", "WAS", 1035, 26, 5718], ["F", "HKG", 1015, 16, 8...
0
false
train_s000_L3_00094
3
hierarchical
table
company_1
CREATE TABLE works_on ( essn INTEGER, pno INTEGER, hours REAL ); INSERT INTO works_on (essn, pno, hours) VALUES (123456789, 2, 7.5), (123456789, 1, 32.5), (333445555, 20, 10.0), (333445555, 10, 10.0), (333445555, 2, 10.0), (453453453, 1, 20.0), (453453453, 2, 20.0), (666884444, 3, 40.0), (888665555, 20, NULL), (9...
{"db_id": "company_1", "tables": [{"name": "works_on", "columns": [{"name": "essn", "type": "INTEGER"}, {"name": "pno", "type": "INTEGER"}, {"name": "hours", "type": "REAL"}], "rows": [[123456789, 2, 7.5], [123456789, 1, 32.5], [333445555, 20, 10.0], [333445555, 10, 10.0], [333445555, 2, 10.0], [453453453, 1, 20.0], [4...
0
false
train_s000_L3_00095
3
hierarchical
table
manufactory_1
CREATE TABLE products ( price INTEGER, name TEXT, code INTEGER PRIMARY KEY, manufacturer INTEGER ); INSERT INTO products (price, name, code, manufacturer) VALUES (120, 'Memory', 2, 6), (150, 'ZIP drive', 3, 4), (150, 'DVD drive', 11, 3), (240, 'Monitor', 5, 1), (240, 'Hard drive', 1, 5), (270, 'Printer', 8, 3),...
{"db_id": "manufactory_1", "tables": [{"name": "products", "columns": [{"name": "price", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}, {"name": "code", "type": "INTEGER"}, {"name": "manufacturer", "type": "INTEGER"}], "rows": [[120, "Memory", 2, 6], [150, "ZIP drive", 3, 4], [150, "DVD drive", 11, 3], [240, "Mo...
0
false
train_s000_L3_00096
3
hierarchical
multi
store_product
CREATE TABLE store_product ( store_id INTEGER, product_id INTEGER ); CREATE TABLE district ( district_name TEXT, headquartered_city TEXT, district_id INTEGER PRIMARY KEY, city_area INTEGER ); INSERT INTO store_product (store_id, product_id) VALUES (2, 3), (1, 3), (1, 1), (2, 6), (5, 3); INSERT INTO district...
{"db_id": "store_product", "tables": [{"name": "store_product", "columns": [{"name": "store_id", "type": "INTEGER"}, {"name": "product_id", "type": "INTEGER"}], "rows": [[2, 3], [1, 3], [1, 1], [2, 6], [5, 3]], "primary_key": null}, {"name": "district", "columns": [{"name": "district_name", "type": "TEXT"}, {"name": "h...
0
false
train_s000_L3_00097
3
hierarchical
table
voter_2
CREATE TABLE student ( city_code TEXT, stu_id INTEGER PRIMARY KEY, lname TEXT, fname TEXT, age INTEGER, sex TEXT, major INTEGER, advisor INTEGER ); INSERT INTO student (city_code, stu_id, lname, fname, age, sex, major, advisor) VALUES ('ATL', 1032, 'Brown', 'Eric', 20, 'M', 550, 8772), ('BAL', 1008, 'Ne...
{"db_id": "voter_2", "tables": [{"name": "student", "columns": [{"name": "city_code", "type": "TEXT"}, {"name": "stu_id", "type": "INTEGER"}, {"name": "lname", "type": "TEXT"}, {"name": "fname", "type": "TEXT"}, {"name": "age", "type": "INTEGER"}, {"name": "sex", "type": "TEXT"}, {"name": "major", "type": "INTEGER"}, {...
0
false
train_s000_L3_00098
3
hierarchical
table
cre_Doc_Tracking_DB
CREATE TABLE documents_to_be_destroyed ( planned_destruction_date TEXT, actual_destruction_date TEXT, document_id INTEGER PRIMARY KEY, destroyed_by_employee_id INTEGER ); INSERT INTO documents_to_be_destroyed (planned_destruction_date, actual_destruction_date, document_id, destroyed_by_employee_id) VALUES ('197...
{"db_id": "cre_Doc_Tracking_DB", "tables": [{"name": "documents_to_be_destroyed", "columns": [{"name": "planned_destruction_date", "type": "TEXT"}, {"name": "actual_destruction_date", "type": "TEXT"}, {"name": "document_id", "type": "INTEGER"}, {"name": "destroyed_by_employee_id", "type": "INTEGER"}], "rows": [["1976-0...
0
false
train_s000_L3_00099
3
hierarchical
multi
insurance_fnol
CREATE TABLE claims ( effective_date TEXT, claim_id INTEGER PRIMARY KEY ); CREATE TABLE available_policies ( policy_type_code TEXT, policy_id INTEGER PRIMARY KEY ); INSERT INTO claims (effective_date, claim_id) VALUES ('1973-08-18', 134), ('1985-03-24', 641), ('1996-11-29', 717), ('1992-01-05', 428), ('1992-02-...
{"db_id": "insurance_fnol", "tables": [{"name": "claims", "columns": [{"name": "effective_date", "type": "TEXT"}, {"name": "claim_id", "type": "INTEGER"}], "rows": [["1973-08-18", 134], ["1985-03-24", 641], ["1996-11-29", 717], ["1992-01-05", 428], ["1992-02-09", 311], ["2009-02-11", 604]], "primary_key": "claim_id"}, ...
0
false
train_s000_L3_00100
3
hierarchical
table
university_basketball
CREATE TABLE university ( affiliation TEXT, school_id INTEGER PRIMARY KEY, school TEXT, founded INTEGER, enrollment INTEGER, nickname TEXT, primary_conference TEXT ); INSERT INTO university (affiliation, school_id, school, founded, enrollment, nickname, primary_conference) VALUES ('Private/Methodist', 2, ...
{"db_id": "university_basketball", "tables": [{"name": "university", "columns": [{"name": "affiliation", "type": "TEXT"}, {"name": "school_id", "type": "INTEGER"}, {"name": "school", "type": "TEXT"}, {"name": "founded", "type": "INTEGER"}, {"name": "enrollment", "type": "INTEGER"}, {"name": "nickname", "type": "TEXT"},...
0
false
train_s000_L3_00101
3
hierarchical
table
party_people
CREATE TABLE party_events ( event_name TEXT, event_id INTEGER PRIMARY KEY, party_id INTEGER, member_in_charge_id INTEGER ); INSERT INTO party_events (event_name, event_id, party_id, member_in_charge_id) VALUES ('Budget Meeting', 7, 3, 15), ('Annaual Meeting', 5, 3, 10), ('Annaual Meeting', 3, 2, 2), ('Conferenc...
{"db_id": "party_people", "tables": [{"name": "party_events", "columns": [{"name": "event_name", "type": "TEXT"}, {"name": "event_id", "type": "INTEGER"}, {"name": "party_id", "type": "INTEGER"}, {"name": "member_in_charge_id", "type": "INTEGER"}], "rows": [["Budget Meeting", 7, 3, 15], ["Annaual Meeting", 5, 3, 10], [...
0
false
train_s000_L3_00102
3
hierarchical
table
phone_market
CREATE TABLE market ( district TEXT, market_id INTEGER PRIMARY KEY, num_of_employees INTEGER, num_of_shops INTEGER, ranking INTEGER ); INSERT INTO market (district, market_id, num_of_employees, num_of_shops, ranking) VALUES ('Alberta', 1, 1966, 40, 1), ('British Columbia', 2, 1965, 49, 21), ('New Brunswick', ...
{"db_id": "phone_market", "tables": [{"name": "market", "columns": [{"name": "district", "type": "TEXT"}, {"name": "market_id", "type": "INTEGER"}, {"name": "num_of_employees", "type": "INTEGER"}, {"name": "num_of_shops", "type": "INTEGER"}, {"name": "ranking", "type": "INTEGER"}], "rows": [["Alberta", 1, 1966, 40, 1],...
0
false
train_s000_L3_00103
3
hierarchical
table
station_weather
CREATE TABLE train ( interval TEXT, origin TEXT, destination TEXT, time TEXT, train_number INTEGER ); INSERT INTO train (interval, origin, destination, time, train_number) VALUES ('Daily', 'Chennai', 'Trivandrum', '11:35', 16723), ('Daily', 'Chennai', 'Guruvayur', '22:10', 16127), ('Daily', 'Madurai', 'Quilon...
{"db_id": "station_weather", "tables": [{"name": "train", "columns": [{"name": "interval", "type": "TEXT"}, {"name": "origin", "type": "TEXT"}, {"name": "destination", "type": "TEXT"}, {"name": "time", "type": "TEXT"}, {"name": "train_number", "type": "INTEGER"}], "rows": [["Daily", "Chennai", "Trivandrum", "11:35", 16...
0
false
train_s000_L3_00104
3
hierarchical
table
voter_2
CREATE TABLE student ( major INTEGER, stu_id INTEGER PRIMARY KEY, lname TEXT, fname TEXT, age INTEGER, city_code TEXT ); INSERT INTO student (major, stu_id, lname, fname, age, city_code) VALUES (50, 1035, 'Schmidt', 'Sarah', 26, 'WAS'), (520, 1020, 'Thornton', 'Ian', 22, 'NYC'), (520, 1021, 'Andreou', 'Geor...
{"db_id": "voter_2", "tables": [{"name": "student", "columns": [{"name": "major", "type": "INTEGER"}, {"name": "stu_id", "type": "INTEGER"}, {"name": "lname", "type": "TEXT"}, {"name": "fname", "type": "TEXT"}, {"name": "age", "type": "INTEGER"}, {"name": "city_code", "type": "TEXT"}], "rows": [[50, 1035, "Schmidt", "S...
0
false
train_s000_L3_00105
3
hierarchical
multi
college_2
CREATE TABLE department ( dept_name TEXT PRIMARY KEY, budget REAL ); CREATE TABLE section ( year INTEGER, course_id INTEGER, sec_id INTEGER, building TEXT, time_slot_id TEXT ); INSERT INTO department (dept_name, budget) VALUES ('Geology', 406557.93), ('Astronomy', 617253.94), ('Languages', 601283.6), ('At...
{"db_id": "college_2", "tables": [{"name": "department", "columns": [{"name": "dept_name", "type": "TEXT"}, {"name": "budget", "type": "REAL"}], "rows": [["Geology", 406557.93], ["Astronomy", 617253.94], ["Languages", 601283.6], ["Athletics", 734550.7], ["Psychology", 848175.04], ["Pol. Sci.", 573745.09], ["Biology", 6...
0
false
train_s000_L3_00106
3
hierarchical
table
machine_repair
CREATE TABLE technician ( team TEXT, name TEXT, technician_id INTEGER PRIMARY KEY, starting_year INTEGER, age INTEGER ); INSERT INTO technician (team, name, technician_id, starting_year, age) VALUES ('CHC', 'Charlie Hollocher', 5, 2002, 35), ('CLE', 'Lou Boudreau', 6, 2016, 32), ('CLE', 'Mark Sewell', 4, 2009...
{"db_id": "machine_repair", "tables": [{"name": "technician", "columns": [{"name": "team", "type": "TEXT"}, {"name": "name", "type": "TEXT"}, {"name": "technician_id", "type": "INTEGER"}, {"name": "starting_year", "type": "INTEGER"}, {"name": "age", "type": "INTEGER"}], "rows": [["CHC", "Charlie Hollocher", 5, 2002, 35...
0
false
train_s000_L3_00107
3
hierarchical
table
driving_school
CREATE TABLE customer_payments ( datetime_payment TEXT, payment_method_code TEXT, customer_id INTEGER ); INSERT INTO customer_payments (datetime_payment, payment_method_code, customer_id) VALUES ('2018-02-15 16:38:49', 'Direct Debit', 7), ('2018-02-19 09:06:29', 'Direct Debit', 6), ('2018-02-24 10:07:05', 'Direct...
{"db_id": "driving_school", "tables": [{"name": "customer_payments", "columns": [{"name": "datetime_payment", "type": "TEXT"}, {"name": "payment_method_code", "type": "TEXT"}, {"name": "customer_id", "type": "INTEGER"}], "rows": [["2018-02-15 16:38:49", "Direct Debit", 7], ["2018-02-19 09:06:29", "Direct Debit", 6], ["...
0
false
train_s000_L3_00108
3
hierarchical
table
movie_1
CREATE TABLE rating ( stars INTEGER, r_id INTEGER, m_id INTEGER ); INSERT INTO rating (stars, r_id, m_id) VALUES (2, 203, 103), (2, 203, 108), (2, 201, 101), (2, 205, 104), (3, 208, 104), (3, 205, 103), (3, 204, 101), (3, 206, 107), (4, 205, 108), (4, 203, 108), (4, 202, 106), (4, 201, 101), (5, 207, 107), (5, 20...
{"db_id": "movie_1", "tables": [{"name": "rating", "columns": [{"name": "stars", "type": "INTEGER"}, {"name": "r_id", "type": "INTEGER"}, {"name": "m_id", "type": "INTEGER"}], "rows": [[2, 203, 103], [2, 203, 108], [2, 201, 101], [2, 205, 104], [3, 208, 104], [3, 205, 103], [3, 204, 101], [3, 206, 107], [4, 205, 108], ...
0
false
train_s000_L3_00109
3
hierarchical
table
inn_1
CREATE TABLE rooms ( base_price INTEGER, room_id TEXT PRIMARY KEY, room_name TEXT, bed_type TEXT, decor TEXT, beds INTEGER, max_occupancy INTEGER ); INSERT INTO rooms (base_price, room_id, room_name, bed_type, decor, beds, max_occupancy) VALUES (100, 'HBB', 'Harbinger but bequest', 'Queen', 'modern', 1, 2...
{"db_id": "inn_1", "tables": [{"name": "rooms", "columns": [{"name": "base_price", "type": "INTEGER"}, {"name": "room_id", "type": "TEXT"}, {"name": "room_name", "type": "TEXT"}, {"name": "bed_type", "type": "TEXT"}, {"name": "decor", "type": "TEXT"}, {"name": "beds", "type": "INTEGER"}, {"name": "max_occupancy", "type...
0
false
train_s000_L3_00110
3
hierarchical
table
train_station
CREATE TABLE train ( service TEXT, train_id INTEGER PRIMARY KEY, name TEXT, time TEXT ); INSERT INTO train (service, train_id, name, time) VALUES ('Daily', 2, 'Guruvayur Express', '22:10'), ('Daily', 11, 'Parasuram Express', '04:20'), ('Daily', 9, 'Island Express', '16:59'), ('Daily', 3, 'Guruvayur Express', '4...
{"db_id": "train_station", "tables": [{"name": "train", "columns": [{"name": "service", "type": "TEXT"}, {"name": "train_id", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}, {"name": "time", "type": "TEXT"}], "rows": [["Daily", 2, "Guruvayur Express", "22:10"], ["Daily", 11, "Parasuram Express", "04:20"], ["Daily...
0
false
train_s000_L3_00111
3
hierarchical
multi
candidate_poll
CREATE TABLE candidate ( unsure_rate REAL, consider_rate REAL ); CREATE TABLE people ( height INTEGER, sex TEXT, name TEXT, date_of_birth TEXT, people_id INTEGER PRIMARY KEY ); INSERT INTO candidate (unsure_rate, consider_rate) VALUES (0.2, 0.27), (0.2, 0.3), (0.2, 0.2), (0.3, 0.34), (0.4, 0.3), (0.9, 0.4...
{"db_id": "candidate_poll", "tables": [{"name": "candidate", "columns": [{"name": "unsure_rate", "type": "REAL"}, {"name": "consider_rate", "type": "REAL"}], "rows": [[0.2, 0.27], [0.2, 0.3], [0.2, 0.2], [0.3, 0.34], [0.4, 0.3], [0.9, 0.42]], "primary_key": null}, {"name": "people", "columns": [{"name": "height", "type...
0
false
train_s000_L3_00112
3
hierarchical
table
flight_company
CREATE TABLE operate_company ( principal_activities TEXT, id INTEGER PRIMARY KEY, type TEXT, incorporated_in TEXT, group_equity_shareholding INTEGER ); INSERT INTO operate_company (principal_activities, id, type, incorporated_in, group_equity_shareholding) VALUES ('Cargo airline', 5, 'Subsidiary', 'Hong Kong'...
{"db_id": "flight_company", "tables": [{"name": "operate_company", "columns": [{"name": "principal_activities", "type": "TEXT"}, {"name": "id", "type": "INTEGER"}, {"name": "type", "type": "TEXT"}, {"name": "incorporated_in", "type": "TEXT"}, {"name": "group_equity_shareholding", "type": "INTEGER"}], "rows": [["Cargo a...
0
false
train_s000_L3_00113
3
hierarchical
table
cre_Docs_and_Epenses
CREATE TABLE accounts ( statement_id INTEGER, account_id INTEGER PRIMARY KEY, account_details REAL ); INSERT INTO accounts (statement_id, account_id, account_details) VALUES (192, 240, 6352.31), (192, 451, 658.26), (192, 164, 12223.93), (192, 321, 745.817), (192, 346, 127.9), (57, 209, 11130.23), (57, 262, 147.96...
{"db_id": "cre_Docs_and_Epenses", "tables": [{"name": "accounts", "columns": [{"name": "statement_id", "type": "INTEGER"}, {"name": "account_id", "type": "INTEGER"}, {"name": "account_details", "type": "REAL"}], "rows": [[192, 240, 6352.31], [192, 451, 658.26], [192, 164, 12223.93], [192, 321, 745.817], [192, 346, 127....
0
false
train_s000_L3_00114
3
hierarchical
table
farm
CREATE TABLE competition_record ( rank INTEGER, competition_id INTEGER, farm_id INTEGER ); INSERT INTO competition_record (rank, competition_id, farm_id) VALUES (1, 1, 8), (1, 5, 5), (1, 2, 4), (1, 3, 7), (2, 4, 3), (2, 2, 3), (3, 2, 1), (4, 4, 1);
{"db_id": "farm", "tables": [{"name": "competition_record", "columns": [{"name": "rank", "type": "INTEGER"}, {"name": "competition_id", "type": "INTEGER"}, {"name": "farm_id", "type": "INTEGER"}], "rows": [[1, 1, 8], [1, 5, 5], [1, 2, 4], [1, 3, 7], [2, 4, 3], [2, 2, 3], [3, 2, 1], [4, 4, 1]], "primary_key": null}], "f...
0
false
train_s000_L4_00000
4
document
doc
manufactory_1
CREATE TABLE manufacturers ( code INTEGER PRIMARY KEY, headquarter TEXT, founder TEXT, revenue INTEGER ); CREATE TABLE products ( manufacturer INTEGER, name TEXT, code INTEGER, price INTEGER, FOREIGN KEY (manufacturer) REFERENCES manufacturers(code) ); INSERT INTO manufacturers (code, headquarter, fou...
{"db_id": "manufactory_1", "tables": [{"name": "manufacturers", "columns": [{"name": "code", "type": "INTEGER"}, {"name": "headquarter", "type": "TEXT"}, {"name": "founder", "type": "TEXT"}, {"name": "revenue", "type": "INTEGER"}], "rows": [[3, "Los Angeles", "James", 50]], "primary_key": "code"}, {"name": "products", ...
0
false
train_s000_L4_00001
4
document
doc
election
CREATE TABLE county ( county_id INTEGER PRIMARY KEY, county_name TEXT, population INTEGER, zip_code TEXT ); CREATE TABLE election ( counties_represented TEXT, delegate TEXT, election_id INTEGER, district INTEGER, first_elected INTEGER, FOREIGN KEY (district) REFERENCES county(county_id) ); INSERT IN...
{"db_id": "election", "tables": [{"name": "county", "columns": [{"name": "county_id", "type": "INTEGER"}, {"name": "county_name", "type": "TEXT"}, {"name": "population", "type": "INTEGER"}, {"name": "zip_code", "type": "TEXT"}], "rows": [[1, "Howard", 21000, "D21"]], "primary_key": "county_id"}, {"name": "election", "c...
0
false
train_s000_L4_00002
4
document
doc
riding_club
CREATE TABLE club ( club_id INTEGER PRIMARY KEY, club_name TEXT, region TEXT, start_year INTEGER ); CREATE TABLE coach ( coach_name TEXT, gender TEXT, coach_id INTEGER, club_id INTEGER, rank INTEGER, FOREIGN KEY (club_id) REFERENCES club(club_id) ); INSERT INTO club (club_id, club_name, region, star...
{"db_id": "riding_club", "tables": [{"name": "club", "columns": [{"name": "club_id", "type": "INTEGER"}, {"name": "club_name", "type": "TEXT"}, {"name": "region", "type": "TEXT"}, {"name": "start_year", "type": "INTEGER"}], "rows": [[1, "AIK", "USA", 2009]], "primary_key": "club_id"}, {"name": "coach", "columns": [{"na...
0
false
train_s000_L4_00003
4
document
doc
hospital_1
CREATE TABLE procedures ( code INTEGER PRIMARY KEY, name TEXT, cost INTEGER ); CREATE TABLE trained_in ( certification_date TEXT, physician INTEGER, treatment INTEGER, FOREIGN KEY (treatment) REFERENCES procedures(code) ); INSERT INTO procedures (code, name, cost) VALUES (2, 'Obtuse Pyloric Recombobulatio...
{"db_id": "hospital_1", "tables": [{"name": "procedures", "columns": [{"name": "code", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}, {"name": "cost", "type": "INTEGER"}], "rows": [[2, "Obtuse Pyloric Recombobulation", 3750]], "primary_key": "code"}, {"name": "trained_in", "columns": [{"name": "certification_dat...
0
false
train_s000_L4_00004
4
document
doc
insurance_and_eClaims
CREATE TABLE staff ( staff_id INTEGER PRIMARY KEY, staff_details TEXT ); CREATE TABLE claims_processing ( claim_processing_id INTEGER, claim_outcome_code TEXT, claim_stage_id INTEGER, staff_id INTEGER, FOREIGN KEY (staff_id) REFERENCES staff(staff_id) ); INSERT INTO staff (staff_id, staff_details) VALUES ...
{"db_id": "insurance_and_eClaims", "tables": [{"name": "staff", "columns": [{"name": "staff_id", "type": "INTEGER"}, {"name": "staff_details", "type": "TEXT"}], "rows": [[822, "Julius"]], "primary_key": "staff_id"}, {"name": "claims_processing", "columns": [{"name": "claim_processing_id", "type": "INTEGER"}, {"name": "...
0
false
train_s000_L4_00005
4
document
doc
climbing
CREATE TABLE mountain ( mountain_id INTEGER PRIMARY KEY, name TEXT, prominence INTEGER, "range" TEXT, country TEXT ); CREATE TABLE climber ( name TEXT, climber_id INTEGER, points INTEGER, mountain_id INTEGER, FOREIGN KEY (mountain_id) REFERENCES mountain(mountain_id) ); INSERT INTO mountain (mountai...
{"db_id": "climbing", "tables": [{"name": "mountain", "columns": [{"name": "mountain_id", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}, {"name": "prominence", "type": "INTEGER"}, {"name": "range", "type": "TEXT"}, {"name": "country", "type": "TEXT"}], "rows": [[2, "Mount Kenya (Batian)", 3825, "Mount Kenya", "K...
0
false
train_s000_L4_00006
4
document
doc
party_people
CREATE TABLE party ( party_id INTEGER PRIMARY KEY, minister TEXT, took_office INTEGER, party_name INTEGER ); CREATE TABLE party_events ( event_id INTEGER, event_name TEXT, party_id INTEGER, member_in_charge_id INTEGER, FOREIGN KEY (party_id) REFERENCES party(party_id) ); INSERT INTO party (party_id, m...
{"db_id": "party_people", "tables": [{"name": "party", "columns": [{"name": "party_id", "type": "INTEGER"}, {"name": "minister", "type": "TEXT"}, {"name": "took_office", "type": "INTEGER"}, {"name": "party_name", "type": "INTEGER"}], "rows": [[3, "Ebenezer Ako-Adjei (MP)", 1959, 3]], "primary_key": "party_id"}, {"name"...
0
false
train_s000_L4_00007
4
document
doc
school_finance
CREATE TABLE school ( school_id INTEGER PRIMARY KEY, location TEXT, mascot TEXT, enrollment INTEGER, ihsaa_class TEXT, county TEXT ); CREATE TABLE budget ( school_id INTEGER, year INTEGER, budgeted INTEGER, total_budget_percent_invested INTEGER, FOREIGN KEY (school_id) REFERENCES school(school_id)...
{"db_id": "school_finance", "tables": [{"name": "school", "columns": [{"name": "school_id", "type": "INTEGER"}, {"name": "location", "type": "TEXT"}, {"name": "mascot", "type": "TEXT"}, {"name": "enrollment", "type": "INTEGER"}, {"name": "ihsaa_class", "type": "TEXT"}, {"name": "county", "type": "TEXT"}], "rows": [[2, ...
0
false
train_s000_L4_00008
4
document
doc
device
CREATE TABLE device ( device_id INTEGER PRIMARY KEY, package_version TEXT, applications TEXT, software_platform TEXT ); CREATE TABLE stock ( shop_id INTEGER, device_id INTEGER, quantity INTEGER, FOREIGN KEY (device_id) REFERENCES device(device_id) ); INSERT INTO device (device_id, package_version, appli...
{"db_id": "device", "tables": [{"name": "device", "columns": [{"name": "device_id", "type": "INTEGER"}, {"name": "package_version", "type": "TEXT"}, {"name": "applications", "type": "TEXT"}, {"name": "software_platform", "type": "TEXT"}], "rows": [[4, "5.0.0.419", "5.0.0.419", "Android"]], "primary_key": "device_id"}, ...
0
false
train_s000_L4_00009
4
document
doc
tracking_orders
CREATE TABLE orders ( order_id INTEGER PRIMARY KEY, customer_id INTEGER, order_status TEXT, date_order_placed TEXT ); CREATE TABLE order_items ( order_id INTEGER, order_item_status TEXT, order_item_id INTEGER, FOREIGN KEY (order_id) REFERENCES orders(order_id) ); INSERT INTO orders (order_id, customer_i...
{"db_id": "tracking_orders", "tables": [{"name": "orders", "columns": [{"name": "order_id", "type": "INTEGER"}, {"name": "customer_id", "type": "INTEGER"}, {"name": "order_status", "type": "TEXT"}, {"name": "date_order_placed", "type": "TEXT"}], "rows": [[15, 8, "On Road", "1971-05-10 01:54:18"]], "primary_key": "order...
0
false
train_s000_L4_00010
4
document
doc
coffee_shop
CREATE TABLE shop ( shop_id INTEGER PRIMARY KEY, address TEXT, num_of_staff INTEGER, score INTEGER, open_year INTEGER ); CREATE TABLE happy_hour ( shop_id INTEGER, hh_id INTEGER, month TEXT, FOREIGN KEY (shop_id) REFERENCES shop(shop_id) ); INSERT INTO shop (shop_id, address, num_of_staff, score, open...
{"db_id": "coffee_shop", "tables": [{"name": "shop", "columns": [{"name": "shop_id", "type": "INTEGER"}, {"name": "address", "type": "TEXT"}, {"name": "num_of_staff", "type": "INTEGER"}, {"name": "score", "type": "INTEGER"}, {"name": "open_year", "type": "INTEGER"}], "rows": [[3, "1330 Baltimore Street", 42, 36, 2010]]...
0
false
train_s000_L4_00011
4
document
doc
coffee_shop
CREATE TABLE shop ( shop_id INTEGER PRIMARY KEY, address TEXT, open_year INTEGER ); CREATE TABLE happy_hour ( shop_id INTEGER, hh_id INTEGER, num_of_shaff_in_charge INTEGER, FOREIGN KEY (shop_id) REFERENCES shop(shop_id) ); INSERT INTO shop (shop_id, address, open_year) VALUES (1, '1200 Main Street', 2010...
{"db_id": "coffee_shop", "tables": [{"name": "shop", "columns": [{"name": "shop_id", "type": "INTEGER"}, {"name": "address", "type": "TEXT"}, {"name": "open_year", "type": "INTEGER"}], "rows": [[1, "1200 Main Street", 2010]], "primary_key": "shop_id"}, {"name": "happy_hour", "columns": [{"name": "shop_id", "type": "INT...
0
false
train_s000_L4_00012
4
document
doc
phone_1
CREATE TABLE chip_model ( model_name TEXT PRIMARY KEY, launch_year INTEGER, ram_mi_b INTEGER ); CREATE TABLE phone ( hardware_model_name TEXT, accreditation_level TEXT, chip_model TEXT, FOREIGN KEY (chip_model) REFERENCES chip_model(model_name) ); INSERT INTO chip_model (model_name, launch_year, ram_mi_b)...
{"db_id": "phone_1", "tables": [{"name": "chip_model", "columns": [{"name": "model_name", "type": "TEXT"}, {"name": "launch_year", "type": "INTEGER"}, {"name": "ram_mi_b", "type": "INTEGER"}], "rows": [["X5", 2002, 32]], "primary_key": "model_name"}, {"name": "phone", "columns": [{"name": "hardware_model_name", "type":...
0
false
train_s000_L4_00013
4
document
doc
formula_1
CREATE TABLE races ( race_id INTEGER PRIMARY KEY, year INTEGER, date TEXT ); CREATE TABLE constructor_standings ( race_id INTEGER, constructor_id INTEGER, position INTEGER, position_text INTEGER, FOREIGN KEY (race_id) REFERENCES races(race_id) ); INSERT INTO races (race_id, year, date) VALUES (715, 1964...
{"db_id": "formula_1", "tables": [{"name": "races", "columns": [{"name": "race_id", "type": "INTEGER"}, {"name": "year", "type": "INTEGER"}, {"name": "date", "type": "TEXT"}], "rows": [[715, 1964, "1964-08-23"]], "primary_key": "race_id"}, {"name": "constructor_standings", "columns": [{"name": "race_id", "type": "INTEG...
0
false
train_s000_L4_00014
4
document
doc
local_govt_mdm
CREATE TABLE customer_master_index ( master_customer_id INTEGER PRIMARY KEY, cmi_details TEXT ); CREATE TABLE cmi_cross_references ( master_customer_id INTEGER, source_system_code TEXT, cmi_cross_ref_id INTEGER, FOREIGN KEY (master_customer_id) REFERENCES customer_master_index(master_customer_id) ); INSERT ...
{"db_id": "local_govt_mdm", "tables": [{"name": "customer_master_index", "columns": [{"name": "master_customer_id", "type": "INTEGER"}, {"name": "cmi_details", "type": "TEXT"}], "rows": [[9, "Reynolds-McClure"]], "primary_key": "master_customer_id"}, {"name": "cmi_cross_references", "columns": [{"name": "master_custome...
0
false
train_s000_L4_00015
4
document
doc
insurance_fnol
CREATE TABLE first_notification_of_loss ( fnol_id INTEGER PRIMARY KEY, customer_id INTEGER, policy_id INTEGER ); CREATE TABLE claims ( fnol_id INTEGER, effective_date TEXT, claim_id INTEGER, FOREIGN KEY (fnol_id) REFERENCES first_notification_of_loss(fnol_id) ); INSERT INTO first_notification_of_loss (fno...
{"db_id": "insurance_fnol", "tables": [{"name": "first_notification_of_loss", "columns": [{"name": "fnol_id", "type": "INTEGER"}, {"name": "customer_id", "type": "INTEGER"}, {"name": "policy_id", "type": "INTEGER"}], "rows": [[4226, 892, 927]], "primary_key": "fnol_id"}, {"name": "claims", "columns": [{"name": "fnol_id...
0
false
train_s000_L4_00016
4
document
doc
machine_repair
CREATE TABLE technician ( technician_id INTEGER PRIMARY KEY, starting_year INTEGER, age INTEGER ); CREATE TABLE repair_assignment ( technician_id INTEGER, repair_id INTEGER, machine_id INTEGER, FOREIGN KEY (technician_id) REFERENCES technician(technician_id) ); INSERT INTO technician (technician_id, start...
{"db_id": "machine_repair", "tables": [{"name": "technician", "columns": [{"name": "technician_id", "type": "INTEGER"}, {"name": "starting_year", "type": "INTEGER"}, {"name": "age", "type": "INTEGER"}], "rows": [[1, 2012, 37]], "primary_key": "technician_id"}, {"name": "repair_assignment", "columns": [{"name": "technic...
0
false
train_s000_L4_00017
4
document
doc
dorm_1
CREATE TABLE dorm ( dormid INTEGER PRIMARY KEY, dorm_name TEXT, student_capacity INTEGER ); CREATE TABLE lives_in ( room_number INTEGER, stuid INTEGER, dormid INTEGER, FOREIGN KEY (dormid) REFERENCES dorm(dormid) ); INSERT INTO dorm (dormid, dorm_name, student_capacity) VALUES (109, 'Anonymous Donor Hall'...
{"db_id": "dorm_1", "tables": [{"name": "dorm", "columns": [{"name": "dormid", "type": "INTEGER"}, {"name": "dorm_name", "type": "TEXT"}, {"name": "student_capacity", "type": "INTEGER"}], "rows": [[109, "Anonymous Donor Hall", 128]], "primary_key": "dormid"}, {"name": "lives_in", "columns": [{"name": "room_number", "ty...
0
false
train_s000_L4_00018
4
document
doc
machine_repair
CREATE TABLE repair ( repair_id INTEGER PRIMARY KEY, launch_date TEXT, notes TEXT ); CREATE TABLE repair_assignment ( repair_id INTEGER, technician_id INTEGER, machine_id INTEGER, FOREIGN KEY (repair_id) REFERENCES repair(repair_id) ); INSERT INTO repair (repair_id, launch_date, notes) VALUES (2, '28 Feb ...
{"db_id": "machine_repair", "tables": [{"name": "repair", "columns": [{"name": "repair_id", "type": "INTEGER"}, {"name": "launch_date", "type": "TEXT"}, {"name": "notes", "type": "TEXT"}], "rows": [[2, "28 Feb 2009", "First object in polar orbit"]], "primary_key": "repair_id"}, {"name": "repair_assignment", "columns": ...
0
false
train_s000_L4_00019
4
document
doc
local_govt_mdm
CREATE TABLE customer_master_index ( master_customer_id INTEGER PRIMARY KEY, cmi_details TEXT ); CREATE TABLE cmi_cross_references ( source_system_code TEXT, cmi_cross_ref_id INTEGER, master_customer_id INTEGER, FOREIGN KEY (master_customer_id) REFERENCES customer_master_index(master_customer_id) ); INSERT ...
{"db_id": "local_govt_mdm", "tables": [{"name": "customer_master_index", "columns": [{"name": "master_customer_id", "type": "INTEGER"}, {"name": "cmi_details", "type": "TEXT"}], "rows": [[1, "Schmitt-Lang"]], "primary_key": "master_customer_id"}, {"name": "cmi_cross_references", "columns": [{"name": "source_system_code...
0
false
train_s000_L4_00020
4
document
doc
cre_Doc_Tracking_DB
CREATE TABLE employees ( employee_id INTEGER PRIMARY KEY, role_code TEXT, employee_name TEXT, date_of_birth TEXT ); CREATE TABLE documents_to_be_destroyed ( planned_destruction_date TEXT, document_id INTEGER, destruction_authorised_by_employee_id INTEGER, destroyed_by_employee_id INTEGER, actual_destr...
{"db_id": "cre_Doc_Tracking_DB", "tables": [{"name": "employees", "columns": [{"name": "employee_id", "type": "INTEGER"}, {"name": "role_code", "type": "TEXT"}, {"name": "employee_name", "type": "TEXT"}, {"name": "date_of_birth", "type": "TEXT"}], "rows": [[55, "ED", "Harley", "1972-02-18 11:53:30"]], "primary_key": "e...
0
false
train_s000_L4_00021
4
document
doc
customers_and_invoices
CREATE TABLE accounts ( account_id INTEGER PRIMARY KEY, customer_id INTEGER, date_account_opened TEXT, other_account_details TEXT ); CREATE TABLE financial_transactions ( account_id INTEGER, transaction_type TEXT, transaction_date TEXT, transaction_id INTEGER, invoice_number INTEGER, transaction_amo...
{"db_id": "customers_and_invoices", "tables": [{"name": "accounts", "columns": [{"name": "account_id", "type": "INTEGER"}, {"name": "customer_id", "type": "INTEGER"}, {"name": "date_account_opened", "type": "TEXT"}, {"name": "other_account_details", "type": "TEXT"}], "rows": [[6, 12, "2014-05-30 12:16:52", "Regular"]],...
0
false
train_s000_L4_00022
4
document
doc
driving_school
CREATE TABLE vehicles ( vehicle_id INTEGER PRIMARY KEY, vehicle_details TEXT ); CREATE TABLE lessons ( staff_id INTEGER, customer_id INTEGER, lesson_status_code TEXT, vehicle_id INTEGER, lesson_time INTEGER, price INTEGER, FOREIGN KEY (vehicle_id) REFERENCES vehicles(vehicle_id) ); INSERT INTO vehicle...
{"db_id": "driving_school", "tables": [{"name": "vehicles", "columns": [{"name": "vehicle_id", "type": "INTEGER"}, {"name": "vehicle_details", "type": "TEXT"}], "rows": [[2, "Truck"]], "primary_key": "vehicle_id"}, {"name": "lessons", "columns": [{"name": "staff_id", "type": "INTEGER"}, {"name": "customer_id", "type": ...
0
false
train_s000_L4_00023
4
document
doc
school_finance
CREATE TABLE school ( school_id INTEGER PRIMARY KEY, location TEXT, mascot TEXT, enrollment INTEGER, ihsaa_class TEXT, county TEXT ); CREATE TABLE budget ( school_id INTEGER, year INTEGER, total_budget_percent_budgeted INTEGER, invested INTEGER, total_budget_percent_invested INTEGER, budget_inve...
{"db_id": "school_finance", "tables": [{"name": "school", "columns": [{"name": "school_id", "type": "INTEGER"}, {"name": "location", "type": "TEXT"}, {"name": "mascot", "type": "TEXT"}, {"name": "enrollment", "type": "INTEGER"}, {"name": "ihsaa_class", "type": "TEXT"}, {"name": "county", "type": "TEXT"}], "rows": [[2, ...
0
false
train_s000_L4_00024
4
document
doc
pilot_record
CREATE TABLE pilot ( pilot_id INTEGER PRIMARY KEY, pilot_name TEXT, age INTEGER, nationality TEXT, position TEXT ); CREATE TABLE pilot_record ( pilot_id INTEGER, date TEXT, record_id INTEGER, FOREIGN KEY (pilot_id) REFERENCES pilot(pilot_id) ); INSERT INTO pilot (pilot_id, pilot_name, age, nationality...
{"db_id": "pilot_record", "tables": [{"name": "pilot", "columns": [{"name": "pilot_id", "type": "INTEGER"}, {"name": "pilot_name", "type": "TEXT"}, {"name": "age", "type": "INTEGER"}, {"name": "nationality", "type": "TEXT"}, {"name": "position", "type": "TEXT"}], "rows": [[1, "Patrick O'Bryant", 33, "United States", "C...
0
false
train_s000_L4_00025
4
document
doc
swimming
CREATE TABLE swimmer ( id INTEGER PRIMARY KEY, nationality TEXT, meter_200 TEXT ); CREATE TABLE record ( swimmer_id INTEGER, id INTEGER, result TEXT, event_id INTEGER, FOREIGN KEY (swimmer_id) REFERENCES swimmer(id) ); INSERT INTO swimmer (id, nationality, meter_200) VALUES (4, 'Australia', '1:56.34'); ...
{"db_id": "swimming", "tables": [{"name": "swimmer", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "nationality", "type": "TEXT"}, {"name": "meter_200", "type": "TEXT"}], "rows": [[4, "Australia", "1:56.34"]], "primary_key": "id"}, {"name": "record", "columns": [{"name": "swimmer_id", "type": "INTEGER"}, {"na...
0
false
train_s000_L4_00026
4
document
doc
soccer_1
CREATE TABLE player ( id INTEGER, player_api_id INTEGER, player_fifa_api_id INTEGER PRIMARY KEY, height REAL, weight INTEGER ); CREATE TABLE player_attributes ( player_fifa_api_id INTEGER, jumping INTEGER, long_shots INTEGER, sliding_tackle INTEGER, FOREIGN KEY (player_fifa_api_id) REFERENCES player...
{"db_id": "soccer_1", "tables": [{"name": "player", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "player_api_id", "type": "INTEGER"}, {"name": "player_fifa_api_id", "type": "INTEGER"}, {"name": "height", "type": "REAL"}, {"name": "weight", "type": "INTEGER"}], "rows": [[3397, 179818, 194082, 182.88, 165]], "...
0
false
train_s000_L4_00027
4
document
doc
cre_Docs_and_Epenses
CREATE TABLE ref_budget_codes ( budget_type_code TEXT PRIMARY KEY, budget_type_description TEXT ); CREATE TABLE documents_with_expenses ( document_id INTEGER, budget_type_code TEXT, document_details TEXT, FOREIGN KEY (budget_type_code) REFERENCES ref_budget_codes(budget_type_code) ); INSERT INTO ref_budget_...
{"db_id": "cre_Docs_and_Epenses", "tables": [{"name": "ref_budget_codes", "columns": [{"name": "budget_type_code", "type": "TEXT"}, {"name": "budget_type_description", "type": "TEXT"}], "rows": [["GV", "Government"]], "primary_key": "budget_type_code"}, {"name": "documents_with_expenses", "columns": [{"name": "document...
0
false
train_s000_L4_00028
4
document
doc
local_govt_in_alabama
CREATE TABLE services ( service_id INTEGER PRIMARY KEY, service_type_code TEXT ); CREATE TABLE events ( event_id INTEGER, service_id INTEGER, event_details TEXT, FOREIGN KEY (service_id) REFERENCES services(service_id) ); INSERT INTO services (service_id, service_type_code) VALUES (8, 'Property Change'); IN...
{"db_id": "local_govt_in_alabama", "tables": [{"name": "services", "columns": [{"name": "service_id", "type": "INTEGER"}, {"name": "service_type_code", "type": "TEXT"}], "rows": [[8, "Property Change"]], "primary_key": "service_id"}, {"name": "events", "columns": [{"name": "event_id", "type": "INTEGER"}, {"name": "serv...
0
false
train_s000_L4_00029
4
document
doc
school_player
CREATE TABLE school ( school_id INTEGER PRIMARY KEY, school TEXT, location TEXT, enrollment INTEGER, day_or_boarding TEXT, year_entered_competition INTEGER ); CREATE TABLE player ( player_id INTEGER, player TEXT, position TEXT, school_id INTEGER, FOREIGN KEY (school_id) REFERENCES school(school_id...
{"db_id": "school_player", "tables": [{"name": "school", "columns": [{"name": "school_id", "type": "INTEGER"}, {"name": "school", "type": "TEXT"}, {"name": "location", "type": "TEXT"}, {"name": "enrollment", "type": "INTEGER"}, {"name": "day_or_boarding", "type": "TEXT"}, {"name": "year_entered_competition", "type": "I...
0
false
train_s000_L4_00030
4
document
doc
wine_1
CREATE TABLE grapes ( id INTEGER, grape TEXT PRIMARY KEY, color TEXT ); CREATE TABLE wine ( drink TEXT, grape TEXT, winery TEXT, state TEXT, year INTEGER, FOREIGN KEY (grape) REFERENCES grapes(grape) ); INSERT INTO grapes (id, grape, color) VALUES (11, 'Petite Sirah', 'Red'); INSERT INTO wine (drink, ...
{"db_id": "wine_1", "tables": [{"name": "grapes", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "grape", "type": "TEXT"}, {"name": "color", "type": "TEXT"}], "rows": [[11, "Petite Sirah", "Red"]], "primary_key": "grape"}, {"name": "wine", "columns": [{"name": "drink", "type": "TEXT"}, {"name": "grape", "type"...
0
false
train_s000_L4_00031
4
document
doc
e_government
CREATE TABLE parties ( party_id INTEGER PRIMARY KEY, payment_method_code TEXT, party_phone TEXT, party_email TEXT ); CREATE TABLE party_addresses ( party_id INTEGER, date_address_from TEXT, address_type_code TEXT, date_address_to TEXT, address_id INTEGER, FOREIGN KEY (party_id) REFERENCES parties(pa...
{"db_id": "e_government", "tables": [{"name": "parties", "columns": [{"name": "party_id", "type": "INTEGER"}, {"name": "payment_method_code", "type": "TEXT"}, {"name": "party_phone", "type": "TEXT"}, {"name": "party_email", "type": "TEXT"}], "rows": [[5, "Cheque", "529-074-5348", "alanna.boehm@example.net"]], "primary_...
0
false
train_s000_L4_00032
4
document
doc
sakila_1
CREATE TABLE inventory ( inventory_id INTEGER PRIMARY KEY, film_id INTEGER, store_id INTEGER, last_update TEXT ); CREATE TABLE rental ( return_date TEXT, rental_id INTEGER, inventory_id INTEGER, customer_id INTEGER, FOREIGN KEY (inventory_id) REFERENCES inventory(inventory_id) ); INSERT INTO inventory...
{"db_id": "sakila_1", "tables": [{"name": "inventory", "columns": [{"name": "inventory_id", "type": "INTEGER"}, {"name": "film_id", "type": "INTEGER"}, {"name": "store_id", "type": "INTEGER"}, {"name": "last_update", "type": "TEXT"}], "rows": [[766, 167, 1, "2006-02-15 05:09:17"]], "primary_key": "inventory_id"}, {"nam...
0
false
train_s000_L4_00033
4
document
doc
party_people
CREATE TABLE party ( party_id INTEGER PRIMARY KEY, minister TEXT, took_office INTEGER, region_id INTEGER, party_name TEXT ); CREATE TABLE member ( party_id INTEGER, member_name TEXT, in_office TEXT, member_id INTEGER, FOREIGN KEY (party_id) REFERENCES party(party_id) ); INSERT INTO party (party_id, ...
{"db_id": "party_people", "tables": [{"name": "party", "columns": [{"name": "party_id", "type": "INTEGER"}, {"name": "minister", "type": "TEXT"}, {"name": "took_office", "type": "INTEGER"}, {"name": "region_id", "type": "INTEGER"}, {"name": "party_name", "type": "TEXT"}], "rows": [[2, "Kojo Botsio (MP)", 1958, 2, "Prog...
0
false
train_s000_L4_00034
4
document
doc
cre_Drama_Workshop_Groups
CREATE TABLE customer_orders ( order_id INTEGER PRIMARY KEY, customer_id INTEGER, order_date TEXT, planned_delivery_date TEXT, actual_delivery_date TEXT ); CREATE TABLE invoices ( payment_method_code TEXT, invoice_id INTEGER, order_id INTEGER, order_quantity INTEGER, order_item_id INTEGER, FOREIGN...
{"db_id": "cre_Drama_Workshop_Groups", "tables": [{"name": "customer_orders", "columns": [{"name": "order_id", "type": "INTEGER"}, {"name": "customer_id", "type": "INTEGER"}, {"name": "order_date", "type": "TEXT"}, {"name": "planned_delivery_date", "type": "TEXT"}, {"name": "actual_delivery_date", "type": "TEXT"}], "ro...
0
false
train_s000_L4_00035
4
document
doc
formula_1
CREATE TABLE races ( race_id INTEGER PRIMARY KEY, year INTEGER, round INTEGER, name TEXT, date TEXT, time TEXT ); CREATE TABLE qualifying ( q3 TEXT, q1 TEXT, race_id INTEGER, position INTEGER, FOREIGN KEY (race_id) REFERENCES races(race_id) ); INSERT INTO races (race_id, year, round, name, date, t...
{"db_id": "formula_1", "tables": [{"name": "races", "columns": [{"name": "race_id", "type": "INTEGER"}, {"name": "year", "type": "INTEGER"}, {"name": "round", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}, {"name": "date", "type": "TEXT"}, {"name": "time", "type": "TEXT"}], "rows": [[20, 2008, 3, "Bahrain Grand ...
0
false
train_s000_L4_00036
4
document
doc
insurance_and_eClaims
CREATE TABLE staff ( staff_id INTEGER PRIMARY KEY, staff_details TEXT ); CREATE TABLE claims_documents ( claim_id INTEGER, created_by_staff_id INTEGER, created_date INTEGER, FOREIGN KEY (created_by_staff_id) REFERENCES staff(staff_id) ); INSERT INTO staff (staff_id, staff_details) VALUES (771, 'Bo'); INSERT...
{"db_id": "insurance_and_eClaims", "tables": [{"name": "staff", "columns": [{"name": "staff_id", "type": "INTEGER"}, {"name": "staff_details", "type": "TEXT"}], "rows": [[771, "Bo"]], "primary_key": "staff_id"}, {"name": "claims_documents", "columns": [{"name": "claim_id", "type": "INTEGER"}, {"name": "created_by_staff...
0
false
train_s000_L4_00037
4
document
doc
csu_1
CREATE TABLE campuses ( id INTEGER PRIMARY KEY, campus TEXT, location TEXT, county TEXT ); CREATE TABLE enrollments ( campus INTEGER, year INTEGER, fte_ay INTEGER, FOREIGN KEY (campus) REFERENCES campuses(id) ); INSERT INTO campuses (id, campus, location, county) VALUES (11, 'California Maritime Academy...
{"db_id": "csu_1", "tables": [{"name": "campuses", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "campus", "type": "TEXT"}, {"name": "location", "type": "TEXT"}, {"name": "county", "type": "TEXT"}], "rows": [[11, "California Maritime Academy", "Vallejo", "Solano"]], "primary_key": "id"}, {"name": "enrollments...
0
false
train_s000_L4_00038
4
document
doc
flight_4
CREATE TABLE airports ( apid INTEGER PRIMARY KEY, country TEXT, icao TEXT ); CREATE TABLE routes ( alid INTEGER, dst_apid INTEGER, src_apid INTEGER, src_ap TEXT, FOREIGN KEY (dst_apid) REFERENCES airports(apid) ); INSERT INTO airports (apid, country, icao) VALUES (2062, 'Saudi Arabia', 'OEBH'); INSERT I...
{"db_id": "flight_4", "tables": [{"name": "airports", "columns": [{"name": "apid", "type": "INTEGER"}, {"name": "country", "type": "TEXT"}, {"name": "icao", "type": "TEXT"}], "rows": [[2062, "Saudi Arabia", "OEBH"]], "primary_key": "apid"}, {"name": "routes", "columns": [{"name": "alid", "type": "INTEGER"}, {"name": "d...
0
false
train_s000_L4_00039
4
document
doc
college_3
CREATE TABLE department ( dno INTEGER PRIMARY KEY, dname TEXT, dphone INTEGER ); CREATE TABLE course ( credits INTEGER, cname TEXT, dno INTEGER, FOREIGN KEY (dno) REFERENCES department(dno) ); INSERT INTO department (dno, dname, dphone) VALUES (50, 'Cognitive Science', 7119); INSERT INTO course (credits, ...
{"db_id": "college_3", "tables": [{"name": "department", "columns": [{"name": "dno", "type": "INTEGER"}, {"name": "dname", "type": "TEXT"}, {"name": "dphone", "type": "INTEGER"}], "rows": [[50, "Cognitive Science", 7119]], "primary_key": "dno"}, {"name": "course", "columns": [{"name": "credits", "type": "INTEGER"}, {"n...
0
false
train_s000_L4_00040
4
document
doc
customers_card_transactions
CREATE TABLE customers_cards ( card_id INTEGER PRIMARY KEY, customer_id INTEGER, card_number INTEGER, date_valid_from TEXT, date_valid_to TEXT ); CREATE TABLE financial_transactions ( card_id INTEGER, transaction_id INTEGER, account_id INTEGER, transaction_date TEXT, FOREIGN KEY (card_id) REFERENCES...
{"db_id": "customers_card_transactions", "tables": [{"name": "customers_cards", "columns": [{"name": "card_id", "type": "INTEGER"}, {"name": "customer_id", "type": "INTEGER"}, {"name": "card_number", "type": "INTEGER"}, {"name": "date_valid_from", "type": "TEXT"}, {"name": "date_valid_to", "type": "TEXT"}], "rows": [[7...
0
false
train_s000_L4_00041
4
document
doc
apartment_rentals
CREATE TABLE apartment_bookings ( apt_booking_id INTEGER PRIMARY KEY, booking_status_code TEXT, booking_start_date TEXT ); CREATE TABLE view_unit_status ( apt_booking_id INTEGER, apt_id INTEGER, available_yn INTEGER, FOREIGN KEY (apt_booking_id) REFERENCES apartment_bookings(apt_booking_id) ); INSERT INTO...
{"db_id": "apartment_rentals", "tables": [{"name": "apartment_bookings", "columns": [{"name": "apt_booking_id", "type": "INTEGER"}, {"name": "booking_status_code", "type": "TEXT"}, {"name": "booking_start_date", "type": "TEXT"}], "rows": [[497, "Confirmed", "2016-07-25 02:57:04"]], "primary_key": "apt_booking_id"}, {"n...
0
false
train_s000_L4_00042
4
document
doc
tracking_share_transactions
CREATE TABLE investors ( investor_id INTEGER PRIMARY KEY, investor_details TEXT ); CREATE TABLE transactions ( transaction_type_code TEXT, transaction_id INTEGER, investor_id INTEGER, share_count INTEGER, FOREIGN KEY (investor_id) REFERENCES investors(investor_id) ); INSERT INTO investors (investor_id, in...
{"db_id": "tracking_share_transactions", "tables": [{"name": "investors", "columns": [{"name": "investor_id", "type": "INTEGER"}, {"name": "investor_details", "type": "TEXT"}], "rows": [[3, "d"]], "primary_key": "investor_id"}, {"name": "transactions", "columns": [{"name": "transaction_type_code", "type": "TEXT"}, {"na...
0
false
train_s000_L4_00043
4
document
doc
driving_school
CREATE TABLE staff ( staff_id INTEGER PRIMARY KEY, staff_address_id INTEGER, nickname TEXT ); CREATE TABLE lessons ( lesson_id INTEGER, customer_id INTEGER, staff_id INTEGER, lesson_date TEXT, lesson_time INTEGER, price INTEGER, FOREIGN KEY (staff_id) REFERENCES staff(staff_id) ); INSERT INTO staff ...
{"db_id": "driving_school", "tables": [{"name": "staff", "columns": [{"name": "staff_id", "type": "INTEGER"}, {"name": "staff_address_id", "type": "INTEGER"}, {"name": "nickname", "type": "TEXT"}], "rows": [[8, 1, "gabe21"]], "primary_key": "staff_id"}, {"name": "lessons", "columns": [{"name": "lesson_id", "type": "INT...
0
false
train_s000_L4_00044
4
document
doc
college_2
CREATE TABLE instructor ( id INTEGER PRIMARY KEY, name TEXT, dept_name TEXT, salary REAL ); CREATE TABLE teaches ( sec_id INTEGER, id INTEGER, course_id INTEGER, year INTEGER, FOREIGN KEY (id) REFERENCES instructor(id) ); INSERT INTO instructor (id, name, dept_name, salary) VALUES (36897, 'Morris', 'M...
{"db_id": "college_2", "tables": [{"name": "instructor", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}, {"name": "dept_name", "type": "TEXT"}, {"name": "salary", "type": "REAL"}], "rows": [[36897, "Morris", "Marketing", 43770.36]], "primary_key": "id"}, {"name": "teaches", "columns": [...
0
false
train_s000_L4_00045
4
document
doc
school_finance
CREATE TABLE school ( school_id INTEGER PRIMARY KEY, ihsaa_class TEXT, ihsaa_football_class TEXT ); CREATE TABLE budget ( school_id INTEGER, budgeted INTEGER, total_budget_percent_budgeted INTEGER, invested INTEGER, total_budget_percent_invested INTEGER, budget_invested_percent REAL, FOREIGN KEY (sc...
{"db_id": "school_finance", "tables": [{"name": "school", "columns": [{"name": "school_id", "type": "INTEGER"}, {"name": "ihsaa_class", "type": "TEXT"}, {"name": "ihsaa_football_class", "type": "TEXT"}], "rows": [[2, "A", "A"]], "primary_key": "school_id"}, {"name": "budget", "columns": [{"name": "school_id", "type": "...
0
false
train_s000_L4_00046
4
document
doc
company_office
CREATE TABLE companies ( id INTEGER PRIMARY KEY, name TEXT, headquarters TEXT, sales_billion REAL ); CREATE TABLE office_locations ( company_id INTEGER, building_id INTEGER, move_in_year INTEGER, FOREIGN KEY (company_id) REFERENCES companies(id) ); INSERT INTO companies (id, name, headquarters, sales_bi...
{"db_id": "company_office", "tables": [{"name": "companies", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}, {"name": "headquarters", "type": "TEXT"}, {"name": "sales_billion", "type": "REAL"}], "rows": [[9, "Petrobras", "Brazil", 121.3]], "primary_key": "id"}, {"name": "office_location...
0
false
train_s000_L4_00047
4
document
doc
college_2
CREATE TABLE student ( id INTEGER PRIMARY KEY, name TEXT, dept_name TEXT, tot_cred INTEGER ); CREATE TABLE takes ( semester TEXT, id INTEGER, sec_id INTEGER, year INTEGER, FOREIGN KEY (id) REFERENCES student(id) ); INSERT INTO student (id, name, dept_name, tot_cred) VALUES (25046, 'Cotterill', 'Financ...
{"db_id": "college_2", "tables": [{"name": "student", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}, {"name": "dept_name", "type": "TEXT"}, {"name": "tot_cred", "type": "INTEGER"}], "rows": [[25046, "Cotterill", "Finance", 57]], "primary_key": "id"}, {"name": "takes", "columns": [{"nam...
0
false
train_s000_L4_00048
4
document
doc
insurance_policies
CREATE TABLE customer_policies ( policy_id INTEGER PRIMARY KEY, customer_id INTEGER, policy_type_code TEXT, start_date TEXT, end_date TEXT ); CREATE TABLE claims ( policy_id INTEGER, claim_id INTEGER, date_claim_made TEXT, date_claim_settled TEXT, amount_claimed INTEGER, FOREIGN KEY (policy_id) RE...
{"db_id": "insurance_policies", "tables": [{"name": "customer_policies", "columns": [{"name": "policy_id", "type": "INTEGER"}, {"name": "customer_id", "type": "INTEGER"}, {"name": "policy_type_code", "type": "TEXT"}, {"name": "start_date", "type": "TEXT"}, {"name": "end_date", "type": "TEXT"}], "rows": [[744, 6, "Prope...
0
false
train_s000_L4_00049
4
document
doc
hr_1
CREATE TABLE jobs ( job_id TEXT PRIMARY KEY, job_title TEXT, min_salary INTEGER, max_salary INTEGER ); CREATE TABLE employees ( commission_pct INTEGER, last_name TEXT, email TEXT, job_id TEXT, salary INTEGER, manager_id INTEGER, FOREIGN KEY (job_id) REFERENCES jobs(job_id) ); INSERT INTO jobs (job...
{"db_id": "hr_1", "tables": [{"name": "jobs", "columns": [{"name": "job_id", "type": "TEXT"}, {"name": "job_title", "type": "TEXT"}, {"name": "min_salary", "type": "INTEGER"}, {"name": "max_salary", "type": "INTEGER"}], "rows": [["FI_ACCOUNT", "Accountant", 4200, 9000]], "primary_key": "job_id"}, {"name": "employees", ...
0
false
train_s000_L4_00050
4
document
doc
products_for_hire
CREATE TABLE discount_coupons ( coupon_id INTEGER PRIMARY KEY, date_issued TEXT, coupon_amount REAL ); CREATE TABLE customers ( good_or_bad_customer TEXT, first_name TEXT, date_last_hire TEXT, coupon_id INTEGER, FOREIGN KEY (coupon_id) REFERENCES discount_coupons(coupon_id) ); INSERT INTO discount_coupo...
{"db_id": "products_for_hire", "tables": [{"name": "discount_coupons", "columns": [{"name": "coupon_id", "type": "INTEGER"}, {"name": "date_issued", "type": "TEXT"}, {"name": "coupon_amount", "type": "REAL"}], "rows": [[12, "2018-03-21 11:49:13", 523.78]], "primary_key": "coupon_id"}, {"name": "customers", "columns": [...
0
false
train_s000_L4_00051
4
document
doc
products_gen_characteristics
CREATE TABLE characteristics ( characteristic_id INTEGER PRIMARY KEY, characteristic_data_type TEXT, characteristic_name TEXT ); CREATE TABLE product_characteristics ( characteristic_id INTEGER, product_characteristic_value TEXT, product_id INTEGER, FOREIGN KEY (characteristic_id) REFERENCES characteristi...
{"db_id": "products_gen_characteristics", "tables": [{"name": "characteristics", "columns": [{"name": "characteristic_id", "type": "INTEGER"}, {"name": "characteristic_data_type", "type": "TEXT"}, {"name": "characteristic_name", "type": "TEXT"}], "rows": [[2, "doloribus", "fast"]], "primary_key": "characteristic_id"}, ...
0
false
train_s000_L4_00052
4
document
doc
swimming
CREATE TABLE swimmer ( id INTEGER PRIMARY KEY, meter_300 TEXT, meter_700 TEXT ); CREATE TABLE record ( result TEXT, id INTEGER, swimmer_id INTEGER, FOREIGN KEY (swimmer_id) REFERENCES swimmer(id) ); INSERT INTO swimmer (id, meter_300, meter_700) VALUES (4, '2:55.90', '6:52.69'); INSERT INTO record (result...
{"db_id": "swimming", "tables": [{"name": "swimmer", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "meter_300", "type": "TEXT"}, {"name": "meter_700", "type": "TEXT"}], "rows": [[4, "2:55.90", "6:52.69"]], "primary_key": "id"}, {"name": "record", "columns": [{"name": "result", "type": "TEXT"}, {"name": "id", ...
0
false
train_s000_L4_00053
4
document
doc
products_gen_characteristics
CREATE TABLE products ( product_id INTEGER PRIMARY KEY, color_code INTEGER, product_category_code TEXT ); CREATE TABLE product_characteristics ( product_id INTEGER, characteristic_id INTEGER, product_characteristic_value TEXT, FOREIGN KEY (product_id) REFERENCES products(product_id) ); INSERT INTO product...
{"db_id": "products_gen_characteristics", "tables": [{"name": "products", "columns": [{"name": "product_id", "type": "INTEGER"}, {"name": "color_code", "type": "INTEGER"}, {"name": "product_category_code", "type": "TEXT"}], "rows": [[11, 7, "Herbs"]], "primary_key": "product_id"}, {"name": "product_characteristics", "c...
0
false
train_s000_L4_00054
4
document
doc
college_3
CREATE TABLE student ( stu_id INTEGER PRIMARY KEY, lname TEXT, age INTEGER, sex TEXT, advisor INTEGER, city_code TEXT ); CREATE TABLE enrolled_in ( stu_id INTEGER, cid REAL, grade TEXT, FOREIGN KEY (stu_id) REFERENCES student(stu_id) ); INSERT INTO student (stu_id, lname, age, sex, advisor, city_cod...
{"db_id": "college_3", "tables": [{"name": "student", "columns": [{"name": "stu_id", "type": "INTEGER"}, {"name": "lname", "type": "TEXT"}, {"name": "age", "type": "INTEGER"}, {"name": "sex", "type": "TEXT"}, {"name": "advisor", "type": "INTEGER"}, {"name": "city_code", "type": "TEXT"}], "rows": [[1006, "Schultz", 18, ...
0
false
train_s000_L4_00055
4
document
doc
icfp_1
CREATE TABLE papers ( paper_id INTEGER PRIMARY KEY, title TEXT ); CREATE TABLE authorship ( auth_id INTEGER, inst_id INTEGER, paper_id INTEGER, auth_order INTEGER, FOREIGN KEY (paper_id) REFERENCES papers(paper_id) ); INSERT INTO papers (paper_id, title) VALUES (206, 'Binders Unbound'); INSERT INTO author...
{"db_id": "icfp_1", "tables": [{"name": "papers", "columns": [{"name": "paper_id", "type": "INTEGER"}, {"name": "title", "type": "TEXT"}], "rows": [[206, "Binders Unbound"]], "primary_key": "paper_id"}, {"name": "authorship", "columns": [{"name": "auth_id", "type": "INTEGER"}, {"name": "inst_id", "type": "INTEGER"}, {"...
0
false
train_s000_L4_00056
4
document
doc
station_weather
CREATE TABLE station ( id INTEGER PRIMARY KEY, network_name TEXT, services TEXT ); CREATE TABLE weekly_weather ( high_temperature INTEGER, day_of_week TEXT, station_id INTEGER, low_temperature INTEGER, wind_speed_mph INTEGER, FOREIGN KEY (station_id) REFERENCES station(id) ); INSERT INTO station (id, ...
{"db_id": "station_weather", "tables": [{"name": "station", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "network_name", "type": "TEXT"}, {"name": "services", "type": "TEXT"}], "rows": [[1, "Amersham", "Metropolitan line and Chiltern Railways"]], "primary_key": "id"}, {"name": "weekly_weather", "columns": [{...
0
false
train_s000_L4_00057
4
document
doc
local_govt_in_alabama
CREATE TABLE services ( service_id INTEGER PRIMARY KEY, service_type_code TEXT ); CREATE TABLE events ( event_details TEXT, event_id INTEGER, service_id INTEGER, FOREIGN KEY (service_id) REFERENCES services(service_id) ); INSERT INTO services (service_id, service_type_code) VALUES (2, 'Marriage'); INSERT IN...
{"db_id": "local_govt_in_alabama", "tables": [{"name": "services", "columns": [{"name": "service_id", "type": "INTEGER"}, {"name": "service_type_code", "type": "TEXT"}], "rows": [[2, "Marriage"]], "primary_key": "service_id"}, {"name": "events", "columns": [{"name": "event_details", "type": "TEXT"}, {"name": "event_id"...
0
false
train_s000_L4_00058
4
document
doc
tracking_orders
CREATE TABLE invoices ( invoice_number INTEGER PRIMARY KEY, invoice_date TEXT, invoice_details TEXT ); CREATE TABLE shipments ( invoice_number INTEGER, shipment_date TEXT, shipment_id INTEGER, order_id INTEGER, shipment_tracking_number INTEGER, FOREIGN KEY (invoice_number) REFERENCES invoices(invoice_...
{"db_id": "tracking_orders", "tables": [{"name": "invoices", "columns": [{"name": "invoice_number", "type": "INTEGER"}, {"name": "invoice_date", "type": "TEXT"}, {"name": "invoice_details", "type": "TEXT"}], "rows": [[10, "2005-02-27 19:53:13", "eveniet"]], "primary_key": "invoice_number"}, {"name": "shipments", "colum...
0
false
train_s000_L4_00059
4
document
doc
formula_1
CREATE TABLE constructors ( constructor_id INTEGER PRIMARY KEY, constructor_ref TEXT, name TEXT, nationality TEXT, url TEXT ); CREATE TABLE constructor_results ( points INTEGER, status TEXT, constructor_results_id INTEGER, constructor_id INTEGER, FOREIGN KEY (constructor_id) REFERENCES constructors(...
{"db_id": "formula_1", "tables": [{"name": "constructors", "columns": [{"name": "constructor_id", "type": "INTEGER"}, {"name": "constructor_ref", "type": "TEXT"}, {"name": "name", "type": "TEXT"}, {"name": "nationality", "type": "TEXT"}, {"name": "url", "type": "TEXT"}], "rows": [[201, "lotus-pw", "Lotus-Pratt & Wh...
0
false
train_s000_L4_00060
4
document
doc
hr_1
CREATE TABLE jobs ( job_id TEXT PRIMARY KEY, job_title TEXT, min_salary INTEGER, max_salary INTEGER ); CREATE TABLE employees ( commission_pct INTEGER, last_name TEXT, hire_date TEXT, job_id TEXT, employee_id INTEGER, department_id INTEGER, FOREIGN KEY (job_id) REFERENCES jobs(job_id) ); INSERT IN...
{"db_id": "hr_1", "tables": [{"name": "jobs", "columns": [{"name": "job_id", "type": "TEXT"}, {"name": "job_title", "type": "TEXT"}, {"name": "min_salary", "type": "INTEGER"}, {"name": "max_salary", "type": "INTEGER"}], "rows": [["ST_MAN", "Stock Manager", 5500, 8500]], "primary_key": "job_id"}, {"name": "employees", "...
0
false
train_s000_L4_00061
4
document
doc
product_catalog
CREATE TABLE catalog_structure ( catalog_level_number INTEGER PRIMARY KEY, catalog_id INTEGER, catalog_level_name TEXT ); CREATE TABLE catalog_contents ( catalog_entry_name TEXT, product_stock_number TEXT, catalog_level_number INTEGER, price_in_pounds REAL, capacity INTEGER, width INTEGER, FOREIGN K...
{"db_id": "product_catalog", "tables": [{"name": "catalog_structure", "columns": [{"name": "catalog_level_number", "type": "INTEGER"}, {"name": "catalog_id", "type": "INTEGER"}, {"name": "catalog_level_name", "type": "TEXT"}], "rows": [[8, 2, "Sub-Category"]], "primary_key": "catalog_level_number"}, {"name": "catalog_c...
0
false
train_s000_L4_00062
4
document
doc
cinema
CREATE TABLE film ( film_id INTEGER PRIMARY KEY, number_in_season INTEGER, title TEXT, original_air_date TEXT, production_code TEXT ); CREATE TABLE schedule ( film_id INTEGER, cinema_id INTEGER, date TEXT, show_times_per_day INTEGER, price REAL, FOREIGN KEY (film_id) REFERENCES film(film_id) ); IN...
{"db_id": "cinema", "tables": [{"name": "film", "columns": [{"name": "film_id", "type": "INTEGER"}, {"name": "number_in_season", "type": "INTEGER"}, {"name": "title", "type": "TEXT"}, {"name": "original_air_date", "type": "TEXT"}, {"name": "production_code", "type": "TEXT"}], "rows": [[1, 1, "The Case of the Mystery We...
0
false
train_s000_L4_00063
4
document
doc
movie_1
CREATE TABLE reviewer ( r_id INTEGER PRIMARY KEY, name TEXT ); CREATE TABLE rating ( r_id INTEGER, rating_date TEXT, m_id INTEGER, stars INTEGER, FOREIGN KEY (r_id) REFERENCES reviewer(r_id) ); INSERT INTO reviewer (r_id, name) VALUES (203, 'Brittany Harris'); INSERT INTO rating (r_id, rating_date, m_id, ...
{"db_id": "movie_1", "tables": [{"name": "reviewer", "columns": [{"name": "r_id", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}], "rows": [[203, "Brittany Harris"]], "primary_key": "r_id"}, {"name": "rating", "columns": [{"name": "r_id", "type": "INTEGER"}, {"name": "rating_date", "type": "TEXT"}, {"name": "m_id...
0
false
train_s000_L4_00064
4
document
doc
csu_1
CREATE TABLE campuses ( id INTEGER PRIMARY KEY, campus TEXT, location TEXT, county TEXT, year INTEGER ); CREATE TABLE discipline_enrollments ( year INTEGER, campus INTEGER, graduate INTEGER, FOREIGN KEY (campus) REFERENCES campuses(id) ); INSERT INTO campuses (id, campus, location, county, year) VALUE...
{"db_id": "csu_1", "tables": [{"name": "campuses", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "campus", "type": "TEXT"}, {"name": "location", "type": "TEXT"}, {"name": "county", "type": "TEXT"}, {"name": "year", "type": "INTEGER"}], "rows": [[19, "San Jose State University", "San Jose", "Santa Clara", 1857...
0
false
train_s000_L4_00065
4
document
doc
architecture
CREATE TABLE architect ( id INTEGER PRIMARY KEY, name TEXT, gender TEXT ); CREATE TABLE bridge ( architect_id INTEGER, name TEXT, length_feet INTEGER, FOREIGN KEY (architect_id) REFERENCES architect(id) ); INSERT INTO architect (id, name, gender) VALUES (5, 'Le Corbusier', 'male'); INSERT INTO bridge (arc...
{"db_id": "architecture", "tables": [{"name": "architect", "columns": [{"name": "id", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}, {"name": "gender", "type": "TEXT"}], "rows": [[5, "Le Corbusier", "male"]], "primary_key": "id"}, {"name": "bridge", "columns": [{"name": "architect_id", "type": "INTEGER"}, {"name...
0
false
train_s000_L4_00066
4
document
doc
chinook_1
CREATE TABLE genre ( genre_id INTEGER PRIMARY KEY, name TEXT ); CREATE TABLE track ( genre_id INTEGER, composer TEXT, milliseconds INTEGER, unit_price REAL, FOREIGN KEY (genre_id) REFERENCES genre(genre_id) ); INSERT INTO genre (genre_id, name) VALUES (5, 'Rock And Roll'); INSERT INTO track (genre_id, com...
{"db_id": "chinook_1", "tables": [{"name": "genre", "columns": [{"name": "genre_id", "type": "INTEGER"}, {"name": "name", "type": "TEXT"}], "rows": [[5, "Rock And Roll"]], "primary_key": "genre_id"}, {"name": "track", "columns": [{"name": "genre_id", "type": "INTEGER"}, {"name": "composer", "type": "TEXT"}, {"name": "m...
0
false
train_s000_L4_00067
4
document
doc
pilot_record
CREATE TABLE pilot ( pilot_id INTEGER PRIMARY KEY, pilot_name TEXT, rank INTEGER, team TEXT ); CREATE TABLE pilot_record ( pilot_id INTEGER, record_id INTEGER, date TEXT, FOREIGN KEY (pilot_id) REFERENCES pilot(pilot_id) ); INSERT INTO pilot (pilot_id, pilot_name, rank, team) VALUES (1, 'Patrick O''Brya...
{"db_id": "pilot_record", "tables": [{"name": "pilot", "columns": [{"name": "pilot_id", "type": "INTEGER"}, {"name": "pilot_name", "type": "TEXT"}, {"name": "rank", "type": "INTEGER"}, {"name": "team", "type": "TEXT"}], "rows": [[1, "Patrick O'Bryant", 13, "Bradley"]], "primary_key": "pilot_id"}, {"name": "pilot_record...
0
false
train_s000_L4_00068
4
document
doc
movie_1
CREATE TABLE movie ( m_id INTEGER PRIMARY KEY, title TEXT, year INTEGER, director TEXT ); CREATE TABLE rating ( r_id INTEGER, m_id INTEGER, stars INTEGER, FOREIGN KEY (m_id) REFERENCES movie(m_id) ); INSERT INTO movie (m_id, title, year, director) VALUES (101, 'Gone with the Wind', 1939, 'Victor Fleming...
{"db_id": "movie_1", "tables": [{"name": "movie", "columns": [{"name": "m_id", "type": "INTEGER"}, {"name": "title", "type": "TEXT"}, {"name": "year", "type": "INTEGER"}, {"name": "director", "type": "TEXT"}], "rows": [[101, "Gone with the Wind", 1939, "Victor Fleming"]], "primary_key": "m_id"}, {"name": "rating", "col...
0
false
train_s000_L4_00069
4
document
doc
performance_attendance
CREATE TABLE performance ( performance_id INTEGER PRIMARY KEY, date TEXT, host TEXT, location TEXT, attendance INTEGER ); CREATE TABLE member_attendance ( member_id INTEGER, performance_id INTEGER, num_of_pieces INTEGER, FOREIGN KEY (performance_id) REFERENCES performance(performance_id) ); INSERT INT...
{"db_id": "performance_attendance", "tables": [{"name": "performance", "columns": [{"name": "performance_id", "type": "INTEGER"}, {"name": "date", "type": "TEXT"}, {"name": "host", "type": "TEXT"}, {"name": "location", "type": "TEXT"}, {"name": "attendance", "type": "INTEGER"}], "rows": [[1, "February 2", "Boston Bruin...
0
false