question_id
int64
0
16.1k
db_id
stringclasses
259 values
dber_id
stringlengths
15
29
question
stringlengths
16
325
SQL
stringlengths
18
1.25k
tokens
listlengths
4
62
entities
listlengths
0
21
entity_to_token
listlengths
20
20
dber_tags
listlengths
4
62
11,130
cars
bird:train.json:3121
Provide the name, model, sweep volume, and introduced year of the car with the best crash protection.
SELECT T1.car_name, T1.model, T1.displacement / T1.cylinders, T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID ORDER BY T1.weight DESC LIMIT 1
[ "Provide", "the", "name", ",", "model", ",", "sweep", "volume", ",", "and", "introduced", "year", "of", "the", "car", "with", "the", "best", "crash", "protection", "." ]
[ { "id": 6, "type": "column", "value": "displacement" }, { "id": 2, "type": "column", "value": "model_year" }, { "id": 4, "type": "table", "value": "production" }, { "id": 7, "type": "column", "value": "cylinders" }, { "id": 0, "type": "column",...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 19 ] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O" ]
11,131
software_company
bird:train.json:8579
Point out the greater one between the number of actual responding and not responding to mailing.
SELECT RESPONSE FROM Mailings1_2 GROUP BY RESPONSE ORDER BY COUNT(RESPONSE) DESC LIMIT 1
[ "Point", "out", "the", "greater", "one", "between", "the", "number", "of", "actual", "responding", "and", "not", "responding", "to", "mailing", "." ]
[ { "id": 0, "type": "table", "value": "mailings1_2" }, { "id": 1, "type": "column", "value": "response" } ]
[ { "entity_id": 0, "token_idxs": [ 15 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O" ]
11,132
law_episode
bird:train.json:1311
What role does the tallest person play?
SELECT T2.role FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.person_id = T2.person_id INNER JOIN Award AS T3 ON T2.episode_id = T3.episode_id ORDER BY T1.height_meters DESC LIMIT 1
[ "What", "role", "does", "the", "tallest", "person", "play", "?" ]
[ { "id": 2, "type": "column", "value": "height_meters" }, { "id": 5, "type": "column", "value": "episode_id" }, { "id": 6, "type": "column", "value": "person_id" }, { "id": 3, "type": "table", "value": "person" }, { "id": 4, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O" ]
11,134
mondial_geo
bird:train.json:8339
Name the river of which Lorraine is on. Please name the mountains where to source flow from?
SELECT T1.SourceLongitude, T1.SourceLatitude, T1.SourceAltitude FROM river AS T1 INNER JOIN geo_river AS T2 ON T2.River = T1.Name WHERE T2.Province = 'Lorraine'
[ "Name", "the", "river", "of", "which", "Lorraine", "is", "on", ".", "Please", "name", "the", "mountains", "where", "to", "source", "flow", "from", "?" ]
[ { "id": 0, "type": "column", "value": "sourcelongitude" }, { "id": 1, "type": "column", "value": "sourcelatitude" }, { "id": 2, "type": "column", "value": "sourcealtitude" }, { "id": 4, "type": "table", "value": "geo_river" }, { "id": 5, "type"...
[ { "entity_id": 0, "token_idxs": [ 16 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs"...
[ "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O" ]
11,135
e_learning
spider:train_spider.json:3814
Find the subject ID, subject name, and the corresponding number of available courses for each subject.
SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id
[ "Find", "the", "subject", "ID", ",", "subject", "name", ",", "and", "the", "corresponding", "number", "of", "available", "courses", "for", "each", "subject", "." ]
[ { "id": 1, "type": "column", "value": "subject_name" }, { "id": 0, "type": "column", "value": "subject_id" }, { "id": 3, "type": "table", "value": "subjects" }, { "id": 2, "type": "table", "value": "courses" } ]
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [ 17 ] }, { "entity_id": 4, "token_idxs": [] ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O" ]
11,136
video_games
bird:train.json:3406
List all the platform games.
SELECT T2.game_name FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id WHERE T1.genre_name = 'Platform'
[ "List", "all", "the", "platform", "games", "." ]
[ { "id": 3, "type": "column", "value": "genre_name" }, { "id": 0, "type": "column", "value": "game_name" }, { "id": 4, "type": "value", "value": "Platform" }, { "id": 6, "type": "column", "value": "genre_id" }, { "id": 1, "type": "table", "v...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 3 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-VALUE", "B-TABLE", "O" ]
11,137
retail_world
bird:train.json:6382
What is the difference in salary of the top 2 employees with the highest number of territories in charge?
SELECT MAX(Salary) - MIN(Salary) FROM ( SELECT T1.Salary FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID GROUP BY T1.EmployeeID, T1.Salary ORDER BY COUNT(T2.TerritoryID) DESC LIMIT 2 ) T1
[ "What", "is", "the", "difference", "in", "salary", "of", "the", "top", "2", "employees", "with", "the", "highest", "number", "of", "territories", "in", "charge", "?" ]
[ { "id": 3, "type": "table", "value": "employeeterritories" }, { "id": 4, "type": "column", "value": "territoryid" }, { "id": 0, "type": "column", "value": "employeeid" }, { "id": 2, "type": "table", "value": "employees" }, { "id": 1, "type": "c...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 15 ] }, { "entity_id": 4, "token_idxs": [ 16 ] }, { "enti...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O" ]
11,138
hospital_1
spider:train_spider.json:3955
Which nurses are in charge of patients undergoing treatments?
SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID
[ "Which", "nurses", "are", "in", "charge", "of", "patients", "undergoing", "treatments", "?" ]
[ { "id": 3, "type": "column", "value": "assistingnurse" }, { "id": 4, "type": "column", "value": "employeeid" }, { "id": 1, "type": "table", "value": "undergoes" }, { "id": 2, "type": "table", "value": "nurse" }, { "id": 0, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O" ]
11,139
icfp_1
spider:train_spider.json:2899
Which author has written the most papers? Find his or her last name.
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1
[ "Which", "author", "has", "written", "the", "most", "papers", "?", "Find", "his", "or", "her", "last", "name", "." ]
[ { "id": 4, "type": "table", "value": "authorship" }, { "id": 3, "type": "table", "value": "authors" }, { "id": 5, "type": "column", "value": "paperid" }, { "id": 2, "type": "table", "value": "papers" }, { "id": 6, "type": "column", "value":...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 13 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
11,141
world
bird:train.json:7910
What is the life expectancy of the countries that uses Japanese as their language?
SELECT AVG(T2.LifeExpectancy) FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Language = 'Japanese'
[ "What", "is", "the", "life", "expectancy", "of", "the", "countries", "that", "uses", "Japanese", "as", "their", "language", "?" ]
[ { "id": 0, "type": "table", "value": "countrylanguage" }, { "id": 4, "type": "column", "value": "lifeexpectancy" }, { "id": 5, "type": "column", "value": "countrycode" }, { "id": 2, "type": "column", "value": "language" }, { "id": 3, "type": "v...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 13 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [ 3, 4 ] }, { ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O" ]
11,142
formula_1
spider:train_spider.json:2166
What is the forename and surname of the driver with the shortest laptime?
SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1
[ "What", "is", "the", "forename", "and", "surname", "of", "the", "driver", "with", "the", "shortest", "laptime", "?" ]
[ { "id": 4, "type": "column", "value": "milliseconds" }, { "id": 0, "type": "column", "value": "forename" }, { "id": 3, "type": "table", "value": "laptimes" }, { "id": 5, "type": "column", "value": "driverid" }, { "id": 1, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O" ]
11,143
cs_semester
bird:train.json:931
Among undergraduate students, list the name of the course with the highest student satisfaction.
SELECT T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.type = 'UG' ORDER BY T2.sat DESC LIMIT 1
[ "Among", "undergraduate", "students", ",", "list", "the", "name", "of", "the", "course", "with", "the", "highest", "student", "satisfaction", "." ]
[ { "id": 6, "type": "table", "value": "registration" }, { "id": 8, "type": "column", "value": "student_id" }, { "id": 7, "type": "column", "value": "course_id" }, { "id": 5, "type": "table", "value": "student" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "B-TABLE", "O" ]
11,144
customers_and_orders
bird:test.json:256
Give the id and name of the cheapest Hardware product.
SELECT product_id , product_name FROM Products WHERE product_type_code = "Hardware" ORDER BY product_price ASC LIMIT 1
[ "Give", "the", "i", "d", "and", "name", "of", "the", "cheapest", "Hardware", "product", "." ]
[ { "id": 3, "type": "column", "value": "product_type_code" }, { "id": 5, "type": "column", "value": "product_price" }, { "id": 2, "type": "column", "value": "product_name" }, { "id": 1, "type": "column", "value": "product_id" }, { "id": 0, "type...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O" ]
11,146
trains
bird:train.json:691
How many cars are there on train no.1?
SELECT COUNT(id) FROM cars WHERE train_id = 1
[ "How", "many", "cars", "are", "there", "on", "train", "no.1", "?" ]
[ { "id": 1, "type": "column", "value": "train_id" }, { "id": 0, "type": "table", "value": "cars" }, { "id": 3, "type": "column", "value": "id" }, { "id": 2, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O" ]
11,147
products_gen_characteristics
spider:train_spider.json:5524
List the description of all the colors.
SELECT color_description FROM ref_colors
[ "List", "the", "description", "of", "all", "the", "colors", "." ]
[ { "id": 1, "type": "column", "value": "color_description" }, { "id": 0, "type": "table", "value": "ref_colors" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O" ]
11,148
college_1
spider:train_spider.json:3217
Find the number of students for each department.
SELECT count(*) , dept_code FROM student GROUP BY dept_code
[ "Find", "the", "number", "of", "students", "for", "each", "department", "." ]
[ { "id": 1, "type": "column", "value": "dept_code" }, { "id": 0, "type": "table", "value": "student" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O" ]
11,150
soccer_2016
bird:train.json:1909
What is the difference in the average number of players out by lbw and runout in the matches?
SELECT AVG(T1.Player_Out) FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T1.Kind_Out = T2.Out_Id WHERE T2.Out_Name = 'lbw'
[ "What", "is", "the", "difference", "in", "the", "average", "number", "of", "players", "out", "by", "lbw", "and", "runout", "in", "the", "matches", "?" ]
[ { "id": 0, "type": "table", "value": "wicket_taken" }, { "id": 4, "type": "column", "value": "player_out" }, { "id": 1, "type": "table", "value": "out_type" }, { "id": 2, "type": "column", "value": "out_name" }, { "id": 5, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O" ]
11,151
bike_share_1
bird:train.json:9021
What is the average duration of trips which are started at Adobe on Almaden station to Ryland Park?
SELECT AVG(duration) FROM trip WHERE start_station_name = 'Adobe on Almaden' AND end_station_name = 'Ryland Park'
[ "What", "is", "the", "average", "duration", "of", "trips", "which", "are", "started", "at", "Adobe", "on", "Almaden", "station", "to", "Ryland", "Park", "?" ]
[ { "id": 2, "type": "column", "value": "start_station_name" }, { "id": 3, "type": "value", "value": "Adobe on Almaden" }, { "id": 4, "type": "column", "value": "end_station_name" }, { "id": 5, "type": "value", "value": "Ryland Park" }, { "id": 1, ...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11, 12, 13 ] }, { "entity_id": 4, "token_idxs": [ 14 ]...
[ "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O" ]
11,152
customers_card_transactions
spider:train_spider.json:728
What are the ids and first names of customers who do not hold a credit card?
SELECT customer_id , customer_first_name FROM Customers EXCEPT SELECT T1.customer_id , T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = "Credit"
[ "What", "are", "the", "ids", "and", "first", "names", "of", "customers", "who", "do", "not", "hold", "a", "credit", "card", "?" ]
[ { "id": 2, "type": "column", "value": "customer_first_name" }, { "id": 3, "type": "table", "value": "customers_cards" }, { "id": 4, "type": "column", "value": "card_type_code" }, { "id": 1, "type": "column", "value": "customer_id" }, { "id": 0, ...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 14 ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O" ]
11,153
ship_mission
spider:train_spider.json:4026
Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000.
SELECT TYPE FROM ship WHERE Tonnage > 6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage < 4000
[ "Show", "the", "types", "of", "ships", "that", "have", "both", "ships", "with", "tonnage", "larger", "than", "6000", "and", "ships", "with", "tonnage", "smaller", "than", "4000", "." ]
[ { "id": 2, "type": "column", "value": "tonnage" }, { "id": 0, "type": "table", "value": "ship" }, { "id": 1, "type": "column", "value": "type" }, { "id": 3, "type": "value", "value": "6000" }, { "id": 4, "type": "value", "value": "4000" }...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ 20 ] }, ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
11,154
superhero
bird:dev.json:845
List the power of superheroes with height greater than 80% of the average height of all superheroes.
SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T1.height_cm * 100 > ( SELECT AVG(height_cm) FROM superhero ) * 80
[ "List", "the", "power", "of", "superheroes", "with", "height", "greater", "than", "80", "%", "of", "the", "average", "height", "of", "all", "superheroes", "." ]
[ { "id": 0, "type": "column", "value": "power_name" }, { "id": 1, "type": "table", "value": "superpower" }, { "id": 3, "type": "table", "value": "hero_power" }, { "id": 2, "type": "table", "value": "superhero" }, { "id": 6, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 1 ] }, { "entity_id": 4, "token_idxs": [ 2 ] }, { "entity_id": 5, "...
[ "O", "B-TABLE", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O" ]
11,155
conference
bird:test.json:1063
which year has least number of conferences?
SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count(*) LIMIT 1
[ "which", "year", "has", "least", "number", "of", "conferences", "?" ]
[ { "id": 0, "type": "table", "value": "conference" }, { "id": 1, "type": "column", "value": "year" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O" ]
11,156
car_racing
bird:test.json:1615
Show the maximum points of the drivers from countries with capital "Dublin"
SELECT max(T2.Points) FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T1.Capital = "Dublin"
[ "Show", "the", "maximum", "points", "of", "the", "drivers", "from", "countries", "with", "capital", "\"", "Dublin", "\"" ]
[ { "id": 5, "type": "column", "value": "country_id" }, { "id": 0, "type": "table", "value": "country" }, { "id": 2, "type": "column", "value": "capital" }, { "id": 6, "type": "column", "value": "country" }, { "id": 1, "type": "table", "value...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 3 ] }, { "entit...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]
11,157
movie_platform
bird:train.json:44
When was the first movie of the director who directed the highest number of movies released and what is the user id of the user who received the highest number of comments related to the critic made by the user rating the movie?
SELECT MIN(movie_release_year) FROM movies WHERE director_name = ( SELECT T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1960 AND 1985 GROUP BY T2.director_name ORDER BY COUNT(T2.director_name) DESC LIMIT 1 )
[ "When", "was", "the", "first", "movie", "of", "the", "director", "who", "directed", "the", "highest", "number", "of", "movies", "released", "and", "what", "is", "the", "user", "i", "d", "of", "the", "user", "who", "received", "the", "highest", "number", ...
[ { "id": 2, "type": "column", "value": "movie_release_year" }, { "id": 1, "type": "column", "value": "director_name" }, { "id": 6, "type": "column", "value": "movie_id" }, { "id": 3, "type": "table", "value": "ratings" }, { "id": 0, "type": "tab...
[ { "entity_id": 0, "token_idxs": [ 14 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [ 41 ] }, { "entity_id": 4, "token_idxs": [] }, { "enti...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B...
11,158
public_review_platform
bird:train.json:3939
How many businesses are opened for 24 hours?
SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_value LIKE 'TRUE' AND T1.attribute_name LIKE 'Open 24 Hours'
[ "How", "many", "businesses", "are", "opened", "for", "24", "hours", "?" ]
[ { "id": 1, "type": "table", "value": "business_attributes" }, { "id": 4, "type": "column", "value": "attribute_value" }, { "id": 6, "type": "column", "value": "attribute_name" }, { "id": 7, "type": "value", "value": "Open 24 Hours" }, { "id": 3, ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O" ]
11,159
tracking_software_problems
spider:train_spider.json:5371
Which problems are reported by the staff with last name "Bosco"? Show the ids of the problems.
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco"
[ "Which", "problems", "are", "reported", "by", "the", "staff", "with", "last", "name", "\"", "Bosco", "\"", "?", "Show", "the", "ids", "of", "the", "problems", "." ]
[ { "id": 5, "type": "column", "value": "reported_by_staff_id" }, { "id": 3, "type": "column", "value": "staff_last_name" }, { "id": 0, "type": "column", "value": "problem_id" }, { "id": 1, "type": "table", "value": "problems" }, { "id": 6, "type...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 19 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 7, 8, 9 ] }, { "entity_id": 4, "token_idxs": [ 11 ] ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-TABLE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
11,160
works_cycles
bird:train.json:7108
How many vendors only consented to move on with the 500 to 15000 piece order in terms of quality?
SELECT COUNT(*) FROM ProductVendor WHERE MinOrderQty > 500 AND MaxOrderQty < 15000
[ "How", "many", "vendors", "only", "consented", "to", "move", "on", "with", "the", "500", "to", "15000", "piece", "order", "in", "terms", "of", "quality", "?" ]
[ { "id": 0, "type": "table", "value": "productvendor" }, { "id": 1, "type": "column", "value": "minorderqty" }, { "id": 3, "type": "column", "value": "maxorderqty" }, { "id": 4, "type": "value", "value": "15000" }, { "id": 2, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "enti...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "B-COLUMN", "O", "O", "O", "O", "O" ]
11,161
ship_1
spider:train_spider.json:6258
Find the name of the ships that have more than one captain.
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1
[ "Find", "the", "name", "of", "the", "ships", "that", "have", "more", "than", "one", "captain", "." ]
[ { "id": 0, "type": "column", "value": "ship_id" }, { "id": 3, "type": "table", "value": "captain" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "table", "value": "ship" }, { "id": 4, "type": "value", "value": "1" }...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
11,162
simpson_episodes
bird:train.json:4319
List down the keyword and crew member's name for episode id S20-E1.
SELECT T1.keyword, T2.person FROM Keyword AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode_id = 'S20-E1';
[ "List", "down", "the", "keyword", "and", "crew", "member", "'s", "name", "for", "episode", "i", "d", "S20", "-", "E1", "." ]
[ { "id": 4, "type": "column", "value": "episode_id" }, { "id": 0, "type": "column", "value": "keyword" }, { "id": 2, "type": "table", "value": "keyword" }, { "id": 1, "type": "column", "value": "person" }, { "id": 3, "type": "table", "value"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [ 10, 11, 12 ] }, { ...
[ "O", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
11,163
shakespeare
bird:train.json:2965
Please give the title of the work of Shakespeare that has the most characters.
SELECT T.Title FROM ( SELECT T1.Title, COUNT(T3.character_id) AS num FROM works T1 INNER JOIN chapters T2 ON T1.id = T2.work_id INNER JOIN paragraphs T3 ON T2.id = T3.chapter_id INNER JOIN characters T4 ON T3.character_id = T4.id GROUP BY T3.character_id, T1.Title ) T ORDER BY T.num DESC LIMIT 1
[ "Please", "give", "the", "title", "of", "the", "work", "of", "Shakespeare", "that", "has", "the", "most", "characters", "." ]
[ { "id": 2, "type": "column", "value": "character_id" }, { "id": 3, "type": "table", "value": "characters" }, { "id": 4, "type": "table", "value": "paragraphs" }, { "id": 8, "type": "column", "value": "chapter_id" }, { "id": 7, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
11,164
public_review_platform
bird:train.json:3969
Write down the ID, active status and city of the business which are in CA state.
SELECT business_id, active, city FROM Business WHERE state = 'CA' AND active = 'true'
[ "Write", "down", "the", "ID", ",", "active", "status", "and", "city", "of", "the", "business", "which", "are", "in", "CA", "state", "." ]
[ { "id": 1, "type": "column", "value": "business_id" }, { "id": 0, "type": "table", "value": "business" }, { "id": 2, "type": "column", "value": "active" }, { "id": 4, "type": "column", "value": "state" }, { "id": 3, "type": "column", "value...
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 16 ] }, { "entit...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
11,165
movie_3
bird:train.json:9379
What is the average replacement cost for the movies with a rental rate of 4.99?
SELECT AVG(replacement_cost) FROM film WHERE rental_rate = 4.99
[ "What", "is", "the", "average", "replacement", "cost", "for", "the", "movies", "with", "a", "rental", "rate", "of", "4.99", "?" ]
[ { "id": 3, "type": "column", "value": "replacement_cost" }, { "id": 1, "type": "column", "value": "rental_rate" }, { "id": 0, "type": "table", "value": "film" }, { "id": 2, "type": "value", "value": "4.99" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 11, 12 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [ 4, 5 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
11,166
olympics
bird:train.json:4926
Among the competitors of the 1994 Winter Olympic Game, what is the percentage of those from Finland?
SELECT CAST(COUNT(CASE WHEN T5.region_name = 'Finland' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T3.id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id INNER JOIN person_region AS T4 ON T3.id = T4.person_id INNER JOIN noc_region AS T5 ON T4.re...
[ "Among", "the", "competitors", "of", "the", "1994", "Winter", "Olympic", "Game", ",", "what", "is", "the", "percentage", "of", "those", "from", "Finland", "?" ]
[ { "id": 10, "type": "table", "value": "games_competitor" }, { "id": 3, "type": "table", "value": "person_region" }, { "id": 2, "type": "value", "value": "1994 Winter" }, { "id": 13, "type": "column", "value": "region_name" }, { "id": 0, "type":...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] ...
[ "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
11,167
shop_membership
spider:train_spider.json:5435
What are the cities that do not have any branches with more than 100 members?
SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100
[ "What", "are", "the", "cities", "that", "do", "not", "have", "any", "branches", "with", "more", "than", "100", "members", "?" ]
[ { "id": 2, "type": "column", "value": "membership_amount" }, { "id": 0, "type": "table", "value": "branch" }, { "id": 1, "type": "column", "value": "city" }, { "id": 3, "type": "value", "value": "100" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [] }, { "entit...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
11,168
tracking_grants_for_research
spider:train_spider.json:4354
When did the first staff for the projects started working?
SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1
[ "When", "did", "the", "first", "staff", "for", "the", "projects", "started", "working", "?" ]
[ { "id": 0, "type": "table", "value": "project_staff" }, { "id": 1, "type": "column", "value": "date_from" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O" ]
11,170
mondial_geo
bird:train.json:8476
What is the capital of Australia? Is the capital a headquarter to any organization? Name the organization(s).
SELECT T2.Capital, T1.Name FROM organization AS T1 INNER JOIN country AS T2 ON T1.City = T2.Capital WHERE T2.Name = 'Australia'
[ "What", "is", "the", "capital", "of", "Australia", "?", "Is", "the", "capital", "a", "headquarter", "to", "any", "organization", "?", "Name", "the", "organization(s", ")", "." ]
[ { "id": 2, "type": "table", "value": "organization" }, { "id": 4, "type": "value", "value": "Australia" }, { "id": 0, "type": "column", "value": "capital" }, { "id": 3, "type": "table", "value": "country" }, { "id": 1, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 16 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entit...
[ "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O" ]
11,171
image_and_language
bird:train.json:7478
What is the bounding box of the object sample in image no.5 that has a self-relation?
SELECT T2.X, T2.Y, T2.W, T2.H FROM IMG_REL AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.IMG_ID = T2.IMG_ID WHERE T1.IMG_ID = 5 AND T1.OBJ1_SAMPLE_ID = T1.OBJ2_SAMPLE_ID
[ "What", "is", "the", "bounding", "box", "of", "the", "object", "sample", "in", "image", "no.5", "that", "has", "a", "self", "-", "relation", "?" ]
[ { "id": 8, "type": "column", "value": "obj1_sample_id" }, { "id": 9, "type": "column", "value": "obj2_sample_id" }, { "id": 4, "type": "table", "value": "img_rel" }, { "id": 5, "type": "table", "value": "img_obj" }, { "id": 6, "type": "column",...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O" ]
11,172
superhero
bird:dev.json:838
Provide the full name of the superhero named Alien.
SELECT full_name FROM superhero WHERE superhero_name = 'Alien'
[ "Provide", "the", "full", "name", "of", "the", "superhero", "named", "Alien", "." ]
[ { "id": 2, "type": "column", "value": "superhero_name" }, { "id": 0, "type": "table", "value": "superhero" }, { "id": 1, "type": "column", "value": "full_name" }, { "id": 3, "type": "value", "value": "Alien" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O" ]
11,173
retail_world
bird:train.json:6308
Please list the territories whose sales are taken in charge by the employees who report to Andrew Fuller.
SELECT T3.TerritoryDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.ReportsTo = ( SELECT EmployeeID FROM Employees WHERE FirstName = 'Andrew' AND LastName = 'Fuller' )
[ "Please", "list", "the", "territories", "whose", "sales", "are", "taken", "in", "charge", "by", "the", "employees", "who", "report", "to", "Andrew", "Fuller", "." ]
[ { "id": 0, "type": "column", "value": "territorydescription" }, { "id": 4, "type": "table", "value": "employeeterritories" }, { "id": 1, "type": "table", "value": "territories" }, { "id": 5, "type": "column", "value": "territoryid" }, { "id": 6, ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 14, 15 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "t...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "B-VALUE", "O" ]
11,175
cars
bird:train.json:3092
How many cars were released in the USA in 1981?
SELECT COUNT(*) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHERE T2.country = 'USA' AND T1.model_year = 1981
[ "How", "many", "cars", "were", "released", "in", "the", "USA", "in", "1981", "?" ]
[ { "id": 0, "type": "table", "value": "production" }, { "id": 5, "type": "column", "value": "model_year" }, { "id": 1, "type": "table", "value": "country" }, { "id": 2, "type": "column", "value": "country" }, { "id": 3, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O" ]
11,176
flight_4
spider:train_spider.json:6868
What is the total number of routes for each country and airline in that country?
SELECT T1.country , T1.name , count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country , T1.name
[ "What", "is", "the", "total", "number", "of", "routes", "for", "each", "country", "and", "airline", "in", "that", "country", "?" ]
[ { "id": 2, "type": "table", "value": "airlines" }, { "id": 0, "type": "column", "value": "country" }, { "id": 3, "type": "table", "value": "routes" }, { "id": 1, "type": "column", "value": "name" }, { "id": 4, "type": "column", "value": "al...
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity...
[ "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O" ]
11,177
small_bank_1
spider:train_spider.json:1786
Find the name and id of accounts whose checking balance is below the maximum checking balance.
SELECT T1.custid , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT max(balance) FROM checking)
[ "Find", "the", "name", "and", "i", "d", "of", "accounts", "whose", "checking", "balance", "is", "below", "the", "maximum", "checking", "balance", "." ]
[ { "id": 2, "type": "table", "value": "accounts" }, { "id": 3, "type": "table", "value": "checking" }, { "id": 4, "type": "column", "value": "balance" }, { "id": 0, "type": "column", "value": "custid" }, { "id": 1, "type": "column", "value":...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O" ]
11,178
music_platform_2
bird:train.json:7954
What dates were the Don't Lie To Your Life Coach podcast reviews created?
SELECT created_at FROM reviews WHERE podcast_id = ( SELECT podcast_id FROM podcasts WHERE title = 'Don''t Lie To Your Life Coach' )
[ "What", "dates", "were", "the", "Do", "n't", "Lie", "To", "Your", "Life", "Coach", "podcast", "reviews", "created", "?" ]
[ { "id": 5, "type": "value", "value": "Don't Lie To Your Life Coach" }, { "id": 1, "type": "column", "value": "created_at" }, { "id": 2, "type": "column", "value": "podcast_id" }, { "id": 3, "type": "table", "value": "podcasts" }, { "id": 0, "ty...
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 13 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "B-TABLE", "B-TABLE", "B-COLUMN", "O" ]
11,179
menu
bird:train.json:5555
What are the names of the dishes in the menu sponsored by The Society of Cumberland that was created for the 19th reunion at Grand Pacific Hotel in Chicago, Illinois?
SELECT T4.name FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id INNER JOIN MenuItem AS T3 ON T2.id = T3.menu_page_id INNER JOIN Dish AS T4 ON T3.dish_id = T4.id WHERE T1.sponsor = 'THE SOCIETY OF THE CUMBERLAND' AND T1.event = '19NTH REUNION' AND T1.place = 'GRAND PACIFIC HOTEL,CHICAGO,ILL'
[ "What", "are", "the", "names", "of", "the", "dishes", "in", "the", "menu", "sponsored", "by", "The", "Society", "of", "Cumberland", "that", "was", "created", "for", "the", "19th", "reunion", "at", "Grand", "Pacific", "Hotel", "in", "Chicago", ",", "Illinoi...
[ { "id": 10, "type": "value", "value": "GRAND PACIFIC HOTEL,CHICAGO,ILL" }, { "id": 6, "type": "value", "value": "THE SOCIETY OF THE CUMBERLAND" }, { "id": 8, "type": "value", "value": "19NTH REUNION" }, { "id": 13, "type": "column", "value": "menu_page_id"...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "...
11,180
club_1
spider:train_spider.json:4279
Which club has the most female students as their members? Give me the name of the club.
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = "F" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1
[ "Which", "club", "has", "the", "most", "female", "students", "as", "their", "members", "?", "Give", "me", "the", "name", "of", "the", "club", "." ]
[ { "id": 5, "type": "table", "value": "member_of_club" }, { "id": 0, "type": "column", "value": "clubname" }, { "id": 1, "type": "table", "value": "student" }, { "id": 7, "type": "column", "value": "clubid" }, { "id": 6, "type": "column", "v...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 15 ] }, { "entity_id": 4, "token_idxs": [ 1 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]
11,181
customers_and_invoices
spider:train_spider.json:1553
Show the id, the account name, and other account details for all accounts by the customer with first name 'Meaghan'.
SELECT T1.account_id , T1.date_account_opened , T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = 'Meaghan'
[ "Show", "the", "i", "d", ",", "the", "account", "name", ",", "and", "other", "account", "details", "for", "all", "accounts", "by", "the", "customer", "with", "first", "name", "'", "Meaghan", "'", "." ]
[ { "id": 3, "type": "column", "value": "other_account_details" }, { "id": 1, "type": "column", "value": "date_account_opened" }, { "id": 6, "type": "column", "value": "customer_first_name" }, { "id": 2, "type": "column", "value": "account_name" }, { ...
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [ 3, 4, 5 ] }, { "entity_id": 2, "token_idxs": [ 6, 7 ] }, { "entity_id": 3, "token_idxs": [ 10, 12 ] }, { "entity_id": 4, ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "B-COLUMN", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-VALUE", "O", "O" ]
11,182
public_review_platform
bird:train.json:3982
Describe category name which had above 10% in comparing with all business and categories.
SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id GROUP BY T2.category_id HAVING COUNT(T2.business_id) > ( SELECT COUNT(T3.business_id) FROM Business_Categories AS T3 ) * 0.1
[ "Describe", "category", "name", "which", "had", "above", "10", "%", "in", "comparing", "with", "all", "business", "and", "categories", "." ]
[ { "id": 3, "type": "table", "value": "business_categories" }, { "id": 1, "type": "column", "value": "category_name" }, { "id": 0, "type": "column", "value": "category_id" }, { "id": 4, "type": "column", "value": "business_id" }, { "id": 2, "typ...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, ...
[ "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "B-TABLE", "O" ]
11,183
simpson_episodes
bird:train.json:4290
Which character did the "Outstanding Voice-Over Performance" winner voice?
SELECT DISTINCT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.award = 'Outstanding Voice-Over Performance' AND T1.result = 'Winner';
[ "Which", "character", "did", "the", "\"", "Outstanding", "Voice", "-", "Over", "Performance", "\"", "winner", "voice", "?" ]
[ { "id": 5, "type": "value", "value": "Outstanding Voice-Over Performance" }, { "id": 2, "type": "table", "value": "character_award" }, { "id": 0, "type": "column", "value": "character" }, { "id": 3, "type": "column", "value": "award_id" }, { "id": ...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 5, ...
[ "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "B-VALUE", "O", "O" ]
11,184
ice_hockey_draft
bird:train.json:6940
What is the difference in the number of goals scored by Pavel Brendl during the regular season versus the playoffs in the 1998-1999 season?
SELECT T3.Rs_G - T4.Pf_G AS diff FROM ( SELECT T2.PlayerName, T1.G AS Rs_G FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.PlayerName = 'Pavel Brendl' AND T1.SEASON = '1998-1999' AND T1.GAMETYPE = 'Regular Season' ) AS T3 INNER JOIN ( SELECT T2.PlayerName, T1.G AS Pf_G FROM Seaso...
[ "What", "is", "the", "difference", "in", "the", "number", "of", "goals", "scored", "by", "Pavel", "Brendl", "during", "the", "regular", "season", "versus", "the", "playoffs", "in", "the", "1998", "-", "1999", "season", "?" ]
[ { "id": 11, "type": "value", "value": "Regular Season" }, { "id": 4, "type": "table", "value": "seasonstatus" }, { "id": 7, "type": "value", "value": "Pavel Brendl" }, { "id": 2, "type": "column", "value": "playername" }, { "id": 5, "type": "ta...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 17 ] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "B-VALUE", "B-COLUMN", "B-TABLE", "O", "B-VALUE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
11,186
synthea
bird:train.json:1404
Among the patients with prediabetes, how many are female?
SELECT COUNT(DISTINCT T2.patient) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.gender = 'F' AND T1.DESCRIPTION = 'Prediabetes'
[ "Among", "the", "patients", "with", "prediabetes", ",", "how", "many", "are", "female", "?" ]
[ { "id": 5, "type": "column", "value": "description" }, { "id": 6, "type": "value", "value": "Prediabetes" }, { "id": 0, "type": "table", "value": "conditions" }, { "id": 1, "type": "table", "value": "patients" }, { "id": 2, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O" ]
11,187
donor
bird:train.json:3195
Among the projects created by a teacher from New York, how many of them have a donor from the same city?
SELECT COUNT(T1.projectid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.teacher_ny_teaching_fellow = 't' AND T2.donor_city = 'New York'
[ "Among", "the", "projects", "created", "by", "a", "teacher", "from", "New", "York", ",", "how", "many", "of", "them", "have", "a", "donor", "from", "the", "same", "city", "?" ]
[ { "id": 3, "type": "column", "value": "teacher_ny_teaching_fellow" }, { "id": 5, "type": "column", "value": "donor_city" }, { "id": 1, "type": "table", "value": "donations" }, { "id": 2, "type": "column", "value": "projectid" }, { "id": 0, "typ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 17 ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O" ]
11,188
college_3
spider:train_spider.json:4653
Find the first names and last names of male (sex is M) faculties who live in building NEB.
SELECT Fname , Lname FROM FACULTY WHERE sex = "M" AND Building = "NEB"
[ "Find", "the", "first", "names", "and", "last", "names", "of", "male", "(", "sex", "is", "M", ")", "faculties", "who", "live", "in", "building", "NEB", "." ]
[ { "id": 5, "type": "column", "value": "building" }, { "id": 0, "type": "table", "value": "faculty" }, { "id": 1, "type": "column", "value": "fname" }, { "id": 2, "type": "column", "value": "lname" }, { "id": 3, "type": "column", "value": "s...
[ { "entity_id": 0, "token_idxs": [ 14 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O" ]
11,189
food_inspection_2
bird:train.json:6124
What is the point level of "Refrigeration and metal stem thermometers provided and conspicuous"?
SELECT point_level FROM inspection_point WHERE Description = 'Refrigeration and metal stem thermometers provided and conspicuous '
[ "What", "is", "the", "point", "level", "of", "\"", "Refrigeration", "and", "metal", "stem", "thermometers", "provided", "and", "conspicuous", "\"", "?" ]
[ { "id": 3, "type": "value", "value": "Refrigeration and metal stem thermometers provided and conspicuous " }, { "id": 0, "type": "table", "value": "inspection_point" }, { "id": 1, "type": "column", "value": "point_level" }, { "id": 2, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 6, 8, 9, 10, 11, 12, 13, 14 ] }, ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "B-COLUMN", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
11,190
shop_membership
spider:train_spider.json:5413
For each city, how many branches opened before 2010?
SELECT city , count(*) FROM branch WHERE open_year < 2010 GROUP BY city
[ "For", "each", "city", ",", "how", "many", "branches", "opened", "before", "2010", "?" ]
[ { "id": 2, "type": "column", "value": "open_year" }, { "id": 0, "type": "table", "value": "branch" }, { "id": 1, "type": "column", "value": "city" }, { "id": 3, "type": "value", "value": "2010" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_...
[ "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O" ]
11,191
computer_student
bird:train.json:969
List all the course IDs for professional or master/graduate courses.
SELECT course_id FROM course WHERE courseLevel = 'Level_500'
[ "List", "all", "the", "course", "IDs", "for", "professional", "or", "master", "/", "graduate", "courses", "." ]
[ { "id": 2, "type": "column", "value": "courselevel" }, { "id": 1, "type": "column", "value": "course_id" }, { "id": 3, "type": "value", "value": "Level_500" }, { "id": 0, "type": "table", "value": "course" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O" ]
11,192
online_exams
bird:test.json:197
What are the names and dates of the exams with subject code that is not "Database"?
SELECT Exam_Date , Exam_Name FROM Exams WHERE Subject_Code != 'Database'
[ "What", "are", "the", "names", "and", "dates", "of", "the", "exams", "with", "subject", "code", "that", "is", "not", "\"", "Database", "\"", "?" ]
[ { "id": 3, "type": "column", "value": "subject_code" }, { "id": 1, "type": "column", "value": "exam_date" }, { "id": 2, "type": "column", "value": "exam_name" }, { "id": 4, "type": "value", "value": "Database" }, { "id": 0, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10, 11 ] }, { "entity_id": 4, "token_idxs": [ 16 ] }, { "entity_i...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O" ]
11,193
retail_world
bird:train.json:6543
List all the customer company names and cities located in Canada.
SELECT CompanyName, City FROM Customers WHERE Country = 'Canada'
[ "List", "all", "the", "customer", "company", "names", "and", "cities", "located", "in", "Canada", "." ]
[ { "id": 1, "type": "column", "value": "companyname" }, { "id": 0, "type": "table", "value": "customers" }, { "id": 3, "type": "column", "value": "country" }, { "id": 4, "type": "value", "value": "Canada" }, { "id": 2, "type": "column", "val...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 4, 5 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
11,194
medicine_enzyme_interaction
spider:train_spider.json:964
What are the ids and trade names of the medicine that can interact with at least 3 enzymes?
SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3
[ "What", "are", "the", "ids", "and", "trade", "names", "of", "the", "medicine", "that", "can", "interact", "with", "at", "least", "3", "enzymes", "?" ]
[ { "id": 3, "type": "table", "value": "medicine_enzyme_interaction" }, { "id": 5, "type": "column", "value": "medicine_id" }, { "id": 1, "type": "column", "value": "trade_name" }, { "id": 2, "type": "table", "value": "medicine" }, { "id": 0, "ty...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 10, 11, 12 ] }, { "entity_id": 4, "token_i...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "O", "B-VALUE", "O", "O" ]
11,195
movie_3
bird:train.json:9117
Please list the titles of all the films starring the actor PENELOPE GUINESS.
SELECT T2.title FROM film_actor AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id INNER JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T3.first_name = 'PENELOPE' AND T3.last_name = 'GUINESS'
[ "Please", "list", "the", "titles", "of", "all", "the", "films", "starring", "the", "actor", "PENELOPE", "GUINESS", "." ]
[ { "id": 2, "type": "table", "value": "film_actor" }, { "id": 5, "type": "column", "value": "first_name" }, { "id": 7, "type": "column", "value": "last_name" }, { "id": 4, "type": "column", "value": "actor_id" }, { "id": 6, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "B-VALUE", "B-VALUE", "O" ]
11,196
college_2
spider:train_spider.json:1401
What is the lowest salary in departments with average salary greater than the overall average.
SELECT min(salary) , dept_name FROM instructor GROUP BY dept_name HAVING avg(salary) > (SELECT avg(salary) FROM instructor)
[ "What", "is", "the", "lowest", "salary", "in", "departments", "with", "average", "salary", "greater", "than", "the", "overall", "average", "." ]
[ { "id": 0, "type": "table", "value": "instructor" }, { "id": 1, "type": "column", "value": "dept_name" }, { "id": 2, "type": "column", "value": "salary" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O" ]
11,197
codebase_community
bird:dev.json:648
Provide the users' display names and available website URLs of the post with favorite count of more than 150.
SELECT T1.DisplayName, T1.WebsiteUrl FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.FavoriteCount > 150
[ "Provide", "the", "users", "'", "display", "names", "and", "available", "website", "URLs", "of", "the", "post", "with", "favorite", "count", "of", "more", "than", "150", "." ]
[ { "id": 4, "type": "column", "value": "favoritecount" }, { "id": 0, "type": "column", "value": "displayname" }, { "id": 7, "type": "column", "value": "owneruserid" }, { "id": 1, "type": "column", "value": "websiteurl" }, { "id": 2, "type": "tab...
[ { "entity_id": 0, "token_idxs": [ 4, 5 ] }, { "entity_id": 1, "token_idxs": [ 8, 9 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ ...
[ "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-VALUE", "O" ]
11,198
cinema
spider:train_spider.json:1955
Show director with the largest number of show times in total.
SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC LIMIT 1
[ "Show", "director", "with", "the", "largest", "number", "of", "show", "times", "in", "total", "." ]
[ { "id": 4, "type": "column", "value": "show_times_per_day" }, { "id": 0, "type": "column", "value": "directed_by" }, { "id": 1, "type": "table", "value": "schedule" }, { "id": 3, "type": "column", "value": "film_id" }, { "id": 2, "type": "table...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7, 8 ] }, { "entity_id": 5, "toke...
[ "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O" ]
11,200
professional_basketball
bird:train.json:2851
Please list the team names which have at least 3 all-star players.
SELECT T1.tmID FROM players_teams AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID GROUP BY T1.tmID HAVING COUNT(DISTINCT T1.playerID) >= 3
[ "Please", "list", "the", "team", "names", "which", "have", "at", "least", "3", "all", "-", "star", "players", "." ]
[ { "id": 2, "type": "table", "value": "player_allstar" }, { "id": 1, "type": "table", "value": "players_teams" }, { "id": 4, "type": "column", "value": "playerid" }, { "id": 0, "type": "column", "value": "tmid" }, { "id": 3, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "O" ]
11,201
legislator
bird:train.json:4815
Calculate the percentage of legislators who are Senator and were born in 1964.
SELECT CAST(SUM(CASE WHEN T2.class IS NOT NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.birthday_bio LIKE '%1964%'
[ "Calculate", "the", "percentage", "of", "legislators", "who", "are", "Senator", "and", "were", "born", "in", "1964", "." ]
[ { "id": 1, "type": "table", "value": "current-terms" }, { "id": 2, "type": "column", "value": "birthday_bio" }, { "id": 4, "type": "column", "value": "bioguide_id" }, { "id": 5, "type": "column", "value": "bioguide" }, { "id": 0, "type": "table...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
11,202
restaurant_bills
bird:test.json:643
Which customers do not have any order? Give me the customer names.
SELECT name FROM customer WHERE Customer_ID NOT IN (SELECT Customer_ID FROM customer_order)
[ "Which", "customers", "do", "not", "have", "any", "order", "?", "Give", "me", "the", "customer", "names", "." ]
[ { "id": 3, "type": "table", "value": "customer_order" }, { "id": 2, "type": "column", "value": "customer_id" }, { "id": 0, "type": "table", "value": "customer" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
11,203
books
bird:train.json:5956
How many books by William Shakespeare were published by Penguin Classics?
SELECT COUNT(*) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T3.author_name = 'William Shakespeare' AND T4.publisher_name = 'Penguin Classics'
[ "How", "many", "books", "by", "William", "Shakespeare", "were", "published", "by", "Penguin", "Classics", "?" ]
[ { "id": 4, "type": "value", "value": "William Shakespeare" }, { "id": 6, "type": "value", "value": "Penguin Classics" }, { "id": 5, "type": "column", "value": "publisher_name" }, { "id": 2, "type": "column", "value": "publisher_id" }, { "id": 3, ...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 4, 5 ] }, { "entity_id": 5, "toke...
[ "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O" ]
11,204
game_1
spider:train_spider.json:6011
Show all sport name and the number of students.
SELECT sportname , count(*) FROM Sportsinfo GROUP BY sportname
[ "Show", "all", "sport", "name", "and", "the", "number", "of", "students", "." ]
[ { "id": 0, "type": "table", "value": "sportsinfo" }, { "id": 1, "type": "column", "value": "sportname" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O" ]
11,205
musical
spider:train_spider.json:258
Show names of musicals which have at least three actors.
SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*) >= 3
[ "Show", "names", "of", "musicals", "which", "have", "at", "least", "three", "actors", "." ]
[ { "id": 0, "type": "column", "value": "musical_id" }, { "id": 3, "type": "table", "value": "musical" }, { "id": 2, "type": "table", "value": "actor" }, { "id": 1, "type": "column", "value": "name" }, { "id": 4, "type": "value", "value": "3"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 3 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
11,206
soccer_2016
bird:train.json:1827
What is the name of the player with the highest number of outstanding player awards in a particular match?
SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match GROUP BY T2.Man_of_the_Match ORDER BY COUNT(T2.Man_of_the_Match) DESC LIMIT 1
[ "What", "is", "the", "name", "of", "the", "player", "with", "the", "highest", "number", "of", "outstanding", "player", "awards", "in", "a", "particular", "match", "?" ]
[ { "id": 0, "type": "column", "value": "man_of_the_match" }, { "id": 1, "type": "column", "value": "player_name" }, { "id": 4, "type": "column", "value": "player_id" }, { "id": 2, "type": "table", "value": "player" }, { "id": 3, "type": "table",...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 13 ] }, { "entity_id": 3, "token_idxs": [ 18 ] }, { "entity_id": 4, "token_idxs": [ 6 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O" ]
11,207
student_loan
bird:train.json:4471
List at least 10 students who have no payment due and are enlisted in Fire Department organization.
SELECT T1.name FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T2.name = T1.name WHERE T1.bool = 'neg' AND T2.organ = 'fire_department' LIMIT 10
[ "List", "at", "least", "10", "students", "who", "have", "no", "payment", "due", "and", "are", "enlisted", "in", "Fire", "Department", "organization", "." ]
[ { "id": 6, "type": "value", "value": "fire_department" }, { "id": 1, "type": "table", "value": "no_payment_due" }, { "id": 2, "type": "table", "value": "enlist" }, { "id": 5, "type": "column", "value": "organ" }, { "id": 0, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7, 8, 9 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5,...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O" ]
11,208
activity_1
spider:train_spider.json:6728
Count the number of female Professors we have.
SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = "Professor"
[ "Count", "the", "number", "of", "female", "Professors", "we", "have", "." ]
[ { "id": 4, "type": "column", "value": "Professor" }, { "id": 0, "type": "table", "value": "faculty" }, { "id": 3, "type": "column", "value": "rank" }, { "id": 1, "type": "column", "value": "sex" }, { "id": 2, "type": "value", "value": "F" ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-VALUE", "O", "B-COLUMN", "O", "O", "O" ]
11,209
customers_and_invoices
spider:train_spider.json:1578
Count the number of transactions.
SELECT count(*) FROM Financial_transactions
[ "Count", "the", "number", "of", "transactions", "." ]
[ { "id": 0, "type": "table", "value": "financial_transactions" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "B-TABLE", "O" ]
11,210
candidate_poll
spider:train_spider.json:2412
Find the average and minimum weight for each gender.
SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex
[ "Find", "the", "average", "and", "minimum", "weight", "for", "each", "gender", "." ]
[ { "id": 0, "type": "table", "value": "people" }, { "id": 2, "type": "column", "value": "weight" }, { "id": 1, "type": "column", "value": "sex" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O" ]
11,211
movie_2
bird:test.json:1833
Find the name of the theater that is playing the most number of movies.
SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1
[ "Find", "the", "name", "of", "the", "theater", "that", "is", "playing", "the", "most", "number", "of", "movies", "." ]
[ { "id": 0, "type": "table", "value": "movietheaters" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
11,212
chinook_1
spider:train_spider.json:856
What are the invoice dates for customers with the first name Astrid and the last name Gruber?
SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber"
[ "What", "are", "the", "invoice", "dates", "for", "customers", "with", "the", "first", "name", "Astrid", "and", "the", "last", "name", "Gruber", "?" ]
[ { "id": 0, "type": "column", "value": "invoicedate" }, { "id": 3, "type": "column", "value": "customerid" }, { "id": 4, "type": "column", "value": "firstname" }, { "id": 1, "type": "table", "value": "customer" }, { "id": 6, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 9, 10 ] }, { ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O" ]
11,213
soccer_2016
bird:train.json:1789
For how many times has player no.41 won the "man of the match" award?
SELECT COUNT(Match_Id) FROM `Match` WHERE Man_of_the_Match = 41
[ "For", "how", "many", "times", "has", "player", "no.41", "won", "the", "\"", "man", "of", "the", "match", "\"", "award", "?" ]
[ { "id": 1, "type": "column", "value": "man_of_the_match" }, { "id": 3, "type": "column", "value": "match_id" }, { "id": 0, "type": "table", "value": "Match" }, { "id": 2, "type": "value", "value": "41" } ]
[ { "entity_id": 0, "token_idxs": [ 13 ] }, { "entity_id": 1, "token_idxs": [ 10, 11, 12 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-TABLE", "O", "O", "O" ]
11,214
movie_platform
bird:train.json:140
What is the percentage of list created by user who was a subscriber when he created the list?
SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(list_id) FROM lists_users
[ "What", "is", "the", "percentage", "of", "list", "created", "by", "user", "who", "was", "a", "subscriber", "when", "he", "created", "the", "list", "?" ]
[ { "id": 5, "type": "column", "value": "user_subscriber" }, { "id": 0, "type": "table", "value": "lists_users" }, { "id": 2, "type": "column", "value": "list_id" }, { "id": 1, "type": "value", "value": "100" }, { "id": 3, "type": "value", "v...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 12 ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O" ]
11,215
music_tracker
bird:train.json:2059
Among the releases with the tag "1980s", which one of them is the most downloaded? Please give its title.
SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = '1980s' ORDER BY T1.totalSnatched DESC LIMIT 1
[ "Among", "the", "releases", "with", "the", "tag", "\"", "1980s", "\"", ",", "which", "one", "of", "them", "is", "the", "most", "downloaded", "?", "Please", "give", "its", "title", "." ]
[ { "id": 5, "type": "column", "value": "totalsnatched" }, { "id": 0, "type": "column", "value": "groupname" }, { "id": 1, "type": "table", "value": "torrents" }, { "id": 4, "type": "value", "value": "1980s" }, { "id": 2, "type": "table", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
11,217
works_cycles
bird:train.json:7143
What is the location id for Debur and Polish?
SELECT LocationID FROM Location WHERE Name = 'Debur and Polish'
[ "What", "is", "the", "location", "i", "d", "for", "Debur", "and", "Polish", "?" ]
[ { "id": 3, "type": "value", "value": "Debur and Polish" }, { "id": 1, "type": "column", "value": "locationid" }, { "id": 0, "type": "table", "value": "location" }, { "id": 2, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 4, 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7, 8, 9 ] }, { "entity_id": 4, "token_idxs": [] }, ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
11,218
document_management
spider:train_spider.json:4515
What document types do have more than 10000 total access number.
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count) > 10000
[ "What", "document", "types", "do", "have", "more", "than", "10000", "total", "access", "number", "." ]
[ { "id": 1, "type": "column", "value": "document_type_code" }, { "id": 3, "type": "column", "value": "access_count" }, { "id": 0, "type": "table", "value": "documents" }, { "id": 2, "type": "value", "value": "10000" } ]
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_...
[ "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "B-COLUMN", "O", "O" ]
11,219
apartment_rentals
spider:train_spider.json:1243
How many rooms in total are there in the apartments in the building with short name "Columbus Square"?
SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = "Columbus Square"
[ "How", "many", "rooms", "in", "total", "are", "there", "in", "the", "apartments", "in", "the", "building", "with", "short", "name", "\"", "Columbus", "Square", "\"", "?" ]
[ { "id": 0, "type": "table", "value": "apartment_buildings" }, { "id": 2, "type": "column", "value": "building_short_name" }, { "id": 3, "type": "column", "value": "Columbus Square" }, { "id": 5, "type": "column", "value": "building_id" }, { "id": 1...
[ { "entity_id": 0, "token_idxs": [ 10, 11 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 13, 14, 15 ] }, { "entity_id": 3, "token_idxs": [ 17, 18 ] }, { "entity_id": 4,...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-TABLE", "I-TABLE", "B-COLUMN", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O" ]
11,220
college_1
spider:train_spider.json:3236
What is the number of different class sections offered in the course ACCT-211?
SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211'
[ "What", "is", "the", "number", "of", "different", "class", "sections", "offered", "in", "the", "course", "ACCT-211", "?" ]
[ { "id": 3, "type": "column", "value": "class_section" }, { "id": 1, "type": "column", "value": "crs_code" }, { "id": 2, "type": "value", "value": "ACCT-211" }, { "id": 0, "type": "table", "value": "class" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O" ]
11,221
soccer_2016
bird:train.json:1902
In how many venues did team 2 win the toss and lose the match?
SELECT SUM(CASE WHEN T1.Team_2 = T1.Match_Winner THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Team_1 = T1.Toss_Winner
[ "In", "how", "many", "venues", "did", "team", "2", "win", "the", "toss", "and", "lose", "the", "match", "?" ]
[ { "id": 8, "type": "column", "value": "match_winner" }, { "id": 3, "type": "column", "value": "toss_winner" }, { "id": 4, "type": "column", "value": "venue_id" }, { "id": 2, "type": "column", "value": "team_1" }, { "id": 7, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 13 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
11,222
city_record
spider:train_spider.json:6273
Which cities served as a host city after 2010?
SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010
[ "Which", "cities", "served", "as", "a", "host", "city", "after", "2010", "?" ]
[ { "id": 2, "type": "table", "value": "hosting_city" }, { "id": 6, "type": "column", "value": "host_city" }, { "id": 5, "type": "column", "value": "city_id" }, { "id": 0, "type": "column", "value": "city" }, { "id": 1, "type": "table", "valu...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "B-VALUE", "O" ]
11,223
hr_1
spider:train_spider.json:3445
display the emails of the employees who have no commission percentage and salary within the range 7000 to 12000 and works in that department which number is 50.
SELECT email FROM employees WHERE commission_pct = "null" AND salary BETWEEN 7000 AND 12000 AND department_id = 50
[ "display", "the", "emails", "of", "the", "employees", "who", "have", "no", "commission", "percentage", "and", "salary", "within", "the", "range", "7000", "to", "12000", "and", "works", "in", "that", "department", "which", "number", "is", "50", "." ]
[ { "id": 2, "type": "column", "value": "commission_pct" }, { "id": 7, "type": "column", "value": "department_id" }, { "id": 0, "type": "table", "value": "employees" }, { "id": 4, "type": "column", "value": "salary" }, { "id": 1, "type": "column"...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O" ]
11,224
disney
bird:train.json:4686
List the movie titles and associated songs directed by Ron Clements.
SELECT T1.movie_title, T1.song FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Ron Clements'
[ "List", "the", "movie", "titles", "and", "associated", "songs", "directed", "by", "Ron", "Clements", "." ]
[ { "id": 5, "type": "value", "value": "Ron Clements" }, { "id": 0, "type": "column", "value": "movie_title" }, { "id": 2, "type": "table", "value": "characters" }, { "id": 3, "type": "table", "value": "director" }, { "id": 4, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id":...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O" ]
11,225
railway
spider:train_spider.json:5644
Show different builders of railways, along with the corresponding number of railways using each builder.
SELECT Builder , COUNT(*) FROM railway GROUP BY Builder
[ "Show", "different", "builders", "of", "railways", ",", "along", "with", "the", "corresponding", "number", "of", "railways", "using", "each", "builder", "." ]
[ { "id": 0, "type": "table", "value": "railway" }, { "id": 1, "type": "column", "value": "builder" } ]
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 15 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O" ]
11,226
university
bird:train.json:8090
Show the id of University of Orléans.
SELECT id FROM university WHERE university_name = 'University of Orléans'
[ "Show", "the", "i", "d", "of", "University", "of", "Orléans", "." ]
[ { "id": 3, "type": "value", "value": "University of Orléans" }, { "id": 2, "type": "column", "value": "university_name" }, { "id": 0, "type": "table", "value": "university" }, { "id": 1, "type": "column", "value": "id" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6, 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "en...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "B-VALUE", "I-VALUE", "O" ]
11,227
olympics
bird:train.json:4922
Please list the names of the Olympic games that were held in London.
SELECT T3.games_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'London'
[ "Please", "list", "the", "names", "of", "the", "Olympic", "games", "that", "were", "held", "in", "London", "." ]
[ { "id": 0, "type": "column", "value": "games_name" }, { "id": 4, "type": "table", "value": "games_city" }, { "id": 2, "type": "column", "value": "city_name" }, { "id": 6, "type": "column", "value": "games_id" }, { "id": 8, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O" ]
11,228
retails
bird:train.json:6785
How many suppliers from Egypt have a debit balance?
SELECT COUNT(T1.s_suppkey) FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0 AND T2.n_name = 'EGYPT'
[ "How", "many", "suppliers", "from", "Egypt", "have", "a", "debit", "balance", "?" ]
[ { "id": 3, "type": "column", "value": "s_nationkey" }, { "id": 4, "type": "column", "value": "n_nationkey" }, { "id": 2, "type": "column", "value": "s_suppkey" }, { "id": 5, "type": "column", "value": "s_acctbal" }, { "id": 0, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "O" ]
11,229
airline
bird:train.json:5877
How many flights from Dallas to Santa Ana departed on time?
SELECT COUNT(*) FROM Airlines WHERE DEST = 'SNA' AND ORIGIN = 'DFW' AND DEP_DELAY = 0
[ "How", "many", "flights", "from", "Dallas", "to", "Santa", "Ana", "departed", "on", "time", "?" ]
[ { "id": 5, "type": "column", "value": "dep_delay" }, { "id": 0, "type": "table", "value": "airlines" }, { "id": 3, "type": "column", "value": "origin" }, { "id": 1, "type": "column", "value": "dest" }, { "id": 2, "type": "value", "value": "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O" ]
11,230
manufactory_1
spider:train_spider.json:5310
Find the total revenue for each manufacturer.
SELECT sum(revenue) , name FROM manufacturers GROUP BY name
[ "Find", "the", "total", "revenue", "for", "each", "manufacturer", "." ]
[ { "id": 0, "type": "table", "value": "manufacturers" }, { "id": 2, "type": "column", "value": "revenue" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
11,231
financial
bird:dev.json:120
From Year 1995 to 2000, who are the accounts holders from 'east Bohemia'. State the account ID the frequency of statement issuance.
SELECT T1.account_id, T1.frequency FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A3 = 'east Bohemia' AND STRFTIME('%Y', T1.date) BETWEEN '1995' AND '2000'
[ "From", "Year", "1995", "to", "2000", ",", "who", "are", "the", "accounts", "holders", "from", "'", "east", "Bohemia", "'", ".", "State", "the", "account", "ID", "the", "frequency", "of", "statement", "issuance", "." ]
[ { "id": 6, "type": "value", "value": "east Bohemia" }, { "id": 4, "type": "column", "value": "district_id" }, { "id": 0, "type": "column", "value": "account_id" }, { "id": 1, "type": "column", "value": "frequency" }, { "id": 3, "type": "table",...
[ { "entity_id": 0, "token_idxs": [ 20 ] }, { "entity_id": 1, "token_idxs": [ 22 ] }, { "entity_id": 2, "token_idxs": [ 19 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O" ]
11,232
movie_platform
bird:train.json:75
How many users have rated the most popular movie?
SELECT COUNT(rating_id) FROM ratings WHERE movie_id = ( SELECT movie_id FROM movies ORDER BY movie_popularity DESC LIMIT 1 )
[ "How", "many", "users", "have", "rated", "the", "most", "popular", "movie", "?" ]
[ { "id": 4, "type": "column", "value": "movie_popularity" }, { "id": 2, "type": "column", "value": "rating_id" }, { "id": 1, "type": "column", "value": "movie_id" }, { "id": 0, "type": "table", "value": "ratings" }, { "id": 3, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 6, 7 ] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "O" ]
11,233
superstore
bird:train.json:2345
Please list the names of all the products ordered in order CA-2011-112326 in superstores in the center.
SELECT DISTINCT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Order ID` = 'CA-2011-112326'
[ "Please", "list", "the", "names", "of", "all", "the", "products", "ordered", "in", "order", "CA-2011", "-", "112326", "in", "superstores", "in", "the", "center", "." ]
[ { "id": 1, "type": "table", "value": "central_superstore" }, { "id": 4, "type": "value", "value": "CA-2011-112326" }, { "id": 0, "type": "column", "value": "Product Name" }, { "id": 5, "type": "column", "value": "Product ID" }, { "id": 3, "type...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 15 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 11, 12, 13 ]...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "B-TABLE", "O", "O", "O", "O" ]
11,234
retail_world
bird:train.json:6447
How many orders were shipped by "Speedy Express"?
SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Speedy Express'
[ "How", "many", "orders", "were", "shipped", "by", "\"", "Speedy", "Express", "\"", "?" ]
[ { "id": 3, "type": "value", "value": "Speedy Express" }, { "id": 2, "type": "column", "value": "companyname" }, { "id": 6, "type": "column", "value": "shipperid" }, { "id": 1, "type": "table", "value": "shippers" }, { "id": 4, "type": "column",...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7, 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O", "O" ]
11,235
mondial_geo
bird:train.json:8430
Which nation has the smallest population, and where is its capital located?
SELECT Name, Capital FROM country ORDER BY Population ASC LIMIT 1
[ "Which", "nation", "has", "the", "smallest", "population", ",", "and", "where", "is", "its", "capital", "located", "?" ]
[ { "id": 3, "type": "column", "value": "population" }, { "id": 0, "type": "table", "value": "country" }, { "id": 2, "type": "column", "value": "capital" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O" ]
11,236
chicago_crime
bird:train.json:8622
What is the name of the community with the highest population?
SELECT community_area_name FROM Community_Area ORDER BY population DESC LIMIT 1
[ "What", "is", "the", "name", "of", "the", "community", "with", "the", "highest", "population", "?" ]
[ { "id": 1, "type": "column", "value": "community_area_name" }, { "id": 0, "type": "table", "value": "community_area" }, { "id": 2, "type": "column", "value": "population" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O" ]
11,237
mental_health_survey
bird:train.json:4586
How many users participated in the mental health survey for 2014?
SELECT COUNT(DISTINCT T1.UserID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2014'
[ "How", "many", "users", "participated", "in", "the", "mental", "health", "survey", "for", "2014", "?" ]
[ { "id": 3, "type": "value", "value": "mental health survey for 2014" }, { "id": 2, "type": "column", "value": "description" }, { "id": 5, "type": "column", "value": "surveyid" }, { "id": 0, "type": "table", "value": "answer" }, { "id": 1, "type...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6, 7, 9, 10 ] }, { "entity_id": 4, "token_idxs": [ 2...
[ "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "B-TABLE", "B-VALUE", "I-VALUE", "O" ]
11,238
activity_1
spider:train_spider.json:6715
How many faculty do we have?
SELECT count(*) FROM Faculty
[ "How", "many", "faculty", "do", "we", "have", "?" ]
[ { "id": 0, "type": "table", "value": "faculty" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O" ]