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
4,298
store_product
spider:train_spider.json:4927
What is the average number of pages per minute color?
SELECT avg(pages_per_minute_color) FROM product
[ "What", "is", "the", "average", "number", "of", "pages", "per", "minute", "color", "?" ]
[ { "id": 1, "type": "column", "value": "pages_per_minute_color" }, { "id": 0, "type": "table", "value": "product" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6, 7, 8, 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
4,299
public_review_platform
bird:train.json:3898
How many active businesses are located at Phoenix, Arizona?
SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Phoenix' AND active LIKE 'True'
[ "How", "many", "active", "businesses", "are", "located", "at", "Phoenix", ",", "Arizona", "?" ]
[ { "id": 1, "type": "column", "value": "business_id" }, { "id": 0, "type": "table", "value": "business" }, { "id": 3, "type": "value", "value": "Phoenix" }, { "id": 4, "type": "column", "value": "active" }, { "id": 2, "type": "column", "valu...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 2 ] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O", "O" ]
4,300
retails
bird:train.json:6744
Among the customers in the furniture market segment, how many of them have a nation key of 1?
SELECT COUNT(c_custkey) FROM customer WHERE c_mktsegment = 'FURNITURE' AND c_nationkey = 1
[ "Among", "the", "customers", "in", "the", "furniture", "market", "segment", ",", "how", "many", "of", "them", "have", "a", "nation", "key", "of", "1", "?" ]
[ { "id": 2, "type": "column", "value": "c_mktsegment" }, { "id": 4, "type": "column", "value": "c_nationkey" }, { "id": 1, "type": "column", "value": "c_custkey" }, { "id": 3, "type": "value", "value": "FURNITURE" }, { "id": 0, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6, 7 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [ 15, 16 ] ...
[ "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
4,301
music_platform_2
bird:train.json:7919
What is the percentage of the podcast that are categorized in four or more categories?
SELECT COUNT(T1.podcast_id) FROM ( SELECT podcast_id FROM categories GROUP BY podcast_id HAVING COUNT(category) >= 4 ) AS T1
[ "What", "is", "the", "percentage", "of", "the", "podcast", "that", "are", "categorized", "in", "four", "or", "more", "categories", "?" ]
[ { "id": 0, "type": "column", "value": "podcast_id" }, { "id": 1, "type": "table", "value": "categories" }, { "id": 3, "type": "column", "value": "category" }, { "id": 2, "type": "value", "value": "4" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
4,302
food_inspection_2
bird:train.json:6156
What is the full name of the employee who gave the highest amount of fine of all time?
SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, SUM(T3.fine) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id GROUP BY T1.first_name, T1.last_name ORDER BY SUM(T3.fine) DESC LIMIT 1 ) t
[ "What", "is", "the", "full", "name", "of", "the", "employee", "who", "gave", "the", "highest", "amount", "of", "fine", "of", "all", "time", "?" ]
[ { "id": 6, "type": "column", "value": "inspection_id" }, { "id": 7, "type": "column", "value": "employee_id" }, { "id": 0, "type": "column", "value": "first_name" }, { "id": 5, "type": "table", "value": "inspection" }, { "id": 1, "type": "colum...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O" ]
4,303
video_games
bird:train.json:3312
Please list the names of all the games published by 10TACLE Studios.
SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T3.publisher_name = '10TACLE Studios'
[ "Please", "list", "the", "names", "of", "all", "the", "games", "published", "by", "10TACLE", "Studios", "." ]
[ { "id": 3, "type": "value", "value": "10TACLE Studios" }, { "id": 2, "type": "column", "value": "publisher_name" }, { "id": 5, "type": "table", "value": "game_publisher" }, { "id": 6, "type": "column", "value": "publisher_id" }, { "id": 0, "typ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10, 11 ] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O" ]
4,305
car_retails
bird:train.json:1596
From which branch does the sales representative employee who made the most sales in 2005? Please indicates its full address and phone number.
SELECT T3.addressLine1, T3.addressLine2, T3.phone FROM orderdetails AS T1 INNER JOIN orders AS T2 ON T1.orderNumber = T2.orderNumber INNER JOIN customers AS T3 ON T2.customerNumber = T3.customerNumber INNER JOIN employees AS T4 ON T3.salesRepEmployeeNumber = T4.employeeNumber INNER JOIN offices AS T5 ON T4.officeCode =...
[ "From", "which", "branch", "does", "the", "sales", "representative", "employee", "who", "made", "the", "most", "sales", "in", "2005", "?", "Please", "indicates", "its", "full", "address", "and", "phone", "number", "." ]
[ { "id": 11, "type": "column", "value": "salesrepemployeenumber" }, { "id": 4, "type": "column", "value": "quantityordered" }, { "id": 12, "type": "column", "value": "employeenumber" }, { "id": 17, "type": "column", "value": "customernumber" }, { "i...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 20 ] }, { "entity_id": 2, "token_idxs": [ 22 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "O", "B-TABLE", "O", "B-VALUE", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-COLUMN", "O" ]
4,306
cre_Docs_and_Epenses
spider:train_spider.json:6393
Show statement id, statement detail, account detail for accounts.
SELECT T1.statement_id , T2.statement_details , T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id
[ "Show", "statement", "i", "d", ",", "statement", "detail", ",", "account", "detail", "for", "accounts", "." ]
[ { "id": 1, "type": "column", "value": "statement_details" }, { "id": 2, "type": "column", "value": "account_details" }, { "id": 0, "type": "column", "value": "statement_id" }, { "id": 4, "type": "table", "value": "statements" }, { "id": 3, "typ...
[ { "entity_id": 0, "token_idxs": [ 1, 2, 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 8, 9 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idx...
[ "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O" ]
4,307
cre_Doc_Tracking_DB
spider:train_spider.json:4211
What is the role with the smallest number of employees? Find the role codes.
SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1
[ "What", "is", "the", "role", "with", "the", "smallest", "number", "of", "employees", "?", "Find", "the", "role", "codes", "." ]
[ { "id": 0, "type": "table", "value": "employees" }, { "id": 1, "type": "column", "value": "role_code" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 13, 14 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "to...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
4,308
cinema
spider:train_spider.json:1946
What are the title and director of each film?
SELECT title , directed_by FROM film
[ "What", "are", "the", "title", "and", "director", "of", "each", "film", "?" ]
[ { "id": 2, "type": "column", "value": "directed_by" }, { "id": 1, "type": "column", "value": "title" }, { "id": 0, "type": "table", "value": "film" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
4,309
movie_1
spider:train_spider.json:2496
Find the movies with the highest average rating. Return the movie titles and average rating.
SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1
[ "Find", "the", "movies", "with", "the", "highest", "average", "rating", ".", "Return", "the", "movie", "titles", "and", "average", "rating", "." ]
[ { "id": 2, "type": "table", "value": "rating" }, { "id": 1, "type": "column", "value": "title" }, { "id": 3, "type": "table", "value": "movie" }, { "id": 4, "type": "column", "value": "stars" }, { "id": 0, "type": "column", "value": "mid" ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
4,310
language_corpus
bird:train.json:5715
State one biword pair with occurence of 4.
SELECT T1.word, T3.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T2.occurrences = 4 LIMIT 1
[ "State", "one", "biword", "pair", "with", "occurence", "of", "4", "." ]
[ { "id": 2, "type": "column", "value": "occurrences" }, { "id": 4, "type": "table", "value": "biwords" }, { "id": 1, "type": "table", "value": "words" }, { "id": 0, "type": "column", "value": "word" }, { "id": 6, "type": "column", "value": "...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-VALUE", "O" ]
4,311
restaurant
bird:train.json:1786
List the full address of all the American restaurants with a review of 4 or more?
SELECT T1.street_num, T1.street_name, T1.city FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.review >= 4
[ "List", "the", "full", "address", "of", "all", "the", "American", "restaurants", "with", "a", "review", "of", "4", "or", "more", "?" ]
[ { "id": 1, "type": "column", "value": "street_name" }, { "id": 4, "type": "table", "value": "generalinfo" }, { "id": 0, "type": "column", "value": "street_num" }, { "id": 3, "type": "table", "value": "location" }, { "id": 5, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 11 ] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O" ]
4,312
mondial_geo
bird:train.json:8351
What is the name of the country whose citizens have the lowest purchasing power?
SELECT T2.Name FROM economy AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code ORDER BY T1.Inflation DESC LIMIT 1
[ "What", "is", "the", "name", "of", "the", "country", "whose", "citizens", "have", "the", "lowest", "purchasing", "power", "?" ]
[ { "id": 3, "type": "column", "value": "inflation" }, { "id": 1, "type": "table", "value": "economy" }, { "id": 2, "type": "table", "value": "country" }, { "id": 4, "type": "column", "value": "country" }, { "id": 0, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 6 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O" ]
4,313
video_game
bird:test.json:1939
What are the names and id of platforms whose download rank is 1?
SELECT Platform_name , Platform_ID FROM platform WHERE Download_rank = 1
[ "What", "are", "the", "names", "and", "i", "d", "of", "platforms", "whose", "download", "rank", "is", "1", "?" ]
[ { "id": 1, "type": "column", "value": "platform_name" }, { "id": 3, "type": "column", "value": "download_rank" }, { "id": 2, "type": "column", "value": "platform_id" }, { "id": 0, "type": "table", "value": "platform" }, { "id": 4, "type": "valu...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10, 11 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity_i...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
4,314
chinook_1
spider:train_spider.json:874
What are all the album titles, in alphabetical order?
SELECT Title FROM ALBUM ORDER BY Title
[ "What", "are", "all", "the", "album", "titles", ",", "in", "alphabetical", "order", "?" ]
[ { "id": 0, "type": "table", "value": "album" }, { "id": 1, "type": "column", "value": "title" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O" ]
4,316
icfp_1
spider:train_spider.json:2912
Retrieve the title of the paper that has the largest number of authors.
SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = (SELECT max(authorder) FROM authorship)
[ "Retrieve", "the", "title", "of", "the", "paper", "that", "has", "the", "largest", "number", "of", "authors", "." ]
[ { "id": 1, "type": "table", "value": "authorship" }, { "id": 3, "type": "column", "value": "authorder" }, { "id": 4, "type": "column", "value": "paperid" }, { "id": 2, "type": "table", "value": "papers" }, { "id": 0, "type": "column", "valu...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
4,317
university
bird:train.json:8040
Name the most famous university in Argentina.
SELECT T1.university_name FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Argentina' GROUP BY T1.university_name ORDER BY SUM(T2.score) DESC LIMIT 1
[ "Name", "the", "most", "famous", "university", "in", "Argentina", "." ]
[ { "id": 5, "type": "table", "value": "university_ranking_year" }, { "id": 0, "type": "column", "value": "university_name" }, { "id": 9, "type": "column", "value": "university_id" }, { "id": 2, "type": "column", "value": "country_name" }, { "id": 4,...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "B-TABLE", "B-TABLE", "B-VALUE", "O" ]
4,318
student_assessment
spider:train_spider.json:82
For each course id, how many students are registered and what are the course names?
SELECT T3.course_name , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id
[ "For", "each", "course", "i", "d", ",", "how", "many", "students", "are", "registered", "and", "what", "are", "the", "course", "names", "?" ]
[ { "id": 4, "type": "table", "value": "student_course_registrations" }, { "id": 1, "type": "column", "value": "course_name" }, { "id": 5, "type": "column", "value": "student_id" }, { "id": 0, "type": "column", "value": "course_id" }, { "id": 3, ...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 15, 16 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ ...
[ "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
4,319
cs_semester
bird:train.json:883
Provide the number of students enrolled in the "Statistical Learning" course.
SELECT COUNT(T2.student_id) FROM course AS T1 INNER JOIN registration AS T2 ON T1.course_id = T2.course_id WHERE T1.name = 'Statistical learning'
[ "Provide", "the", "number", "of", "students", "enrolled", "in", "the", "\"", "Statistical", "Learning", "\"", "course", "." ]
[ { "id": 3, "type": "value", "value": "Statistical learning" }, { "id": 1, "type": "table", "value": "registration" }, { "id": 4, "type": "column", "value": "student_id" }, { "id": 5, "type": "column", "value": "course_id" }, { "id": 0, "type": ...
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [ 9, 10 ] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { ...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "O" ]
4,320
movies_4
bird:train.json:543
List the character names in the "Open Water" movie.
SELECT T2.character_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Open Water'
[ "List", "the", "character", "names", "in", "the", "\"", "Open", "Water", "\"", "movie", "." ]
[ { "id": 0, "type": "column", "value": "character_name" }, { "id": 2, "type": "table", "value": "movie_cast" }, { "id": 4, "type": "value", "value": "Open Water" }, { "id": 5, "type": "column", "value": "movie_id" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7, 8 ] }, { "e...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "O" ]
4,321
store_1
spider:train_spider.json:620
How many milliseconds long is Fast As a Shark?
SELECT milliseconds FROM tracks WHERE name = "Fast As a Shark";
[ "How", "many", "milliseconds", "long", "is", "Fast", "As", "a", "Shark", "?" ]
[ { "id": 3, "type": "column", "value": "Fast As a Shark" }, { "id": 1, "type": "column", "value": "milliseconds" }, { "id": 0, "type": "table", "value": "tracks" }, { "id": 2, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5, 6, 7, 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
4,322
olympics
bird:train.json:4919
What is the NOC code of the region where the tallest male Olympic competitor is from?
SELECT T1.noc FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.gender = 'M' ORDER BY T3.height DESC LIMIT 1
[ "What", "is", "the", "NOC", "code", "of", "the", "region", "where", "the", "tallest", "male", "Olympic", "competitor", "is", "from", "?" ]
[ { "id": 6, "type": "table", "value": "person_region" }, { "id": 5, "type": "table", "value": "noc_region" }, { "id": 7, "type": "column", "value": "person_id" }, { "id": 9, "type": "column", "value": "region_id" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
4,323
headphone_store
bird:test.json:934
Find the model, class, and construction of the headphone with the lowest price.
SELECT model , CLASS , construction FROM headphone ORDER BY price LIMIT 1
[ "Find", "the", "model", ",", "class", ",", "and", "construction", "of", "the", "headphone", "with", "the", "lowest", "price", "." ]
[ { "id": 3, "type": "column", "value": "construction" }, { "id": 0, "type": "table", "value": "headphone" }, { "id": 1, "type": "column", "value": "model" }, { "id": 2, "type": "column", "value": "class" }, { "id": 4, "type": "column", "valu...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 14 ] }, ...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O" ]
4,324
soccer_2016
bird:train.json:1977
Which bowling skills did the players from Zimbabwea have?
SELECT T1.Bowling_skill FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T1.Bowling_Id = T2.Bowling_skill INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T3.Country_Name = 'Zimbabwea'
[ "Which", "bowling", "skills", "did", "the", "players", "from", "Zimbabwea", "have", "?" ]
[ { "id": 0, "type": "column", "value": "bowling_skill" }, { "id": 4, "type": "table", "value": "bowling_style" }, { "id": 2, "type": "column", "value": "country_name" }, { "id": 6, "type": "column", "value": "country_id" }, { "id": 7, "type": "c...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O" ]
4,326
student_loan
bird:train.json:4457
List all the disabled female students.
SELECT T1.name FROM disabled AS T1 INNER JOIN male AS T2 ON T1.name <> T2.name
[ "List", "all", "the", "disabled", "female", "students", "." ]
[ { "id": 1, "type": "table", "value": "disabled" }, { "id": 0, "type": "column", "value": "name" }, { "id": 2, "type": "table", "value": "male" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-TABLE", "B-TABLE", "O", "O" ]
4,327
cinema
spider:train_spider.json:1952
Give me the title and highest price for each film.
SELECT T2.title , max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id
[ "Give", "me", "the", "title", "and", "highest", "price", "for", "each", "film", "." ]
[ { "id": 2, "type": "table", "value": "schedule" }, { "id": 0, "type": "column", "value": "film_id" }, { "id": 1, "type": "column", "value": "title" }, { "id": 4, "type": "column", "value": "price" }, { "id": 3, "type": "table", "value": "fi...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 6 ] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
4,328
world_development_indicators
bird:train.json:2160
Mention the series code of countries using pound sterling as their currency unit. Which country belongs to high income group among them.
SELECT DISTINCT T1.CountryCode, T1.CurrencyUnit, T1.IncomeGroup FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Pound sterling' AND T1.IncomeGroup LIKE '%high income%'
[ "Mention", "the", "series", "code", "of", "countries", "using", "pound", "sterling", "as", "their", "currency", "unit", ".", "Which", "country", "belongs", "to", "high", "income", "group", "among", "them", "." ]
[ { "id": 5, "type": "value", "value": "Pound sterling" }, { "id": 6, "type": "value", "value": "%high income%" }, { "id": 1, "type": "column", "value": "currencyunit" }, { "id": 4, "type": "table", "value": "countrynotes" }, { "id": 0, "type": "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 11, 12 ] }, { "entity_id": 2, "token_idxs": [ 19, 20 ] }, { "entity_id": 3, "token_idxs": [ 15 ] }, { "entity_id": 4, "token_idxs": [ 5 ...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "O", "O", "O" ]
4,329
world
bird:train.json:7820
List any five countries which use English as an official language.
SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' LIMIT 5
[ "List", "any", "five", "countries", "which", "use", "English", "as", "an", "official", "language", "." ]
[ { "id": 2, "type": "table", "value": "countrylanguage" }, { "id": 4, "type": "column", "value": "countrycode" }, { "id": 7, "type": "column", "value": "isofficial" }, { "id": 5, "type": "column", "value": "language" }, { "id": 1, "type": "table...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 10 ...
[ "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "B-COLUMN", "O" ]
4,330
computer_student
bird:train.json:990
Is the teacher who teaches course no.9 a faculty member?
SELECT T2.hasPosition FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T1.course_id = 9
[ "Is", "the", "teacher", "who", "teaches", "course", "no.9", "a", "faculty", "member", "?" ]
[ { "id": 0, "type": "column", "value": "hasposition" }, { "id": 3, "type": "column", "value": "course_id" }, { "id": 1, "type": "table", "value": "taughtby" }, { "id": 2, "type": "table", "value": "person" }, { "id": 5, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O" ]
4,331
film_rank
spider:train_spider.json:4130
Please show the titles of films and the types of market estimations.
SELECT T1.Title , T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID
[ "Please", "show", "the", "titles", "of", "films", "and", "the", "types", "of", "market", "estimations", "." ]
[ { "id": 3, "type": "table", "value": "film_market_estimation" }, { "id": 4, "type": "column", "value": "film_id" }, { "id": 0, "type": "column", "value": "title" }, { "id": 1, "type": "column", "value": "type" }, { "id": 2, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 10, 11 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O" ]
4,332
cre_Doc_and_collections
bird:test.json:721
How many collections does each document belong to? List the count and the document id.
SELECT count(*) , T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID GROUP BY T2.Document_Object_ID
[ "How", "many", "collections", "does", "each", "document", "belong", "to", "?", "List", "the", "count", "and", "the", "document", "i", "d." ]
[ { "id": 2, "type": "table", "value": "documents_in_collections" }, { "id": 0, "type": "column", "value": "document_object_id" }, { "id": 3, "type": "column", "value": "collection_id" }, { "id": 1, "type": "table", "value": "collections" } ]
[ { "entity_id": 0, "token_idxs": [ 14, 15, 16 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "B-TABLE", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN" ]
4,334
activity_1
spider:train_spider.json:6800
What are the first names of the faculty members playing both Canoeing and Kayaking?
SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T...
[ "What", "are", "the", "first", "names", "of", "the", "faculty", "members", "playing", "both", "Canoeing", "and", "Kayaking", "?" ]
[ { "id": 6, "type": "table", "value": "faculty_participates_in" }, { "id": 2, "type": "column", "value": "activity_name" }, { "id": 1, "type": "table", "value": "activity" }, { "id": 3, "type": "value", "value": "Canoeing" }, { "id": 4, "type": ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O" ]
4,335
cre_Drama_Workshop_Groups
spider:train_spider.json:5159
Which cities have at least one customer but no performer?
SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID
[ "Which", "cities", "have", "at", "least", "one", "customer", "but", "no", "performer", "?" ]
[ { "id": 3, "type": "table", "value": "performers" }, { "id": 4, "type": "column", "value": "address_id" }, { "id": 0, "type": "column", "value": "city_town" }, { "id": 1, "type": "table", "value": "addresses" }, { "id": 2, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O" ]
4,336
city_record
spider:train_spider.json:6301
For each competition, count the number of matches.
SELECT count(*) , Competition FROM MATCH GROUP BY Competition
[ "For", "each", "competition", ",", "count", "the", "number", "of", "matches", "." ]
[ { "id": 1, "type": "column", "value": "competition" }, { "id": 0, "type": "table", "value": "match" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
4,337
movies_4
bird:train.json:510
Tell the language of the movie "C'era una volta il West".
SELECT T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T1.title LIKE 'C%era una volta il West'
[ "Tell", "the", "language", "of", "the", "movie", "\"", "C'era", "una", "volta", "il", "West", "\"", "." ]
[ { "id": 3, "type": "value", "value": "C%era una volta il West" }, { "id": 5, "type": "table", "value": "movie_languages" }, { "id": 0, "type": "column", "value": "language_name" }, { "id": 6, "type": "column", "value": "language_id" }, { "id": 1, ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7, 8, 9, 10, 11 ] }, { "entity_id": 4, "token_idxs": [ 5 ...
[ "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
4,338
loan_1
spider:train_spider.json:3034
Find the total account balance of each customer from Utah or Texas.
SELECT sum(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas'
[ "Find", "the", "total", "account", "balance", "of", "each", "customer", "from", "Utah", "or", "Texas", "." ]
[ { "id": 0, "type": "table", "value": "customer" }, { "id": 1, "type": "column", "value": "acc_bal" }, { "id": 2, "type": "column", "value": "state" }, { "id": 4, "type": "value", "value": "Texas" }, { "id": 3, "type": "value", "value": "Uta...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "B-VALUE", "O" ]
4,340
sales_in_weather
bird:train.json:8194
Among the stations with 3 stores, how many stations have a station pressure of no more than 30 on February 18, 2014?
SELECT COUNT(station_nbr) FROM weather WHERE `date` = '2014-02-18' AND stnpressure < 30 AND station_nbr IN ( SELECT station_nbr FROM relation GROUP BY station_nbr HAVING COUNT(store_nbr) = 3 )
[ "Among", "the", "stations", "with", "3", "stores", ",", "how", "many", "stations", "have", "a", "station", "pressure", "of", "no", "more", "than", "30", "on", "February", "18", ",", "2014", "?" ]
[ { "id": 1, "type": "column", "value": "station_nbr" }, { "id": 4, "type": "column", "value": "stnpressure" }, { "id": 3, "type": "value", "value": "2014-02-18" }, { "id": 8, "type": "column", "value": "store_nbr" }, { "id": 6, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity_id": 5, "token_idxs": [ 18 ...
[ "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O" ]
4,341
social_media
bird:train.json:839
How many reshared tweets have over 100 likes?
SELECT COUNT(DISTINCT TweetID) FROM twitter WHERE IsReshare = 'TRUE' AND Likes > 100
[ "How", "many", "reshared", "tweets", "have", "over", "100", "likes", "?" ]
[ { "id": 2, "type": "column", "value": "isreshare" }, { "id": 0, "type": "table", "value": "twitter" }, { "id": 1, "type": "column", "value": "tweetid" }, { "id": 4, "type": "column", "value": "likes" }, { "id": 3, "type": "value", "value": ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
4,343
club_leader
bird:test.json:646
What are the names and nationalities of the members?
SELECT Name , Nationality FROM member
[ "What", "are", "the", "names", "and", "nationalities", "of", "the", "members", "?" ]
[ { "id": 2, "type": "column", "value": "nationality" }, { "id": 0, "type": "table", "value": "member" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
4,344
epinions_1
spider:train_spider.json:1698
Find the names of users who did not leave any review.
SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)
[ "Find", "the", "names", "of", "users", "who", "did", "not", "leave", "any", "review", "." ]
[ { "id": 0, "type": "table", "value": "useracct" }, { "id": 3, "type": "table", "value": "review" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "column", "value": "u_id" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
4,346
legislator
bird:train.json:4889
What is the current official Instagram handle of current legislator Bob Corker?
SELECT T2.instagram FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Bob Corker'
[ "What", "is", "the", "current", "official", "Instagram", "handle", "of", "current", "legislator", "Bob", "Corker", "?" ]
[ { "id": 3, "type": "column", "value": "official_full_name" }, { "id": 2, "type": "table", "value": "social-media" }, { "id": 5, "type": "column", "value": "bioguide_id" }, { "id": 4, "type": "value", "value": "Bob Corker" }, { "id": 0, "type": ...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [ 10, 11 ] }, { ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O" ]
4,347
boat_1
bird:test.json:861
Find the id of Sailors (sid) that reserved red or blue boat.
SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid WHERE T1.color = 'red' OR T1.color = "blue"
[ "Find", "the", "i", "d", "of", "Sailors", "(", "sid", ")", "that", "reserved", "red", "or", "blue", "boat", "." ]
[ { "id": 2, "type": "table", "value": "reserves" }, { "id": 1, "type": "table", "value": "boats" }, { "id": 4, "type": "column", "value": "color" }, { "id": 6, "type": "column", "value": "blue" }, { "id": 0, "type": "column", "value": "sid" ...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 14 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 2, 3 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-VALUE", "O", "B-COLUMN", "B-TABLE", "O" ]
4,348
movie
bird:train.json:762
Among the actors born in New York City, list the genre of their movie with a rating greater than 5.
SELECT T1.Genre FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.`Birth City` = 'New York City' AND T1.Rating > 5
[ "Among", "the", "actors", "born", "in", "New", "York", "City", ",", "list", "the", "genre", "of", "their", "movie", "with", "a", "rating", "greater", "than", "5", "." ]
[ { "id": 6, "type": "value", "value": "New York City" }, { "id": 3, "type": "table", "value": "characters" }, { "id": 5, "type": "column", "value": "Birth City" }, { "id": 4, "type": "column", "value": "actorid" }, { "id": 9, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
4,350
voter_2
spider:train_spider.json:5463
Show the advisors of the students whose city of residence has city code "BAL".
SELECT Advisor FROM STUDENT WHERE city_code = "BAL"
[ "Show", "the", "advisors", "of", "the", "students", "whose", "city", "of", "residence", "has", "city", "code", "\"", "BAL", "\"", "." ]
[ { "id": 2, "type": "column", "value": "city_code" }, { "id": 0, "type": "table", "value": "student" }, { "id": 1, "type": "column", "value": "advisor" }, { "id": 3, "type": "column", "value": "BAL" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 11, 12 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O" ]
4,352
sakila_1
spider:train_spider.json:2950
Which film has the most number of actors or actresses? List the film name, film id and description.
SELECT T2.title , T2.film_id , T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1
[ "Which", "film", "has", "the", "most", "number", "of", "actors", "or", "actresses", "?", "List", "the", "film", "name", ",", "film", "i", "d", "and", "description", "." ]
[ { "id": 2, "type": "column", "value": "description" }, { "id": 3, "type": "table", "value": "film_actor" }, { "id": 0, "type": "column", "value": "film_id" }, { "id": 1, "type": "column", "value": "title" }, { "id": 4, "type": "table", "val...
[ { "entity_id": 0, "token_idxs": [ 17, 18 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 20 ] }, { "entity_id": 3, "token_idxs": [ 6, 7 ] }, { "entity_id": 4, "token_idxs": [ 16 ]...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O" ]
4,353
works_cycles
bird:train.json:7076
How many vacation hours do the male employees have on average?
SELECT CAST(SUM(T1.VacationHours) AS REAL) / COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Gender = 'M' AND T2.PersonType = 'EM'
[ "How", "many", "vacation", "hours", "do", "the", "male", "employees", "have", "on", "average", "?" ]
[ { "id": 2, "type": "column", "value": "businessentityid" }, { "id": 7, "type": "column", "value": "vacationhours" }, { "id": 5, "type": "column", "value": "persontype" }, { "id": 0, "type": "table", "value": "employee" }, { "id": 1, "type": "ta...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O" ]
4,354
talkingdata
bird:train.json:1142
Please list the app IDs of all the users in the Securities category.
SELECT T2.app_id FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T1.category = 'Securities'
[ "Please", "list", "the", "app", "IDs", "of", "all", "the", "users", "in", "the", "Securities", "category", "." ]
[ { "id": 1, "type": "table", "value": "label_categories" }, { "id": 2, "type": "table", "value": "app_labels" }, { "id": 4, "type": "value", "value": "Securities" }, { "id": 3, "type": "column", "value": "category" }, { "id": 5, "type": "column"...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity_id...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
4,355
food_inspection_2
bird:train.json:6189
Calculate the percentage of inspections with verified quality. Among them, how many businesses were from Chicago?
SELECT CAST(COUNT(CASE WHEN T2.results LIKE '%Pass%' THEN T2.inspection_id END) AS REAL) * 100 / COUNT(T2.inspection_id), COUNT(DISTINCT T2.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.city = 'CHICAGO'
[ "Calculate", "the", "percentage", "of", "inspections", "with", "verified", "quality", ".", "Among", "them", ",", "how", "many", "businesses", "were", "from", "Chicago", "?" ]
[ { "id": 0, "type": "table", "value": "establishment" }, { "id": 6, "type": "column", "value": "inspection_id" }, { "id": 1, "type": "table", "value": "inspection" }, { "id": 4, "type": "column", "value": "license_no" }, { "id": 3, "type": "valu...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 17 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
4,356
coffee_shop
spider:train_spider.json:804
which shop has happy hour most frequently? List its id and number of happy hours.
SELECT shop_id , count(*) FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1
[ "which", "shop", "has", "happy", "hour", "most", "frequently", "?", "List", "its", "i", "d", "and", "number", "of", "happy", "hours", "." ]
[ { "id": 0, "type": "table", "value": "happy_hour" }, { "id": 1, "type": "column", "value": "shop_id" } ]
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
4,357
store_1
spider:train_spider.json:555
List every album whose title starts with A in alphabetical order.
SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;
[ "List", "every", "album", "whose", "title", "starts", "with", "A", "in", "alphabetical", "order", "." ]
[ { "id": 0, "type": "table", "value": "albums" }, { "id": 1, "type": "column", "value": "title" }, { "id": 2, "type": "value", "value": "A%" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O" ]
4,358
sales
bird:train.json:5461
List the first name of all the customers whose last name is Chen.
SELECT FirstName, LastName FROM Customers WHERE LastName = 'Chen'
[ "List", "the", "first", "name", "of", "all", "the", "customers", "whose", "last", "name", "is", "Chen", "." ]
[ { "id": 0, "type": "table", "value": "customers" }, { "id": 1, "type": "column", "value": "firstname" }, { "id": 2, "type": "column", "value": "lastname" }, { "id": 3, "type": "value", "value": "Chen" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 9, 10 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
4,359
climbing
spider:train_spider.json:1119
Count the number of different countries that climbers are from.
SELECT COUNT(DISTINCT Country) FROM climber
[ "Count", "the", "number", "of", "different", "countries", "that", "climbers", "are", "from", "." ]
[ { "id": 0, "type": "table", "value": "climber" }, { "id": 1, "type": "column", "value": "country" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 0 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O" ]
4,360
address
bird:train.json:5156
List down the area code and country of the city named Savoy.
SELECT T1.area_code, T2.county FROM area_code AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code INNER JOIN zip_data AS T3 ON T1.zip_code = T3.zip_code WHERE T3.city = 'Savoy'
[ "List", "down", "the", "area", "code", "and", "country", "of", "the", "city", "named", "Savoy", "." ]
[ { "id": 0, "type": "column", "value": "area_code" }, { "id": 5, "type": "table", "value": "area_code" }, { "id": 2, "type": "table", "value": "zip_data" }, { "id": 7, "type": "column", "value": "zip_code" }, { "id": 6, "type": "table", "val...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-VALUE", "O" ]
4,361
soccer_2016
bird:train.json:1801
What is the role of SC Ganguly in the match on 2008/4/18?
SELECT T2.Role_Id FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id INNER JOIN Match AS T4 ON T2.Match_Id = T4.Match_Id WHERE T1.Player_Name = 'SC Ganguly' AND T4.Match_Date = '2008-04-18'
[ "What", "is", "the", "role", "of", "SC", "Ganguly", "in", "the", "match", "on", "2008/4/18", "?" ]
[ { "id": 9, "type": "table", "value": "player_match" }, { "id": 4, "type": "column", "value": "player_name" }, { "id": 5, "type": "value", "value": "SC Ganguly" }, { "id": 6, "type": "column", "value": "match_date" }, { "id": 7, "type": "value",...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "B-TABLE", "O", "B-VALUE", "O" ]
4,362
legislator
bird:train.json:4756
How many males were members of the current legislators?
SELECT COUNT(*) FROM current WHERE gender_bio = 'M'
[ "How", "many", "males", "were", "members", "of", "the", "current", "legislators", "?" ]
[ { "id": 1, "type": "column", "value": "gender_bio" }, { "id": 0, "type": "table", "value": "current" }, { "id": 2, "type": "value", "value": "M" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O" ]
4,363
music_4
spider:train_spider.json:6199
Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.
SELECT RESULT , COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC
[ "Please", "show", "the", "results", "of", "music", "festivals", "and", "the", "number", "of", "music", "festivals", "that", "have", "had", "each", ",", "ordered", "by", "this", "count", "." ]
[ { "id": 0, "type": "table", "value": "music_festival" }, { "id": 1, "type": "column", "value": "result" } ]
[ { "entity_id": 0, "token_idxs": [ 5, 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
4,364
bike_share_1
bird:train.json:9014
What is the maximum humidity in Powell Street BART when bike 496 was borrowed from the station on 8/29/2013?
SELECT T2.max_humidity FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.start_date LIKE '8/29/2013%' AND T1.bike_id = 496 AND T1.start_station_name = 'Powell Street BART'
[ "What", "is", "the", "maximum", "humidity", "in", "Powell", "Street", "BART", "when", "bike", "496", "was", "borrowed", "from", "the", "station", "on", "8/29/2013", "?" ]
[ { "id": 8, "type": "column", "value": "start_station_name" }, { "id": 9, "type": "value", "value": "Powell Street BART" }, { "id": 0, "type": "column", "value": "max_humidity" }, { "id": 4, "type": "column", "value": "start_date" }, { "id": 5, ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O" ]
4,365
thrombosis_prediction
bird:dev.json:1221
Provide the ID, sex, birthday of all patients diagnosed with 'RA' that are within the UN normal index.
SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis = 'RA'
[ "Provide", "the", "ID", ",", "sex", ",", "birthday", "of", "all", "patients", "diagnosed", "with", "'", "RA", "'", "that", "are", "within", "the", "UN", "normal", "index", "." ]
[ { "id": 4, "type": "table", "value": "laboratory" }, { "id": 7, "type": "column", "value": "diagnosis" }, { "id": 2, "type": "column", "value": "birthday" }, { "id": 3, "type": "table", "value": "patient" }, { "id": 1, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O" ]
4,366
movies_4
bird:train.json:530
List all the unspecified gender characters.
SELECT T1.character_name FROM movie_cast AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.gender_id WHERE T2.gender = 'Unspecified'
[ "List", "all", "the", "unspecified", "gender", "characters", "." ]
[ { "id": 0, "type": "column", "value": "character_name" }, { "id": 4, "type": "value", "value": "Unspecified" }, { "id": 1, "type": "table", "value": "movie_cast" }, { "id": 5, "type": "column", "value": "gender_id" }, { "id": 2, "type": "table"...
[ { "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": [ 3 ] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-VALUE", "B-COLUMN", "B-COLUMN", "O" ]
4,367
soccer_2016
bird:train.json:1919
List all Zimbabwean players.
SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id WHERE T2.Country_Name = 'Zimbabwea'
[ "List", "all", "Zimbabwean", "players", "." ]
[ { "id": 3, "type": "column", "value": "country_name" }, { "id": 0, "type": "column", "value": "player_name" }, { "id": 5, "type": "column", "value": "country_id" }, { "id": 4, "type": "value", "value": "Zimbabwea" }, { "id": 2, "type": "table",...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 2 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-VALUE", "B-TABLE", "O" ]
4,368
tracking_grants_for_research
spider:train_spider.json:4361
What are the ids, types, and details of the organization with the most research staff?
SELECT T1.organisation_id , T1.organisation_type , T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1
[ "What", "are", "the", "ids", ",", "types", ",", "and", "details", "of", "the", "organization", "with", "the", "most", "research", "staff", "?" ]
[ { "id": 5, "type": "column", "value": "employer_organisation_id" }, { "id": 2, "type": "column", "value": "organisation_details" }, { "id": 1, "type": "column", "value": "organisation_type" }, { "id": 0, "type": "column", "value": "organisation_id" }, ...
[ { "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": [ 15, 16 ] }, { "entity_id": 5, "t...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "I-TABLE", "O" ]
4,369
vehicle_driver
bird:test.json:189
What are the name and citizenship of the drivers who have driven the vehicle model 'DJ1'?
SELECT T1.name , T1.citizenship FROM driver AS T1 JOIN vehicle_driver AS T2 ON T1.driver_id = T2.driver_id JOIN vehicle AS T3 ON T2.vehicle_id = T3.vehicle_id WHERE T3.model = 'DJ1'
[ "What", "are", "the", "name", "and", "citizenship", "of", "the", "drivers", "who", "have", "driven", "the", "vehicle", "model", "'", "DJ1", "'", "?" ]
[ { "id": 6, "type": "table", "value": "vehicle_driver" }, { "id": 1, "type": "column", "value": "citizenship" }, { "id": 7, "type": "column", "value": "vehicle_id" }, { "id": 8, "type": "column", "value": "driver_id" }, { "id": 2, "type": "table...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 13 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [ 16 ] }, ...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "O" ]
4,370
race_track
spider:train_spider.json:774
Give the names of tracks that do not have a race in the class 'GT'.
SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT'
[ "Give", "the", "names", "of", "tracks", "that", "do", "not", "have", "a", "race", "in", "the", "class", "'", "GT", "'", "." ]
[ { "id": 5, "type": "column", "value": "track_id" }, { "id": 0, "type": "table", "value": "track" }, { "id": 3, "type": "column", "value": "class" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "table", "value": "race"...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ 15 ] }, ...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O" ]
4,372
soccer_2016
bird:train.json:1949
Which year do the majority of the players were born?
SELECT DOB FROM Player GROUP BY DOB ORDER BY COUNT(DOB) DESC LIMIT 1
[ "Which", "year", "do", "the", "majority", "of", "the", "players", "were", "born", "?" ]
[ { "id": 0, "type": "table", "value": "player" }, { "id": 1, "type": "column", "value": "dob" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O" ]
4,373
district_spokesman
bird:test.json:1196
Find the names of districts which have more than one spokesman.
SELECT t1.name FROM district AS t1 JOIN spokesman_district AS t2 ON t1.District_ID = t2.District_ID GROUP BY t2.District_ID HAVING count(*) > 1
[ "Find", "the", "names", "of", "districts", "which", "have", "more", "than", "one", "spokesman", "." ]
[ { "id": 3, "type": "table", "value": "spokesman_district" }, { "id": 0, "type": "column", "value": "district_id" }, { "id": 2, "type": "table", "value": "district" }, { "id": 1, "type": "column", "value": "name" }, { "id": 4, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
4,375
book_1
bird:test.json:525
How many clients are there?
SELECT count(*) FROM Client
[ "How", "many", "clients", "are", "there", "?" ]
[ { "id": 0, "type": "table", "value": "client" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "O", "O" ]
4,376
activity_1
spider:train_spider.json:6794
Find the name of the activity that has the largest number of student participants.
SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1
[ "Find", "the", "name", "of", "the", "activity", "that", "has", "the", "largest", "number", "of", "student", "participants", "." ]
[ { "id": 3, "type": "table", "value": "participates_in" }, { "id": 1, "type": "column", "value": "activity_name" }, { "id": 2, "type": "table", "value": "activity" }, { "id": 0, "type": "column", "value": "actid" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
4,377
book_press
bird:test.json:1983
how many authors are under age 30?
SELECT count(*) FROM author WHERE age < 30
[ "how", "many", "authors", "are", "under", "age", "30", "?" ]
[ { "id": 0, "type": "table", "value": "author" }, { "id": 1, "type": "column", "value": "age" }, { "id": 2, "type": "value", "value": "30" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-VALUE", "O" ]
4,378
music_2
spider:train_spider.json:5238
Who performed the song named "Le Pop"?
SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Le Pop"
[ "Who", "performed", "the", "song", "named", "\"", "Le", "Pop", "\"", "?" ]
[ { "id": 5, "type": "table", "value": "performance" }, { "id": 0, "type": "column", "value": "firstname" }, { "id": 1, "type": "column", "value": "lastname" }, { "id": 8, "type": "column", "value": "bandmate" }, { "id": 4, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 6, 7 ] }, { "entity_id":...
[ "O", "B-TABLE", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O" ]
4,379
planet_1
bird:test.json:1873
Count the number of packages sent by Ogden Wernstrom and received by Leo Wong.
SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Ogden Wernstrom" INTERSECT SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber WHERE T2.Name = "Leo Wong"
[ "Count", "the", "number", "of", "packages", "sent", "by", "Ogden", "Wernstrom", "and", "received", "by", "Leo", "Wong", "." ]
[ { "id": 4, "type": "column", "value": "Ogden Wernstrom" }, { "id": 0, "type": "column", "value": "packagenumber" }, { "id": 7, "type": "column", "value": "accountnumber" }, { "id": 8, "type": "column", "value": "recipient" }, { "id": 5, "type":...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [ 7, 8 ] }, { "entity_id":...
[ "B-COLUMN", "I-COLUMN", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O" ]
4,380
pilot_1
bird:test.json:1119
What is the name of the least popular plane?
SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) LIMIT 1
[ "What", "is", "the", "name", "of", "the", "least", "popular", "plane", "?" ]
[ { "id": 0, "type": "table", "value": "pilotskills" }, { "id": 1, "type": "column", "value": "plane_name" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
4,381
retail_world
bird:train.json:6341
Tell the name of the shipper company for the order No.10585.
SELECT T2.CompanyName FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.OrderID = 10585
[ "Tell", "the", "name", "of", "the", "shipper", "company", "for", "the", "order", "No.10585", "." ]
[ { "id": 0, "type": "column", "value": "companyname" }, { "id": 6, "type": "column", "value": "shipperid" }, { "id": 2, "type": "table", "value": "shippers" }, { "id": 3, "type": "column", "value": "orderid" }, { "id": 5, "type": "column", "...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity...
[ "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "B-VALUE", "O" ]
4,382
codebase_community
bird:dev.json:616
What is the comment's rating score of the post which was created on 7/19/2010 7:19:56 PM
SELECT T1.Score FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.CreationDate = '2010-07-19 19:19:56.0'
[ "What", "is", "the", "comment", "'s", "rating", "score", "of", "the", "post", "which", "was", "created", "on", "7/19/2010", "7:19:56", "PM" ]
[ { "id": 4, "type": "value", "value": "2010-07-19 19:19:56.0" }, { "id": 3, "type": "column", "value": "creationdate" }, { "id": 1, "type": "table", "value": "comments" }, { "id": 5, "type": "column", "value": "postid" }, { "id": 0, "type": "col...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 12, 13 ] }, { "entity_id": 4, "token_idxs": [ ...
[ "O", "O", "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "I-VALUE", "O" ]
4,383
college_2
spider:train_spider.json:1475
List the distinct names of the instructors, ordered by name.
SELECT DISTINCT name FROM instructor ORDER BY name
[ "List", "the", "distinct", "names", "of", "the", "instructors", ",", "ordered", "by", "name", "." ]
[ { "id": 0, "type": "table", "value": "instructor" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O" ]
4,384
formula_1
bird:dev.json:853
Please give the names of the races held on the circuits in Spain.
SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Spain'
[ "Please", "give", "the", "names", "of", "the", "races", "held", "on", "the", "circuits", "in", "Spain", "." ]
[ { "id": 5, "type": "column", "value": "circuitid" }, { "id": 1, "type": "table", "value": "circuits" }, { "id": 3, "type": "column", "value": "country" }, { "id": 2, "type": "table", "value": "races" }, { "id": 4, "type": "value", "value": ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entit...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O" ]
4,385
world
bird:train.json:7894
What is the year of independence of Brunei?
SELECT IndepYear FROM Country WHERE Name = 'Brunei'
[ "What", "is", "the", "year", "of", "independence", "of", "Brunei", "?" ]
[ { "id": 1, "type": "column", "value": "indepyear" }, { "id": 0, "type": "table", "value": "country" }, { "id": 3, "type": "value", "value": "Brunei" }, { "id": 2, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O" ]
4,387
match_season
spider:train_spider.json:1087
Count the number of different colleges that players who play for Columbus Crew are from.
SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew"
[ "Count", "the", "number", "of", "different", "colleges", "that", "players", "who", "play", "for", "Columbus", "Crew", "are", "from", "." ]
[ { "id": 3, "type": "column", "value": "Columbus Crew" }, { "id": 0, "type": "table", "value": "match_season" }, { "id": 4, "type": "column", "value": "college" }, { "id": 6, "type": "column", "value": "team_id" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [ 11, 12 ] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entity_id...
[ "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O" ]
4,388
retails
bird:train.json:6679
Please list the order keys of all the orders made by a customer whose account is in debt.
SELECT T1.o_orderkey FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_acctbal < 0
[ "Please", "list", "the", "order", "keys", "of", "all", "the", "orders", "made", "by", "a", "customer", "whose", "account", "is", "in", "debt", "." ]
[ { "id": 0, "type": "column", "value": "o_orderkey" }, { "id": 3, "type": "column", "value": "c_acctbal" }, { "id": 5, "type": "column", "value": "o_custkey" }, { "id": 6, "type": "column", "value": "c_custkey" }, { "id": 2, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O" ]
4,389
e_government
spider:train_spider.json:6309
What are the first, middle, and last names of all individuals, ordered by last name?
SELECT individual_first_name , individual_middle_name , individual_last_name FROM individuals ORDER BY individual_last_name
[ "What", "are", "the", "first", ",", "middle", ",", "and", "last", "names", "of", "all", "individuals", ",", "ordered", "by", "last", "name", "?" ]
[ { "id": 2, "type": "column", "value": "individual_middle_name" }, { "id": 1, "type": "column", "value": "individual_first_name" }, { "id": 3, "type": "column", "value": "individual_last_name" }, { "id": 0, "type": "table", "value": "individuals" } ]
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 13, 14 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "t...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O" ]
4,390
sing_contest
bird:test.json:751
What are the id and name of the participants who received score 5 for their sound quality or rhythm tempo?
SELECT T1.id , T1.name FROM participants AS T1 JOIN performance_score AS T2 ON T2.participant_id = T1.id WHERE T2.voice_sound_quality = 5 OR T2.rhythm_tempo = 5
[ "What", "are", "the", "i", "d", "and", "name", "of", "the", "participants", "who", "received", "score", "5", "for", "their", "sound", "quality", "or", "rhythm", "tempo", "?" ]
[ { "id": 5, "type": "column", "value": "voice_sound_quality" }, { "id": 3, "type": "table", "value": "performance_score" }, { "id": 4, "type": "column", "value": "participant_id" }, { "id": 2, "type": "table", "value": "participants" }, { "id": 7, ...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O" ]
4,391
talkingdata
bird:train.json:1183
How many active users are there in the event?
SELECT COUNT(app_id) FROM app_events WHERE is_active = 1
[ "How", "many", "active", "users", "are", "there", "in", "the", "event", "?" ]
[ { "id": 0, "type": "table", "value": "app_events" }, { "id": 1, "type": "column", "value": "is_active" }, { "id": 3, "type": "column", "value": "app_id" }, { "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": ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
4,392
shakespeare
bird:train.json:3060
In Shakespeare's works before 1600, list down the title of the tragic story he had written that involved a character named "Tybalt".
SELECT DISTINCT T1.title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.DATE < 1600 AND T1.GenreType = 'Tragedy' AND T4.CharName = 'Tybalt'
[ "In", "Shakespeare", "'s", "works", "before", "1600", ",", "list", "down", "the", "title", "of", "the", "tragic", "story", "he", "had", "written", "that", "involved", "a", "character", "named", "\"", "Tybalt", "\"", "." ]
[ { "id": 3, "type": "column", "value": "character_id" }, { "id": 1, "type": "table", "value": "characters" }, { "id": 2, "type": "table", "value": "paragraphs" }, { "id": 13, "type": "column", "value": "chapter_id" }, { "id": 7, "type": "column"...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O" ]
4,393
public_review_platform
bird:train.json:3859
How many Yelp_Business under the category of "Food" are good for kids?
SELECT COUNT(T3.stars) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Attributes AS T4 ON T3.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE...
[ "How", "many", "Yelp_Business", "under", "the", "category", "of", "\"", "Food", "\"", "are", "good", "for", "kids", "?" ]
[ { "id": 2, "type": "table", "value": "business_attributes" }, { "id": 13, "type": "table", "value": "business_categories" }, { "id": 8, "type": "column", "value": "attribute_value" }, { "id": 6, "type": "column", "value": "attribute_name" }, { "id"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 8 ] }, { ...
[ "O", "O", "B-TABLE", "B-TABLE", "I-TABLE", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
4,394
college_2
spider:train_spider.json:1328
Find the room number of the rooms which can sit 50 to 100 students and their buildings.
SELECT building , room_number FROM classroom WHERE capacity BETWEEN 50 AND 100
[ "Find", "the", "room", "number", "of", "the", "rooms", "which", "can", "sit", "50", "to", "100", "students", "and", "their", "buildings", "." ]
[ { "id": 2, "type": "column", "value": "room_number" }, { "id": 0, "type": "table", "value": "classroom" }, { "id": 1, "type": "column", "value": "building" }, { "id": 3, "type": "column", "value": "capacity" }, { "id": 5, "type": "value", "...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 16 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entit...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "O" ]
4,395
movie_3
bird:train.json:9231
Among films with store ID of 2, list the title of films with the highest rental rate.
SELECT T1.title FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.store_id = 2 ORDER BY rental_rate DESC LIMIT 1
[ "Among", "films", "with", "store", "ID", "of", "2", ",", "list", "the", "title", "of", "films", "with", "the", "highest", "rental", "rate", "." ]
[ { "id": 5, "type": "column", "value": "rental_rate" }, { "id": 2, "type": "table", "value": "inventory" }, { "id": 3, "type": "column", "value": "store_id" }, { "id": 6, "type": "column", "value": "film_id" }, { "id": 0, "type": "column", "...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 3, 4 ] }, { "entity_id": 4, "token_idxs": [ 6 ] }, { ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
4,396
retail_complains
bird:train.json:288
Calculate the difference in the average age of elderly and middle-aged clients in the Northeast region.
SELECT (CAST(SUM(CASE WHEN T1.age BETWEEN 35 AND 55 THEN T1.age ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age BETWEEN 35 AND 55 THEN 1 ELSE 0 END)) - (CAST(SUM(CASE WHEN T1.age > 65 THEN T1.age ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age > 65 THEN 1 ELSE 0 END)) AS difference FROM client AS T1 INNER JOIN district AS T2 O...
[ "Calculate", "the", "difference", "in", "the", "average", "age", "of", "elderly", "and", "middle", "-", "aged", "clients", "in", "the", "Northeast", "region", "." ]
[ { "id": 5, "type": "column", "value": "state_abbrev" }, { "id": 7, "type": "column", "value": "district_id" }, { "id": 2, "type": "value", "value": "Northeast" }, { "id": 6, "type": "column", "value": "statecode" }, { "id": 4, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 17 ] }, { "entity_id": 2, "token_idxs": [ 16 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
4,397
codebase_comments
bird:train.json:582
What is the linearized sequenced of API calls of the method whose solution path is "mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln"?
SELECT T2.ApiCalls FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'mauriciodeamorim_tdd.encontro2Tdd.Encontro2.sln'
[ "What", "is", "the", "linearized", "sequenced", "of", "API", "calls", "of", "the", "method", "whose", "solution", "path", "is", "\"", "mauriciodeamorim_tdd.encontro2\\Tdd", ".", "Encontro2.sln", "\"", "?" ]
[ { "id": 4, "type": "value", "value": "mauriciodeamorim_tdd.encontro2Tdd.Encontro2.sln" }, { "id": 6, "type": "column", "value": "solutionid" }, { "id": 0, "type": "column", "value": "apicalls" }, { "id": 1, "type": "table", "value": "solution" }, { ...
[ { "entity_id": 0, "token_idxs": [ 6, 7 ] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ 16, ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
4,398
disney
bird:train.json:4687
Provide the titles, main characters, and associated songs of the movies directed by Wolfgang Reitherman in 1977.
SELECT T1.movie_title, T2.hero, T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title INNER JOIN director AS T3 ON T1.movie_title = T3.name WHERE T3.director = 'Wolfgang Reitherman' AND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) = '1977'
[ "Provide", "the", "titles", ",", "main", "characters", ",", "and", "associated", "songs", "of", "the", "movies", "directed", "by", "Wolfgang", "Reitherman", "in", "1977", "." ]
[ { "id": 8, "type": "value", "value": "Wolfgang Reitherman" }, { "id": 4, "type": "table", "value": "movies_total_gross" }, { "id": 10, "type": "column", "value": "release_date" }, { "id": 0, "type": "column", "value": "movie_title" }, { "id": 5, ...
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "B-VALUE", "O" ]
4,399
donor
bird:train.json:3270
How many resources with a unit price less than 15 are not technology type? List them by vendor id
SELECT vendorid FROM resources WHERE project_resource_type = 'Technology' AND item_unit_price <= 15
[ "How", "many", "resources", "with", "a", "unit", "price", "less", "than", "15", "are", "not", "technology", "type", "?", "List", "them", "by", "vendor", "i", "d" ]
[ { "id": 2, "type": "column", "value": "project_resource_type" }, { "id": 4, "type": "column", "value": "item_unit_price" }, { "id": 3, "type": "value", "value": "Technology" }, { "id": 0, "type": "table", "value": "resources" }, { "id": 1, "typ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 18, 19, 20 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 5, ...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN" ]
4,400
works_cycles
bird:train.json:7035
Who is the company's highest-paid single female employee? Include her full name and job title.
SELECT T3.FirstName, T3.MiddleName, T3.LastName, T1.JobTitle FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Person AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.MaritalStatus = 'S' AND T1.Gender = 'F' ORDER BY T2.Rate DESC LIMIT 1
[ "Who", "is", "the", "company", "'s", "highest", "-", "paid", "single", "female", "employee", "?", "Include", "her", "full", "name", "and", "job", "title", "." ]
[ { "id": 7, "type": "table", "value": "employeepayhistory" }, { "id": 8, "type": "column", "value": "businessentityid" }, { "id": 9, "type": "column", "value": "maritalstatus" }, { "id": 1, "type": "column", "value": "middlename" }, { "id": 0, "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [ 17, 18 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "t...
[ "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O" ]
4,401
bike_share_1
bird:train.json:9051
Please list trips id started on the hottest day.
SELECT T1.id FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code ORDER BY T2.max_temperature_f DESC LIMIT 1
[ "Please", "list", "trips", "i", "d", "started", "on", "the", "hottest", "day", "." ]
[ { "id": 3, "type": "column", "value": "max_temperature_f" }, { "id": 4, "type": "column", "value": "zip_code" }, { "id": 2, "type": "table", "value": "weather" }, { "id": 1, "type": "table", "value": "trip" }, { "id": 0, "type": "column", "...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O" ]
4,402
public_review_platform
bird:train.json:3879
How many of the busineses are in Casa Grande?
SELECT COUNT(city) FROM Business WHERE city LIKE 'Casa Grande'
[ "How", "many", "of", "the", "busineses", "are", "in", "Casa", "Grande", "?" ]
[ { "id": 2, "type": "value", "value": "Casa Grande" }, { "id": 0, "type": "table", "value": "business" }, { "id": 1, "type": "column", "value": "city" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 7, 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O" ]
4,403
cre_Docs_and_Epenses
spider:train_spider.json:6412
How many documents correspond with each project id?
SELECT project_id , count(*) FROM Documents GROUP BY project_id
[ "How", "many", "documents", "correspond", "with", "each", "project", "i", "d", "?" ]
[ { "id": 1, "type": "column", "value": "project_id" }, { "id": 0, "type": "table", "value": "documents" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
4,404
world_development_indicators
bird:train.json:2180
Name the country with fastest growth in adjusted net national income in 1980 and state the currency used by this country.
SELECT T2.countryname, T1.CurrencyUnit FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Adjusted net national income (annual % growth)' AND T2.Year = 1980 AND T1.CurrencyUnit != '' ORDER BY T2.Value DESC LIMIT 1
[ "Name", "the", "country", "with", "fastest", "growth", "in", "adjusted", "net", "national", "income", "in", "1980", "and", "state", "the", "currency", "used", "by", "this", "country", "." ]
[ { "id": 7, "type": "value", "value": "Adjusted net national income (annual % growth)" }, { "id": 6, "type": "column", "value": "indicatorname" }, { "id": 1, "type": "column", "value": "currencyunit" }, { "id": 0, "type": "column", "value": "countryname" ...
[ { "entity_id": 0, "token_idxs": [ 20 ] }, { "entity_id": 1, "token_idxs": [ 16 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "B-VALUE", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O" ]
4,405
art_1
bird:test.json:1266
What are the names of both paintings and sculptures created between 1900 and 1950?
SELECT title FROM paintings WHERE YEAR BETWEEN 1900 AND 1950 UNION SELECT title FROM sculptures WHERE YEAR BETWEEN 1900 AND 1950
[ "What", "are", "the", "names", "of", "both", "paintings", "and", "sculptures", "created", "between", "1900", "and", "1950", "?" ]
[ { "id": 1, "type": "table", "value": "sculptures" }, { "id": 0, "type": "table", "value": "paintings" }, { "id": 2, "type": "column", "value": "title" }, { "id": 3, "type": "column", "value": "year" }, { "id": 4, "type": "value", "value": "...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "B-VALUE", "O" ]
4,406
hockey
bird:train.json:7623
Name all goalies with 10 or more empty net goals. Name the players and season where he played.
SELECT T1.firstName, T1.lastName , T2.year FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.ENG >= 10
[ "Name", "all", "goalies", "with", "10", "or", "more", "empty", "net", "goals", ".", "Name", "the", "players", "and", "season", "where", "he", "played", "." ]
[ { "id": 0, "type": "column", "value": "firstname" }, { "id": 1, "type": "column", "value": "lastname" }, { "id": 7, "type": "column", "value": "playerid" }, { "id": 4, "type": "table", "value": "goalies" }, { "id": 3, "type": "table", "valu...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 2 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
4,407
tracking_share_transactions
spider:train_spider.json:5851
Show all dates of transactions whose type code is "SALE".
SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code = "SALE"
[ "Show", "all", "dates", "of", "transactions", "whose", "type", "code", "is", "\"", "SALE", "\"", "." ]
[ { "id": 2, "type": "column", "value": "transaction_type_code" }, { "id": 1, "type": "column", "value": "date_of_transaction" }, { "id": 0, "type": "table", "value": "transactions" }, { "id": 3, "type": "column", "value": "SALE" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 5, 6, 7 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idx...
[ "O", "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "O" ]
4,408
customers_card_transactions
spider:train_spider.json:725
Show all card type codes and the number of customers holding cards in each type.
SELECT card_type_code , count(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code
[ "Show", "all", "card", "type", "codes", "and", "the", "number", "of", "customers", "holding", "cards", "in", "each", "type", "." ]
[ { "id": 0, "type": "table", "value": "customers_cards" }, { "id": 1, "type": "column", "value": "card_type_code" }, { "id": 2, "type": "column", "value": "customer_id" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2, 3, 4 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O" ]
4,409
phone_1
spider:train_spider.json:1047
Count the number of chip model that do not have wifi.
SELECT count(*) FROM chip_model WHERE wifi = 'No'
[ "Count", "the", "number", "of", "chip", "model", "that", "do", "not", "have", "wifi", "." ]
[ { "id": 0, "type": "table", "value": "chip_model" }, { "id": 1, "type": "column", "value": "wifi" }, { "id": 2, "type": "value", "value": "No" } ]
[ { "entity_id": 0, "token_idxs": [ 4, 5 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "B-VALUE", "O", "B-COLUMN", "O" ]