question
string
answer
string
context
string
dialect
string
spider_hardness
string
extended_hardness
string
classification_status
string
syntax_status
string
ddl_syntax_status
string
schema_status
string
syntax_errors
list
ddl_syntax_errors
list
schema_errors
list
classification_errors
list
status_history
list
correction_status
string
component1
int64
component2
int64
others
int64
validation_source
dict
What is the sum of total pounds of purchase in year 2018 for all branches in London?
SELECT SUM(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018
CREATE TABLE purchase (branch_id VARCHAR(255), year VARCHAR(255), total_pounds INTEGER); CREATE TABLE branch (branch_id VARCHAR(255), city VARCHAR(255));
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 3088 }
How many male (sex is M) students have class senator votes in the fall election cycle?
SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Class_Senator_Vote WHERE T1.Sex = 'M' AND T2.Election_Cycle = 'Fall'
CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR(255), Class_Senator_Vote VARCHAR(255)); CREATE TABLE STUDENT (StuID VARCHAR(255), Sex VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 3113 }
Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.
SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Class_Senator_Vote WHERE T1.city_code = 'NYC' AND T2.Election_Cycle = 'Spring'
CREATE TABLE STUDENT (StuID VARCHAR(255), city_code VARCHAR(255)); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR(255), Class_Senator_Vote VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 3114 }
Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle.
SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.StuID WHERE T1.city_code = 'NYC' AND T2.Election_Cycle = 'Spring' AND T2.SECRETARY_Vote = 1
CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR(255), city_code VARCHAR(255)); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR(255), StuID VARCHAR(255), SECRETARY_Vote INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 3115 }
Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.
SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.SECRETARY_Vote WHERE T1.Sex = 'F' AND T2.Election_Cycle = 'Spring'
CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR(255), Sex VARCHAR(255)); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR(255), SECRETARY_Vote VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 3116 }
Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.
SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = 'PIT'
CREATE TABLE STUDENT (Fname VARCHAR(255), city_code VARCHAR(255), StuID VARCHAR(255)); CREATE TABLE VOTING_RECORD (VICE_PRESIDENT_Vote VARCHAR(255))
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
1
0
{ "split": "train", "row_index": 3117 }
Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.PRESIDENT_Vote WHERE T2.PRESIDENT_Vote IS NOT NULL EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = '2192'
CREATE TABLE STUDENT (LName VARCHAR(255), StuID VARCHAR(255), Advisor VARCHAR(255)); CREATE TABLE VOTING_RECORD (Id VARCHAR(255), PRESIDENT_Vote VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
1
0
{ "split": "train", "row_index": 3118 }
Find the distinct last names of all the students who have president votes and whose advisor is 8741.
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.PRESIDENT_Vote WHERE T1.Advisor = '8741'
CREATE TABLE STUDENT (LName VARCHAR(255), StuID VARCHAR(255), Advisor VARCHAR(255)); CREATE TABLE VOTING_RECORD (Id VARCHAR(255), PRESIDENT_Vote VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
0
{ "split": "train", "row_index": 3119 }
Which major has the most students?
SELECT `major` FROM STUDENT GROUP BY `major` ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE STUDENT (`major` VARCHAR(255))
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
3
0
0
{ "split": "train", "row_index": 3124 }
What is the most common major among female (sex is F) students?
SELECT major FROM STUDENT WHERE Sex = 'F' GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE STUDENT (major VARCHAR(255), Sex VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
4
0
0
{ "split": "train", "row_index": 3125 }
List the names, color descriptions and product descriptions of products with category "Herbs".
SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = 'Herbs'
CREATE TABLE Ref_colors (color_description VARCHAR(255), color_code VARCHAR(255)); CREATE TABLE products (product_name VARCHAR(255), product_description VARCHAR(255), color_code VARCHAR(255), product_category_code VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 3134 }
Find the name of the products that have the color description "red" and have the characteristic name "fast".
SELECT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = 'red' AND t3.characteristic_name = 'fast'
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR(255), characteristic_name VARCHAR(255)); CREATE TABLE ref_colors (color_code VARCHAR(255), color_description VARCHAR(255)); CREATE TABLE products (product_id VARCHAR(255), color_code VARCHAR(255), product_name VARCHAR(255)); CREATE TABLE product_characteristics (p...
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
4
0
1
{ "split": "train", "row_index": 3153 }
Find the names of swimmers who has a result of "win".
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE `RESULT` = 'Win'
CREATE TABLE record (swimmer_id VARCHAR(255), `RESULT` VARCHAR(255)); CREATE TABLE swimmer (name VARCHAR(255), id VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
0
{ "split": "train", "row_index": 3187 }
Find the name and nationality of the swimmer who has won (i.e., has a result of "win") more than 1 time.
SELECT t1.name, t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING COUNT(*) > 1
CREATE TABLE record (swimmer_id VARCHAR(255), RESULT VARCHAR(255)); CREATE TABLE swimmer (name VARCHAR(255), nationality VARCHAR(255), id VARCHAR(255))
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
3
0
1
{ "split": "train", "row_index": 3193 }
Find the names of the swimmers who have both "win" and "loss" results in the record.
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE t2.`result` = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE t2.`result` = 'Loss'
CREATE TABLE swimmer (name VARCHAR(255), id VARCHAR(255)); CREATE TABLE record (swimmer_id VARCHAR(255), `result` VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
1
0
{ "split": "train", "row_index": 3195 }
Find the average age of students who are living in the dorm with the largest capacity.
SELECT AVG(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT MAX(student_capacity) FROM dorm)
CREATE TABLE dorm ( dormid VARCHAR(255), student_capacity INTEGER ); CREATE TABLE student ( stuid VARCHAR(255), age INTEGER ); CREATE TABLE lives_in ( stuid VARCHAR(255), dormid VARCHAR(255) );
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
3
1
0
{ "split": "train", "row_index": 3273 }
Find the name of dorms that do not have amenity TV Lounge.
SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge'
CREATE TABLE dorm (dorm_name VARCHAR(255), dormid VARCHAR(255)); CREATE TABLE has_amenity (dormid VARCHAR(255), amenid VARCHAR(255)); CREATE TABLE dorm_amenity (amenid VARCHAR(255), amenity_name VARCHAR(255))
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
1
0
{ "split": "train", "row_index": 3281 }
Show the average amount of transactions for different lots.
SELECT T2.lot_id, AVG(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id
CREATE TABLE TRANSACTIONS (transaction_id VARCHAR(255), amount_of_transaction INTEGER); CREATE TABLE Transactions_Lots (lot_id VARCHAR(255), transaction_id VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 3349 }
Show the average amount of transactions for different lots, ordered by average amount of transactions.
SELECT T2.lot_id, AVG(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY AVG(amount_of_transaction)
CREATE TABLE TRANSACTIONS (transaction_id VARCHAR(255), amount_of_transaction INTEGER); CREATE TABLE Transactions_Lots (lot_id VARCHAR(255), transaction_id VARCHAR(255));
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
3
0
2
{ "split": "train", "row_index": 3350 }
Show total hours per week and number of games played for student David Shieber.
SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = 'David' AND T2.Lname = 'Shieber'
CREATE TABLE Student (StuID VARCHAR(255), Fname VARCHAR(255), Lname VARCHAR(255)); CREATE TABLE Sportsinfo (StuID VARCHAR(255), hoursperweek INTEGER, gamesplayed INTEGER)
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
3
{ "split": "train", "row_index": 3435 }
Show total hours per week and number of games played for students under 20.
SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20
CREATE TABLE Student (StuID VARCHAR(255), age INTEGER); CREATE TABLE Sportsinfo (StuID VARCHAR(255), hoursperweek INTEGER, gamesplayed INTEGER)
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
2
{ "split": "train", "row_index": 3436 }
Show the game name that has most number of hours played.
SELECT T2.gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY SUM(T1.hours_played) DESC LIMIT 1
CREATE TABLE Plays_games (gameid VARCHAR(255), hours_played INTEGER); CREATE TABLE Video_games (gameid VARCHAR(255), gname VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
4
0
0
{ "split": "train", "row_index": 3442 }
Show all game names played by at least 1000 hours.
SELECT T2.gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING SUM(T1.hours_played) >= 1000
CREATE TABLE Plays_games (gameid VARCHAR(255), hours_played INTEGER); CREATE TABLE Video_games (gameid VARCHAR(255), gname VARCHAR(255));
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
0
{ "split": "train", "row_index": 3443 }
Show all game names played by Linda Smith
SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = 'Smith' AND T3.Fname = 'Linda'
CREATE TABLE Student (Stuid VARCHAR(255), Lname VARCHAR(255), Fname VARCHAR(255)); CREATE TABLE Plays_games (gameid VARCHAR(255), Stuid VARCHAR(255)); CREATE TABLE Video_games (gameid VARCHAR(255), Gname VARCHAR(255))
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
3
0
1
{ "split": "train", "row_index": 3444 }
Which contact channel has been used by the customer with name "Tillman Ernser"?
SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = 'Tillman Ernser'
CREATE TABLE customers (customer_id VARCHAR(255), customer_name VARCHAR(255)); CREATE TABLE customer_contact_channels (customer_id VARCHAR(255), channel_code VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
0
{ "split": "train", "row_index": 3467 }
Find the customer name and date of the orders that have the status "Delivered".
SELECT t1.customer_name, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE t2.order_status = 'Delivered'
CREATE TABLE customer_orders (order_date VARCHAR(255), customer_id VARCHAR(255), order_status VARCHAR(255)); CREATE TABLE customers (customer_name VARCHAR(255), customer_id VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 3479 }
find the name of driver who is driving the school bus with the longest working history.
SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id = t2.driver_id ORDER BY t2.years_working DESC LIMIT 1
CREATE TABLE driver (name VARCHAR(255), driver_id VARCHAR(255)); CREATE TABLE school_bus (driver_id VARCHAR(255), years_working INTEGER)
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
3
0
0
{ "split": "train", "row_index": 3614 }
What are the names and types of the companies that have ever operated a flight?
SELECT T1.name, T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = t2.company_id
CREATE TABLE operate_company (name VARCHAR(255), type VARCHAR(255), id VARCHAR(255)); CREATE TABLE flight (Id VARCHAR(255), company_id VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 3620 }
What are the distinct types of the companies that have operated any flights with velocity less than 200?
SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = t2.company_id WHERE t2.velocity < 200
CREATE TABLE operate_company (type VARCHAR(255), id VARCHAR(255)); CREATE TABLE flight (Id VARCHAR(255), company_id VARCHAR(255), velocity INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
0
{ "split": "train", "row_index": 3622 }
What are the ids and names of the companies that operated more than one flight?
SELECT T1.id, T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = t2.company_id GROUP BY T1.id HAVING COUNT(*) > 1
CREATE TABLE operate_company (id VARCHAR(255), name VARCHAR(255)); CREATE TABLE flight (Id VARCHAR(255), company_id VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 3623 }
List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.
SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS T2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS T2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services'
CREATE TABLE operate_company (id VARCHAR(255), principal_activities VARCHAR(255)); CREATE TABLE flight (Id VARCHAR(255), company_id VARCHAR(255), pilot VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
1
0
{ "split": "train", "row_index": 3628 }
Show the document name and the document date for all documents on project with details 'Graph Database project'.
SELECT document_name, document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'
CREATE TABLE Documents (project_id VARCHAR(255), document_name VARCHAR(255), document_date VARCHAR(255)); CREATE TABLE projects (project_id VARCHAR(255), project_details VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 3645 }
What is the color of the grape whose wine products has the highest average price?
SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1
CREATE TABLE GRAPES (Color VARCHAR(255), Grape VARCHAR(255)); CREATE TABLE WINE (Grape VARCHAR(255), Price INTEGER)
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
4
0
0
{ "split": "train", "row_index": 3723 }
Find the average price of wines that are not produced from Sonoma county.
SELECT AVG(price) FROM wine WHERE NOT Appelation IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma')
CREATE TABLE wine (price INTEGER, Appelation VARCHAR(255)); CREATE TABLE APPELLATIONS (Appelation VARCHAR(255), County VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
1
1
{ "split": "train", "row_index": 3738 }
Find the names of the trains that do not pass any station located in London.
SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE NOT T1.station_id IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE T4.location = 'London')
CREATE TABLE station (station_id VARCHAR(255), location VARCHAR(255)); CREATE TABLE train_station (train_id VARCHAR(255), station_id VARCHAR(255)); CREATE TABLE train (name VARCHAR(255), train_id VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
1
0
{ "split": "train", "row_index": 3761 }
List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.
SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Janessa' AND T2.last_name = 'Sawayn' AND T2.nickname LIKE '%s%'
CREATE TABLE Lessons (lesson_id VARCHAR(255), staff_id VARCHAR(255)); CREATE TABLE Staff (staff_id VARCHAR(255), first_name VARCHAR(255), last_name VARCHAR(255), nickname VARCHAR(255))
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
3
0
1
{ "split": "train", "row_index": 3801 }
Find the first names of professors who are not playing Canoeing or Kayaking.
SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T3.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'
CREATE TABLE faculty (lname VARCHAR(255), rank VARCHAR(255), facID VARCHAR(255)); CREATE TABLE Faculty_participates_in (facID VARCHAR(255), actid VARCHAR(255)); CREATE TABLE activity (actid VARCHAR(255), activity_name VARCHAR(255))
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
1
0
{ "split": "train", "row_index": 3850 }
Find the total ranking points for each player and their first name.
SELECT SUM(T2.ranking_points) AS total_ranking_points, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name
CREATE TABLE players (first_name VARCHAR(255), player_id VARCHAR(255)); CREATE TABLE rankings (player_id VARCHAR(255), ranking_points INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 4213 }
What are the death and injury situations caused by the ship with tonnage 't'?
SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS T2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'
CREATE TABLE ship (Id VARCHAR(255), tonnage VARCHAR(255)); CREATE TABLE death (killed VARCHAR(255), injured VARCHAR(255), caused_by_ship_id VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 4228 }
Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.
SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.RESULT, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'
CREATE TABLE ship (lost_in_battle VARCHAR(255), location VARCHAR(255)); CREATE TABLE battle (name VARCHAR(255), RESULT VARCHAR(255), bulgarian_commander VARCHAR(255), id VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
1
1
{ "split": "train", "row_index": 4237 }
Find the semester when both Master students and Bachelor students got enrolled in.
SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE...
CREATE TABLE Degree_Programs (degree_program_id VARCHAR(255), degree_summary_name VARCHAR(255)); CREATE TABLE Student_Enrolment (semester_id VARCHAR(255), degree_program_id VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
1
0
{ "split": "train", "row_index": 4275 }
Which region is the city Kabul located in?
SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Kabul'
CREATE TABLE country (Code VARCHAR(255), Region VARCHAR(255)); CREATE TABLE city (CountryCode VARCHAR(255), Name VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
0
{ "split": "train", "row_index": 4350 }
Which language is the most popular in Aruba?
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' ORDER BY Percentage DESC LIMIT 1
CREATE TABLE country (Code VARCHAR(255), Name VARCHAR(255)); CREATE TABLE countrylanguage (Language VARCHAR(255), CountryCode VARCHAR(255), Percentage INTEGER)
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
4
0
0
{ "split": "train", "row_index": 4351 }
How many official languages does Afghanistan have?
SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Afghanistan' AND T2.IsOfficial = 'T'
CREATE TABLE country (Code VARCHAR(255), Name VARCHAR(255)); CREATE TABLE countrylanguage (CountryCode VARCHAR(255), IsOfficial VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 4364 }
What is the number of distinct continents where Chinese is spoken?
SELECT COUNT(DISTINCT `Continent`) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Chinese'
CREATE TABLE country (Code VARCHAR(255), Continent VARCHAR(255)); CREATE TABLE countrylanguage (CountryCode VARCHAR(255), Language VARCHAR(255))
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
0
{ "split": "train", "row_index": 4370 }
What are the countries where either English or Dutch is the official language ?
SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'english' AND t2.isofficial = 't' UNION SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'dutch' AND t2.isofficial = 't'
CREATE TABLE countrylanguage (countrycode VARCHAR(255), language VARCHAR(255), isofficial VARCHAR(255)); CREATE TABLE country (name VARCHAR(255), code VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
1
1
{ "split": "train", "row_index": 4372 }
What is average life expectancy in the countries where English is not the official language?
SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T')
CREATE TABLE country (LifeExpectancy INTEGER, Name VARCHAR(255), Code VARCHAR(255)); CREATE TABLE countrylanguage (CountryCode VARCHAR(255), Language VARCHAR(255), IsOfficial VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
1
1
{ "split": "train", "row_index": 4378 }
What is the total number of unique official languages spoken in the countries that are founded before 1930?
SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.IndepYear < 1930 AND T2.IsOfficial = 'T'
CREATE TABLE country (Code VARCHAR(255), IndepYear INTEGER); CREATE TABLE countrylanguage (Language VARCHAR(255), CountryCode VARCHAR(255), IsOfficial VARCHAR(255));
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
0
1
{ "split": "train", "row_index": 4381 }
Which cities are in European countries where English is not the official language?
SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')
CREATE TABLE city (Name VARCHAR(255), CountryCode VARCHAR(255)); CREATE TABLE country (Code VARCHAR(255), Name VARCHAR(255), Continent VARCHAR(255)); CREATE TABLE countrylanguage (CountryCode VARCHAR(255), IsOfficial VARCHAR(255), Language VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
1
1
{ "split": "train", "row_index": 4390 }
Show the names of all of the high schooler Kyle's friends.
SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = 'Kyle'
CREATE TABLE Highschooler (name VARCHAR(255), id VARCHAR(255)); CREATE TABLE Friend (student_id VARCHAR(255), friend_id VARCHAR(255))
mysql
hard
hard
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
3
0
0
{ "split": "train", "row_index": 4445 }
What is the description of the treatment type that costs the least money in total?
SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(cost_of_treatment) LIMIT 1
CREATE TABLE Treatments (treatment_type_code VARCHAR(255), cost_of_treatment INTEGER); CREATE TABLE Treatment_types (treatment_type_description VARCHAR(255), treatment_type_code VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
4
0
0
{ "split": "train", "row_index": 4469 }
What are the first name and last name of the professionals who have done treatment with cost below average?
SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)
CREATE TABLE Treatments (cost_of_treatment INTEGER, Id VARCHAR(255)); CREATE TABLE Professionals (first_name VARCHAR(255), last_name VARCHAR(255));
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
1
1
{ "split": "train", "row_index": 4472 }
List the names of the dogs of the rarest breed and the treatment dates of them.
SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) LIMIT 1)
CREATE TABLE Dogs (name VARCHAR(255), dog_id VARCHAR(255), breed_code VARCHAR(255)); CREATE TABLE Treatments (date_of_treatment VARCHAR(255), dog_id VARCHAR(255))
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
1
1
{ "split": "train", "row_index": 4477 }
List the last name of the owner owning the youngest dog.
SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = (SELECT MIN(age) FROM Dogs)
CREATE TABLE Owners (last_name VARCHAR(255), owner_id VARCHAR(255)); CREATE TABLE Dogs (owner_id VARCHAR(255), age INTEGER);
mysql
extra
extra
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
2
1
0
{ "split": "train", "row_index": 4480 }
How many tournaments in Texas had a purse higher than 330105.1624276874?
SELECT COUNT(1) AS `__` FROM table_11622392_1 WHERE location = 'Texas' AND `purse__$__` > 330105.1624276874
CREATE TABLE table_11622392_1 (location VARCHAR(255), `purse__$__` INTEGER)
mysql
null
medium
extended
valid
valid
valid
[]
[]
[]
[ "Unsupported column expression: 1" ]
[ "validation_failed", "correction_corrected", "extension_unchanged", "extended" ]
corrected
null
null
null
{ "split": "train", "row_index": 4768 }
What is the largest 1st prize( $ ) at the South Carolina location?
SELECT MAX(`st_prize__`) AS `max_prize` FROM table_11622896_1 WHERE location = 'South Carolina'
CREATE TABLE table_11622896_1 (location VARCHAR(255), `st_prize__` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 4776 }
What is the smallest population recorded back in 2002?
SELECT MIN(`2002_population`) FROM table_13764346_1
CREATE TABLE table_13764346_1 (Id VARCHAR(255), `2002_population` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
0
0
{ "split": "train", "row_index": 5351 }
How many freedom indices does the country of Austria have?
SELECT COUNT(`2013_press_freedom_index`) FROM table_1604579_2 WHERE country = 'Austria'
CREATE TABLE table_1604579_2 (country VARCHAR(255), `2013_press_freedom_index` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 5866 }
What is the minimum of 25 to 29?
SELECT MIN(`_to_29`) FROM table_16457934_5
CREATE TABLE table_16457934_5 (Id VARCHAR(255), `_to_29` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
0
0
{ "split": "train", "row_index": 5909 }
What is the minimum if 40 to 44?
SELECT MIN(`40_to_44`) FROM table_16457934_5
CREATE TABLE table_16457934_5 (Id VARCHAR(255), `40_to_44` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
0
0
{ "split": "train", "row_index": 5910 }
If the year is 2010, what is the minimum amount of years 5-9?
SELECT MIN(`5-9_years`) FROM table_174266_6 WHERE `year` = '2010'
CREATE TABLE table_174266_6 (`year` VARCHAR(255), `5-9_years` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 6124 }
What is the largest 6-car-sets for fiscal year 1968?
SELECT MAX(`6_car_sets`) FROM table_19255192_1 WHERE fiscal_year = '1968'
CREATE TABLE table_19255192_1 (fiscal_year VARCHAR(255), `6_car_sets` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 6407 }
How much was spent in 1949/50 (in $ millions) in the country where the cumulative expenditure is $376 millions?
SELECT MIN(`1949_50_$millions`) AS `$_millions_` FROM table_19766_1 WHERE cumulative__$_millions_ = 376
CREATE TABLE table_19766_1 (cumulative__$_millions_ VARCHAR(255), `1949_50_$millions` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 6532 }
How many millions of $ were spent in Iceland in 1948/49?
SELECT MAX(`1948_49`) AS `$_millions_` FROM table_19766_1 WHERE country = 'Iceland'
CREATE TABLE table_19766_1 (country VARCHAR(255), `1948_49` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 6533 }
What is the lowest 09-10 i/o best?
SELECT MIN(`09_10_i_o_best`) FROM table_24990183_5
CREATE TABLE table_24990183_5 (Id VARCHAR(255), `09_10_i_o_best` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
0
0
{ "split": "train", "row_index": 7481 }
What was the 09-10 oi best of the player with 949 points?
SELECT COUNT(`09-10_oi_best`) FROM table_24990183_5 WHERE ws_points = 949
CREATE TABLE table_24990183_5 (ws_points VARCHAR(255), `09-10_oi_best` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 7484 }
What is the highest rebound Dennis Rodman obtained within the 20 rebounds category given two of the following:points, rebounds, assists, steals, and blocked shots (points) greater equal to 5
SELECT MAX(`20_rebounds`) FROM table_25696729_8 WHERE double_double = 5
CREATE TABLE table_25696729_8 (double_double VARCHAR(255), `20_rebounds` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 7675 }
What is the highest 2001 population when the ethnic group is white: british?
SELECT MAX(`population_2001`) FROM table_282413_3 WHERE ethnic_group = 'White: British'
CREATE TABLE table_282413_3 (ethnic_group VARCHAR(255), `population_2001` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 8255 }
What is the highest 2011 population when the ethnic group is asian or asian british: asian other?
SELECT MAX(`2011`) FROM table_282413_3 WHERE ethnic_group = 'Asian or Asian British: Asian Other'
CREATE TABLE table_282413_3 (ethnic_group VARCHAR(255), `2011` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 8257 }
in the leage what was the minimum 4wi
SELECT MIN(`4wi`) FROM table_28798161_3
CREATE TABLE table_28798161_3 (Id VARCHAR(255), `4wi` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
0
0
{ "split": "train", "row_index": 8343 }
how many minimum 350cc has
SELECT MIN(cc) FROM table_2889810_2
CREATE TABLE table_2889810_2 (Id VARCHAR(255), cc INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
0
0
{ "split": "train", "row_index": 8370 }
Which 8.23 g (127 gr) is the highest one that has a Bullet weight gram (grain) of 8x64mm s, and a Case capacity (%) smaller than 110.3?
SELECT MAX(`8.23 g (127 gr)`) FROM table_name_80 WHERE bullet_weight_gram__grain_ = '8x64mm s' AND case_capacity___percentage_ < 110.3
CREATE TABLE table_name_80 ( `8.23 g (127 gr)` INTEGER, bullet_weight_gram__grain_ VARCHAR(255), case_capacity___percentage_ VARCHAR(255) )
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 9394 }
Which 1st prize ($) has a Winner of scott simpson (7)?
SELECT SUM(`st_prize___`) AS `$__` FROM table_name_21 WHERE winner = 'scott simpson (7)'
CREATE TABLE table_name_21 ( winner VARCHAR(255), `st_prize___` INTEGER )
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 10202 }
What is the total number of 4th place that has 3 appearances for 3, and a more than 0 silver medals, and no gold medals?
SELECT COUNT(*) AS th_place FROM table_name_27 WHERE appearances = 3 AND silver_medals > 0 AND gold_medals < 0
CREATE TABLE table_name_27 (gold_medals INTEGER, appearances INTEGER, silver_medals INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 11081 }
Can you tell me the total number of 100s that has the Balls larger than 325, and the Runs smaller than 572?
SELECT COUNT(*) AS s FROM table_name_44 WHERE balls > 325 AND runs < 572
CREATE TABLE table_name_44 (balls INTEGER, runs INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 11771 }
Can you tell me the sum of 100s that has the Matches of 12, and the Strike Rate smaller than 144.81?
SELECT SUM(`100s`) AS s FROM table_name_92 WHERE matches = 12 AND strike_rate < 144.81
CREATE TABLE table_name_92 (matches VARCHAR(255), strike_rate VARCHAR(255), `100s` INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 11772 }
Can you tell me the sum of 100s that has the Team of deccan chargers, and the Match of 8, and the Average larger than 35.57?
SELECT SUM(100) AS s FROM table_name_41 WHERE team = 'deccan chargers' AND matches = 8 AND average > 35.57
CREATE TABLE table_name_41 (average INTEGER, team VARCHAR(255), matches VARCHAR(255))
mysql
null
medium
extended
valid
valid
valid
[]
[]
[]
[ "Unsupported column expression: 100" ]
[ "validation_failed", "correction_corrected", "extension_unchanged", "extended" ]
corrected
null
null
null
{ "split": "train", "row_index": 11773 }
What was the highest 2007 budget when the order of succession was 3?
SELECT MAX(`budget_2007_in_billions_of_dollars`) FROM table_name_35 WHERE order_of_succession = '3'
CREATE TABLE table_name_35 (order_of_succession VARCHAR(255), `budget_2007_in_billions_of_dollars` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 12646 }
What is the average value in the 100s category when the high score is 196?
SELECT AVG(`100s`) FROM table_name_86 WHERE highest_score = '196'
CREATE TABLE table_name_86 (highest_score VARCHAR(255), `100s` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 13119 }
What is the sum of 2010-11 when the rank is greater than 11?
SELECT SUM(`2010-11`) FROM table_name_97 WHERE rank > 11
CREATE TABLE table_name_97 (rank INTEGER, `2010-11` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 13259 }
WHAT IS THE HIGHEST 2012 ENROLLMENT FOR école mathieu-martin, AFTER 1972?
SELECT MAX(`enrolment_2012`) FROM table_name_5 WHERE school_name = 'école mathieu-martin' AND year_open > 1972
CREATE TABLE table_name_5 (school_name VARCHAR(255), year_open INTEGER, `enrolment_2012` INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 13415 }
WHAT IS THE ENROLLMENT FOR école saint-therèse AFTER 1954?
SELECT MIN(_enrolment) AS enrolment FROM table_name_5 WHERE school_name = 'école saint-therèse' AND year_open > 1954
CREATE TABLE table_name_5 (school_name VARCHAR(255), year_open VARCHAR(255), _enrolment INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 13416 }
What is the lowest 1994-1995, when Points is 145, and when Played is less than 114?
SELECT MIN(`1994_1995`) FROM table_name_2 WHERE points = 145 AND played < 114
CREATE TABLE table_name_2 (points INTEGER, played INTEGER, `1994_1995` INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 13461 }
What is the 2 vs 3 when total is bigger than 38?
SELECT AVG(`2_vs_3`) FROM table_name_52 WHERE total > 38
CREATE TABLE table_name_52 (total INTEGER, `2_vs_3` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 15715 }
What is the total population of the district of Klang, with an area larger than 636?
SELECT SUM(`_population`) FROM table_name_23 WHERE district = 'klang' AND area__km_2__ > 636
CREATE TABLE table_name_23 (district VARCHAR(255), area__km_2__ VARCHAR(255), `_population` INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 16613 }
The Roman value of t is associated with what allophone?
SELECT `sound__allophone_` FROM `t` AS able_name_50 WHERE `roman` = 't'
CREATE TABLE t (Id VARCHAR(255), roman VARCHAR(255), `sound__allophone_` VARCHAR(255))
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 17422 }
What is the total number of 2nd place finishes for riders active in years 2009-2010 and more than 0 wins?
SELECT SUM(`2nd_place`) FROM table_name_83 WHERE years_active = '2009-2010' AND wins > 0
CREATE TABLE table_name_83 (years_active VARCHAR(255), wins VARCHAR(255), `2nd_place` INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 18178 }
What is the total number of 3rd place finishes for racers with 0 titles?
SELECT SUM(rd_pl) AS total_3rd FROM table_name_31 WHERE titles = 0
CREATE TABLE table_name_31 (titles INTEGER, rd_pl INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 18179 }
What is the average number of 2nd place finishes for racers active in the year 2000 and more than 0 titles?
SELECT AVG(`nd_pl`) FROM table_name_16 WHERE years_active = '2000' AND titles > 0
CREATE TABLE table_name_16 (years_active VARCHAR(255), titles VARCHAR(255), `nd_pl` INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 18180 }
Name the total number of 1992-93 for 115 points
SELECT COUNT(`1992_93`) FROM table_14323347_1 WHERE points = 115
CREATE TABLE table_14323347_1 (points VARCHAR(255), `1992_93` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 19508 }
Name the minimum 11-12 enrollment for washington school
SELECT MIN(`11-12_enrollment`) FROM table_17641314_3 WHERE school = 'Washington'
CREATE TABLE table_17641314_3 (school VARCHAR(255), `11-12_enrollment` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 19875 }
Name the most 4/inns
SELECT MAX(`_inns`) FROM `table_17900317_5`
CREATE TABLE `table_17900317_5` (Id VARCHAR(255), `_inns` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
0
0
{ "split": "train", "row_index": 19895 }
How many election results in 2012 had a Cook PVI of D+16?
SELECT COUNT(*) AS _election_results FROM table_19283806_4 WHERE cook_pvi = 'D+16' AND election_year = 2012
CREATE TABLE table_19283806_4 (cook_pvi VARCHAR(255), election_year INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 20045 }
What is the lowest 2011 number (,000)?
SELECT MIN(`2011_number__`) FROM table_273617_6
CREATE TABLE table_273617_6 (Id VARCHAR(255), `2011_number__` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_ambiguous", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
0
0
{ "split": "train", "row_index": 20973 }
How many 3rd runner up values does Turkey have?
SELECT COUNT(`rd_runner_up`) FROM table_30007801_1 WHERE country_territory = 'Turkey'
CREATE TABLE table_30007801_1 (country_territory VARCHAR(255), `rd_runner_up` INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 21289 }
What is the smallest 1st runner up value?
SELECT MIN(st_runner_up) FROM table_30007801_1
CREATE TABLE table_30007801_1 (Id VARCHAR(255), st_runner_up INTEGER)
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
0
0
0
{ "split": "train", "row_index": 21290 }
When was the show 9 to 5 returning?
SELECT `returning` FROM table_name_7 WHERE `show` = '9 to 5'
CREATE TABLE table_name_7 (`returning` VARCHAR(255), `show` VARCHAR(255))
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 23236 }
What was the earliest aired show that's returning on September 13?
SELECT MIN(last_aired) FROM table_name_1 WHERE `returning` = 'september 13'
CREATE TABLE table_name_1 (last_aired INTEGER, `returning` VARCHAR(255))
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 23237 }
What was the 2010 population of frankfort which has a rank smaller than 14?
SELECT AVG(`2010`) AS _pop FROM table_name_26 WHERE city = 'frankfort' AND rank < 14
CREATE TABLE table_name_26 (city VARCHAR(255), rank VARCHAR(255), `2010` INTEGER)
mysql
medium
medium
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
1
{ "split": "train", "row_index": 23962 }
When did soul train music awards return?
SELECT `returning` FROM table_name_49 WHERE `show` = 'soul train music awards'
CREATE TABLE table_name_49 (`returning` VARCHAR(255), `show` VARCHAR(255))
mysql
easy
easy
classified
valid
valid
valid
[]
[]
[]
[]
[ "validation_failed", "correction_corrected", "extension_unchanged", "classified" ]
corrected
1
0
0
{ "split": "train", "row_index": 25390 }