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
6,109
donor
bird:train.json:3219
What is the short description of the project that gives donation to school “301c9bf0a45d159d162b65a93fddd74e”?
SELECT T2.short_description FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T1.schoolid = '301c9bf0a45d159d162b65a93fddd74e'
[ "What", "is", "the", "short", "description", "of", "the", "project", "that", "gives", "donation", "to", "school", "“", "301c9bf0a45d159d162b65a93fddd74e", "”", "?" ]
[ { "id": 4, "type": "value", "value": "301c9bf0a45d159d162b65a93fddd74e" }, { "id": 0, "type": "column", "value": "short_description" }, { "id": 5, "type": "column", "value": "projectid" }, { "id": 1, "type": "table", "value": "projects" }, { "id": ...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 14 ] }, { ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O" ]
6,110
bike_racing
bird:test.json:1484
Show the name, nation and result for the cyclists who did not purchase any racing bike.
SELECT name , nation , RESULT FROM cyclist EXCEPT SELECT T1.name , T1.nation , T1.result FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id = T2.cyclist_id
[ "Show", "the", "name", ",", "nation", "and", "result", "for", "the", "cyclists", "who", "did", "not", "purchase", "any", "racing", "bike", "." ]
[ { "id": 4, "type": "table", "value": "cyclists_own_bikes" }, { "id": 6, "type": "column", "value": "cyclist_id" }, { "id": 0, "type": "table", "value": "cyclist" }, { "id": 2, "type": "column", "value": "nation" }, { "id": 3, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O" ]
6,111
coinmarketcap
bird:train.json:6282
Name the coins that have three tags.
SELECT name FROM coins WHERE LENGTH(tag_names) - LENGTH(replace(tag_names, ',', '')) = 2
[ "Name", "the", "coins", "that", "have", "three", "tags", "." ]
[ { "id": 3, "type": "column", "value": "tag_names" }, { "id": 0, "type": "table", "value": "coins" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "value", "value": "2" }, { "id": 4, "type": "value", "value": "," } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 0 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O" ]
6,112
storm_record
spider:train_spider.json:2732
Find the name of the storm that affected both Afghanistan and Albania regions.
SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T...
[ "Find", "the", "name", "of", "the", "storm", "that", "affected", "both", "Afghanistan", "and", "Albania", "regions", "." ]
[ { "id": 5, "type": "table", "value": "affected_region" }, { "id": 2, "type": "column", "value": "region_name" }, { "id": 3, "type": "value", "value": "Afghanistan" }, { "id": 8, "type": "column", "value": "region_id" }, { "id": 7, "type": "colu...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "B-VALUE", "O", "B-VALUE", "B-TABLE", "O" ]
6,113
twitter_1
spider:train_spider.json:281
Find the name and email of the user whose name contains the word ‘Swift’.
SELECT name , email FROM user_profiles WHERE name LIKE '%Swift%'
[ "Find", "the", "name", "and", "email", "of", "the", "user", "whose", "name", "contains", "the", "word", "‘", "Swift", "’", "." ]
[ { "id": 0, "type": "table", "value": "user_profiles" }, { "id": 3, "type": "value", "value": "%Swift%" }, { "id": 2, "type": "column", "value": "email" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O" ]
6,114
talkingdata
bird:train.json:1193
State the category of the label that represented the behavior category of app id 4955831798976240000.
SELECT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T2.app_id = 4955831798976240000
[ "State", "the", "category", "of", "the", "label", "that", "represented", "the", "behavior", "category", "of", "app", "i", "d", "4955831798976240000", "." ]
[ { "id": 4, "type": "value", "value": "4955831798976240000" }, { "id": 1, "type": "table", "value": "label_categories" }, { "id": 2, "type": "table", "value": "app_labels" }, { "id": 0, "type": "column", "value": "category" }, { "id": 5, "type":...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12, 13, 14 ] }, { "entity_id": 4, "token_idxs": [ 15 ...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-VALUE", "O" ]
6,115
movie_platform
bird:train.json:45
How many movies have a popularity of more than 400 but less than 500? Indicate the name of the movies and the highest rating score each movie has received.
SELECT T1.movie_title, MAX(T2.rating_score) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_popularity BETWEEN 400 AND 500 GROUP BY T1.movie_title
[ "How", "many", "movies", "have", "a", "popularity", "of", "more", "than", "400", "but", "less", "than", "500", "?", "Indicate", "the", "name", "of", "the", "movies", "and", "the", "highest", "rating", "score", "each", "movie", "has", "received", "." ]
[ { "id": 3, "type": "column", "value": "movie_popularity" }, { "id": 6, "type": "column", "value": "rating_score" }, { "id": 0, "type": "column", "value": "movie_title" }, { "id": 7, "type": "column", "value": "movie_id" }, { "id": 2, "type": "t...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 24 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O" ]
6,116
soccer_2
spider:train_spider.json:5029
What are the names of the states that have some college students playing in the positions of goalie and mid-field?
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid'
[ "What", "are", "the", "names", "of", "the", "states", "that", "have", "some", "college", "students", "playing", "in", "the", "positions", "of", "goalie", "and", "mid", "-", "field", "?" ]
[ { "id": 1, "type": "table", "value": "college" }, { "id": 2, "type": "table", "value": "tryout" }, { "id": 4, "type": "value", "value": "goalie" }, { "id": 0, "type": "column", "value": "state" }, { "id": 6, "type": "column", "value": "cnam...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 17 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O" ]
6,117
computer_student
bird:train.json:976
What level is course 165? List the professors who teach the course.
SELECT T1.courseLevel, T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T2.course_id = 165
[ "What", "level", "is", "course", "165", "?", "List", "the", "professors", "who", "teach", "the", "course", "." ]
[ { "id": 0, "type": "column", "value": "courselevel" }, { "id": 4, "type": "column", "value": "course_id" }, { "id": 3, "type": "table", "value": "taughtby" }, { "id": 2, "type": "table", "value": "course" }, { "id": 1, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 4 ...
[ "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
6,119
retails
bird:train.json:6786
How many items shipped by REG AIR were ordered on March 22, 1995?
SELECT COUNT(T1.o_orderkey) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T2.l_shipmode = 'REG AIR' AND T1.o_orderdate = '1995-03-22'
[ "How", "many", "items", "shipped", "by", "REG", "AIR", "were", "ordered", "on", "March", "22", ",", "1995", "?" ]
[ { "id": 6, "type": "column", "value": "o_orderdate" }, { "id": 2, "type": "column", "value": "o_orderkey" }, { "id": 3, "type": "column", "value": "l_orderkey" }, { "id": 4, "type": "column", "value": "l_shipmode" }, { "id": 7, "type": "value",...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 3 ] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "O", "O", "O", "O", "O", "O" ]
6,120
student_1
spider:train_spider.json:4044
Which classrooms are used by grade 5?
SELECT DISTINCT classroom FROM list WHERE grade = 5
[ "Which", "classrooms", "are", "used", "by", "grade", "5", "?" ]
[ { "id": 1, "type": "column", "value": "classroom" }, { "id": 2, "type": "column", "value": "grade" }, { "id": 0, "type": "table", "value": "list" }, { "id": 3, "type": "value", "value": "5" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "B-VALUE", "O" ]
6,121
shakespeare
bird:train.json:2963
For how many times has the scene "OLIVIA’S house." appeared in Twelfth Night?
SELECT COUNT(T2.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Description = 'OLIVIA’S house.' AND T1.Title = 'Twelfth Night'
[ "For", "how", "many", "times", "has", "the", "scene", "\"", "OLIVIA", "’S", "house", ".", "\"", "appeared", "in", "Twelfth", "Night", "?" ]
[ { "id": 5, "type": "value", "value": "OLIVIA’S house." }, { "id": 7, "type": "value", "value": "Twelfth Night" }, { "id": 4, "type": "column", "value": "description" }, { "id": 1, "type": "table", "value": "chapters" }, { "id": 3, "type": "colu...
[ { "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": [] }, { "entity_id": 5, "token_idxs": [ 8, 9, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "B-VALUE", "I-VALUE", "O" ]
6,122
menu
bird:train.json:5563
Among the menus that did not support taking out or booking in advance, how many of them were created before 1950?
SELECT COUNT(*) FROM Menu WHERE call_number IS NULL AND strftime('%Y', date) < '1950'
[ "Among", "the", "menus", "that", "did", "not", "support", "taking", "out", "or", "booking", "in", "advance", ",", "how", "many", "of", "them", "were", "created", "before", "1950", "?" ]
[ { "id": 1, "type": "column", "value": "call_number" }, { "id": 0, "type": "table", "value": "menu" }, { "id": 2, "type": "value", "value": "1950" }, { "id": 4, "type": "column", "value": "date" }, { "id": 3, "type": "value", "value": "%Y" ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 21 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
6,123
sports_competition
spider:train_spider.json:3375
Show total points of all players.
SELECT sum(Points) FROM player
[ "Show", "total", "points", "of", "all", "players", "." ]
[ { "id": 0, "type": "table", "value": "player" }, { "id": 1, "type": "column", "value": "points" } ]
[ { "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" ]
6,124
card_games
bird:dev.json:348
Describe the information about rulings for card named 'Sublime Epiphany' with number 74s.
SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Sublime Epiphany' AND T1.number = '74s'
[ "Describe", "the", "information", "about", "rulings", "for", "card", "named", "'", "Sublime", "Epiphany", "'", "with", "number", "74s", "." ]
[ { "id": 5, "type": "value", "value": "Sublime Epiphany" }, { "id": 2, "type": "table", "value": "rulings" }, { "id": 6, "type": "column", "value": "number" }, { "id": 1, "type": "table", "value": "cards" }, { "id": 0, "type": "column", "val...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "...
[ "O", "O", "O", "O", "B-TABLE", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "B-VALUE", "O" ]
6,125
apartment_rentals
spider:train_spider.json:1251
Sort the apartment numbers in ascending order of room count.
SELECT apt_number FROM Apartments ORDER BY room_count ASC
[ "Sort", "the", "apartment", "numbers", "in", "ascending", "order", "of", "room", "count", "." ]
[ { "id": 0, "type": "table", "value": "apartments" }, { "id": 1, "type": "column", "value": "apt_number" }, { "id": 2, "type": "column", "value": "room_count" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 8, 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
6,127
financial
bird:dev.json:153
How many 'classic' cards are eligible for loan?
SELECT COUNT(T1.card_id) FROM card AS T1 INNER JOIN disp AS T2 ON T1.disp_id = T2.disp_id WHERE T1.type = 'classic' AND T2.type = 'OWNER'
[ "How", "many", "'", "classic", "'", "cards", "are", "eligible", "for", "loan", "?" ]
[ { "id": 2, "type": "column", "value": "card_id" }, { "id": 3, "type": "column", "value": "disp_id" }, { "id": 5, "type": "value", "value": "classic" }, { "id": 6, "type": "value", "value": "OWNER" }, { "id": 0, "type": "table", "value": "ca...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "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": [ 3 ...
[ "O", "O", "O", "B-VALUE", "O", "B-TABLE", "O", "O", "O", "O", "O" ]
6,128
warehouse_1
bird:test.json:1683
Find all different contents stored in New York.
SELECT DISTINCT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE LOCATION = 'New York'
[ "Find", "all", "different", "contents", "stored", "in", "New", "York", "." ]
[ { "id": 2, "type": "table", "value": "warehouses" }, { "id": 5, "type": "column", "value": "warehouse" }, { "id": 0, "type": "column", "value": "contents" }, { "id": 3, "type": "column", "value": "location" }, { "id": 4, "type": "value", "v...
[ { "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": [ 6, 7 ] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "O" ]
6,129
soccer_2016
bird:train.json:1975
What is the ratio of players with batting hands of left and right?
SELECT CAST(SUM(CASE WHEN T2.Batting_hand = 'Left-hand bat' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.Batting_hand = 'Right-hand bat' THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id
[ "What", "is", "the", "ratio", "of", "players", "with", "batting", "hands", "of", "left", "and", "right", "?" ]
[ { "id": 6, "type": "value", "value": "Right-hand bat" }, { "id": 1, "type": "table", "value": "batting_style" }, { "id": 7, "type": "value", "value": "Left-hand bat" }, { "id": 2, "type": "column", "value": "batting_hand" }, { "id": 3, "type": ...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
6,130
address
bird:train.json:5121
Calculate the average male median age of all the residential areas in Windham county.
SELECT SUM(T2.male_median_age) / COUNT(T2.median_age) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'WINDHAM'
[ "Calculate", "the", "average", "male", "median", "age", "of", "all", "the", "residential", "areas", "in", "Windham", "county", "." ]
[ { "id": 5, "type": "column", "value": "male_median_age" }, { "id": 6, "type": "column", "value": "median_age" }, { "id": 1, "type": "table", "value": "zip_data" }, { "id": 4, "type": "column", "value": "zip_code" }, { "id": 0, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 13 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "O", "B-COLUMN", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
6,131
music_2
spider:train_spider.json:5260
Which vocal type has the band mate with first name "Marianne" played the most?
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
[ "Which", "vocal", "type", "has", "the", "band", "mate", "with", "first", "name", "\"", "Marianne", "\"", "played", "the", "most", "?" ]
[ { "id": 3, "type": "column", "value": "firstname" }, { "id": 4, "type": "column", "value": "Marianne" }, { "id": 5, "type": "column", "value": "bandmate" }, { "id": 1, "type": "table", "value": "vocals" }, { "id": 0, "type": "column", "valu...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 8, 9 ] }, { "entity_id": 4, "token_idxs": [ 11 ...
[ "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O" ]
6,132
storm_record
spider:train_spider.json:2722
Show all storm names except for those with at least two affected regions.
SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2
[ "Show", "all", "storm", "names", "except", "for", "those", "with", "at", "least", "two", "affected", "regions", "." ]
[ { "id": 3, "type": "table", "value": "affected_region" }, { "id": 1, "type": "column", "value": "storm_id" }, { "id": 0, "type": "table", "value": "storm" }, { "id": 2, "type": "column", "value": "name" }, { "id": 4, "type": "value", "value...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [ 11, 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O" ]
6,133
cre_Doc_and_collections
bird:test.json:718
What are the different subsets of documents related to each document id , list the name of the document subset and id of the actual document ?
select distinct t3.document_subset_name , t1.document_object_id from document_subset_members as t1 join document_subset_members as t2 on t1.related_document_object_id = t2.document_object_id join document_subsets as t3 on t2.document_subset_id = t3.document_subset_id
[ "What", "are", "the", "different", "subsets", "of", "documents", "related", "to", "each", "document", "i", "d", ",", "list", "the", "name", "of", "the", "document", "subset", "and", "i", "d", "of", "the", "actual", "document", "?" ]
[ { "id": 5, "type": "column", "value": "related_document_object_id" }, { "id": 3, "type": "table", "value": "document_subset_members" }, { "id": 0, "type": "column", "value": "document_subset_name" }, { "id": 1, "type": "column", "value": "document_object_i...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 10, 11, 12 ] }, { "entity_id": 2, "token_idxs": [ 19, 20 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "e...
[ "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "O" ]
6,134
bakery_1
bird:test.json:1512
What are the receipt numbers for instances where both cakes and cookies were purchased?
SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = "Cake" INTERSECT SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = "Cookie"
[ "What", "are", "the", "receipt", "numbers", "for", "instances", "where", "both", "cakes", "and", "cookies", "were", "purchased", "?" ]
[ { "id": 0, "type": "column", "value": "receipt" }, { "id": 5, "type": "column", "value": "Cookie" }, { "id": 1, "type": "table", "value": "items" }, { "id": 2, "type": "table", "value": "goods" }, { "id": 3, "type": "column", "value": "food...
[ { "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": [ 9 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O" ]
6,135
retails
bird:train.json:6889
Which part is ordered in a bigger amount in order no.1, "burnished seashell gainsboro navajo chocolate" or "salmon white grey tan navy"?
SELECT T.p_name FROM ( SELECT T2.p_name, SUM(T1.l_quantity) AS num FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T2.p_name IN ('salmon white grey tan navy', 'burnished seashell gainsboro navajo chocolate') GROUP BY T1.l_partkey ) AS T ORDER BY T.num DESC LIMIT 1
[ "Which", "part", "is", "ordered", "in", "a", "bigger", "amount", "in", "order", "no.1", ",", "\"", "burnished", "seashell", "gainsboro", "navajo", "chocolate", "\"", "or", "\"", "salmon", "white", "grey", "tan", "navy", "\"", "?" ]
[ { "id": 6, "type": "value", "value": "burnished seashell gainsboro navajo chocolate" }, { "id": 5, "type": "value", "value": "salmon white grey tan navy" }, { "id": 7, "type": "column", "value": "l_quantity" }, { "id": 2, "type": "column", "value": "l_part...
[ { "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": [ 1 ] }, { "entity_id": 5, "token_idxs": [ 21, ...
[ "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
6,136
voter_2
spider:train_spider.json:5472
Find the distinct last names of the students who have class president votes.
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE
[ "Find", "the", "distinct", "last", "names", "of", "the", "students", "who", "have", "class", "president", "votes", "." ]
[ { "id": 4, "type": "column", "value": "class_president_vote" }, { "id": 2, "type": "table", "value": "voting_record" }, { "id": 1, "type": "table", "value": "student" }, { "id": 0, "type": "column", "value": "lname" }, { "id": 3, "type": "colum...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 10, 11, 12 ] }, { ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
6,137
bbc_channels
bird:test.json:122
How many channels have the word 'bbc' in their internet link?
SELECT count(*) FROM channel WHERE internet LIKE "%bbc%"
[ "How", "many", "channels", "have", "the", "word", "'", "bbc", "'", "in", "their", "internet", "link", "?" ]
[ { "id": 1, "type": "column", "value": "internet" }, { "id": 0, "type": "table", "value": "channel" }, { "id": 2, "type": "column", "value": "%bbc%" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O" ]
6,138
superhero
bird:dev.json:747
What is the total number of superheroes without full name?
SELECT COUNT(id) FROM superhero WHERE full_name IS NULL
[ "What", "is", "the", "total", "number", "of", "superheroes", "without", "full", "name", "?" ]
[ { "id": 0, "type": "table", "value": "superhero" }, { "id": 1, "type": "column", "value": "full_name" }, { "id": 2, "type": "column", "value": "id" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 8, 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O" ]
6,139
ship_1
spider:train_spider.json:6241
What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?
SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line'
[ "What", "are", "the", "ranks", "of", "captains", "that", "have", "no", "captain", "that", "are", "in", "the", "Third", "-", "rate", "ship", "of", "the", "line", "class", "?" ]
[ { "id": 3, "type": "value", "value": "Third-rate ship of the line" }, { "id": 0, "type": "table", "value": "captain" }, { "id": 2, "type": "column", "value": "class" }, { "id": 1, "type": "column", "value": "rank" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 21 ] }, { "entity_id": 3, "token_idxs": [ 14, 15, 16, 17, 18, 19, 20 ] }, { ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "O" ]
6,140
insurance_fnol
spider:train_spider.json:896
Which policy type appears most frequently in the available policies?
SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1
[ "Which", "policy", "type", "appears", "most", "frequently", "in", "the", "available", "policies", "?" ]
[ { "id": 0, "type": "table", "value": "available_policies" }, { "id": 1, "type": "column", "value": "policy_type_code" } ]
[ { "entity_id": 0, "token_idxs": [ 8, 9 ] }, { "entity_id": 1, "token_idxs": [ 1, 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O" ]
6,141
workshop_paper
spider:train_spider.json:5836
Show each author and the number of workshops they submitted to.
SELECT T2.Author , COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author
[ "Show", "each", "author", "and", "the", "number", "of", "workshops", "they", "submitted", "to", "." ]
[ { "id": 4, "type": "column", "value": "submission_id" }, { "id": 3, "type": "column", "value": "workshop_id" }, { "id": 1, "type": "table", "value": "acceptance" }, { "id": 2, "type": "table", "value": "submission" }, { "id": 0, "type": "column...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O" ]
6,142
restaurant
bird:train.json:1751
List down the cities with unknown country.
SELECT city FROM geographic WHERE county = 'unknown'
[ "List", "down", "the", "cities", "with", "unknown", "country", "." ]
[ { "id": 0, "type": "table", "value": "geographic" }, { "id": 3, "type": "value", "value": "unknown" }, { "id": 2, "type": "column", "value": "county" }, { "id": 1, "type": "column", "value": "city" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-COLUMN", "O" ]
6,143
baseball_1
spider:train_spider.json:3680
How many players did Boston Red Stockings have in 2000?
SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000
[ "How", "many", "players", "did", "Boston", "Red", "Stockings", "have", "in", "2000", "?" ]
[ { "id": 5, "type": "value", "value": "Boston Red Stockings" }, { "id": 3, "type": "column", "value": "team_id_br" }, { "id": 2, "type": "column", "value": "team_id" }, { "id": 0, "type": "table", "value": "salary" }, { "id": 1, "type": "table",...
[ { "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": [] }, { "entity_id": 5, "token_idxs": [ 4, 5, ...
[ "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "B-VALUE", "O" ]
6,144
allergy_1
spider:train_spider.json:447
Show all allergies with type food.
SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = "food"
[ "Show", "all", "allergies", "with", "type", "food", "." ]
[ { "id": 0, "type": "table", "value": "allergy_type" }, { "id": 2, "type": "column", "value": "allergytype" }, { "id": 1, "type": "column", "value": "allergy" }, { "id": 3, "type": "column", "value": "food" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O" ]
6,145
movies_4
bird:train.json:432
Give the number of movies with "saving the world" as the keyword.
SELECT COUNT(T2.movie_id) FROM keyword AS T1 INNER JOIN movie_keywords AS T2 ON T1.keyword_id = T2.keyword_id WHERE keyword_name = 'saving the world'
[ "Give", "the", "number", "of", "movies", "with", "\"", "saving", "the", "world", "\"", "as", "the", "keyword", "." ]
[ { "id": 3, "type": "value", "value": "saving the world" }, { "id": 1, "type": "table", "value": "movie_keywords" }, { "id": 2, "type": "column", "value": "keyword_name" }, { "id": 5, "type": "column", "value": "keyword_id" }, { "id": 4, "type":...
[ { "entity_id": 0, "token_idxs": [ 13 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7, 8, 9 ] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "e...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "B-TABLE", "O" ]
6,146
address
bird:train.json:5167
List the bad alias of the postal point located in Camuy.
SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Camuy'
[ "List", "the", "bad", "alias", "of", "the", "postal", "point", "located", "in", "Camuy", "." ]
[ { "id": 0, "type": "column", "value": "bad_alias" }, { "id": 2, "type": "table", "value": "zip_data" }, { "id": 5, "type": "column", "value": "zip_code" }, { "id": 1, "type": "table", "value": "avoid" }, { "id": 4, "type": "value", "value":...
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, "tok...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
6,147
image_and_language
bird:train.json:7600
List the object classes of image ID 36 with coordinates (0,0).
SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 36 AND T1.X = 0 AND T1.Y = 0
[ "List", "the", "object", "classes", "of", "image", "ID", "36", "with", "coordinates", "(", "0,0", ")", "." ]
[ { "id": 3, "type": "column", "value": "obj_class_id" }, { "id": 2, "type": "table", "value": "obj_classes" }, { "id": 0, "type": "column", "value": "obj_class" }, { "id": 1, "type": "table", "value": "img_obj" }, { "id": 4, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 5, 6 ] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O", "O", "O", "O", "O" ]
6,148
soccer_2016
bird:train.json:1832
Which venue did Kolkata Knight Riders play most of their matches as a Team 1?
SELECT T3.Venue_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Team_1 INNER JOIN Venue AS T3 ON T2.Venue_Id = T3.Venue_Id WHERE T1.Team_Name = 'Kolkata Knight Riders' GROUP BY T3.Venue_Id ORDER BY COUNT(T3.Venue_Id) DESC LIMIT 1
[ "Which", "venue", "did", "Kolkata", "Knight", "Riders", "play", "most", "of", "their", "matches", "as", "a", "Team", "1", "?" ]
[ { "id": 4, "type": "value", "value": "Kolkata Knight Riders" }, { "id": 1, "type": "column", "value": "venue_name" }, { "id": 3, "type": "column", "value": "team_name" }, { "id": 0, "type": "column", "value": "venue_id" }, { "id": 7, "type": "c...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 3, 4, 5 ] }, { "en...
[ "O", "B-TABLE", "B-COLUMN", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
6,149
toxicology
bird:dev.json:204
Of the first 100 molecules in number order, how many are carcinogenic?
SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE molecule_id BETWEEN 'TR000' AND 'TR099' AND T.label = '+'
[ "Of", "the", "first", "100", "molecules", "in", "number", "order", ",", "how", "many", "are", "carcinogenic", "?" ]
[ { "id": 1, "type": "column", "value": "molecule_id" }, { "id": 0, "type": "table", "value": "molecule" }, { "id": 2, "type": "value", "value": "TR000" }, { "id": 3, "type": "value", "value": "TR099" }, { "id": 4, "type": "column", "value": ...
[ { "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", "O", "O", "O", "O", "O" ]
6,150
cre_Doc_Tracking_DB
spider:train_spider.json:4205
What is the code of each role and the number of employees in each role?
SELECT role_code , count(*) FROM Employees GROUP BY role_code
[ "What", "is", "the", "code", "of", "each", "role", "and", "the", "number", "of", "employees", "in", "each", "role", "?" ]
[ { "id": 0, "type": "table", "value": "employees" }, { "id": 1, "type": "column", "value": "role_code" } ]
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "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", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O" ]
6,151
movie_platform
bird:train.json:37
How many users rated the movie "The Magnificent Ambersons" gave a rating score of no more than 2? List all the URL to the rating on Mubi.
SELECT COUNT(T2.user_id), T2.rating_url FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'The Magnificent Ambersons' AND T2.rating_score <= 2
[ "How", "many", "users", "rated", "the", "movie", "\"", "The", "Magnificent", "Ambersons", "\"", "gave", "a", "rating", "score", "of", "no", "more", "than", "2", "?", "List", "all", "the", "URL", "to", "the", "rating", "on", "Mubi", "." ]
[ { "id": 6, "type": "value", "value": "The Magnificent Ambersons" }, { "id": 7, "type": "column", "value": "rating_score" }, { "id": 5, "type": "column", "value": "movie_title" }, { "id": 0, "type": "column", "value": "rating_url" }, { "id": 4, ...
[ { "entity_id": 0, "token_idxs": [ 27 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 13 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entit...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "B-VALUE", "I-VALUE", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O" ]
6,152
chicago_crime
bird:train.json:8768
District commander Robert A. Rubio was responsible for how many incidents in January, 2018?
SELECT SUM(CASE WHEN SUBSTR(T2.date, 5, 4) = '2018' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.commander = 'Robert A. Rubio' AND SUBSTR(T2.date, 1, 1) = '1'
[ "District", "commander", "Robert", "A.", "Rubio", "was", "responsible", "for", "how", "many", "incidents", "in", "January", ",", "2018", "?" ]
[ { "id": 4, "type": "value", "value": "Robert A. Rubio" }, { "id": 2, "type": "column", "value": "district_no" }, { "id": 3, "type": "column", "value": "commander" }, { "id": 0, "type": "table", "value": "district" }, { "id": 1, "type": "table",...
[ { "entity_id": 0, "token_idxs": [ 0 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 1 ] }, { "entity_id": 4, "token_idxs": [ 2, 3, 4 ] }, { "en...
[ "B-TABLE", "B-COLUMN", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
6,153
dorm_1
spider:train_spider.json:5706
Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20.
SELECT lname FROM student WHERE sex = 'F' AND city_code = 'BAL' UNION SELECT lname FROM student WHERE sex = 'M' AND age < 20
[ "Find", "the", "last", "name", "of", "students", "who", "is", "either", "female", "(", "sex", "is", "F", ")", "and", "living", "in", "the", "city", "of", "code", "BAL", "or", "male", "(", "sex", "is", "M", ")", "and", "in", "age", "of", "below", ...
[ { "id": 4, "type": "column", "value": "city_code" }, { "id": 0, "type": "table", "value": "student" }, { "id": 1, "type": "column", "value": "lname" }, { "id": 2, "type": "column", "value": "sex" }, { "id": 5, "type": "value", "value": "BAL...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ 19, 20, ...
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "O", "B-VA...
6,154
food_inspection_2
bird:train.json:6203
Calculate the total salary for employees who did inspection from ID 52270 to 52272.
SELECT SUM(T2.salary) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T1.inspection_id BETWEEN 52270 AND 52272
[ "Calculate", "the", "total", "salary", "for", "employees", "who", "did", "inspection", "from", "ID", "52270", "to", "52272", "." ]
[ { "id": 2, "type": "column", "value": "inspection_id" }, { "id": 6, "type": "column", "value": "employee_id" }, { "id": 0, "type": "table", "value": "inspection" }, { "id": 1, "type": "table", "value": "employee" }, { "id": 5, "type": "column",...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entit...
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "B-VALUE", "O" ]
6,155
public_review_platform
bird:train.json:3988
How many businesses in Tempe are rated as 'Wonderful experience?
SELECT COUNT(business_id) FROM Business WHERE city = 'Phoenix' AND stars > 3
[ "How", "many", "businesses", "in", "Tempe", "are", "rated", "as", "'", "Wonderful", "experience", "?" ]
[ { "id": 1, "type": "column", "value": "business_id" }, { "id": 0, "type": "table", "value": "business" }, { "id": 3, "type": "value", "value": "Phoenix" }, { "id": 4, "type": "column", "value": "stars" }, { "id": 2, "type": "column", "value...
[ { "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", "O", "O", "O", "O", "O" ]
6,156
behavior_monitoring
spider:train_spider.json:3092
Return all detention summaries.
SELECT detention_summary FROM Detention
[ "Return", "all", "detention", "summaries", "." ]
[ { "id": 1, "type": "column", "value": "detention_summary" }, { "id": 0, "type": "table", "value": "detention" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "B-COLUMN", "O" ]
6,157
trains
bird:train.json:713
What are the ids of the train running east?
SELECT id FROM trains WHERE direction = 'east'
[ "What", "are", "the", "ids", "of", "the", "train", "running", "east", "?" ]
[ { "id": 2, "type": "column", "value": "direction" }, { "id": 0, "type": "table", "value": "trains" }, { "id": 3, "type": "value", "value": "east" }, { "id": 1, "type": "column", "value": "id" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "O" ]
6,158
movies_4
bird:train.json:559
What is the role of Mark Hammel?
SELECT T2.job FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Mark Hammel'
[ "What", "is", "the", "role", "of", "Mark", "Hammel", "?" ]
[ { "id": 3, "type": "column", "value": "person_name" }, { "id": 4, "type": "value", "value": "Mark Hammel" }, { "id": 2, "type": "table", "value": "movie_crew" }, { "id": 5, "type": "column", "value": "person_id" }, { "id": 1, "type": "table", ...
[ { "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": [ 5, 6 ] }, { "entity_id": 5, "token_idxs": [] ...
[ "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O" ]
6,159
soccer_2
spider:train_spider.json:4950
How many players have more than 1000 hours of training?
SELECT count(*) FROM Player WHERE HS > 1000
[ "How", "many", "players", "have", "more", "than", "1000", "hours", "of", "training", "?" ]
[ { "id": 0, "type": "table", "value": "player" }, { "id": 2, "type": "value", "value": "1000" }, { "id": 1, "type": "column", "value": "hs" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "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", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O", "O", "O" ]
6,160
storm_record
spider:train_spider.json:2700
List name, dates active, and number of deaths for all storms with at least 1 death.
SELECT name , dates_active , number_deaths FROM storm WHERE number_deaths >= 1
[ "List", "name", ",", "dates", "active", ",", "and", "number", "of", "deaths", "for", "all", "storms", "with", "at", "least", "1", "death", "." ]
[ { "id": 3, "type": "column", "value": "number_deaths" }, { "id": 2, "type": "column", "value": "dates_active" }, { "id": 0, "type": "table", "value": "storm" }, { "id": 1, "type": "column", "value": "name" }, { "id": 4, "type": "value", "va...
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [ 3, 4 ] }, { "entity_id": 3, "token_idxs": [ 7, 8, 9 ] }, { "entity_id": 4, "token_idx...
[ "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O" ]
6,161
movielens
bird:train.json:2335
What are the most common film genres made by the worst directors?
SELECT T2.genre FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.d_quality = 0 GROUP BY T2.genre ORDER BY COUNT(T2.movieid) DESC LIMIT 1
[ "What", "are", "the", "most", "common", "film", "genres", "made", "by", "the", "worst", "directors", "?" ]
[ { "id": 2, "type": "table", "value": "movies2directors" }, { "id": 5, "type": "column", "value": "directorid" }, { "id": 1, "type": "table", "value": "directors" }, { "id": 3, "type": "column", "value": "d_quality" }, { "id": 6, "type": "column...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "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", "O", "O", "B-TABLE", "O" ]
6,162
cre_Doc_and_collections
bird:test.json:664
What collection details are there on the subset named 'Top collection'?
SELECT Collecrtion_Subset_Details FROM Collection_Subsets WHERE Collection_Subset_Name = "Top collection";
[ "What", "collection", "details", "are", "there", "on", "the", "subset", "named", "'", "Top", "collection", "'", "?" ]
[ { "id": 1, "type": "column", "value": "collecrtion_subset_details" }, { "id": 2, "type": "column", "value": "collection_subset_name" }, { "id": 0, "type": "table", "value": "collection_subsets" }, { "id": 3, "type": "column", "value": "Top collection" } ...
[ { "entity_id": 0, "token_idxs": [ 1, 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10, 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5...
[ "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O" ]
6,163
food_inspection
bird:train.json:8831
Describe the violation dates, risk categories, descriptions and names of the eateries under Jade Chocolates LLC.
SELECT T1.`date`, T1.risk_category, T1.description, T2.name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.owner_name = 'Jade Chocolates LLC'
[ "Describe", "the", "violation", "dates", ",", "risk", "categories", ",", "descriptions", "and", "names", "of", "the", "eateries", "under", "Jade", "Chocolates", "LLC", "." ]
[ { "id": 7, "type": "value", "value": "Jade Chocolates LLC" }, { "id": 1, "type": "column", "value": "risk_category" }, { "id": 2, "type": "column", "value": "description" }, { "id": 8, "type": "column", "value": "business_id" }, { "id": 4, "typ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [ 2 ...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
6,164
sports_competition
spider:train_spider.json:3340
What are the different regions of clubs in ascending alphabetical order?
SELECT DISTINCT Region FROM club ORDER BY Region ASC
[ "What", "are", "the", "different", "regions", "of", "clubs", "in", "ascending", "alphabetical", "order", "?" ]
[ { "id": 1, "type": "column", "value": "region" }, { "id": 0, "type": "table", "value": "club" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "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", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O" ]
6,165
bike_share_1
bird:train.json:9073
What is the average duration of a bike trip made on the day with the hottest temperature ever in 2014?
SELECT AVG(T1.duration) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '%2014%' AND T1.start_station_name = '2nd at Folsom' AND T2.max_temperature_f = ( SELECT max_temperature_f FROM weather ORDER BY max_temperature_f DESC LIMIT 1 )
[ "What", "is", "the", "average", "duration", "of", "a", "bike", "trip", "made", "on", "the", "day", "with", "the", "hottest", "temperature", "ever", "in", "2014", "?" ]
[ { "id": 6, "type": "column", "value": "start_station_name" }, { "id": 8, "type": "column", "value": "max_temperature_f" }, { "id": 7, "type": "value", "value": "2nd at Folsom" }, { "id": 2, "type": "column", "value": "duration" }, { "id": 3, "t...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 14 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
6,166
flight_1
spider:train_spider.json:397
Show the flight number and distance of the flight with maximum price.
SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1
[ "Show", "the", "flight", "number", "and", "distance", "of", "the", "flight", "with", "maximum", "price", "." ]
[ { "id": 2, "type": "column", "value": "distance" }, { "id": 0, "type": "table", "value": "flight" }, { "id": 3, "type": "column", "value": "price" }, { "id": 1, "type": "column", "value": "flno" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O" ]
6,167
chicago_crime
bird:train.json:8759
Among the crimes with no arrest made, how many of them happened in the ward represented by alderman Pat Dowell?
SELECT SUM(CASE WHEN T1.alderman_last_name = 'Dowell' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.arrest = 'FALSE' AND T1.alderman_first_name = 'Pat'
[ "Among", "the", "crimes", "with", "no", "arrest", "made", ",", "how", "many", "of", "them", "happened", "in", "the", "ward", "represented", "by", "alderman", "Pat", "Dowell", "?" ]
[ { "id": 5, "type": "column", "value": "alderman_first_name" }, { "id": 9, "type": "column", "value": "alderman_last_name" }, { "id": 2, "type": "column", "value": "ward_no" }, { "id": 3, "type": "column", "value": "arrest" }, { "id": 10, "type"...
[ { "entity_id": 0, "token_idxs": [ 15 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-VALUE", "B-VALUE", "O" ]
6,168
music_2
spider:train_spider.json:5269
What are the names of all the songs whose album is under the label of "Universal Music Group"?
SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = "Universal Music Group"
[ "What", "are", "the", "names", "of", "all", "the", "songs", "whose", "album", "is", "under", "the", "label", "of", "\"", "Universal", "Music", "Group", "\"", "?" ]
[ { "id": 3, "type": "column", "value": "Universal Music Group" }, { "id": 5, "type": "table", "value": "tracklists" }, { "id": 8, "type": "column", "value": "albumid" }, { "id": 4, "type": "table", "value": "albums" }, { "id": 6, "type": "column...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 13 ] }, { "entity_id": 3, "token_idxs": [ 16, 17, 18 ] }, { "entity_id": 4, "token_idxs": [ 9 ]...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O" ]
6,169
real_estate_rentals
bird:test.json:1463
Return the country in which the user with first name Robbie lives.
SELECT T1.country FROM Addresses AS T1 JOIN Users AS T2 ON T1.address_id = T2.user_address_id WHERE T2.first_name = 'Robbie';
[ "Return", "the", "country", "in", "which", "the", "user", "with", "first", "name", "Robbie", "lives", "." ]
[ { "id": 6, "type": "column", "value": "user_address_id" }, { "id": 3, "type": "column", "value": "first_name" }, { "id": 5, "type": "column", "value": "address_id" }, { "id": 1, "type": "table", "value": "addresses" }, { "id": 0, "type": "colum...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 8, 9 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O" ]
6,170
european_football_2
bird:dev.json:1020
Which player has the highest overall rating? Indicate the player's api id.
SELECT player_api_id FROM Player_Attributes ORDER BY overall_rating DESC LIMIT 1
[ "Which", "player", "has", "the", "highest", "overall", "rating", "?", "Indicate", "the", "player", "'s", "api", "i", "d." ]
[ { "id": 0, "type": "table", "value": "player_attributes" }, { "id": 2, "type": "column", "value": "overall_rating" }, { "id": 1, "type": "column", "value": "player_api_id" } ]
[ { "entity_id": 0, "token_idxs": [ 1, 2 ] }, { "entity_id": 1, "token_idxs": [ 10, 11, 12, 13, 14 ] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id":...
[ "O", "B-TABLE", "I-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN" ]
6,171
manufactory_1
spider:train_spider.json:5281
Return the number of companies created by Andy.
SELECT count(*) FROM manufacturers WHERE founder = 'Andy'
[ "Return", "the", "number", "of", "companies", "created", "by", "Andy", "." ]
[ { "id": 0, "type": "table", "value": "manufacturers" }, { "id": 1, "type": "column", "value": "founder" }, { "id": 2, "type": "value", "value": "Andy" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
6,172
mondial_geo
bird:train.json:8330
State the name of the lake in Albania province and in which city does it located at.
SELECT Lake, City FROM located WHERE Province = 'Albania' AND Lake IS NOT NULL
[ "State", "the", "name", "of", "the", "lake", "in", "Albania", "province", "and", "in", "which", "city", "does", "it", "located", "at", "." ]
[ { "id": 3, "type": "column", "value": "province" }, { "id": 0, "type": "table", "value": "located" }, { "id": 4, "type": "value", "value": "Albania" }, { "id": 1, "type": "column", "value": "lake" }, { "id": 2, "type": "column", "value": "c...
[ { "entity_id": 0, "token_idxs": [ 15 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 7 ] }, ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O" ]
6,173
works_cycles
bird:train.json:7432
What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?
SELECT AVG(T3.Rate) FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID INNER JOIN EmployeePayHistory AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T2.Name = 'Engineering' AND STRFTIME('%Y', EndDate) > '2007' AND STRFTIME('%Y', T1.StartDate) < '2007'
[ "What", "is", "the", "average", "pay", "rate", "of", "the", "employees", "who", "worked", "in", "the", "Engineering", "Departmentin", "2007", "?" ]
[ { "id": 2, "type": "table", "value": "employeedepartmenthistory" }, { "id": 0, "type": "table", "value": "employeepayhistory" }, { "id": 4, "type": "column", "value": "businessentityid" }, { "id": 8, "type": "column", "value": "departmentid" }, { "...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "B-VALUE", "O" ]
6,174
sports_competition
spider:train_spider.json:3342
What is the average number of gold medals for a club?
SELECT avg(Gold) FROM club_rank
[ "What", "is", "the", "average", "number", "of", "gold", "medals", "for", "a", "club", "?" ]
[ { "id": 0, "type": "table", "value": "club_rank" }, { "id": 1, "type": "column", "value": "gold" } ]
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "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", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O" ]
6,175
mondial_geo
bird:train.json:8431
How much more space does Asia have than Europe?
SELECT MAX(Area) - MIN(Area) FROM continent WHERE Name = 'Asia' OR Name = 'Europe'
[ "How", "much", "more", "space", "does", "Asia", "have", "than", "Europe", "?" ]
[ { "id": 0, "type": "table", "value": "continent" }, { "id": 3, "type": "value", "value": "Europe" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "value", "value": "Asia" }, { "id": 4, "type": "column", "value": "area"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-VALUE", "O" ]
6,176
music_1
spider:train_spider.json:3560
What is the average song duration for the songs that are in mp3 format and whose resolution below 800?
SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800
[ "What", "is", "the", "average", "song", "duration", "for", "the", "songs", "that", "are", "in", "mp3", "format", "and", "whose", "resolution", "below", "800", "?" ]
[ { "id": 6, "type": "column", "value": "resolution" }, { "id": 2, "type": "column", "value": "duration" }, { "id": 4, "type": "column", "value": "formats" }, { "id": 0, "type": "table", "value": "files" }, { "id": 1, "type": "table", "value"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-VALUE", "O" ]
6,177
college_completion
bird:train.json:3747
In the state with the highest state appropriations to higher education in fiscal year 2011 per resident, which institution has the lowest number of undergraduates in 2010?
SELECT T1.chronname FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state INNER JOIN institution_grads AS T3 ON T3.unitid = T1.unitid WHERE T1.student_count = ( SELECT MIN(T1.student_count) FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state ...
[ "In", "the", "state", "with", "the", "highest", "state", "appropriations", "to", "higher", "education", "in", "fiscal", "year", "2011", "per", "resident", ",", "which", "institution", "has", "the", "lowest", "number", "of", "undergraduates", "in", "2010", "?" ...
[ { "id": 4, "type": "table", "value": "state_sector_details" }, { "id": 3, "type": "table", "value": "institution_details" }, { "id": 2, "type": "table", "value": "institution_grads" }, { "id": 9, "type": "column", "value": "state_appr_value" }, { "...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 19, 20 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "to...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
6,178
car_retails
bird:train.json:1597
What is the phone number of all companies where the last name of the contact person starts with the letter M and are not from Germany?
SELECT phone FROM customers WHERE contactLastName LIKE 'M%' AND country != 'Germany'
[ "What", "is", "the", "phone", "number", "of", "all", "companies", "where", "the", "last", "name", "of", "the", "contact", "person", "starts", "with", "the", "letter", "M", "and", "are", "not", "from", "Germany", "?" ]
[ { "id": 2, "type": "column", "value": "contactlastname" }, { "id": 0, "type": "table", "value": "customers" }, { "id": 4, "type": "column", "value": "country" }, { "id": 5, "type": "value", "value": "Germany" }, { "id": 1, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 10, 11 ] }, { "entity_id": 3, "token_idxs": [ 20 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_i...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-VALUE", "O" ]
6,179
cre_Doc_Workflow
bird:test.json:2051
What is the process name for the document "Travel to Brazil"?
SELECT T3.process_name FROM Documents_processes AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id JOIN Business_processes AS T3 ON T1.process_id = T3.process_id WHERE T2.document_name = "Travel to Brazil"
[ "What", "is", "the", "process", "name", "for", "the", "document", "\"", "Travel", "to", "Brazil", "\"", "?" ]
[ { "id": 4, "type": "table", "value": "documents_processes" }, { "id": 1, "type": "table", "value": "business_processes" }, { "id": 3, "type": "column", "value": "Travel to Brazil" }, { "id": 2, "type": "column", "value": "document_name" }, { "id": ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9, 10, 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5...
[ "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O" ]
6,180
student_loan
bird:train.json:4490
Calculate the number of students who are not disabled.
SELECT COUNT(CASE WHEN T2.name IS NULL THEN T1.name END) AS "number" FROM person AS T1 LEFT JOIN disabled AS T2 ON T2.name = T1.name
[ "Calculate", "the", "number", "of", "students", "who", "are", "not", "disabled", "." ]
[ { "id": 1, "type": "table", "value": "disabled" }, { "id": 0, "type": "table", "value": "person" }, { "id": 2, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "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", "O", "O", "O", "O", "B-TABLE", "O" ]
6,181
pilot_1
bird:test.json:1105
Where is the plane F-14 Fighter located?
SELECT LOCATION FROM hangar WHERE plane_name = 'F-14 Fighter'
[ "Where", "is", "the", "plane", "F-14", "Fighter", "located", "?" ]
[ { "id": 3, "type": "value", "value": "F-14 Fighter" }, { "id": 2, "type": "column", "value": "plane_name" }, { "id": 1, "type": "column", "value": "location" }, { "id": 0, "type": "table", "value": "hangar" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [ 4, 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "O", "B-COLUMN", "B-VALUE", "I-VALUE", "B-COLUMN", "O" ]
6,182
superhero
bird:dev.json:795
How many superheroes have a neutral alignment?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral'
[ "How", "many", "superheroes", "have", "a", "neutral", "alignment", "?" ]
[ { "id": 5, "type": "column", "value": "alignment_id" }, { "id": 0, "type": "table", "value": "superhero" }, { "id": 1, "type": "table", "value": "alignment" }, { "id": 2, "type": "column", "value": "alignment" }, { "id": 3, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
6,183
movie_3
bird:train.json:9372
Name the most recent movie rented by Dorothy Taylor.
SELECT T4.title FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'DOROTHY' AND T1.last_name = 'TAYLOR' ORDER BY T2.rental_date DESC LIMIT 1
[ "Name", "the", "most", "recent", "movie", "rented", "by", "Dorothy", "Taylor", "." ]
[ { "id": 11, "type": "column", "value": "inventory_id" }, { "id": 2, "type": "column", "value": "rental_date" }, { "id": 12, "type": "column", "value": "customer_id" }, { "id": 5, "type": "column", "value": "first_name" }, { "id": 3, "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": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id...
[ "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "B-VALUE", "O" ]
6,184
voter_2
spider:train_spider.json:5510
What is the most common major among female (sex is F) students?
SELECT Major FROM STUDENT WHERE Sex = "F" GROUP BY major ORDER BY count(*) DESC LIMIT 1
[ "What", "is", "the", "most", "common", "major", "among", "female", "(", "sex", "is", "F", ")", "students", "?" ]
[ { "id": 0, "type": "table", "value": "student" }, { "id": 1, "type": "column", "value": "major" }, { "id": 2, "type": "column", "value": "sex" }, { "id": 3, "type": "column", "value": "F" } ]
[ { "entity_id": 0, "token_idxs": [ 13 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entit...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O" ]
6,185
books
bird:train.json:6007
What percentage of the total prices of all orders are shipped internationally?
SELECT CAST(SUM(CASE WHEN T3.method_name = 'International' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cust_order AS T1 INNER JOIN order_line AS T2 ON T1.order_id = T2.order_id INNER JOIN shipping_method AS T3 ON T3.method_id = T1.shipping_method_id
[ "What", "percentage", "of", "the", "total", "prices", "of", "all", "orders", "are", "shipped", "internationally", "?" ]
[ { "id": 4, "type": "column", "value": "shipping_method_id" }, { "id": 0, "type": "table", "value": "shipping_method" }, { "id": 10, "type": "value", "value": "International" }, { "id": 9, "type": "column", "value": "method_name" }, { "id": 1, "...
[ { "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": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "B-VALUE", "O" ]
6,186
cre_Doc_Workflow
bird:test.json:2032
Show the next process id, process name, process description for process with id 9.
SELECT next_process_id , process_name , process_description FROM Business_processes WHERE process_id = 9
[ "Show", "the", "next", "process", "i", "d", ",", "process", "name", ",", "process", "description", "for", "process", "with", "i", "d", "9", "." ]
[ { "id": 3, "type": "column", "value": "process_description" }, { "id": 0, "type": "table", "value": "business_processes" }, { "id": 1, "type": "column", "value": "next_process_id" }, { "id": 2, "type": "column", "value": "process_name" }, { "id": 4...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 7, 8 ] }, { "entity_id": 3, "token_idxs": [ 10, 11 ] }, { "entity_id": 4, "token_idxs": [ 3, ...
[ "O", "O", "B-COLUMN", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
6,187
simpson_episodes
bird:train.json:4302
List down person's name who has nickname.
SELECT name FROM Person WHERE nickname IS NOT NULL;
[ "List", "down", "person", "'s", "name", "who", "has", "nickname", "." ]
[ { "id": 2, "type": "column", "value": "nickname" }, { "id": 0, "type": "table", "value": "person" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O" ]
6,188
shakespeare
bird:train.json:3006
What are the titles and genres of the one-act works of Shakespeare?
SELECT DISTINCT T1.Title, T1.GenreType FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1
[ "What", "are", "the", "titles", "and", "genres", "of", "the", "one", "-", "act", "works", "of", "Shakespeare", "?" ]
[ { "id": 1, "type": "column", "value": "genretype" }, { "id": 3, "type": "table", "value": "chapters" }, { "id": 7, "type": "column", "value": "work_id" }, { "id": 0, "type": "column", "value": "title" }, { "id": 2, "type": "table", "value":...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entit...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O" ]
6,189
browser_web
spider:train_spider.json:1831
What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?
SELECT name , operating_system FROM web_client_accelerator WHERE CONNECTION != 'Broadband'
[ "What", "are", "the", "name", "and", "os", "of", "web", "client", "accelerators", "that", "do", "not", "work", "with", "only", "a", "'", "Broadband", "'", "type", "connection", "?" ]
[ { "id": 0, "type": "table", "value": "web_client_accelerator" }, { "id": 2, "type": "column", "value": "operating_system" }, { "id": 3, "type": "column", "value": "connection" }, { "id": 4, "type": "value", "value": "Broadband" }, { "id": 1, "t...
[ { "entity_id": 0, "token_idxs": [ 7, 8, 9 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 21 ] }, { "entity_id": 4, "token_idxs": [ 18 ] ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O" ]
6,190
mondial_geo
bird:train.json:8282
Which city in Japan has the most people in the country?
SELECT T2.Name FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Japan' ORDER BY T2.Population DESC LIMIT 1
[ "Which", "city", "in", "Japan", "has", "the", "most", "people", "in", "the", "country", "?" ]
[ { "id": 4, "type": "column", "value": "population" }, { "id": 1, "type": "table", "value": "country" }, { "id": 6, "type": "column", "value": "country" }, { "id": 3, "type": "value", "value": "Japan" }, { "id": 0, "type": "column", "value":...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [ 3 ] }, { "entity_id": 4, "token_idxs": [ 7, 8 ] }, { "entity_id":...
[ "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O" ]
6,191
local_govt_and_lot
spider:train_spider.json:4856
What are the resident details containing the substring 'Miss'?
SELECT other_details FROM Residents WHERE other_details LIKE '%Miss%'
[ "What", "are", "the", "resident", "details", "containing", "the", "substring", "'", "Miss", "'", "?" ]
[ { "id": 1, "type": "column", "value": "other_details" }, { "id": 0, "type": "table", "value": "residents" }, { "id": 2, "type": "value", "value": "%Miss%" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O" ]
6,192
codebase_comments
bird:train.json:625
How many percent more of the watchers for the repository of solution No.83855 than No.1502?
SELECT CAST(SUM(CASE WHEN T2.Id = 83855 THEN T1.Watchers ELSE 0 END) - SUM(CASE WHEN T2.Id = 1502 THEN T1.Watchers ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 1502 THEN T1.Watchers ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId
[ "How", "many", "percent", "more", "of", "the", "watchers", "for", "the", "repository", "of", "solution", "No.83855", "than", "No.1502", "?" ]
[ { "id": 1, "type": "table", "value": "solution" }, { "id": 6, "type": "column", "value": "watchers" }, { "id": 3, "type": "column", "value": "repoid" }, { "id": 8, "type": "value", "value": "83855" }, { "id": 0, "type": "table", "value": "r...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-TABLE", "B-VALUE", "O", "B-VALUE", "O" ]
6,193
image_and_language
bird:train.json:7523
Among the objects that have multiple relations, how many images whose captions for the prediction class ids are "on"?
SELECT COUNT(T2.PRED_CLASS_ID) FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.OBJ1_SAMPLE_ID != T1.OBJ2_SAMPLE_ID AND T2.PRED_CLASS = 'on'
[ "Among", "the", "objects", "that", "have", "multiple", "relations", ",", "how", "many", "images", "whose", "captions", "for", "the", "prediction", "class", "ids", "are", "\"", "on", "\"", "?" ]
[ { "id": 3, "type": "column", "value": "obj1_sample_id" }, { "id": 4, "type": "column", "value": "obj2_sample_id" }, { "id": 2, "type": "column", "value": "pred_class_id" }, { "id": 1, "type": "table", "value": "pred_classes" }, { "id": 5, "type...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 17 ] }, { "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-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O", "O", "B-VALUE", "O", "O" ]
6,194
airline
bird:train.json:5830
Please list the flight numbers of all the flights operated by American Airlines Inc. that were scheduled to depart from John F. Kennedy International.
SELECT T2.OP_CARRIER_FL_NUM FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T3.Description = 'American Airlines Inc.: AA' AND T1.Description = 'New York, NY: John F. Kennedy International' AND T2.FL_DATE = '2018/8/1'
[ "Please", "list", "the", "flight", "numbers", "of", "all", "the", "flights", "operated", "by", "American", "Airlines", "Inc.", "that", "were", "scheduled", "to", "depart", "from", "John", "F.", "Kennedy", "International", "." ]
[ { "id": 8, "type": "value", "value": "New York, NY: John F. Kennedy International" }, { "id": 7, "type": "value", "value": "American Airlines Inc.: AA" }, { "id": 4, "type": "column", "value": "op_carrier_airline_id" }, { "id": 0, "type": "column", "value"...
[ { "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", "B-VALUE", "B-TABLE", "B-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O" ]
6,195
restaurant
bird:train.json:1741
List restaurant ids located in Danville city.
SELECT id_restaurant FROM location WHERE city = 'Danville'
[ "List", "restaurant", "ids", "located", "in", "Danville", "city", "." ]
[ { "id": 1, "type": "column", "value": "id_restaurant" }, { "id": 0, "type": "table", "value": "location" }, { "id": 3, "type": "value", "value": "Danville" }, { "id": 2, "type": "column", "value": "city" } ]
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "B-VALUE", "B-COLUMN", "O" ]
6,196
college_2
spider:train_spider.json:1400
Find the minimum salary for the departments whose average salary is above the average payment of all instructors.
SELECT min(salary) , dept_name FROM instructor GROUP BY dept_name HAVING avg(salary) > (SELECT avg(salary) FROM instructor)
[ "Find", "the", "minimum", "salary", "for", "the", "departments", "whose", "average", "salary", "is", "above", "the", "average", "payment", "of", "all", "instructors", "." ]
[ { "id": 0, "type": "table", "value": "instructor" }, { "id": 1, "type": "column", "value": "dept_name" }, { "id": 2, "type": "column", "value": "salary" } ]
[ { "entity_id": 0, "token_idxs": [ 17 ] }, { "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, ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
6,197
car_racing
bird:test.json:1625
List the make that are associated with most drivers.
SELECT Make FROM driver GROUP BY Make ORDER BY COUNT(*) DESC LIMIT 1
[ "List", "the", "make", "that", "are", "associated", "with", "most", "drivers", "." ]
[ { "id": 0, "type": "table", "value": "driver" }, { "id": 1, "type": "column", "value": "make" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "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", "O", "O", "B-TABLE", "O" ]
6,198
book_press
bird:test.json:2012
Who wrote the largest number of books? Give me the author name and gender.
SELECT t1.name , t1.gender FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id GROUP BY t2.author_id ORDER BY count(*) DESC LIMIT 1
[ "Who", "wrote", "the", "largest", "number", "of", "books", "?", "Give", "me", "the", "author", "name", "and", "gender", "." ]
[ { "id": 0, "type": "column", "value": "author_id" }, { "id": 2, "type": "column", "value": "gender" }, { "id": 3, "type": "table", "value": "author" }, { "id": 1, "type": "column", "value": "name" }, { "id": 4, "type": "table", "value": "bo...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 6 ] }, { "enti...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "O" ]
6,199
professional_basketball
bird:train.json:2829
Please list the birth date of the player who has won the most MVPs.
SELECT T1.birthDate FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Most Valuable Player' GROUP BY T1.playerID, T1.birthDate ORDER BY COUNT(award) DESC LIMIT 1
[ "Please", "list", "the", "birth", "date", "of", "the", "player", "who", "has", "won", "the", "most", "MVPs", "." ]
[ { "id": 5, "type": "value", "value": "Most Valuable Player" }, { "id": 3, "type": "table", "value": "awards_players" }, { "id": 1, "type": "column", "value": "birthdate" }, { "id": 0, "type": "column", "value": "playerid" }, { "id": 2, "type": ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "I-VALUE", "B-TABLE", "O", "O", "O", "O", "O", "O", "O" ]
6,200
station_weather
spider:train_spider.json:3161
Find the number and time of the train that goes from Chennai to Guruvayur.
SELECT train_number , TIME FROM train WHERE origin = 'Chennai' AND destination = 'Guruvayur'
[ "Find", "the", "number", "and", "time", "of", "the", "train", "that", "goes", "from", "Chennai", "to", "Guruvayur", "." ]
[ { "id": 1, "type": "column", "value": "train_number" }, { "id": 5, "type": "column", "value": "destination" }, { "id": 6, "type": "value", "value": "Guruvayur" }, { "id": 4, "type": "value", "value": "Chennai" }, { "id": 3, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O" ]
6,202
student_club
bird:dev.json:1401
Indicate the cost of posters for 'September Speaker' event.
SELECT T3.cost FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'September Speaker' AND T3.expense_description = 'Posters'
[ "Indicate", "the", "cost", "of", "posters", "for", "'", "September", "Speaker", "'", "event", "." ]
[ { "id": 8, "type": "column", "value": "expense_description" }, { "id": 7, "type": "value", "value": "September Speaker" }, { "id": 5, "type": "column", "value": "link_to_budget" }, { "id": 11, "type": "column", "value": "link_to_event" }, { "id": 6...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "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", "B-COLUMN", "O", "B-VALUE", "O", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "O" ]
6,203
csu_1
spider:train_spider.json:2375
What is the number of faculty at Long Beach State University in 2002?
SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = "Long Beach State University"
[ "What", "is", "the", "number", "of", "faculty", "at", "Long", "Beach", "State", "University", "in", "2002", "?" ]
[ { "id": 7, "type": "column", "value": "Long Beach State University" }, { "id": 2, "type": "table", "value": "campuses" }, { "id": 0, "type": "column", "value": "faculty" }, { "id": 1, "type": "table", "value": "faculty" }, { "id": 3, "type": "c...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "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", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
6,204
vehicle_driver
bird:test.json:159
What is the id of the vehicle driven for the least times for the vehicles ever used?
SELECT vehicle_id FROM vehicle_driver GROUP BY vehicle_id ORDER BY count(*) ASC LIMIT 1
[ "What", "is", "the", "i", "d", "of", "the", "vehicle", "driven", "for", "the", "least", "times", "for", "the", "vehicles", "ever", "used", "?" ]
[ { "id": 0, "type": "table", "value": "vehicle_driver" }, { "id": 1, "type": "column", "value": "vehicle_id" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "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-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
6,205
storm_record
spider:train_spider.json:2703
What is the average and maximum damage in millions for storms that had a max speed over 1000?
SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000
[ "What", "is", "the", "average", "and", "maximum", "damage", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "over", "1000", "?" ]
[ { "id": 3, "type": "column", "value": "damage_millions_usd" }, { "id": 1, "type": "column", "value": "max_speed" }, { "id": 0, "type": "table", "value": "storm" }, { "id": 2, "type": "value", "value": "1000" } ]
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 14, 15 ] }, { "entity_id": 2, "token_idxs": [ 17 ] }, { "entity_id": 3, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 4, "token_...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
6,206
county_public_safety
spider:train_spider.json:2570
Show the case burden of counties in descending order of population.
SELECT Case_burden FROM county_public_safety ORDER BY Population DESC
[ "Show", "the", "case", "burden", "of", "counties", "in", "descending", "order", "of", "population", "." ]
[ { "id": 0, "type": "table", "value": "county_public_safety" }, { "id": 1, "type": "column", "value": "case_burden" }, { "id": 2, "type": "column", "value": "population" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "tok...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
6,207
music_platform_2
bird:train.json:7939
Write all the review titles and the contents belonging to the podcast 'More Stupider: A 90-Day Fiance Podcast' with a review rating of 1.
SELECT title, content FROM reviews WHERE podcast_id = ( SELECT podcast_id FROM podcasts WHERE title = 'More Stupider: A 90-Day Fiance Podcast' ) AND rating = 1
[ "Write", "all", "the", "review", "titles", "and", "the", "contents", "belonging", "to", "the", "podcast", "'", "More", "Stupider", ":", "A", "90", "-", "Day", "Fiance", "Podcast", "'", "with", "a", "review", "rating", "of", "1", "." ]
[ { "id": 7, "type": "value", "value": "More Stupider: A 90-Day Fiance Podcast" }, { "id": 3, "type": "column", "value": "podcast_id" }, { "id": 6, "type": "table", "value": "podcasts" }, { "id": 0, "type": "table", "value": "reviews" }, { "id": 2, ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 26 ] }, { "entity...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O" ]
6,208
university
bird:train.json:8027
How many students attended universities were there in 2011?
SELECT SUM(num_students) FROM university_year WHERE year = 2011
[ "How", "many", "students", "attended", "universities", "were", "there", "in", "2011", "?" ]
[ { "id": 0, "type": "table", "value": "university_year" }, { "id": 3, "type": "column", "value": "num_students" }, { "id": 1, "type": "column", "value": "year" }, { "id": 2, "type": "value", "value": "2011" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O" ]
6,210
behavior_monitoring
spider:train_spider.json:3099
Find the first names of teachers whose email address contains the word "man".
SELECT first_name FROM Teachers WHERE email_address LIKE '%man%'
[ "Find", "the", "first", "names", "of", "teachers", "whose", "email", "address", "contains", "the", "word", "\"", "man", "\"", "." ]
[ { "id": 2, "type": "column", "value": "email_address" }, { "id": 1, "type": "column", "value": "first_name" }, { "id": 0, "type": "table", "value": "teachers" }, { "id": 3, "type": "value", "value": "%man%" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 7, 8 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [] ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O" ]
6,212
cre_Doc_Workflow
bird:test.json:2039
What is the description for process status code ct?
SELECT process_status_description FROM Process_status WHERE process_status_code = "ct"
[ "What", "is", "the", "description", "for", "process", "status", "code", "ct", "?" ]
[ { "id": 1, "type": "column", "value": "process_status_description" }, { "id": 2, "type": "column", "value": "process_status_code" }, { "id": 0, "type": "table", "value": "process_status" }, { "id": 3, "type": "column", "value": "ct" } ]
[ { "entity_id": 0, "token_idxs": [ 5, 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "B-COLUMN", "O" ]
6,213
cs_semester
bird:train.json:906
What is the average GPA of the students with the highest research capability and high salary? List the full names of the students.
SELECT AVG(T2.gpa), T2.f_name, T2.l_name FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'high' AND T1.capability = 5 GROUP BY T2.student_id
[ "What", "is", "the", "average", "GPA", "of", "the", "students", "with", "the", "highest", "research", "capability", "and", "high", "salary", "?", "List", "the", "full", "names", "of", "the", "students", "." ]
[ { "id": 0, "type": "column", "value": "student_id" }, { "id": 8, "type": "column", "value": "capability" }, { "id": 4, "type": "table", "value": "student" }, { "id": 1, "type": "column", "value": "f_name" }, { "id": 2, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 20 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 23 ] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]