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
2,999
college_2
spider:train_spider.json:1403
How many courses are provided in each semester and year?
SELECT count(*) , semester , YEAR FROM SECTION GROUP BY semester , YEAR
[ "How", "many", "courses", "are", "provided", "in", "each", "semester", "and", "year", "?" ]
[ { "id": 1, "type": "column", "value": "semester" }, { "id": 0, "type": "table", "value": "section" }, { "id": 2, "type": "column", "value": "year" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]
3,000
synthea
bird:train.json:1399
How many patients have the most prevalent conditions?
SELECT COUNT(DISTINCT T2.patient) FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON lower(T1.ITEM) = lower(T2.DESCRIPTION) ORDER BY T1."PREVALENCE RATE" DESC LIMIT 1
[ "How", "many", "patients", "have", "the", "most", "prevalent", "conditions", "?" ]
[ { "id": 0, "type": "table", "value": "all_prevalences" }, { "id": 2, "type": "column", "value": "PREVALENCE RATE" }, { "id": 5, "type": "column", "value": "description" }, { "id": 1, "type": "table", "value": "conditions" }, { "id": 3, "type": "column", "value": "patient" }, { "id": 4, "type": "column", "value": "item" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "B-TABLE", "O" ]
3,001
movie_platform
bird:train.json:20
What are the movie popularity of the movies released in 2021 that were directed by Steven Spielberg? List the names of the movies and their corresponding popularity.
SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg'
[ "What", "are", "the", "movie", "popularity", "of", "the", "movies", "released", "in", "2021", "that", "were", "directed", "by", "Steven", "Spielberg", "?", "List", "the", "names", "of", "the", "movies", "and", "their", "corresponding", "popularity", "." ]
[ { "id": 3, "type": "column", "value": "movie_release_year" }, { "id": 2, "type": "column", "value": "movie_popularity" }, { "id": 6, "type": "value", "value": "Steven Spielberg" }, { "id": 5, "type": "column", "value": "director_name" }, { "id": 1, "type": "column", "value": "movie_title" }, { "id": 0, "type": "table", "value": "movies" }, { "id": 4, "type": "value", "value": "2021" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, "token_idxs": [ 13 ] }, { "entity_id": 6, "token_idxs": [ 15, 16 ] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,002
entrepreneur
spider:train_spider.json:2301
Show the company of the tallest entrepreneur.
SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1
[ "Show", "the", "company", "of", "the", "tallest", "entrepreneur", "." ]
[ { "id": 1, "type": "table", "value": "entrepreneur" }, { "id": 4, "type": "column", "value": "people_id" }, { "id": 0, "type": "column", "value": "company" }, { "id": 2, "type": "table", "value": "people" }, { "id": 3, "type": "column", "value": "height" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O" ]
3,003
program_share
spider:train_spider.json:3755
Who are the owners of the programs that broadcast both in the morning and at night?
SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Night"
[ "Who", "are", "the", "owners", "of", "the", "programs", "that", "broadcast", "both", "in", "the", "morning", "and", "at", "night", "?" ]
[ { "id": 3, "type": "column", "value": "time_of_day" }, { "id": 6, "type": "column", "value": "program_id" }, { "id": 2, "type": "table", "value": "broadcast" }, { "id": 1, "type": "table", "value": "program" }, { "id": 4, "type": "column", "value": "Morning" }, { "id": 0, "type": "column", "value": "owner" }, { "id": 5, "type": "column", "value": "Night" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entity_id": 5, "token_idxs": [ 15 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O" ]
3,004
music_1
spider:train_spider.json:3541
What is the name of the artist who produced the shortest song?
SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1
[ "What", "is", "the", "name", "of", "the", "artist", "who", "produced", "the", "shortest", "song", "?" ]
[ { "id": 0, "type": "column", "value": "artist_name" }, { "id": 3, "type": "column", "value": "duration" }, { "id": 2, "type": "table", "value": "files" }, { "id": 1, "type": "table", "value": "song" }, { "id": 4, "type": "column", "value": "f_id" } ]
[ { "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": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O" ]
3,005
election
spider:train_spider.json:2771
Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties?
SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2
[ "Find", "the", "parties", "associated", "with", "the", "delegates", "from", "district", "1", "or", "2", ".", "Who", "served", "as", "comptrollers", "of", "the", "parties", "?" ]
[ { "id": 0, "type": "column", "value": "comptroller" }, { "id": 1, "type": "table", "value": "election" }, { "id": 4, "type": "column", "value": "party_id" }, { "id": 5, "type": "column", "value": "district" }, { "id": 2, "type": "table", "value": "party" }, { "id": 3, "type": "column", "value": "party" }, { "id": 6, "type": "value", "value": "1" }, { "id": 7, "type": "value", "value": "2" } ]
[ { "entity_id": 0, "token_idxs": [ 16 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 8 ] }, { "entity_id": 6, "token_idxs": [ 9 ] }, { "entity_id": 7, "token_idxs": [ 11 ] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O" ]
3,007
music_1
spider:train_spider.json:3613
What are the names of the songs whose rating is below the rating of all songs in English?
SELECT song_name FROM song WHERE rating < (SELECT min(rating) FROM song WHERE languages = 'english')
[ "What", "are", "the", "names", "of", "the", "songs", "whose", "rating", "is", "below", "the", "rating", "of", "all", "songs", "in", "English", "?" ]
[ { "id": 1, "type": "column", "value": "song_name" }, { "id": 3, "type": "column", "value": "languages" }, { "id": 4, "type": "value", "value": "english" }, { "id": 2, "type": "column", "value": "rating" }, { "id": 0, "type": "table", "value": "song" } ]
[ { "entity_id": 0, "token_idxs": [ 15 ] }, { "entity_id": 1, "token_idxs": [ 16 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 17 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O" ]
3,008
student_club
bird:dev.json:1381
List the name of students that have attended more than 7 events.
SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member GROUP BY T2.link_to_member HAVING COUNT(T2.link_to_event) > 7
[ "List", "the", "name", "of", "students", "that", "have", "attended", "more", "than", "7", "events", "." ]
[ { "id": 0, "type": "column", "value": "link_to_member" }, { "id": 7, "type": "column", "value": "link_to_event" }, { "id": 1, "type": "column", "value": "first_name" }, { "id": 4, "type": "table", "value": "attendance" }, { "id": 2, "type": "column", "value": "last_name" }, { "id": 6, "type": "column", "value": "member_id" }, { "id": 3, "type": "table", "value": "member" }, { "id": 5, "type": "value", "value": "7" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 0, 1, 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "token_idxs": [ 10 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O" ]
3,009
soccer_2016
bird:train.json:1851
How many matches were held at the venue named "Newlands"?
SELECT SUM(CASE WHEN T2.Venue_Name = 'Newlands' THEN 1 ELSE 0 END) FROM Match AS T1 INNER JOIN Venue AS T2 ON T2.Venue_Id = T1.Venue_Id
[ "How", "many", "matches", "were", "held", "at", "the", "venue", "named", "\"", "Newlands", "\"", "?" ]
[ { "id": 5, "type": "column", "value": "venue_name" }, { "id": 2, "type": "column", "value": "venue_id" }, { "id": 6, "type": "value", "value": "Newlands" }, { "id": 0, "type": "table", "value": "match" }, { "id": 1, "type": "table", "value": "venue" }, { "id": 3, "type": "value", "value": "0" }, { "id": 4, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "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": [ 8 ] }, { "entity_id": 6, "token_idxs": [ 10 ] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "O" ]
3,010
citeseer
bird:train.json:4139
Among all the citation, what is the percentage of paper ID under the Agents classification?
SELECT CAST(COUNT(CASE WHEN class_label = 'Agents' THEN paper_id ELSE NULL END) AS REAL) * 100 / COUNT(paper_id) FROM paper
[ "Among", "all", "the", "citation", ",", "what", "is", "the", "percentage", "of", "paper", "ID", "under", "the", "Agents", "classification", "?" ]
[ { "id": 3, "type": "column", "value": "class_label" }, { "id": 2, "type": "column", "value": "paper_id" }, { "id": 4, "type": "value", "value": "Agents" }, { "id": 0, "type": "table", "value": "paper" }, { "id": 1, "type": "value", "value": "100" } ]
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 14 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "O", "O" ]
3,011
shooting
bird:train.json:2473
What is the percentage of subject who are female used the Vehicle as weapon?
SELECT CAST(SUM(T1.subject_weapon = 'Vehicle') AS REAL) * 100 / COUNT(T1.case_number) FROM incidents T1 INNER JOIN subjects T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'F'
[ "What", "is", "the", "percentage", "of", "subject", "who", "are", "female", "used", "the", "Vehicle", "as", "weapon", "?" ]
[ { "id": 6, "type": "column", "value": "subject_weapon" }, { "id": 4, "type": "column", "value": "case_number" }, { "id": 0, "type": "table", "value": "incidents" }, { "id": 1, "type": "table", "value": "subjects" }, { "id": 7, "type": "value", "value": "Vehicle" }, { "id": 2, "type": "column", "value": "gender" }, { "id": 5, "type": "value", "value": "100" }, { "id": 3, "type": "value", "value": "F" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [ 6 ] }, { "entity_id": 7, "token_idxs": [ 11 ] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-VALUE", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O", "O" ]
3,012
gas_company
spider:train_spider.json:2036
What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?
SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion
[ "What", "is", "the", "rank", ",", "company", ",", "and", "market", "value", "of", "every", "comapny", "in", "the", "banking", "industry", "ordered", "by", "sales", "and", "profits", "?" ]
[ { "id": 7, "type": "column", "value": "profits_billion" }, { "id": 4, "type": "column", "value": "main_industry" }, { "id": 6, "type": "column", "value": "sales_billion" }, { "id": 3, "type": "column", "value": "market_value" }, { "id": 0, "type": "table", "value": "company" }, { "id": 2, "type": "column", "value": "company" }, { "id": 5, "type": "value", "value": "Banking" }, { "id": 1, "type": "column", "value": "rank" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 8, 9 ] }, { "entity_id": 4, "token_idxs": [ 16 ] }, { "entity_id": 5, "token_idxs": [ 15 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [ 21 ] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O" ]
3,013
mental_health_survey
bird:train.json:4592
How many users answered "Yes" to the question "Have you had a mental health disorder in the past?" in 3 consecutive years starting from 2016?
SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID IN (2016, 2017, 2018) AND T1.questiontext LIKE 'Have you had a mental health disorder in the past?' AND T2.AnswerText = 'Yes'
[ "How", "many", "users", "answered", "\"", "Yes", "\"", "to", "the", "question", "\"", "Have", "you", "had", "a", "mental", "health", "disorder", "in", "the", "past", "?", "\"", "in", "3", "consecutive", "years", "starting", "from", "2016", "?" ]
[ { "id": 9, "type": "value", "value": "Have you had a mental health disorder in the past?" }, { "id": 8, "type": "column", "value": "questiontext" }, { "id": 3, "type": "column", "value": "questionid" }, { "id": 10, "type": "column", "value": "answertext" }, { "id": 0, "type": "table", "value": "question" }, { "id": 4, "type": "column", "value": "surveyid" }, { "id": 1, "type": "table", "value": "answer" }, { "id": 2, "type": "column", "value": "userid" }, { "id": 5, "type": "value", "value": "2016" }, { "id": 6, "type": "value", "value": "2017" }, { "id": 7, "type": "value", "value": "2018" }, { "id": 11, "type": "value", "value": "Yes" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [ 29 ] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [ 5 ] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
3,014
financial
bird:dev.json:97
List out the id number of client who choose statement of issuance after transaction are Disponent?
SELECT T2.client_id FROM account AS T1 INNER JOIN disp AS T2 ON T1.account_id = T2.account_id WHERE T1.frequency = 'POPLATEK PO OBRATU' AND T2.type = 'DISPONENT'
[ "List", "out", "the", "i", "d", "number", "of", "client", "who", "choose", "statement", "of", "issuance", "after", "transaction", "are", "Disponent", "?" ]
[ { "id": 5, "type": "value", "value": "POPLATEK PO OBRATU" }, { "id": 3, "type": "column", "value": "account_id" }, { "id": 0, "type": "column", "value": "client_id" }, { "id": 4, "type": "column", "value": "frequency" }, { "id": 7, "type": "value", "value": "DISPONENT" }, { "id": 1, "type": "table", "value": "account" }, { "id": 2, "type": "table", "value": "disp" }, { "id": 6, "type": "column", "value": "type" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [ 16 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,015
flight_4
spider:train_spider.json:6803
Find the name of the airport in the city of Goroka.
SELECT name FROM airports WHERE city = 'Goroka'
[ "Find", "the", "name", "of", "the", "airport", "in", "the", "city", "of", "Goroka", "." ]
[ { "id": 0, "type": "table", "value": "airports" }, { "id": 3, "type": "value", "value": "Goroka" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "column", "value": "city" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O" ]
3,016
soccer_2016
bird:train.json:1922
List the name of all New Zealand umpires.
SELECT T1.Umpire_Name FROM Umpire AS T1 INNER JOIN Country AS T2 ON T1.Umpire_Country = T2.Country_Id WHERE T2.Country_Name = 'New Zealand'
[ "List", "the", "name", "of", "all", "New", "Zealand", "umpires", "." ]
[ { "id": 5, "type": "column", "value": "umpire_country" }, { "id": 3, "type": "column", "value": "country_name" }, { "id": 0, "type": "column", "value": "umpire_name" }, { "id": 4, "type": "value", "value": "New Zealand" }, { "id": 6, "type": "column", "value": "country_id" }, { "id": 2, "type": "table", "value": "country" }, { "id": 1, "type": "table", "value": "umpire" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 5, 6 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "B-TABLE", "O" ]
3,017
cre_Doc_Workflow
bird:test.json:2022
Who is the author of the document with id 4?
SELECT author_name FROM Documents WHERE document_id = 4
[ "Who", "is", "the", "author", "of", "the", "document", "with", "i", "d", "4", "?" ]
[ { "id": 1, "type": "column", "value": "author_name" }, { "id": 2, "type": "column", "value": "document_id" }, { "id": 0, "type": "table", "value": "documents" }, { "id": 3, "type": "value", "value": "4" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O" ]
3,018
tracking_share_transactions
spider:train_spider.json:5873
Show the number of transactions with transaction type code "SALE" for different investors if it is larger than 0.
SELECT investor_id , COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code = "SALE" GROUP BY investor_id
[ "Show", "the", "number", "of", "transactions", "with", "transaction", "type", "code", "\"", "SALE", "\"", "for", "different", "investors", "if", "it", "is", "larger", "than", "0", "." ]
[ { "id": 2, "type": "column", "value": "transaction_type_code" }, { "id": 0, "type": "table", "value": "transactions" }, { "id": 1, "type": "column", "value": "investor_id" }, { "id": 3, "type": "column", "value": "SALE" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 14 ] }, { "entity_id": 2, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O" ]
3,019
college_2
spider:train_spider.json:1339
Count the number of departments which offer courses.
SELECT count(DISTINCT dept_name) FROM course
[ "Count", "the", "number", "of", "departments", "which", "offer", "courses", "." ]
[ { "id": 1, "type": "column", "value": "dept_name" }, { "id": 0, "type": "table", "value": "course" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "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": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
3,020
game_1
spider:train_spider.json:6039
Show all game ids and the number of hours played.
SELECT gameid , sum(hours_played) FROM Plays_games GROUP BY gameid
[ "Show", "all", "game", "ids", "and", "the", "number", "of", "hours", "played", "." ]
[ { "id": 2, "type": "column", "value": "hours_played" }, { "id": 0, "type": "table", "value": "plays_games" }, { "id": 1, "type": "column", "value": "gameid" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O" ]
3,021
scientist_1
spider:train_spider.json:6496
What are the naems of all the projects, and how many scientists were assigned to each of them?
SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name
[ "What", "are", "the", "naems", "of", "all", "the", "projects", ",", "and", "how", "many", "scientists", "were", "assigned", "to", "each", "of", "them", "?" ]
[ { "id": 2, "type": "table", "value": "assignedto" }, { "id": 1, "type": "table", "value": "projects" }, { "id": 4, "type": "column", "value": "project" }, { "id": 0, "type": "column", "value": "name" }, { "id": 3, "type": "column", "value": "code" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 14, 15 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O" ]
3,022
tracking_software_problems
spider:train_spider.json:5387
For which product was there a problem reported by Christop Berge, with closure authorised by Ashley Medhurst? Return the product ids.
SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop" AND T2.staff_last_name = "Berge" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Ashley" AND T2.staff_last_name = "Medhurst"
[ "For", "which", "product", "was", "there", "a", "problem", "reported", "by", "Christop", "Berge", ",", "with", "closure", "authorised", "by", "Ashley", "Medhurst", "?", "Return", "the", "product", "ids", "." ]
[ { "id": 9, "type": "column", "value": "closure_authorised_by_staff_id" }, { "id": 3, "type": "column", "value": "reported_by_staff_id" }, { "id": 5, "type": "column", "value": "staff_first_name" }, { "id": 7, "type": "column", "value": "staff_last_name" }, { "id": 0, "type": "column", "value": "product_id" }, { "id": 1, "type": "table", "value": "problems" }, { "id": 4, "type": "column", "value": "staff_id" }, { "id": 6, "type": "column", "value": "Christop" }, { "id": 11, "type": "column", "value": "Medhurst" }, { "id": 10, "type": "column", "value": "Ashley" }, { "id": 2, "type": "table", "value": "staff" }, { "id": 8, "type": "column", "value": "Berge" } ]
[ { "entity_id": 0, "token_idxs": [ 21, 22 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7, 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [ 9 ] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [ 10 ] }, { "entity_id": 9, "token_idxs": [ 13, 14, 15 ] }, { "entity_id": 10, "token_idxs": [ 16 ] }, { "entity_id": 11, "token_idxs": [ 17 ] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "B-COLUMN", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-COLUMN", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
3,023
movielens
bird:train.json:2342
Among the English comedy movies produced in the UK, how many movies with a running time of 3 was rated the highest by users between the age 45-50? Indicate the movie names.
SELECT DISTINCT T1.movieid FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid INNER JOIN u2base AS T3 ON T1.movieid = T3.movieid INNER JOIN users AS T4 ON T3.userid = T4.userid WHERE T1.country = 'UK' AND T2.genre = 'Comedy' AND T1.runningtime = 3 AND T3.rating = 5 AND T4.age BETWEEN 45 AND 50 AND T1.isEnglish = 'T'
[ "Among", "the", "English", "comedy", "movies", "produced", "in", "the", "UK", ",", "how", "many", "movies", "with", "a", "running", "time", "of", "3", "was", "rated", "the", "highest", "by", "users", "between", "the", "age", "45", "-", "50", "?", "Indicate", "the", "movie", "names", "." ]
[ { "id": 18, "type": "table", "value": "movies2directors" }, { "id": 8, "type": "column", "value": "runningtime" }, { "id": 15, "type": "column", "value": "isenglish" }, { "id": 0, "type": "column", "value": "movieid" }, { "id": 4, "type": "column", "value": "country" }, { "id": 2, "type": "table", "value": "u2base" }, { "id": 3, "type": "column", "value": "userid" }, { "id": 7, "type": "value", "value": "Comedy" }, { "id": 10, "type": "column", "value": "rating" }, { "id": 17, "type": "table", "value": "movies" }, { "id": 1, "type": "table", "value": "users" }, { "id": 6, "type": "column", "value": "genre" }, { "id": 12, "type": "column", "value": "age" }, { "id": 5, "type": "value", "value": "UK" }, { "id": 13, "type": "value", "value": "45" }, { "id": 14, "type": "value", "value": "50" }, { "id": 9, "type": "value", "value": "3" }, { "id": 11, "type": "value", "value": "5" }, { "id": 16, "type": "value", "value": "T" } ]
[ { "entity_id": 0, "token_idxs": [ 34 ] }, { "entity_id": 1, "token_idxs": [ 24 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 8 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [ 3 ] }, { "entity_id": 8, "token_idxs": [ 16 ] }, { "entity_id": 9, "token_idxs": [ 18 ] }, { "entity_id": 10, "token_idxs": [ 15 ] }, { "entity_id": 11, "token_idxs": [ 28 ] }, { "entity_id": 12, "token_idxs": [ 27 ] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [ 30 ] }, { "entity_id": 15, "token_idxs": [ 2 ] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [ 12 ] }, { "entity_id": 18, "token_idxs": [ 13 ] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-TABLE", "B-TABLE", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "O" ]
3,024
video_game
bird:test.json:1957
Please list the title of games with platforms that have market district in Asia or USA.
SELECT T1.Title FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID = T2.Platform_ID WHERE T2.Market_district = "Asia" OR T2.Market_district = "USA"
[ "Please", "list", "the", "title", "of", "games", "with", "platforms", "that", "have", "market", "district", "in", "Asia", "or", "USA", "." ]
[ { "id": 4, "type": "column", "value": "market_district" }, { "id": 3, "type": "column", "value": "platform_id" }, { "id": 2, "type": "table", "value": "platform" }, { "id": 0, "type": "column", "value": "title" }, { "id": 1, "type": "table", "value": "game" }, { "id": 5, "type": "column", "value": "Asia" }, { "id": 6, "type": "column", "value": "USA" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10, 11 ] }, { "entity_id": 5, "token_idxs": [ 13 ] }, { "entity_id": 6, "token_idxs": [ 15 ] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]
3,025
store_1
spider:train_spider.json:634
What are the names of the tracks that are Rock or Jazz songs?
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz"
[ "What", "are", "the", "names", "of", "the", "tracks", "that", "are", "Rock", "or", "Jazz", "songs", "?" ]
[ { "id": 4, "type": "column", "value": "genre_id" }, { "id": 1, "type": "table", "value": "genres" }, { "id": 2, "type": "table", "value": "tracks" }, { "id": 0, "type": "column", "value": "name" }, { "id": 5, "type": "column", "value": "Rock" }, { "id": 6, "type": "column", "value": "Jazz" }, { "id": 3, "type": "column", "value": "id" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "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": [ 9 ] }, { "entity_id": 6, "token_idxs": [ 11 ] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O" ]
3,026
mondial_geo
bird:train.json:8247
Please list the capital cities of the countries with an inflation rate under 2.
SELECT T1.Capital FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.Inflation < 2
[ "Please", "list", "the", "capital", "cities", "of", "the", "countries", "with", "an", "inflation", "rate", "under", "2", "." ]
[ { "id": 3, "type": "column", "value": "inflation" }, { "id": 0, "type": "column", "value": "capital" }, { "id": 1, "type": "table", "value": "country" }, { "id": 2, "type": "table", "value": "economy" }, { "id": 6, "type": "column", "value": "country" }, { "id": 5, "type": "column", "value": "code" }, { "id": 4, "type": "value", "value": "2" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [ 7 ] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
3,027
coinmarketcap
bird:train.json:6260
Name the coin and date of transactions with the greatest decline in percent change in 1 hour.
SELECT T1.name, T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.percent_change_1h = ( SELECT MIN(percent_change_1h) FROM historical )
[ "Name", "the", "coin", "and", "date", "of", "transactions", "with", "the", "greatest", "decline", "in", "percent", "change", "in", "1", "hour", "." ]
[ { "id": 4, "type": "column", "value": "percent_change_1h" }, { "id": 3, "type": "table", "value": "historical" }, { "id": 6, "type": "column", "value": "coin_id" }, { "id": 2, "type": "table", "value": "coins" }, { "id": 0, "type": "column", "value": "name" }, { "id": 1, "type": "column", "value": "date" }, { "id": 5, "type": "column", "value": "id" } ]
[ { "entity_id": 0, "token_idxs": [ 0 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12, 13 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O" ]
3,028
toxicology
bird:dev.json:255
What proportion of single bonds are carcinogenic? Please provide your answer as a percentage with five decimal places.
SELECT ROUND(CAST(COUNT(CASE WHEN T2.label = '+' THEN T1.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.bond_id),5) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '-'
[ "What", "proportion", "of", "single", "bonds", "are", "carcinogenic", "?", "Please", "provide", "your", "answer", "as", "a", "percentage", "with", "five", "decimal", "places", "." ]
[ { "id": 5, "type": "column", "value": "molecule_id" }, { "id": 2, "type": "column", "value": "bond_type" }, { "id": 1, "type": "table", "value": "molecule" }, { "id": 7, "type": "column", "value": "bond_id" }, { "id": 8, "type": "column", "value": "label" }, { "id": 0, "type": "table", "value": "bond" }, { "id": 6, "type": "value", "value": "100" }, { "id": 3, "type": "value", "value": "-" }, { "id": 4, "type": "value", "value": "5" }, { "id": 9, "type": "value", "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": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,029
works_cycles
bird:train.json:7107
What is the name of the supplier number 1492?
SELECT NAME FROM Vendor WHERE BusinessEntityID = 1492
[ "What", "is", "the", "name", "of", "the", "supplier", "number", "1492", "?" ]
[ { "id": 2, "type": "column", "value": "businessentityid" }, { "id": 0, "type": "table", "value": "vendor" }, { "id": 1, "type": "column", "value": "name" }, { "id": 3, "type": "value", "value": "1492" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "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, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O" ]
3,030
cre_Drama_Workshop_Groups
spider:train_spider.json:5168
What is the product ID of the most frequently ordered item on invoices?
SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1
[ "What", "is", "the", "product", "ID", "of", "the", "most", "frequently", "ordered", "item", "on", "invoices", "?" ]
[ { "id": 1, "type": "column", "value": "product_id" }, { "id": 0, "type": "table", "value": "invoices" } ]
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,031
tracking_grants_for_research
spider:train_spider.json:4372
What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.
SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details
[ "What", "are", "all", "the", "details", "of", "the", "organisations", "described", "as", "'", "Sponsor", "'", "?", "Sort", "the", "result", "in", "an", "ascending", "order", "." ]
[ { "id": 3, "type": "column", "value": "organisation_type_description" }, { "id": 0, "type": "column", "value": "organisation_details" }, { "id": 2, "type": "table", "value": "organisation_types" }, { "id": 5, "type": "column", "value": "organisation_type" }, { "id": 1, "type": "table", "value": "organisations" }, { "id": 4, "type": "value", "value": "Sponsor" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,032
address_1
bird:test.json:802
What are the names of cities with at least three students?
SELECT T1.city_name FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.city_code HAVING count(*) >= 3
[ "What", "are", "the", "names", "of", "cities", "with", "at", "least", "three", "students", "?" ]
[ { "id": 0, "type": "column", "value": "city_code" }, { "id": 1, "type": "column", "value": "city_name" }, { "id": 3, "type": "table", "value": "student" }, { "id": 2, "type": "table", "value": "city" }, { "id": 4, "type": "value", "value": "3" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O" ]
3,033
ice_hockey_draft
bird:train.json:6934
What is the weight in kilograms of the player with the highest number of goal differential of all time?
SELECT T3.weight_in_kg FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID INNER JOIN weight_info AS T3 ON T2.weight = T3.weight_id ORDER BY T1.PLUSMINUS DESC LIMIT 1
[ "What", "is", "the", "weight", "in", "kilograms", "of", "the", "player", "with", "the", "highest", "number", "of", "goal", "differential", "of", "all", "time", "?" ]
[ { "id": 0, "type": "column", "value": "weight_in_kg" }, { "id": 3, "type": "table", "value": "seasonstatus" }, { "id": 1, "type": "table", "value": "weight_info" }, { "id": 4, "type": "table", "value": "playerinfo" }, { "id": 2, "type": "column", "value": "plusminus" }, { "id": 6, "type": "column", "value": "weight_id" }, { "id": 7, "type": "column", "value": "eliteid" }, { "id": 5, "type": "column", "value": "weight" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_id": 5, "token_idxs": [ 3 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,034
sakila_1
spider:train_spider.json:2996
What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?
SELECT DISTINCT T1.first_name , T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'
[ "What", "is", "the", "full", "name", "of", "the", "staff", "member", "who", "has", "rented", "a", "film", "to", "a", "customer", "with", "the", "first", "name", "April", "and", "the", "last", "name", "Burns", "?" ]
[ { "id": 5, "type": "column", "value": "customer_id" }, { "id": 0, "type": "column", "value": "first_name" }, { "id": 1, "type": "column", "value": "last_name" }, { "id": 2, "type": "table", "value": "customer" }, { "id": 8, "type": "column", "value": "staff_id" }, { "id": 4, "type": "table", "value": "rental" }, { "id": 3, "type": "table", "value": "staff" }, { "id": 6, "type": "value", "value": "APRIL" }, { "id": 7, "type": "value", "value": "BURNS" } ]
[ { "entity_id": 0, "token_idxs": [ 19, 20 ] }, { "entity_id": 1, "token_idxs": [ 24, 25 ] }, { "entity_id": 2, "token_idxs": [ 16 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 11, 12 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [ 21 ] }, { "entity_id": 7, "token_idxs": [ 26 ] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O" ]
3,035
movie_3
bird:train.json:9272
What is the title of the films in which Cuba Allen acted?
SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Cuba' AND T1.last_name = 'Allen'
[ "What", "is", "the", "title", "of", "the", "films", "in", "which", "Cuba", "Allen", "acted", "?" ]
[ { "id": 3, "type": "table", "value": "film_actor" }, { "id": 5, "type": "column", "value": "first_name" }, { "id": 7, "type": "column", "value": "last_name" }, { "id": 9, "type": "column", "value": "actor_id" }, { "id": 4, "type": "column", "value": "film_id" }, { "id": 0, "type": "column", "value": "title" }, { "id": 2, "type": "table", "value": "actor" }, { "id": 8, "type": "value", "value": "Allen" }, { "id": 1, "type": "table", "value": "film" }, { "id": 6, "type": "value", "value": "Cuba" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [ 9 ] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [ 10 ] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "B-VALUE", "B-TABLE", "O" ]
3,036
college_2
spider:train_spider.json:1437
What is the title of the course that is a prerequisite for Mobile Computing?
SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing')
[ "What", "is", "the", "title", "of", "the", "course", "that", "is", "a", "prerequisite", "for", "Mobile", "Computing", "?" ]
[ { "id": 5, "type": "value", "value": "Mobile Computing" }, { "id": 2, "type": "column", "value": "course_id" }, { "id": 3, "type": "column", "value": "prereq_id" }, { "id": 0, "type": "table", "value": "course" }, { "id": 4, "type": "table", "value": "prereq" }, { "id": 1, "type": "column", "value": "title" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, "token_idxs": [ 12, 13 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O" ]
3,037
icfp_1
spider:train_spider.json:2896
Find the titles of papers whose first author is affiliated with an institution in the country "Japan" and has last name "Ohori"?
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "Japan" AND t2.authorder = 1 AND t1.lname = "Ohori"
[ "Find", "the", "titles", "of", "papers", "whose", "first", "author", "is", "affiliated", "with", "an", "institution", "in", "the", "country", "\"", "Japan", "\"", "and", "has", "last", "name", "\"", "Ohori", "\"", "?" ]
[ { "id": 11, "type": "table", "value": "authorship" }, { "id": 6, "type": "column", "value": "authorder" }, { "id": 4, "type": "column", "value": "country" }, { "id": 10, "type": "table", "value": "authors" }, { "id": 12, "type": "column", "value": "paperid" }, { "id": 2, "type": "table", "value": "papers" }, { "id": 3, "type": "column", "value": "instid" }, { "id": 13, "type": "column", "value": "authid" }, { "id": 0, "type": "column", "value": "title" }, { "id": 5, "type": "column", "value": "Japan" }, { "id": 8, "type": "column", "value": "lname" }, { "id": 9, "type": "column", "value": "Ohori" }, { "id": 1, "type": "table", "value": "inst" }, { "id": 7, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 13 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 0 ] }, { "entity_id": 4, "token_idxs": [ 15 ] }, { "entity_id": 5, "token_idxs": [ 17 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [ 22 ] }, { "entity_id": 9, "token_idxs": [ 24 ] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [ 7, 8 ] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O" ]
3,038
movie_3
bird:train.json:9320
Which actor acted in the most films?
SELECT T.first_name, T.last_name FROM ( SELECT T2.first_name, T2.last_name, SUM(T1.film_id) AS num FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.first_name, T2.last_name ) AS T ORDER BY T.num DESC LIMIT 1
[ "Which", "actor", "acted", "in", "the", "most", "films", "?" ]
[ { "id": 0, "type": "column", "value": "first_name" }, { "id": 3, "type": "table", "value": "film_actor" }, { "id": 1, "type": "column", "value": "last_name" }, { "id": 6, "type": "column", "value": "actor_id" }, { "id": 5, "type": "column", "value": "film_id" }, { "id": 4, "type": "table", "value": "actor" }, { "id": 2, "type": "column", "value": "num" } ]
[ { "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": [ 6 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O" ]
3,039
public_review_platform
bird:train.json:4130
Count the active businesses that has an attribute of BYOB with high review count.
SELECT COUNT(DISTINCT T1.business_id) FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T3.attribute_name = 'BYOB' AND T1.review_count = 'High' AND T1.active = 'true'
[ "Count", "the", "active", "businesses", "that", "has", "an", "attribute", "of", "BYOB", "with", "high", "review", "count", "." ]
[ { "id": 3, "type": "table", "value": "business_attributes" }, { "id": 5, "type": "column", "value": "attribute_name" }, { "id": 4, "type": "column", "value": "attribute_id" }, { "id": 7, "type": "column", "value": "review_count" }, { "id": 1, "type": "column", "value": "business_id" }, { "id": 0, "type": "table", "value": "attributes" }, { "id": 2, "type": "table", "value": "business" }, { "id": 9, "type": "column", "value": "active" }, { "id": 6, "type": "value", "value": "BYOB" }, { "id": 8, "type": "value", "value": "High" }, { "id": 10, "type": "value", "value": "true" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [ 9 ] }, { "entity_id": 7, "token_idxs": [ 12, 13 ] }, { "entity_id": 8, "token_idxs": [ 11 ] }, { "entity_id": 9, "token_idxs": [ 2 ] }, { "entity_id": 10, "token_idxs": [ 7 ] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "O" ]
3,040
ship_1
spider:train_spider.json:6263
What is the name of the ship that is commanded by the youngest captain?
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1
[ "What", "is", "the", "name", "of", "the", "ship", "that", "is", "commanded", "by", "the", "youngest", "captain", "?" ]
[ { "id": 2, "type": "table", "value": "captain" }, { "id": 4, "type": "column", "value": "ship_id" }, { "id": 0, "type": "column", "value": "name" }, { "id": 1, "type": "table", "value": "ship" }, { "id": 3, "type": "column", "value": "age" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 13 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,041
book_1
bird:test.json:551
Show the client names and their total amounts of books ordered.
SELECT T2.name , sum(T3.amount) FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient JOIN Books_Order AS T3 ON T3.idOrder = T1.idOrder GROUP BY T1.idClient
[ "Show", "the", "client", "names", "and", "their", "total", "amounts", "of", "books", "ordered", "." ]
[ { "id": 2, "type": "table", "value": "books_order" }, { "id": 0, "type": "column", "value": "idclient" }, { "id": 6, "type": "column", "value": "idorder" }, { "id": 3, "type": "column", "value": "amount" }, { "id": 4, "type": "table", "value": "orders" }, { "id": 5, "type": "table", "value": "client" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, "token_idxs": [ 2 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "B-TABLE", "O" ]
3,042
donor
bird:train.json:3220
Which city does the school that project "iMath" donated to in?
SELECT T1.school_city FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'iMath'
[ "Which", "city", "does", "the", "school", "that", "project", "\"", "iMath", "\"", "donated", "to", "in", "?" ]
[ { "id": 0, "type": "column", "value": "school_city" }, { "id": 5, "type": "column", "value": "projectid" }, { "id": 1, "type": "table", "value": "projects" }, { "id": 2, "type": "table", "value": "essays" }, { "id": 3, "type": "column", "value": "title" }, { "id": 4, "type": "value", "value": "iMath" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "O" ]
3,043
talkingdata
bird:train.json:1217
Please list any three events that happened on the 1st of May 2016 that have the same latitude of 31.
SELECT event_id FROM events WHERE timestamp LIKE '2016-05-01%' AND latitude = 31 LIMIT 3
[ "Please", "list", "any", "three", "events", "that", "happened", "on", "the", "1st", "of", "May", "2016", "that", "have", "the", "same", "latitude", "of", "31", "." ]
[ { "id": 3, "type": "value", "value": "2016-05-01%" }, { "id": 2, "type": "column", "value": "timestamp" }, { "id": 1, "type": "column", "value": "event_id" }, { "id": 4, "type": "column", "value": "latitude" }, { "id": 0, "type": "table", "value": "events" }, { "id": 5, "type": "value", "value": "31" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 15, 16 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 17 ] }, { "entity_id": 5, "token_idxs": [ 19 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O", "B-VALUE", "O" ]
3,045
election
spider:train_spider.json:2770
Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?
SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2
[ "Who", "were", "the", "comptrollers", "of", "the", "parties", "associated", "with", "the", "delegates", "from", "district", "1", "or", "district", "2", "?" ]
[ { "id": 0, "type": "column", "value": "comptroller" }, { "id": 1, "type": "table", "value": "election" }, { "id": 4, "type": "column", "value": "party_id" }, { "id": 5, "type": "column", "value": "district" }, { "id": 2, "type": "table", "value": "party" }, { "id": 3, "type": "column", "value": "party" }, { "id": 6, "type": "value", "value": "1" }, { "id": 7, "type": "value", "value": "2" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 15 ] }, { "entity_id": 6, "token_idxs": [ 13 ] }, { "entity_id": 7, "token_idxs": [ 16 ] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-COLUMN", "B-VALUE", "O" ]
3,046
retails
bird:train.json:6827
What is the total price of all orders from the customer with the phone number "627-220-3983"?
SELECT SUM(T1.o_totalprice) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_phone = '627-220-3983'
[ "What", "is", "the", "total", "price", "of", "all", "orders", "from", "the", "customer", "with", "the", "phone", "number", "\"", "627", "-", "220", "-", "3983", "\"", "?" ]
[ { "id": 3, "type": "value", "value": "627-220-3983" }, { "id": 4, "type": "column", "value": "o_totalprice" }, { "id": 5, "type": "column", "value": "o_custkey" }, { "id": 6, "type": "column", "value": "c_custkey" }, { "id": 1, "type": "table", "value": "customer" }, { "id": 2, "type": "column", "value": "c_phone" }, { "id": 0, "type": "table", "value": "orders" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 13 ] }, { "entity_id": 3, "token_idxs": [ 16, 17, 18, 19, 20 ] }, { "entity_id": 4, "token_idxs": [ 3, 4 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
3,047
network_2
spider:train_spider.json:4454
Find the name of persons who are friends with Bob.
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'
[ "Find", "the", "name", "of", "persons", "who", "are", "friends", "with", "Bob", "." ]
[ { "id": 2, "type": "table", "value": "personfriend" }, { "id": 1, "type": "table", "value": "person" }, { "id": 3, "type": "column", "value": "friend" }, { "id": 0, "type": "column", "value": "name" }, { "id": 4, "type": "value", "value": "Bob" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "B-VALUE", "O" ]
3,048
retail_world
bird:train.json:6345
What is the total production of the products from the supplier “Escargots Nouveaux”?
SELECT SUM(T1.UnitsInStock + T1.UnitsOnOrder) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Escargots Nouveaux'
[ "What", "is", "the", "total", "production", "of", "the", "products", "from", "the", "supplier", "“", "Escargots", "Nouveaux", "”", "?" ]
[ { "id": 3, "type": "value", "value": "Escargots Nouveaux" }, { "id": 5, "type": "column", "value": "unitsinstock" }, { "id": 6, "type": "column", "value": "unitsonorder" }, { "id": 2, "type": "column", "value": "companyname" }, { "id": 4, "type": "column", "value": "supplierid" }, { "id": 1, "type": "table", "value": "suppliers" }, { "id": 0, "type": "table", "value": "products" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12, 13 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O" ]
3,049
scientist_1
spider:train_spider.json:6476
How many different projects are there?
SELECT count(DISTINCT name) FROM projects
[ "How", "many", "different", "projects", "are", "there", "?" ]
[ { "id": 0, "type": "table", "value": "projects" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-TABLE", "O", "O", "O" ]
3,050
baseball_1
spider:train_spider.json:3648
Find the first name, last name and id for the top three players won the most player awards.
SELECT T1.name_first , T1.name_last , T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;
[ "Find", "the", "first", "name", ",", "last", "name", "and", "i", "d", "for", "the", "top", "three", "players", "won", "the", "most", "player", "awards", "." ]
[ { "id": 4, "type": "table", "value": "player_award" }, { "id": 1, "type": "column", "value": "name_first" }, { "id": 0, "type": "column", "value": "player_id" }, { "id": 2, "type": "column", "value": "name_last" }, { "id": 3, "type": "table", "value": "player" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 3, 4, 5 ] }, { "entity_id": 3, "token_idxs": [ 18 ] }, { "entity_id": 4, "token_idxs": [ 19 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-TABLE", "O" ]
3,051
superstore
bird:train.json:2391
Provide the names of the products with a profit greater than 98% of the average profit of all products in the East region.
SELECT DISTINCT T2.`Product Name` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'East' AND T1.Profit > ( SELECT AVG(Profit) * 0.98 FROM east_superstore )
[ "Provide", "the", "names", "of", "the", "products", "with", "a", "profit", "greater", "than", "98", "%", "of", "the", "average", "profit", "of", "all", "products", "in", "the", "East", "region", "." ]
[ { "id": 1, "type": "table", "value": "east_superstore" }, { "id": 0, "type": "column", "value": "Product Name" }, { "id": 3, "type": "column", "value": "Product ID" }, { "id": 2, "type": "table", "value": "product" }, { "id": 4, "type": "column", "value": "region" }, { "id": 6, "type": "column", "value": "profit" }, { "id": 5, "type": "value", "value": "East" }, { "id": 7, "type": "value", "value": "0.98" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 19, 20 ] }, { "entity_id": 4, "token_idxs": [ 23 ] }, { "entity_id": 5, "token_idxs": [ 22 ] }, { "entity_id": 6, "token_idxs": [ 8 ] }, { "entity_id": 7, "token_idxs": [ 11 ] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "B-COLUMN", "O" ]
3,052
student_1
spider:train_spider.json:4036
For each classroom report the grade that is taught in it. Report just the classroom number and the grade number.
SELECT DISTINCT classroom , grade FROM list
[ "For", "each", "classroom", "report", "the", "grade", "that", "is", "taught", "in", "it", ".", "Report", "just", "the", "classroom", "number", "and", "the", "grade", "number", "." ]
[ { "id": 1, "type": "column", "value": "classroom" }, { "id": 2, "type": "column", "value": "grade" }, { "id": 0, "type": "table", "value": "list" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 19 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O" ]
3,053
soccer_2016
bird:train.json:1954
What is the name of the team that won the first ever match?
SELECT T1.Team_Name FROM team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Match_Winner WHERE T2.Season_Id = 1 ORDER BY T2.Match_Date LIMIT 1
[ "What", "is", "the", "name", "of", "the", "team", "that", "won", "the", "first", "ever", "match", "?" ]
[ { "id": 7, "type": "column", "value": "match_winner" }, { "id": 5, "type": "column", "value": "match_date" }, { "id": 0, "type": "column", "value": "team_name" }, { "id": 3, "type": "column", "value": "season_id" }, { "id": 6, "type": "column", "value": "team_id" }, { "id": 2, "type": "table", "value": "match" }, { "id": 1, "type": "table", "value": "team" }, { "id": 4, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,054
retail_world
bird:train.json:6321
Please list the IDs of the orders with a product whose production is not continuous.
SELECT T2.OrderID FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Discontinued = 1
[ "Please", "list", "the", "IDs", "of", "the", "orders", "with", "a", "product", "whose", "production", "is", "not", "continuous", "." ]
[ { "id": 2, "type": "table", "value": "Order Details" }, { "id": 3, "type": "column", "value": "discontinued" }, { "id": 5, "type": "column", "value": "productid" }, { "id": 1, "type": "table", "value": "products" }, { "id": 0, "type": "column", "value": "orderid" }, { "id": 4, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O" ]
3,055
music_2
spider:train_spider.json:5229
How many songs have vocals of type lead?
SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead"
[ "How", "many", "songs", "have", "vocals", "of", "type", "lead", "?" ]
[ { "id": 0, "type": "table", "value": "vocals" }, { "id": 5, "type": "column", "value": "songid" }, { "id": 1, "type": "table", "value": "songs" }, { "id": 4, "type": "column", "value": "title" }, { "id": 2, "type": "column", "value": "type" }, { "id": 3, "type": "column", "value": "lead" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-TABLE", "O", "B-TABLE", "O", "B-COLUMN", "B-COLUMN", "O" ]
3,056
codebase_community
bird:dev.json:626
How many votes were made in 2010?
SELECT COUNT(id) FROM votes WHERE STRFTIME('%Y', CreationDate) = '2010'
[ "How", "many", "votes", "were", "made", "in", "2010", "?" ]
[ { "id": 4, "type": "column", "value": "creationdate" }, { "id": 0, "type": "table", "value": "votes" }, { "id": 1, "type": "value", "value": "2010" }, { "id": 2, "type": "column", "value": "id" }, { "id": 3, "type": "value", "value": "%Y" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O" ]
3,057
menu
bird:train.json:5545
How many pages are there in the "Emil Kuehn" menu?
SELECT SUM(CASE WHEN T1.name = 'Emil Kuehn' THEN 1 ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id
[ "How", "many", "pages", "are", "there", "in", "the", "\"", "Emil", "Kuehn", "\"", "menu", "?" ]
[ { "id": 7, "type": "value", "value": "Emil Kuehn" }, { "id": 1, "type": "table", "value": "menupage" }, { "id": 3, "type": "column", "value": "menu_id" }, { "id": 0, "type": "table", "value": "menu" }, { "id": 6, "type": "column", "value": "name" }, { "id": 2, "type": "column", "value": "id" }, { "id": 4, "type": "value", "value": "0" }, { "id": 5, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "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, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [ 8, 9 ] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "O" ]
3,058
restaurant
bird:train.json:1740
List street names in San Francisco city.
SELECT street_name FROM location WHERE city = 'San Francisco'
[ "List", "street", "names", "in", "San", "Francisco", "city", "." ]
[ { "id": 3, "type": "value", "value": "San Francisco" }, { "id": 1, "type": "column", "value": "street_name" }, { "id": 0, "type": "table", "value": "location" }, { "id": 2, "type": "column", "value": "city" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 1, 2 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 4, 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O" ]
3,059
books
bird:train.json:6053
Identify the cost difference between Priority and Express shipping methods.
SELECT SUM(CASE WHEN method_name = 'Priority' THEN cost ELSE 0 END) - SUM(CASE WHEN method_name = 'Express' THEN cost ELSE 0 END) FROM shipping_method
[ "Identify", "the", "cost", "difference", "between", "Priority", "and", "Express", "shipping", "methods", "." ]
[ { "id": 0, "type": "table", "value": "shipping_method" }, { "id": 3, "type": "column", "value": "method_name" }, { "id": 4, "type": "value", "value": "Priority" }, { "id": 5, "type": "value", "value": "Express" }, { "id": 2, "type": "column", "value": "cost" }, { "id": 1, "type": "value", "value": "0" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entity_id": 5, "token_idxs": [ 7 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "B-VALUE", "B-TABLE", "B-COLUMN", "O" ]
3,060
bakery_1
bird:test.json:1576
What are the ids, flavors, and food types of goods, ordered by price?
SELECT id , flavor , food FROM goods ORDER BY price
[ "What", "are", "the", "ids", ",", "flavors", ",", "and", "food", "types", "of", "goods", ",", "ordered", "by", "price", "?" ]
[ { "id": 2, "type": "column", "value": "flavor" }, { "id": 0, "type": "table", "value": "goods" }, { "id": 4, "type": "column", "value": "price" }, { "id": 3, "type": "column", "value": "food" }, { "id": 1, "type": "column", "value": "id" } ]
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 15 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O" ]
3,061
student_club
bird:dev.json:1454
What is the percentage of the cost for the meeting events?
SELECT SUM(CASE WHEN T1.type = 'Meeting' THEN T3.cost ELSE 0 END) * 100 / SUM(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
[ "What", "is", "the", "percentage", "of", "the", "cost", "for", "the", "meeting", "events", "?" ]
[ { "id": 4, "type": "column", "value": "link_to_budget" }, { "id": 8, "type": "column", "value": "link_to_event" }, { "id": 3, "type": "column", "value": "budget_id" }, { "id": 7, "type": "column", "value": "event_id" }, { "id": 0, "type": "table", "value": "expense" }, { "id": 11, "type": "value", "value": "Meeting" }, { "id": 2, "type": "table", "value": "budget" }, { "id": 1, "type": "table", "value": "event" }, { "id": 6, "type": "column", "value": "cost" }, { "id": 10, "type": "column", "value": "type" }, { "id": 5, "type": "value", "value": "100" }, { "id": 9, "type": "value", "value": "0" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [ 6 ] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [ 9 ] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "B-TABLE", "O" ]
3,062
customers_and_orders
bird:test.json:239
Show all product ids, product type codes, and product name.
SELECT product_id , product_type_code , product_name FROM Products
[ "Show", "all", "product", "ids", ",", "product", "type", "codes", ",", "and", "product", "name", "." ]
[ { "id": 2, "type": "column", "value": "product_type_code" }, { "id": 3, "type": "column", "value": "product_name" }, { "id": 1, "type": "column", "value": "product_id" }, { "id": 0, "type": "table", "value": "products" } ]
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 5, 6, 7 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
3,063
movies_4
bird:train.json:457
In Movie No. 19, how many people are there in Department No. 7? Please give me their job.
SELECT COUNT(DISTINCT job) FROM movie_crew WHERE movie_id = 19 AND department_id = 7
[ "In", "Movie", "No", ".", "19", ",", "how", "many", "people", "are", "there", "in", "Department", "No", ".", "7", "?", "Please", "give", "me", "their", "job", "." ]
[ { "id": 4, "type": "column", "value": "department_id" }, { "id": 0, "type": "table", "value": "movie_crew" }, { "id": 2, "type": "column", "value": "movie_id" }, { "id": 1, "type": "column", "value": "job" }, { "id": 3, "type": "value", "value": "19" }, { "id": 5, "type": "value", "value": "7" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 21 ] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entity_id": 5, "token_idxs": [ 15 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
3,064
customers_and_invoices
spider:train_spider.json:1627
How many products were not included in any order?
SELECT count(*) FROM products WHERE product_id NOT IN ( SELECT product_id FROM Order_items )
[ "How", "many", "products", "were", "not", "included", "in", "any", "order", "?" ]
[ { "id": 2, "type": "table", "value": "order_items" }, { "id": 1, "type": "column", "value": "product_id" }, { "id": 0, "type": "table", "value": "products" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,065
food_inspection
bird:train.json:8839
List down the owner's name with a zip code 94104.
SELECT DISTINCT owner_name FROM businesses WHERE owner_zip = '94104'
[ "List", "down", "the", "owner", "'s", "name", "with", "a", "zip", "code", "94104", "." ]
[ { "id": 0, "type": "table", "value": "businesses" }, { "id": 1, "type": "column", "value": "owner_name" }, { "id": 2, "type": "column", "value": "owner_zip" }, { "id": 3, "type": "value", "value": "94104" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4, 5 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "O" ]
3,066
books
bird:train.json:5962
What is the language of the book with ISBN 23755004321?
SELECT T2.language_name FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T1.isbn13 = 23755004321
[ "What", "is", "the", "language", "of", "the", "book", "with", "ISBN", "23755004321", "?" ]
[ { "id": 0, "type": "column", "value": "language_name" }, { "id": 2, "type": "table", "value": "book_language" }, { "id": 4, "type": "value", "value": "23755004321" }, { "id": 5, "type": "column", "value": "language_id" }, { "id": 3, "type": "column", "value": "isbn13" }, { "id": 1, "type": "table", "value": "book" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "token_idxs": [ 3 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "B-VALUE", "O" ]
3,067
customers_and_invoices
spider:train_spider.json:1573
Show the number of customers.
SELECT count(*) FROM Customers
[ "Show", "the", "number", "of", "customers", "." ]
[ { "id": 0, "type": "table", "value": "customers" } ]
[ { "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": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-TABLE", "O" ]
3,068
cre_Doc_Control_Systems
spider:train_spider.json:2122
List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.
SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS";
[ "List", "document", "i", "d", "of", "documents", "status", "is", "done", "and", "document", "type", "is", "Paper", "and", "the", "document", "is", "shipped", "by", "shipping", "agent", "named", "USPS", "." ]
[ { "id": 5, "type": "column", "value": "document_status_code" }, { "id": 2, "type": "table", "value": "ref_shipping_agents" }, { "id": 3, "type": "column", "value": "shipping_agent_name" }, { "id": 9, "type": "column", "value": "shipping_agent_code" }, { "id": 7, "type": "column", "value": "document_type_code" }, { "id": 1, "type": "column", "value": "document_id" }, { "id": 0, "type": "table", "value": "documents" }, { "id": 8, "type": "column", "value": "Paper" }, { "id": 4, "type": "column", "value": "USPS" }, { "id": 6, "type": "column", "value": "done" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 1, 2, 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 22 ] }, { "entity_id": 4, "token_idxs": [ 23 ] }, { "entity_id": 5, "token_idxs": [ 6 ] }, { "entity_id": 6, "token_idxs": [ 8 ] }, { "entity_id": 7, "token_idxs": [ 10, 11 ] }, { "entity_id": 8, "token_idxs": [ 13 ] }, { "entity_id": 9, "token_idxs": [ 20, 21 ] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "B-COLUMN", "O" ]
3,069
law_episode
bird:train.json:1345
How many winners have been awarded a Television award by the "American Bar Association Silver Gavel Awards for Media and the Arts"?
SELECT COUNT(award_id) FROM Award WHERE result = 'Winner' AND award = 'Television' AND organization = 'American Bar Association Silver Gavel Awards for Media and the Arts'
[ "How", "many", "winners", "have", "been", "awarded", "a", "Television", "award", "by", "the", "\"", "American", "Bar", "Association", "Silver", "Gavel", "Awards", "for", "Media", "and", "the", "Arts", "\"", "?" ]
[ { "id": 7, "type": "value", "value": "American Bar Association Silver Gavel Awards for Media and the Arts" }, { "id": 6, "type": "column", "value": "organization" }, { "id": 5, "type": "value", "value": "Television" }, { "id": 1, "type": "column", "value": "award_id" }, { "id": 2, "type": "column", "value": "result" }, { "id": 3, "type": "value", "value": "Winner" }, { "id": 0, "type": "table", "value": "award" }, { "id": 4, "type": "column", "value": "award" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_id": 5, "token_idxs": [ 7 ] }, { "entity_id": 6, "token_idxs": [ 14 ] }, { "entity_id": 7, "token_idxs": [ 12, 13, 15, 16, 17, 18, 19, 20, 21, 22 ] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
3,070
movie_platform
bird:train.json:63
When did the creator of the list "250 Favourite Films" last updated a movie list?
SELECT T2.list_update_date_utc FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.list_title = '250 Favourite Films' ORDER BY T2.list_update_date_utc DESC LIMIT 1
[ "When", "did", "the", "creator", "of", "the", "list", "\"", "250", "Favourite", "Films", "\"", "last", "updated", "a", "movie", "list", "?" ]
[ { "id": 0, "type": "column", "value": "list_update_date_utc" }, { "id": 4, "type": "value", "value": "250 Favourite Films" }, { "id": 2, "type": "table", "value": "lists_users" }, { "id": 3, "type": "column", "value": "list_title" }, { "id": 5, "type": "column", "value": "list_id" }, { "id": 6, "type": "column", "value": "user_id" }, { "id": 1, "type": "table", "value": "lists" } ]
[ { "entity_id": 0, "token_idxs": [ 12, 13, 14 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 8, 9, 10 ] }, { "entity_id": 5, "token_idxs": [ 16 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O" ]
3,071
cre_Docs_and_Epenses
spider:train_spider.json:6423
Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.
SELECT T1.statement_details , T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'
[ "Show", "the", "statement", "detail", "and", "the", "corresponding", "document", "name", "for", "the", "statement", "with", "detail", "'", "Private", "Project", "'", "." ]
[ { "id": 0, "type": "column", "value": "statement_details" }, { "id": 4, "type": "value", "value": "Private Project" }, { "id": 1, "type": "column", "value": "document_name" }, { "id": 5, "type": "column", "value": "statement_id" }, { "id": 6, "type": "column", "value": "document_id" }, { "id": 2, "type": "table", "value": "statements" }, { "id": 3, "type": "table", "value": "documents" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 15, 16 ] }, { "entity_id": 5, "token_idxs": [ 2 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O" ]
3,072
wine_1
spider:train_spider.json:6588
Which 3 wineries produce the most wines made from white grapes?
SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3
[ "Which", "3", "wineries", "produce", "the", "most", "wines", "made", "from", "white", "grapes", "?" ]
[ { "id": 0, "type": "column", "value": "winery" }, { "id": 1, "type": "table", "value": "grapes" }, { "id": 3, "type": "column", "value": "color" }, { "id": 4, "type": "column", "value": "White" }, { "id": 5, "type": "column", "value": "grape" }, { "id": 2, "type": "table", "value": "wine" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "token_idxs": [ 10 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "O" ]
3,073
body_builder
spider:train_spider.json:1157
What are the names of body builders whose total score is higher than 300?
SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300
[ "What", "are", "the", "names", "of", "body", "builders", "whose", "total", "score", "is", "higher", "than", "300", "?" ]
[ { "id": 1, "type": "table", "value": "body_builder" }, { "id": 5, "type": "column", "value": "people_id" }, { "id": 2, "type": "table", "value": "people" }, { "id": 3, "type": "column", "value": "total" }, { "id": 0, "type": "column", "value": "name" }, { "id": 4, "type": "value", "value": "300" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O" ]
3,074
dorm_1
spider:train_spider.json:5723
What is the average and oldest age for each gender of student?
SELECT avg(age) , max(age) , sex FROM student GROUP BY sex
[ "What", "is", "the", "average", "and", "oldest", "age", "for", "each", "gender", "of", "student", "?" ]
[ { "id": 0, "type": "table", "value": "student" }, { "id": 1, "type": "column", "value": "sex" }, { "id": 2, "type": "column", "value": "age" } ]
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "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": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O" ]
3,075
customer_deliveries
spider:train_spider.json:2849
List the names and emails of customers who payed by Visa card.
SELECT customer_email , customer_name FROM customers WHERE payment_method = 'Visa'
[ "List", "the", "names", "and", "emails", "of", "customers", "who", "payed", "by", "Visa", "card", "." ]
[ { "id": 1, "type": "column", "value": "customer_email" }, { "id": 3, "type": "column", "value": "payment_method" }, { "id": 2, "type": "column", "value": "customer_name" }, { "id": 0, "type": "table", "value": "customers" }, { "id": 4, "type": "value", "value": "Visa" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O" ]
3,076
shakespeare
bird:train.json:3029
Please name any three comedic works.
SELECT Title FROM works WHERE GenreType = 'comedy' LIMIT 3
[ "Please", "name", "any", "three", "comedic", "works", "." ]
[ { "id": 2, "type": "column", "value": "genretype" }, { "id": 3, "type": "value", "value": "comedy" }, { "id": 0, "type": "table", "value": "works" }, { "id": 1, "type": "column", "value": "title" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O" ]
3,077
image_and_language
bird:train.json:7562
Which object in image 8 is the widest? State its object sample ID.
SELECT OBJ_SAMPLE_ID FROM IMG_OBJ WHERE IMG_ID = 8 ORDER BY W DESC LIMIT 1
[ "Which", "object", "in", "image", "8", "is", "the", "widest", "?", "State", "its", "object", "sample", "ID", "." ]
[ { "id": 1, "type": "column", "value": "obj_sample_id" }, { "id": 0, "type": "table", "value": "img_obj" }, { "id": 2, "type": "column", "value": "img_id" }, { "id": 3, "type": "value", "value": "8" }, { "id": 4, "type": "column", "value": "w" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 11, 12, 13 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
3,078
works_cycles
bird:train.json:7053
What is the pay frequency of the oldest employee?
SELECT T1.PayFrequency FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T2.BirthDate ASC LIMIT 1
[ "What", "is", "the", "pay", "frequency", "of", "the", "oldest", "employee", "?" ]
[ { "id": 1, "type": "table", "value": "employeepayhistory" }, { "id": 4, "type": "column", "value": "businessentityid" }, { "id": 0, "type": "column", "value": "payfrequency" }, { "id": 3, "type": "column", "value": "birthdate" }, { "id": 2, "type": "table", "value": "employee" } ]
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O" ]
3,079
government_shift
bird:test.json:370
Which customers never used any services ? Give me the customer details .
select customer_details from customers where customer_id not in (select customer_id from customers_and_services)
[ "Which", "customers", "never", "used", "any", "services", "?", "Give", "me", "the", "customer", "details", "." ]
[ { "id": 3, "type": "table", "value": "customers_and_services" }, { "id": 1, "type": "column", "value": "customer_details" }, { "id": 2, "type": "column", "value": "customer_id" }, { "id": 0, "type": "table", "value": "customers" } ]
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "B-TABLE", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O" ]
3,080
toxicology
bird:dev.json:246
List the bond type and the bond ID of the atom 45.
SELECT T1.bond_type, T1.bond_id FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE SUBSTR(T2.atom_id, 7, 2) = '45'
[ "List", "the", "bond", "type", "and", "the", "bond", "ID", "of", "the", "atom", "45", "." ]
[ { "id": 0, "type": "column", "value": "bond_type" }, { "id": 3, "type": "table", "value": "connected" }, { "id": 1, "type": "column", "value": "bond_id" }, { "id": 5, "type": "column", "value": "atom_id" }, { "id": 2, "type": "table", "value": "bond" }, { "id": 4, "type": "value", "value": "45" }, { "id": 6, "type": "value", "value": "7" }, { "id": 7, "type": "value", "value": "2" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6, 7 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity_id": 5, "token_idxs": [ 10 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "B-VALUE", "O" ]
3,081
bike_share_1
bird:train.json:9006
How long did it take for bike id 426 to reach 2nd at South Park from Market at 4th on 8/29/2013? Indicate the duration in minutes.
SELECT CAST(duration AS REAL) / 60 FROM trip WHERE bike_id = 426 AND end_station_name = '2nd at South Park' AND start_station_name = 'Market at 4th' AND start_date LIKE '8/29/2013%' AND end_date LIKE '8/29/2013%'
[ "How", "long", "did", "it", "take", "for", "bike", "i", "d", "426", "to", "reach", "2nd", "at", "South", "Park", "from", "Market", "at", "4th", "on", "8/29/2013", "?", "Indicate", "the", "duration", "in", "minutes", "." ]
[ { "id": 6, "type": "column", "value": "start_station_name" }, { "id": 5, "type": "value", "value": "2nd at South Park" }, { "id": 4, "type": "column", "value": "end_station_name" }, { "id": 7, "type": "value", "value": "Market at 4th" }, { "id": 8, "type": "column", "value": "start_date" }, { "id": 9, "type": "value", "value": "8/29/2013%" }, { "id": 10, "type": "column", "value": "end_date" }, { "id": 11, "type": "column", "value": "duration" }, { "id": 2, "type": "column", "value": "bike_id" }, { "id": 0, "type": "table", "value": "trip" }, { "id": 3, "type": "value", "value": "426" }, { "id": 1, "type": "value", "value": "60" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 12, 13, 14, 15 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [ 17, 18, 19 ] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [ 21 ] }, { "entity_id": 10, "token_idxs": [ 23 ] }, { "entity_id": 11, "token_idxs": [ 25 ] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-VALUE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "B-VALUE", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O" ]
3,082
cre_Students_Information_Systems
bird:test.json:513
When did all the detentions start?
SELECT datetime_detention_start FROM Detention
[ "When", "did", "all", "the", "detentions", "start", "?" ]
[ { "id": 1, "type": "column", "value": "datetime_detention_start" }, { "id": 0, "type": "table", "value": "detention" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 3, 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "B-TABLE", "B-COLUMN", "O" ]
3,083
world
bird:train.json:7911
How many cities are there in the country with the surface area of 652090?
SELECT T2.Name, COUNT(T1.Name) FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.SurfaceArea = 652090 GROUP BY T2.Name
[ "How", "many", "cities", "are", "there", "in", "the", "country", "with", "the", "surface", "area", "of", "652090", "?" ]
[ { "id": 3, "type": "column", "value": "surfacearea" }, { "id": 5, "type": "column", "value": "countrycode" }, { "id": 2, "type": "table", "value": "country" }, { "id": 4, "type": "value", "value": "652090" }, { "id": 0, "type": "column", "value": "name" }, { "id": 1, "type": "table", "value": "city" }, { "id": 6, "type": "column", "value": "code" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 10, 11 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
3,084
scientist_1
spider:train_spider.json:6513
List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.
SELECT T1.Name , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name , T1.Name
[ "List", "all", "the", "scientists", "'", "names", ",", "their", "projects", "'", "names", ",", "and", "the", "hours", "worked", "by", "that", "scientist", "on", "each", "project", ",", "in", "alphabetical", "order", "of", "project", "name", ",", "and", "then", "scientist", "name", "." ]
[ { "id": 3, "type": "table", "value": "scientists" }, { "id": 4, "type": "table", "value": "assignedto" }, { "id": 8, "type": "column", "value": "scientist" }, { "id": 2, "type": "table", "value": "projects" }, { "id": 5, "type": "column", "value": "project" }, { "id": 1, "type": "column", "value": "hours" }, { "id": 0, "type": "column", "value": "name" }, { "id": 6, "type": "column", "value": "code" }, { "id": 7, "type": "column", "value": "ssn" } ]
[ { "entity_id": 0, "token_idxs": [ 28 ] }, { "entity_id": 1, "token_idxs": [ 14 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 3 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 21 ] }, { "entity_id": 6, "token_idxs": [ 25 ] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [ 18 ] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O" ]
3,085
aircraft
spider:train_spider.json:4835
Show all information on the airport that has the largest number of international passengers.
SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1
[ "Show", "all", "information", "on", "the", "airport", "that", "has", "the", "largest", "number", "of", "international", "passengers", "." ]
[ { "id": 1, "type": "column", "value": "international_passengers" }, { "id": 0, "type": "table", "value": "airport" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 12, 13 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
3,086
hockey
bird:train.json:7781
How many penalty minutes did the Montreal Canadiens have on average in the Stanley Cup Finals?
SELECT CAST(SUM(T2.PIM) AS REAL) / COUNT(T2.PIM) FROM Teams AS T1 INNER JOIN TeamsSC AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.name = 'Montreal Canadiens'
[ "How", "many", "penalty", "minutes", "did", "the", "Montreal", "Canadiens", "have", "on", "average", "in", "the", "Stanley", "Cup", "Finals", "?" ]
[ { "id": 3, "type": "value", "value": "Montreal Canadiens" }, { "id": 1, "type": "table", "value": "teamssc" }, { "id": 0, "type": "table", "value": "teams" }, { "id": 2, "type": "column", "value": "name" }, { "id": 5, "type": "column", "value": "tmid" }, { "id": 6, "type": "column", "value": "year" }, { "id": 4, "type": "column", "value": "pim" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6, 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,087
synthea
bird:train.json:1454
How many patients of Irish ethnicity take medication for 'myocardial infarction'?
SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.REASONDESCRIPTION = 'Myocardial Infarction' AND T1.ethnicity = 'irish'
[ "How", "many", "patients", "of", "Irish", "ethnicity", "take", "medication", "for", "'", "myocardial", "infarction", "'", "?" ]
[ { "id": 4, "type": "value", "value": "Myocardial Infarction" }, { "id": 3, "type": "column", "value": "reasondescription" }, { "id": 1, "type": "table", "value": "medications" }, { "id": 5, "type": "column", "value": "ethnicity" }, { "id": 0, "type": "table", "value": "patients" }, { "id": 2, "type": "column", "value": "patient" }, { "id": 6, "type": "value", "value": "irish" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10, 11 ] }, { "entity_id": 5, "token_idxs": [ 5 ] }, { "entity_id": 6, "token_idxs": [ 4 ] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "O", "B-VALUE", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O", "O" ]
3,088
advertising_agencies
bird:test.json:2142
Return the ids and details of staff who have attended at least 1 meeting and have an s in their staff details?
SELECT staff_id , staff_details FROM staff WHERE staff_details LIKE "%s%" GROUP BY staff_id HAVING count(*) >= 1
[ "Return", "the", "ids", "and", "details", "of", "staff", "who", "have", "attended", "at", "least", "1", "meeting", "and", "have", "an", "s", "in", "their", "staff", "details", "?" ]
[ { "id": 2, "type": "column", "value": "staff_details" }, { "id": 1, "type": "column", "value": "staff_id" }, { "id": 0, "type": "table", "value": "staff" }, { "id": 3, "type": "column", "value": "%s%" }, { "id": 4, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 20 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 21 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
3,089
region_building
bird:test.json:336
Which regions have more than one building? Give me the names of the regions.
SELECT T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID GROUP BY T1.Region_ID HAVING COUNT(*) > 1
[ "Which", "regions", "have", "more", "than", "one", "building", "?", "Give", "me", "the", "names", "of", "the", "regions", "." ]
[ { "id": 0, "type": "column", "value": "region_id" }, { "id": 2, "type": "table", "value": "building" }, { "id": 3, "type": "table", "value": "region" }, { "id": 1, "type": "column", "value": "name" }, { "id": 4, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
3,090
video_games
bird:train.json:3451
What platform is the game 3Xtreme available on?
SELECT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T4.game_name = '3Xtreme'
[ "What", "platform", "is", "the", "game", "3Xtreme", "available", "on", "?" ]
[ { "id": 9, "type": "column", "value": "game_publisher_id" }, { "id": 4, "type": "table", "value": "game_publisher" }, { "id": 0, "type": "column", "value": "platform_name" }, { "id": 7, "type": "table", "value": "game_platform" }, { "id": 10, "type": "column", "value": "platform_id" }, { "id": 2, "type": "column", "value": "game_name" }, { "id": 8, "type": "table", "value": "platform" }, { "id": 3, "type": "value", "value": "3Xtreme" }, { "id": 5, "type": "column", "value": "game_id" }, { "id": 1, "type": "table", "value": "game" }, { "id": 6, "type": "column", "value": "id" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [ 1 ] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "B-TABLE", "O", "O", "B-TABLE", "B-VALUE", "O", "O", "O" ]
3,091
college_1
spider:train_spider.json:3257
List the codes of all courses that take place in room KLR209.
SELECT class_code FROM CLASS WHERE class_room = 'KLR209'
[ "List", "the", "codes", "of", "all", "courses", "that", "take", "place", "in", "room", "KLR209", "." ]
[ { "id": 1, "type": "column", "value": "class_code" }, { "id": 2, "type": "column", "value": "class_room" }, { "id": 3, "type": "value", "value": "KLR209" }, { "id": 0, "type": "table", "value": "class" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
3,092
entrepreneur
spider:train_spider.json:2281
What is the total money requested by entrepreneurs with height more than 1.85?
SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85
[ "What", "is", "the", "total", "money", "requested", "by", "entrepreneurs", "with", "height", "more", "than", "1.85", "?" ]
[ { "id": 4, "type": "column", "value": "money_requested" }, { "id": 0, "type": "table", "value": "entrepreneur" }, { "id": 5, "type": "column", "value": "people_id" }, { "id": 1, "type": "table", "value": "people" }, { "id": 2, "type": "column", "value": "height" }, { "id": 3, "type": "value", "value": "1.85" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 4, 5 ] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
3,093
card_games
bird:dev.json:398
What is the unconverted mana do all the cards created by Rob Alexander cost in total?
SELECT manaCost FROM cards WHERE artist = 'Rob Alexander'
[ "What", "is", "the", " ", "unconverted", "mana", "do", "all", "the", "cards", "created", "by", "Rob", "Alexander", "cost", "in", "total", "?" ]
[ { "id": 3, "type": "value", "value": "Rob Alexander" }, { "id": 1, "type": "column", "value": "manacost" }, { "id": 2, "type": "column", "value": "artist" }, { "id": 0, "type": "table", "value": "cards" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [ 0, 1 ] }, { "entity_id": 3, "token_idxs": [ 12, 13 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O" ]
3,094
soccer_2016
bird:train.json:1817
What is the batting hand of MK Pandey?
SELECT T2.Batting_hand FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHERE T1.Player_Name = 'MK Pandey'
[ "What", "is", "the", "batting", "hand", "of", "MK", "Pandey", "?" ]
[ { "id": 2, "type": "table", "value": "batting_style" }, { "id": 0, "type": "column", "value": "batting_hand" }, { "id": 3, "type": "column", "value": "player_name" }, { "id": 5, "type": "column", "value": "batting_id" }, { "id": 4, "type": "value", "value": "MK Pandey" }, { "id": 1, "type": "table", "value": "player" } ]
[ { "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": [ 6, 7 ] }, { "entity_id": 5, "token_idxs": [ 3 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O" ]
3,095
address_1
bird:test.json:797
Which state has most number of students?
SELECT T1.state FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.state ORDER BY count(*) DESC LIMIT 1
[ "Which", "state", "has", "most", "number", "of", "students", "?" ]
[ { "id": 3, "type": "column", "value": "city_code" }, { "id": 2, "type": "table", "value": "student" }, { "id": 0, "type": "column", "value": "state" }, { "id": 1, "type": "table", "value": "city" } ]
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "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": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O" ]
3,096
climbing
spider:train_spider.json:1140
List the countries that have more than one mountain.
SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1
[ "List", "the", "countries", "that", "have", "more", "than", "one", "mountain", "." ]
[ { "id": 0, "type": "table", "value": "mountain" }, { "id": 1, "type": "column", "value": "country" }, { "id": 2, "type": "value", "value": "1" } ]
[ { "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": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,097
movie_platform
bird:train.json:61
How many movie lists with over 100 movies had user 85981819 created when he or she was a paying subscriber?
SELECT COUNT(*) FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 85981819 AND T1.list_movie_number > 100 AND T2.user_has_payment_method = 1
[ "How", "many", "movie", "lists", "with", "over", "100", "movies", "had", "user", "85981819", "created", "when", "he", "or", "she", "was", "a", "paying", "subscriber", "?" ]
[ { "id": 6, "type": "column", "value": "user_has_payment_method" }, { "id": 4, "type": "column", "value": "list_movie_number" }, { "id": 1, "type": "table", "value": "lists_users" }, { "id": 3, "type": "value", "value": "85981819" }, { "id": 2, "type": "column", "value": "user_id" }, { "id": 8, "type": "column", "value": "list_id" }, { "id": 0, "type": "table", "value": "lists" }, { "id": 5, "type": "value", "value": "100" }, { "id": 7, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 6 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,098
works_cycles
bird:train.json:7278
What is the current status of the order with the highest shipping cost?
SELECT Status FROM SalesOrderHeader ORDER BY Freight DESC LIMIT 1
[ "What", "is", "the", "current", "status", "of", "the", "order", "with", "the", "highest", "shipping", "cost", "?" ]
[ { "id": 0, "type": "table", "value": "salesorderheader" }, { "id": 2, "type": "column", "value": "freight" }, { "id": 1, "type": "column", "value": "status" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "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": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,099
inn_1
spider:train_spider.json:2611
What are the number of rooms for each bed type?
SELECT bedType , count(*) FROM Rooms GROUP BY bedType;
[ "What", "are", "the", "number", "of", "rooms", "for", "each", "bed", "type", "?" ]
[ { "id": 1, "type": "column", "value": "bedtype" }, { "id": 0, "type": "table", "value": "rooms" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "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, "token_idxs": [] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
3,100
beer_factory
bird:train.json:5312
What is the name of all the customers who have ever given a 5-star review?
SELECT T1.First, T1.Last FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.StarRating = 5
[ "What", "is", "the", "name", "of", "all", "the", "customers", "who", "have", "ever", "given", "a", "5", "-", "star", "review", "?" ]
[ { "id": 3, "type": "table", "value": "rootbeerreview" }, { "id": 4, "type": "column", "value": "starrating" }, { "id": 6, "type": "column", "value": "customerid" }, { "id": 2, "type": "table", "value": "customers" }, { "id": 0, "type": "column", "value": "first" }, { "id": 1, "type": "column", "value": "last" }, { "id": 5, "type": "value", "value": "5" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 15, 16 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 13 ] }, { "entity_id": 6, "token_idxs": [] }, { "entity_id": 7, "token_idxs": [] }, { "entity_id": 8, "token_idxs": [] }, { "entity_id": 9, "token_idxs": [] }, { "entity_id": 10, "token_idxs": [] }, { "entity_id": 11, "token_idxs": [] }, { "entity_id": 12, "token_idxs": [] }, { "entity_id": 13, "token_idxs": [] }, { "entity_id": 14, "token_idxs": [] }, { "entity_id": 15, "token_idxs": [] }, { "entity_id": 16, "token_idxs": [] }, { "entity_id": 17, "token_idxs": [] }, { "entity_id": 18, "token_idxs": [] }, { "entity_id": 19, "token_idxs": [] } ]
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-TABLE", "I-TABLE", "O" ]