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
3,421
music_2
spider:train_spider.json:5257
What are the types of vocals that the musician with the last name "Heilo" played in "Der Kapitan"?
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = "Heilo" AND T2.title = "Der Kapitan"
[ "What", "are", "the", "types", "of", "vocals", "that", "the", "musician", "with", "the", "last", "name", "\"", "Heilo", "\"", "played", "in", "\"", "Der", "Kapitan", "\"", "?" ]
[ { "id": 9, "type": "column", "value": "Der Kapitan" }, { "id": 4, "type": "column", "value": "bandmate" }, { "id": 6, "type": "column", "value": "lastname" }, { "id": 2, "type": "table", "value": "vocals" }, { "id": 10, "type": "column", "v...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O" ]
3,422
food_inspection
bird:train.json:8805
How many establishments have an inspection score of no more than 50?
SELECT COUNT(DISTINCT business_id) FROM inspections WHERE score < 50
[ "How", "many", "establishments", "have", "an", "inspection", "score", "of", "no", "more", "than", "50", "?" ]
[ { "id": 0, "type": "table", "value": "inspections" }, { "id": 3, "type": "column", "value": "business_id" }, { "id": 1, "type": "column", "value": "score" }, { "id": 2, "type": "value", "value": "50" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O" ]
3,423
movie
bird:train.json:763
In romantic movies, how many of them starred by John Travolta?
SELECT COUNT(*) 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 T1.Genre = 'Romance' AND T3.Name = 'John Travolta'
[ "In", "romantic", "movies", ",", "how", "many", "of", "them", "starred", "by", "John", "Travolta", "?" ]
[ { "id": 7, "type": "value", "value": "John Travolta" }, { "id": 2, "type": "table", "value": "characters" }, { "id": 3, "type": "column", "value": "actorid" }, { "id": 5, "type": "value", "value": "Romance" }, { "id": 8, "type": "column", "...
[ { "entity_id": 0, "token_idxs": [] }, { "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": [ 1 ...
[ "O", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O" ]
3,424
hockey
bird:train.json:7700
For the team had the biggest power play percentage in 2011, who was their coach that season? Give the full name.
SELECT T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID WHERE T2.year = 2011 ORDER BY CAST(T2.PPG AS REAL) / T2.PPC DESC LIMIT 1
[ "For", "the", "team", "had", "the", "biggest", "power", "play", "percentage", "in", "2011", ",", "who", "was", "their", "coach", "that", "season", "?", "Give", "the", "full", "name", "." ]
[ { "id": 0, "type": "column", "value": "coachid" }, { "id": 1, "type": "table", "value": "coaches" }, { "id": 2, "type": "table", "value": "teams" }, { "id": 3, "type": "column", "value": "year" }, { "id": 4, "type": "value", "value": "2011"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 15 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,425
books
bird:train.json:5924
Among the books ordered by Lucas Wyldbore, how many of them are over 300 pages?
SELECT COUNT(*) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Lucas' AND T4.last_name = 'Wyldbore' AND T1.num_pages > 300
[ "Among", "the", "books", "ordered", "by", "Lucas", "Wyldbore", ",", "how", "many", "of", "them", "are", "over", "300", "pages", "?" ]
[ { "id": 2, "type": "column", "value": "customer_id" }, { "id": 1, "type": "table", "value": "cust_order" }, { "id": 3, "type": "column", "value": "first_name" }, { "id": 10, "type": "table", "value": "order_line" }, { "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": [ 5 ] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
3,426
products_gen_characteristics
spider:train_spider.json:5545
Give the color description for the product 'catnip'.
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = "catnip"
[ "Give", "the", "color", "description", "for", "the", "product", "'", "catnip", "'", "." ]
[ { "id": 0, "type": "column", "value": "color_description" }, { "id": 3, "type": "column", "value": "product_name" }, { "id": 2, "type": "table", "value": "ref_colors" }, { "id": 5, "type": "column", "value": "color_code" }, { "id": 1, "type": "...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O" ]
3,427
hockey
bird:train.json:7660
Among the coaches who have taught teams from the NHL League, how many of them are from Canada?
SELECT COUNT(T2.coachID) FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.lgID = 'NHL' AND T1.birthCountry = 'Canada'
[ "Among", "the", "coaches", "who", "have", "taught", "teams", "from", "the", "NHL", "League", ",", "how", "many", "of", "them", "are", "from", "Canada", "?" ]
[ { "id": 5, "type": "column", "value": "birthcountry" }, { "id": 1, "type": "table", "value": "coaches" }, { "id": 2, "type": "column", "value": "coachid" }, { "id": 0, "type": "table", "value": "master" }, { "id": 6, "type": "value", "value...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
3,428
planet_1
bird:test.json:1921
Which employees have clearance in Omega III? List employees' name.
SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name = "Omega III";
[ "Which", "employees", "have", "clearance", "in", "Omega", "III", "?", "List", "employees", "'", "name", "." ]
[ { "id": 3, "type": "table", "value": "has_clearance" }, { "id": 8, "type": "column", "value": "employeeid" }, { "id": 2, "type": "column", "value": "Omega III" }, { "id": 4, "type": "table", "value": "employee" }, { "id": 6, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [ 3 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]
3,429
retails
bird:train.json:6864
How many parts have a jumbo case container?
SELECT COUNT(p_partkey) FROM part WHERE p_container = 'JUMBO CASE'
[ "How", "many", "parts", "have", "a", "jumbo", "case", "container", "?" ]
[ { "id": 1, "type": "column", "value": "p_container" }, { "id": 2, "type": "value", "value": "JUMBO CASE" }, { "id": 3, "type": "column", "value": "p_partkey" }, { "id": 0, "type": "table", "value": "part" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O" ]
3,430
olympics
bird:train.json:5066
Provide the competitors' names who joined the 2000 Summer.
SELECT T3.full_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '2000 Summer'
[ "Provide", "the", "competitors", "'", "names", "who", "joined", "the", "2000", "Summer", "." ]
[ { "id": 5, "type": "table", "value": "games_competitor" }, { "id": 3, "type": "value", "value": "2000 Summer" }, { "id": 2, "type": "column", "value": "games_name" }, { "id": 0, "type": "column", "value": "full_name" }, { "id": 6, "type": "colu...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8, 9 ] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id": 5, "toke...
[ "B-COLUMN", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "I-VALUE", "O" ]
3,431
retails
bird:train.json:6840
List line items shipped by truck with delivery time before 1997.
SELECT l_linenumber FROM lineitem WHERE STRFTIME('%Y', l_shipdate) < 1997 AND l_shipmode = 'truck'
[ "List", "line", "items", "shipped", "by", "truck", "with", "delivery", "time", "before", "1997", "." ]
[ { "id": 1, "type": "column", "value": "l_linenumber" }, { "id": 3, "type": "column", "value": "l_shipmode" }, { "id": 6, "type": "column", "value": "l_shipdate" }, { "id": 0, "type": "table", "value": "lineitem" }, { "id": 4, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [ 1, 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entity_id"...
[ "O", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "B-VALUE", "O" ]
3,433
software_company
bird:train.json:8513
Of the first 60,000 customers' responses to the incentive mailing sent by the marketing department, how many of them are considered a true response?
SELECT COUNT(REFID) custmoer_number FROM Mailings1_2 WHERE RESPONSE = 'true'
[ "Of", "the", "first", "60,000", "customers", "'", "responses", "to", "the", "incentive", "mailing", "sent", "by", "the", "marketing", "department", ",", "how", "many", "of", "them", "are", "considered", "a", "true", "response", "?" ]
[ { "id": 0, "type": "table", "value": "mailings1_2" }, { "id": 1, "type": "column", "value": "response" }, { "id": 3, "type": "column", "value": "refid" }, { "id": 2, "type": "value", "value": "true" } ]
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 25 ] }, { "entity_id": 2, "token_idxs": [ 24 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
3,434
manufacturer
spider:train_spider.json:3393
Find the name and component amount of the least popular furniture.
SELECT name , Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1
[ "Find", "the", "name", "and", "component", "amount", "of", "the", "least", "popular", "furniture", "." ]
[ { "id": 2, "type": "column", "value": "num_of_component" }, { "id": 3, "type": "column", "value": "market_rate" }, { "id": 0, "type": "table", "value": "furniture" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,435
european_football_1
bird:train.json:2769
When did the first match that score more than 10 goals happen?
SELECT MIN(Date) FROM matchs WHERE FTHG + FTAG > 10
[ "When", "did", "the", "first", "match", "that", "score", "more", "than", "10", "goals", "happen", "?" ]
[ { "id": 0, "type": "table", "value": "matchs" }, { "id": 2, "type": "column", "value": "date" }, { "id": 3, "type": "column", "value": "fthg" }, { "id": 4, "type": "column", "value": "ftag" }, { "id": 1, "type": "value", "value": "10" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O", "O" ]
3,436
retail_complains
bird:train.json:388
In 2012, how many complaints about Credit card product came from clients in Omaha?
SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'Omaha' AND strftime('%Y', T2.`Date received`) = '2012' AND T2.Product = 'Credit card'
[ "In", "2012", ",", "how", "many", "complaints", "about", "Credit", "card", "product", "came", "from", "clients", "in", "Omaha", "?" ]
[ { "id": 9, "type": "column", "value": "Date received" }, { "id": 7, "type": "value", "value": "Credit card" }, { "id": 2, "type": "column", "value": "client_id" }, { "id": 6, "type": "column", "value": "product" }, { "id": 0, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 14 ] }, { "entity_id": 5, ...
[ "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "B-VALUE", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "O" ]
3,437
soccer_2016
bird:train.json:1953
Who is the player who received the man of the match award during the last match of Season 9?
SELECT T1.Player_name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match WHERE T2.Season_Id = 9 ORDER BY T2.Match_Date DESC LIMIT 1
[ "Who", "is", "the", "player", "who", "received", "the", "man", "of", "the", "match", "award", "during", "the", "last", "match", "of", "Season", "9", "?" ]
[ { "id": 7, "type": "column", "value": "man_of_the_match" }, { "id": 0, "type": "column", "value": "player_name" }, { "id": 5, "type": "column", "value": "match_date" }, { "id": 3, "type": "column", "value": "season_id" }, { "id": 6, "type": "co...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [ 17 ] }, { "entity_id": 4, "token_idxs": [ 18 ] }, { "enti...
[ "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "B-VALUE", "O" ]
3,438
manufactory_1
spider:train_spider.json:5328
Find all information of all the products with a price between $60 and $120.
SELECT * FROM products WHERE price BETWEEN 60 AND 120
[ "Find", "all", "information", "of", "all", "the", "products", "with", "a", "price", "between", "$", "60", "and", "$", "120", "." ]
[ { "id": 0, "type": "table", "value": "products" }, { "id": 1, "type": "column", "value": "price" }, { "id": 3, "type": "value", "value": "120" }, { "id": 2, "type": "value", "value": "60" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [ 15 ] }, { "entity_id": 4, "token_idxs": [] }, { "entit...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "B-VALUE", "O" ]
3,439
products_for_hire
spider:train_spider.json:1967
What are the names of products whose availability equals to 1?
SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1
[ "What", "are", "the", "names", "of", "products", "whose", "availability", "equals", "to", "1", "?" ]
[ { "id": 1, "type": "table", "value": "view_product_availability" }, { "id": 2, "type": "table", "value": "products_for_hire" }, { "id": 0, "type": "column", "value": "product_name" }, { "id": 3, "type": "column", "value": "available_yn" }, { "id": ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
3,440
customer_complaints
spider:train_spider.json:5790
Find the prices of products which has never received a single complaint.
SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)
[ "Find", "the", "prices", "of", "products", "which", "has", "never", "received", "a", "single", "complaint", "." ]
[ { "id": 1, "type": "column", "value": "product_price" }, { "id": 2, "type": "column", "value": "product_id" }, { "id": 3, "type": "table", "value": "complaints" }, { "id": 0, "type": "table", "value": "products" } ]
[ { "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": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,442
conference
bird:test.json:1081
Show all conference names which the staff from Canada attends.
SELECT T1.conference_name FROM conference AS T1 JOIN conference_participation AS T2 ON T1.conference_id = T2.conference_id JOIN staff AS T3 ON T2.staff_id = T3.staff_id WHERE T3.nationality = "Canada"
[ "Show", "all", "conference", "names", "which", "the", "staff", "from", "Canada", "attends", "." ]
[ { "id": 5, "type": "table", "value": "conference_participation" }, { "id": 0, "type": "column", "value": "conference_name" }, { "id": 7, "type": "column", "value": "conference_id" }, { "id": 2, "type": "column", "value": "nationality" }, { "id": 4,...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 2 ] }, { "entity_...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O" ]
3,444
soccer_2016
bird:train.json:2004
What is the city name of country ID 3?
SELECT City_Name FROM City WHERE Country_ID = 3
[ "What", "is", "the", "city", "name", "of", "country", "ID", "3", "?" ]
[ { "id": 2, "type": "column", "value": "country_id" }, { "id": 1, "type": "column", "value": "city_name" }, { "id": 0, "type": "table", "value": "city" }, { "id": 3, "type": "value", "value": "3" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 6, 7 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O" ]
3,445
art_1
bird:test.json:1271
What is the id of the artist with the most paintings before 1900?
SELECT T1.artistID FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.year < 1900 GROUP BY T1.artistID ORDER BY count(*) DESC LIMIT 1
[ "What", "is", "the", "i", "d", "of", "the", "artist", "with", "the", "most", "paintings", "before", "1900", "?" ]
[ { "id": 2, "type": "table", "value": "paintings" }, { "id": 5, "type": "column", "value": "painterid" }, { "id": 0, "type": "column", "value": "artistid" }, { "id": 1, "type": "table", "value": "artists" }, { "id": 3, "type": "column", "val...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O" ]
3,446
movies_4
bird:train.json:413
What was the job of Dariusz Wolski in the movie "Pirates of the Caribbean: At World's End"?
SELECT T2.job FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' AND T3.person_name = 'Dariusz Wolski'
[ "What", "was", "the", "job", "of", "Dariusz", "Wolski", "in", "the", "movie", "\"", "Pirates", "of", "the", "Caribbean", ":", "At", "World", "'s", "End", "\"", "?" ]
[ { "id": 6, "type": "value", "value": "Pirates of the Caribbean: At World%s End" }, { "id": 8, "type": "value", "value": "Dariusz Wolski" }, { "id": 7, "type": "column", "value": "person_name" }, { "id": 3, "type": "table", "value": "movie_crew" }, { ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "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", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
3,447
sakila_1
spider:train_spider.json:2978
Which language does the film AIRPORT POLLOCK use? List the language name.
SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'AIRPORT POLLOCK'
[ "Which", "language", "does", "the", "film", "AIRPORT", "POLLOCK", "use", "?", "List", "the", "language", "name", "." ]
[ { "id": 4, "type": "value", "value": "AIRPORT POLLOCK" }, { "id": 5, "type": "column", "value": "language_id" }, { "id": 2, "type": "table", "value": "language" }, { "id": 3, "type": "column", "value": "title" }, { "id": 0, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 5, 6 ] }, { ...
[ "O", "B-COLUMN", "O", "O", "B-TABLE", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
3,448
sakila_1
spider:train_spider.json:2924
How many different last names do the actors and actresses have?
SELECT count(DISTINCT last_name) FROM actor
[ "How", "many", "different", "last", "names", "do", "the", "actors", "and", "actresses", "have", "?" ]
[ { "id": 1, "type": "column", "value": "last_name" }, { "id": 0, "type": "table", "value": "actor" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O" ]
3,449
restaurant_bills
bird:test.json:617
Sort all the customers by the level of membership in ascending order, and return the customer names.
SELECT Name FROM customer ORDER BY Level_of_Membership ASC
[ "Sort", "all", "the", "customers", "by", "the", "level", "of", "membership", "in", "ascending", "order", ",", "and", "return", "the", "customer", "names", "." ]
[ { "id": 2, "type": "column", "value": "level_of_membership" }, { "id": 0, "type": "table", "value": "customer" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 16 ] }, { "entity_id": 1, "token_idxs": [ 17 ] }, { "entity_id": 2, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
3,451
books
bird:train.json:6086
Name the publisher who published the most books.
SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id GROUP BY T2.publisher_name ORDER BY COUNT(T2.publisher_id) DESC LIMIT 1
[ "Name", "the", "publisher", "who", "published", "the", "most", "books", "." ]
[ { "id": 0, "type": "column", "value": "publisher_name" }, { "id": 3, "type": "column", "value": "publisher_id" }, { "id": 2, "type": "table", "value": "publisher" }, { "id": 1, "type": "table", "value": "book" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O" ]
3,452
video_games
bird:train.json:3383
Provide the games that can be played on the SCD platform.
SELECT T4.game_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T2.platform_name = 'SCD'
[ "Provide", "the", "games", "that", "can", "be", "played", "on", "the", "SCD", "platform", "." ]
[ { "id": 9, "type": "column", "value": "game_publisher_id" }, { "id": 4, "type": "table", "value": "game_publisher" }, { "id": 2, "type": "column", "value": "platform_name" }, { "id": 7, "type": "table", "value": "game_platform" }, { "id": 10, "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O" ]
3,453
works_cycles
bird:train.json:7300
Among the products that get over at least 1 review, how many of them are from the mountain product line?
SELECT SUM(CASE WHEN T2.ProductLine = 'M' THEN 1 ELSE 0 END) FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID GROUP BY T1.ProductID HAVING COUNT(T1.ProductReviewID) > 1
[ "Among", "the", "products", "that", "get", "over", "at", "least", "1", "review", ",", "how", "many", "of", "them", "are", "from", "the", "mountain", "product", "line", "?" ]
[ { "id": 4, "type": "column", "value": "productreviewid" }, { "id": 1, "type": "table", "value": "productreview" }, { "id": 6, "type": "column", "value": "productline" }, { "id": 0, "type": "column", "value": "productid" }, { "id": 2, "type": "t...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 19 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
3,454
sports_competition
spider:train_spider.json:3361
List the position of players and the average number of points of players of each position.
SELECT POSITION , avg(Points) FROM player GROUP BY POSITION
[ "List", "the", "position", "of", "players", "and", "the", "average", "number", "of", "points", "of", "players", "of", "each", "position", "." ]
[ { "id": 1, "type": "column", "value": "position" }, { "id": 0, "type": "table", "value": "player" }, { "id": 2, "type": "column", "value": "points" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 15 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O" ]
3,455
dorm_1
spider:train_spider.json:5726
Find the number and average age of students living in each city.
SELECT count(*) , avg(age) , city_code FROM student GROUP BY city_code
[ "Find", "the", "number", "and", "average", "age", "of", "students", "living", "in", "each", "city", "." ]
[ { "id": 1, "type": "column", "value": "city_code" }, { "id": 0, "type": "table", "value": "student" }, { "id": 2, "type": "column", "value": "age" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O" ]
3,457
movie_platform
bird:train.json:15
Who is the director of the movie Sex, Drink and Bloodshed?
SELECT director_name FROM movies WHERE movie_title = 'Sex, Drink and Bloodshed'
[ "Who", "is", "the", "director", "of", "the", "movie", "Sex", ",", "Drink", "and", "Bloodshed", "?" ]
[ { "id": 3, "type": "value", "value": "Sex, Drink and Bloodshed" }, { "id": 1, "type": "column", "value": "director_name" }, { "id": 2, "type": "column", "value": "movie_title" }, { "id": 0, "type": "table", "value": "movies" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7, 8, 9, 10, 11 ] }, { "entity_id": 4, "token_idxs":...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O" ]
3,458
college_1
spider:train_spider.json:3189
How many different locations does the school with code BUS has?
SELECT count(DISTINCT dept_address) FROM department WHERE school_code = 'BUS'
[ "How", "many", "different", "locations", "does", "the", "school", "with", "code", "BUS", "has", "?" ]
[ { "id": 3, "type": "column", "value": "dept_address" }, { "id": 1, "type": "column", "value": "school_code" }, { "id": 0, "type": "table", "value": "department" }, { "id": 2, "type": "value", "value": "BUS" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "en...
[ "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-VALUE", "O", "O" ]
3,459
cre_Theme_park
spider:train_spider.json:5939
Show the id and star rating of each hotel, ordered by its price from low to high.
SELECT hotel_id , star_rating_code FROM HOTELS ORDER BY price_range ASC
[ "Show", "the", "i", "d", "and", "star", "rating", "of", "each", "hotel", ",", "ordered", "by", "its", "price", "from", "low", "to", "high", "." ]
[ { "id": 2, "type": "column", "value": "star_rating_code" }, { "id": 3, "type": "column", "value": "price_range" }, { "id": 1, "type": "column", "value": "hotel_id" }, { "id": 0, "type": "table", "value": "hotels" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O" ]
3,460
retail_world
bird:train.json:6412
Indicate the name of the products that have been shipped to the city of Paris.
SELECT T3.ProductName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.ShipCity = 'Paris'
[ "Indicate", "the", "name", "of", "the", "products", "that", "have", "been", "shipped", "to", "the", "city", "of", "Paris", "." ]
[ { "id": 5, "type": "table", "value": "Order Details" }, { "id": 0, "type": "column", "value": "productname" }, { "id": 6, "type": "column", "value": "productid" }, { "id": 1, "type": "table", "value": "products" }, { "id": 2, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O" ]
3,461
flight_1
spider:train_spider.json:434
What is the name and distance of every aircraft that can cover a distance of more than 5000 and which at least 5 people can fly?
SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY count(*) >= 5
[ "What", "is", "the", "name", "and", "distance", "of", "every", "aircraft", "that", "can", "cover", "a", "distance", "of", "more", "than", "5000", "and", "which", "at", "least", "5", "people", "can", "fly", "?" ]
[ { "id": 2, "type": "table", "value": "certificate" }, { "id": 3, "type": "table", "value": "aircraft" }, { "id": 4, "type": "column", "value": "distance" }, { "id": 1, "type": "column", "value": "name" }, { "id": 5, "type": "value", "value"...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entity_...
[ "O", "O", "O", "B-COLUMN", "B-COLUMN", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O" ]
3,462
chicago_crime
bird:train.json:8709
What is the average population of the wards where apartment crimes have been reported without arrests?
SELECT AVG(T2.Population) FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.location_description = 'APARTMENT' AND T1.arrest = 'FALSE'
[ "What", "is", "the", "average", "population", "of", "the", "wards", "where", "apartment", "crimes", "have", "been", "reported", "without", "arrests", "?" ]
[ { "id": 4, "type": "column", "value": "location_description" }, { "id": 2, "type": "column", "value": "population" }, { "id": 5, "type": "value", "value": "APARTMENT" }, { "id": 3, "type": "column", "value": "ward_no" }, { "id": 6, "type": "col...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O" ]
3,463
debit_card_specializing
bird:dev.json:1499
What is the biggest monthly consumption of the customers who use euro as their currency?
SELECT SUM(T2.Consumption) / 12 AS MonthlyConsumption FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'EUR' GROUP BY T1.CustomerID ORDER BY MonthlyConsumption DESC LIMIT 1
[ "What", "is", "the", "biggest", "monthly", "consumption", "of", "the", "customers", "who", "use", "euro", "as", "their", "currency", "?" ]
[ { "id": 5, "type": "column", "value": "monthlyconsumption" }, { "id": 7, "type": "column", "value": "consumption" }, { "id": 0, "type": "column", "value": "customerid" }, { "id": 1, "type": "table", "value": "customers" }, { "id": 2, "type": "t...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entit...
[ "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O" ]
3,464
language_corpus
bird:train.json:5766
List out the title of the word have id less than 20.
SELECT DISTINCT T1.title FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.wid < 20
[ "List", "out", "the", "title", "of", "the", "word", "have", "i", "d", "less", "than", "20", "." ]
[ { "id": 2, "type": "table", "value": "pages_words" }, { "id": 0, "type": "column", "value": "title" }, { "id": 1, "type": "table", "value": "pages" }, { "id": 3, "type": "column", "value": "wid" }, { "id": 5, "type": "column", "value": "pid...
[ { "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": [ 12 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O" ]
3,465
shakespeare
bird:train.json:3049
List the paragraph number and paragraphs said by the character named "Sir Andrew Aguecheek".
SELECT T2.ParagraphNum, T2.id FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Sir Andrew Aguecheek'
[ "List", "the", "paragraph", "number", "and", "paragraphs", "said", "by", "the", "character", "named", "\"", "Sir", "Andrew", "Aguecheek", "\"", "." ]
[ { "id": 5, "type": "value", "value": "Sir Andrew Aguecheek" }, { "id": 0, "type": "column", "value": "paragraphnum" }, { "id": 6, "type": "column", "value": "character_id" }, { "id": 2, "type": "table", "value": "characters" }, { "id": 3, "type...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
3,466
public_review_platform
bird:train.json:3952
State the ID number for the attribute named "Accepts Insurance"?
SELECT attribute_id FROM Attributes WHERE attribute_name = 'Accepts Insurance'
[ "State", "the", "ID", "number", "for", "the", "attribute", "named", "\"", "Accepts", "Insurance", "\"", "?" ]
[ { "id": 3, "type": "value", "value": "Accepts Insurance" }, { "id": 2, "type": "column", "value": "attribute_name" }, { "id": 1, "type": "column", "value": "attribute_id" }, { "id": 0, "type": "table", "value": "attributes" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 9, 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O" ]
3,468
retail_complains
bird:train.json:309
What is the full address of the customers who, having received a timely response from the company, have dispute about that response?
SELECT T1.address_1, T1.address_2 FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Timely response?` = 'Yes' AND T2.`Consumer disputed?` = 'Yes'
[ "What", "is", "the", "full", "address", "of", "the", "customers", "who", ",", "having", "received", "a", "timely", "response", "from", "the", "company", ",", "have", "dispute", "about", "that", "response", "?" ]
[ { "id": 7, "type": "column", "value": "Consumer disputed?" }, { "id": 5, "type": "column", "value": "Timely response?" }, { "id": 0, "type": "column", "value": "address_1" }, { "id": 1, "type": "column", "value": "address_2" }, { "id": 4, "type...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 13, ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O" ]
3,469
sales
bird:train.json:5464
Find and list the full name of customers who bought products above-average quantity.
SELECT T2.FirstName, T2.MiddleInitial, T2.LastName FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID GROUP BY T1.Quantity HAVING T1.Quantity > ( SELECT AVG(Quantity) FROM Sales )
[ "Find", "and", "list", "the", "full", "name", "of", "customers", "who", "bought", "products", "above", "-", "average", "quantity", "." ]
[ { "id": 2, "type": "column", "value": "middleinitial" }, { "id": 6, "type": "column", "value": "customerid" }, { "id": 1, "type": "column", "value": "firstname" }, { "id": 5, "type": "table", "value": "customers" }, { "id": 0, "type": "column",...
[ { "entity_id": 0, "token_idxs": [ 14 ] }, { "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", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
3,471
law_episode
bird:train.json:1253
How many people had filled a role in the episode titled "Cherished", but did not show up in the on-screen credits?
SELECT COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Cherished' AND T2.credited = 'false'
[ "How", "many", "people", "had", "filled", "a", "role", "in", "the", "episode", "titled", "\"", "Cherished", "\"", ",", "but", "did", "not", "show", "up", "in", "the", "on", "-", "screen", "credits", "?" ]
[ { "id": 2, "type": "column", "value": "episode_id" }, { "id": 4, "type": "value", "value": "Cherished" }, { "id": 5, "type": "column", "value": "credited" }, { "id": 0, "type": "table", "value": "episode" }, { "id": 1, "type": "table", "val...
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 25 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "enti...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,472
college_2
spider:train_spider.json:1345
What is the title, credit value, and department name for courses with more than one prerequisite?
SELECT T1.title , T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) > 1
[ "What", "is", "the", "title", ",", "credit", "value", ",", "and", "department", "name", "for", "courses", "with", "more", "than", "one", "prerequisite", "?" ]
[ { "id": 0, "type": "column", "value": "course_id" }, { "id": 3, "type": "column", "value": "dept_name" }, { "id": 2, "type": "column", "value": "credits" }, { "id": 4, "type": "table", "value": "course" }, { "id": 5, "type": "table", "value...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 9, 10 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { ...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O" ]
3,473
pilot_1
bird:test.json:1172
Return the names of pilots who are older than any pilot who has flown Piper Cub, ordered alphabetically.
SELECT pilot_name FROM pilotskills WHERE age > (SELECT min(age) FROM pilotskills WHERE plane_name = 'Piper Cub') ORDER BY pilot_name
[ "Return", "the", "names", "of", "pilots", "who", "are", "older", "than", "any", "pilot", "who", "has", "flown", "Piper", "Cub", ",", "ordered", "alphabetically", "." ]
[ { "id": 0, "type": "table", "value": "pilotskills" }, { "id": 1, "type": "column", "value": "pilot_name" }, { "id": 3, "type": "column", "value": "plane_name" }, { "id": 4, "type": "value", "value": "Piper Cub" }, { "id": 2, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 14, 15 ] }, { ...
[ "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O" ]
3,474
books
bird:train.json:5987
Provide the customers' names who ordered the Fantasmas.
SELECT T4.first_name, T4.last_name FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T1.title = 'Fantasmas'
[ "Provide", "the", "customers", "'", "names", "who", "ordered", "the", "Fantasmas", "." ]
[ { "id": 6, "type": "column", "value": "customer_id" }, { "id": 0, "type": "column", "value": "first_name" }, { "id": 5, "type": "table", "value": "cust_order" }, { "id": 8, "type": "table", "value": "order_line" }, { "id": 1, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O" ]
3,475
books
bird:train.json:6036
Identify by their id all the orders that have been cancelled.
SELECT T2.order_id FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id WHERE T1.status_value = 'Cancelled'
[ "Identify", "by", "their", "i", "d", "all", "the", "orders", "that", "have", "been", "cancelled", "." ]
[ { "id": 2, "type": "table", "value": "order_history" }, { "id": 1, "type": "table", "value": "order_status" }, { "id": 3, "type": "column", "value": "status_value" }, { "id": 4, "type": "value", "value": "Cancelled" }, { "id": 5, "type": "colum...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "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", "O", "B-COLUMN", "B-TABLE", "O", "O", "B-VALUE", "O" ]
3,476
talkingdata
bird:train.json:1149
Among the app users who were not active when event no.2 happened, how many of them belong to the category Property Industry 1.0?
SELECT COUNT(T2.app_id) FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id INNER JOIN app_events AS T3 ON T2.app_id = T3.app_id WHERE T3.is_active = 0 AND T1.category = 'Property Industry 1.0' AND T3.event_id = 2
[ "Among", "the", "app", "users", "who", "were", "not", "active", "when", "event", "no.2", "happened", ",", "how", "many", "of", "them", "belong", "to", "the", "category", "Property", "Industry", "1.0", "?" ]
[ { "id": 7, "type": "value", "value": "Property Industry 1.0" }, { "id": 2, "type": "table", "value": "label_categories" }, { "id": 0, "type": "table", "value": "app_events" }, { "id": 3, "type": "table", "value": "app_labels" }, { "id": 4, "typ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
3,477
medicine_enzyme_interaction
spider:train_spider.json:959
How many medicines have the FDA approval status 'No' ?
SELECT count(*) FROM medicine WHERE FDA_approved = 'No'
[ "How", "many", "medicines", "have", "the", "FDA", "approval", "status", "'", "No", "'", "?" ]
[ { "id": 1, "type": "column", "value": "fda_approved" }, { "id": 0, "type": "table", "value": "medicine" }, { "id": 2, "type": "value", "value": "No" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O", "O" ]
3,478
app_store
bird:train.json:2517
What is the lowest sentiment polarity score of the Basketball Stars app for people who dislikes the app pretty much and how many downloads does it have?
SELECT MIN(T2.Sentiment_Polarity), T1.Installs FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Basketball Stars'
[ "What", "is", "the", "lowest", "sentiment", "polarity", "score", "of", "the", "Basketball", "Stars", "app", "for", "people", "who", "dislikes", "the", "app", "pretty", "much", "and", "how", "many", "downloads", "does", "it", "have", "?" ]
[ { "id": 5, "type": "column", "value": "sentiment_polarity" }, { "id": 4, "type": "value", "value": "Basketball Stars" }, { "id": 2, "type": "table", "value": "user_reviews" }, { "id": 1, "type": "table", "value": "playstore" }, { "id": 0, "type...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { ...
[ "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "I-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,479
inn_1
spider:train_spider.json:2615
Which room has the highest base price?
SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;
[ "Which", "room", "has", "the", "highest", "base", "price", "?" ]
[ { "id": 3, "type": "column", "value": "baseprice" }, { "id": 2, "type": "column", "value": "roomname" }, { "id": 1, "type": "column", "value": "roomid" }, { "id": 0, "type": "table", "value": "rooms" } ]
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5, 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
3,480
bike_racing
bird:test.json:1476
What are the distinct ids and product names of the bikes that are purchased after year 2015?
SELECT DISTINCT T1.id , T1.product_name FROM bike AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id = T2.bike_id WHERE T2.purchase_year > 2015
[ "What", "are", "the", "distinct", "ids", "and", "product", "names", "of", "the", "bikes", "that", "are", "purchased", "after", "year", "2015", "?" ]
[ { "id": 3, "type": "table", "value": "cyclists_own_bikes" }, { "id": 4, "type": "column", "value": "purchase_year" }, { "id": 1, "type": "column", "value": "product_name" }, { "id": 6, "type": "column", "value": "bike_id" }, { "id": 2, "type": ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 6, 7 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
3,481
film_rank
spider:train_spider.json:4142
List the name of film studio that have the most number of films.
SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1
[ "List", "the", "name", "of", "film", "studio", "that", "have", "the", "most", "number", "of", "films", "." ]
[ { "id": 1, "type": "column", "value": "studio" }, { "id": 0, "type": "table", "value": "film" } ]
[ { "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", "O", "O", "O" ]
3,482
world_development_indicators
bird:train.json:2128
Please list the short name of countries which have the latest trade data after 2010.
SELECT ShortName FROM Country WHERE LatestTradeData > 2010
[ "Please", "list", "the", "short", "name", "of", "countries", "which", "have", "the", "latest", "trade", "data", "after", "2010", "." ]
[ { "id": 2, "type": "column", "value": "latesttradedata" }, { "id": 1, "type": "column", "value": "shortname" }, { "id": 0, "type": "table", "value": "country" }, { "id": 3, "type": "value", "value": "2010" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [ 10, 11, 12 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
3,484
soccer_2016
bird:train.json:1947
Compute the run rate at the end of 16 overs of the match ID 335999. Please include the name of the "Man of_the Match".
SELECT CAST(COUNT(CASE WHEN T1.Toss_Name = 'bat' THEN T3.Runs_Scored ELSE NULL END) AS REAL) / SUM(CASE WHEN T1.Toss_Name = 'field' THEN 1 ELSE 0 END) FROM Toss_Decision AS T1 INNER JOIN Match AS T2 ON T1.Toss_Id = T2.Toss_Decide INNER JOIN Batsman_Scored AS T3 ON T2.Match_Id = T3.Match_Id WHERE T2.Match_Id = 335987 AN...
[ "Compute", "the", "run", "rate", "at", "the", "end", "of", "16", "overs", "of", "the", "match", "ID", "335999", ".", "Please", "include", "the", "name", "of", "the", "\"", "Man", "of_the", "Match", "\"", "." ]
[ { "id": 1, "type": "table", "value": "batsman_scored" }, { "id": 3, "type": "table", "value": "toss_decision" }, { "id": 10, "type": "column", "value": "toss_decide" }, { "id": 15, "type": "column", "value": "runs_scored" }, { "id": 7, "type": ...
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,485
legislator
bird:train.json:4866
How many class 1 senators belong to the Republican party?
SELECT COUNT(bioguide) FROM `current-terms` WHERE class = 1 AND party = 'Republican'
[ "How", "many", "class", "1", "senators", "belong", "to", "the", "Republican", "party", "?" ]
[ { "id": 0, "type": "table", "value": "current-terms" }, { "id": 5, "type": "value", "value": "Republican" }, { "id": 1, "type": "column", "value": "bioguide" }, { "id": 2, "type": "column", "value": "class" }, { "id": 4, "type": "column", "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [ 3 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
3,486
authors
bird:train.json:3674
Indicate the number of authors affiliated with the organization named 'Arizona State University'.
SELECT COUNT(Name) FROM Author WHERE Affiliation = 'Arizona State University'
[ "Indicate", "the", "number", "of", "authors", "affiliated", "with", "the", "organization", "named", "'", "Arizona", "State", "University", "'", "." ]
[ { "id": 2, "type": "value", "value": "Arizona State University" }, { "id": 1, "type": "column", "value": "affiliation" }, { "id": 0, "type": "table", "value": "author" }, { "id": 3, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 11, 12, 13 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] ...
[ "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
3,487
public_review_platform
bird:train.json:3842
Which city has more Yelp_Business that's more appealing to users, Scottsdale or Anthem?
SELECT city FROM Business ORDER BY review_count DESC LIMIT 1
[ "Which", "city", "has", "more", "Yelp_Business", "that", "'s", "more", "appealing", "to", "users", ",", "Scottsdale", "or", "Anthem", "?" ]
[ { "id": 2, "type": "column", "value": "review_count" }, { "id": 0, "type": "table", "value": "business" }, { "id": 1, "type": "column", "value": "city" } ]
[ { "entity_id": 0, "token_idxs": [ 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, "token_idxs": ...
[ "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,488
retail_world
bird:train.json:6569
Identify the name and product category for the most expensive and the least expensive products.
SELECT T2.ProductName, T1.CategoryName FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.UnitPrice IN (( SELECT MIN(UnitPrice) FROM Products ), ( SELECT MAX(UnitPrice) FROM Products ))
[ "Identify", "the", "name", "and", "product", "category", "for", "the", "most", "expensive", "and", "the", "least", "expensive", "products", "." ]
[ { "id": 1, "type": "column", "value": "categoryname" }, { "id": 0, "type": "column", "value": "productname" }, { "id": 2, "type": "table", "value": "categories" }, { "id": 5, "type": "column", "value": "categoryid" }, { "id": 4, "type": "column...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "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", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,489
bakery_1
bird:test.json:1524
Give the ids for goods that have Apricot flavor and have a price lower than 5 dollars.
SELECT id FROM goods WHERE flavor = "Apricot" AND price < 5
[ "Give", "the", "ids", "for", "goods", "that", "have", "Apricot", "flavor", "and", "have", "a", "price", "lower", "than", "5", "dollars", "." ]
[ { "id": 3, "type": "column", "value": "Apricot" }, { "id": 2, "type": "column", "value": "flavor" }, { "id": 0, "type": "table", "value": "goods" }, { "id": 4, "type": "column", "value": "price" }, { "id": 1, "type": "column", "value": "id"...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, ...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O" ]
3,490
college_2
spider:train_spider.json:1372
Find the name of the department that offers the highest total credits?
SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1
[ "Find", "the", "name", "of", "the", "department", "that", "offers", "the", "highest", "total", "credits", "?" ]
[ { "id": 1, "type": "column", "value": "dept_name" }, { "id": 2, "type": "column", "value": "credits" }, { "id": 0, "type": "table", "value": "course" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
3,491
cre_Doc_Workflow
bird:test.json:2020
Show the other details for the author Addison Denesik.
SELECT other_details FROM Authors WHERE author_name = "Addison Denesik"
[ "Show", "the", "other", "details", "for", "the", "author", "Addison", "Denesik", "." ]
[ { "id": 3, "type": "column", "value": "Addison Denesik" }, { "id": 1, "type": "column", "value": "other_details" }, { "id": 2, "type": "column", "value": "author_name" }, { "id": 0, "type": "table", "value": "authors" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7, 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "en...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O" ]
3,493
thrombosis_prediction
bird:dev.json:1180
Was the patient a man or a women whose ALT glutamic pylvic transaminase status got 9 on 1992-6-12?
SELECT T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GPT = 9.0 AND T2.Date = '1992-06-12'
[ "Was", "the", "patient", "a", "man", "or", "a", "women", "whose", "ALT", "glutamic", "pylvic", "transaminase", "status", "got", "9", "on", "1992", "-", "6", "-", "12", "?" ]
[ { "id": 2, "type": "table", "value": "laboratory" }, { "id": 7, "type": "value", "value": "1992-06-12" }, { "id": 1, "type": "table", "value": "patient" }, { "id": 6, "type": "column", "value": "date" }, { "id": 0, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 14 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O" ]
3,494
soccer_2016
bird:train.json:1904
Give the name of the venue where the most number of matches are held.
SELECT T2.Venue_Name FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id GROUP BY T2.Venue_Name ORDER BY COUNT(T2.Venue_Id) DESC LIMIT 1
[ "Give", "the", "name", "of", "the", "venue", "where", "the", "most", "number", "of", "matches", "are", "held", "." ]
[ { "id": 0, "type": "column", "value": "venue_name" }, { "id": 3, "type": "column", "value": "venue_id" }, { "id": 1, "type": "table", "value": "Match" }, { "id": 2, "type": "table", "value": "venue" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O" ]
3,495
body_builder
spider:train_spider.json:1166
List the height and weight of people in descending order of height.
SELECT Height , Weight FROM people ORDER BY Height DESC
[ "List", "the", "height", "and", "weight", "of", "people", "in", "descending", "order", "of", "height", "." ]
[ { "id": 0, "type": "table", "value": "people" }, { "id": 1, "type": "column", "value": "height" }, { "id": 2, "type": "column", "value": "weight" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "O" ]
3,496
codebase_comments
bird:train.json:637
How many methods with solutions with path 'maravillas_linq-to-delicious\tasty.sln'?
SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'maravillas_linq-to-delicious\tasty.sln'
[ "How", "many", "methods", "with", "solutions", "with", "path", "'", "maravillas_linq", "-", "to", "-", "delicious\\tasty.sln", "'", "?" ]
[ { "id": 3, "type": "value", "value": "maravillas_linq-to-delicious\\tasty.sln" }, { "id": 4, "type": "column", "value": "solutionid" }, { "id": 0, "type": "table", "value": "solution" }, { "id": 1, "type": "table", "value": "method" }, { "id": 2, ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 8, 9, 10, 11, 12 ] }, { "entity_id": 4, ...
[ "O", "O", "B-TABLE", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
3,497
retail_complains
bird:train.json:248
What is the full name of the client whose complaint on 2017/3/27 was received by MICHAL?
SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.`Date received` = '2017-03-27' AND T2.server = 'MICHAL'
[ "What", "is", "the", "full", "name", "of", "the", "client", "whose", "complaint", "on", "2017/3/27", "was", "received", "by", "MICHAL", "?" ]
[ { "id": 4, "type": "table", "value": "callcenterlogs" }, { "id": 7, "type": "column", "value": "Date received" }, { "id": 6, "type": "column", "value": "rand client" }, { "id": 8, "type": "value", "value": "2017-03-27" }, { "id": 5, "type": "co...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
3,498
superstore
bird:train.json:2406
List the name of all products that Cindy Stewart ordered in the east superstore.
SELECT T3.`Product Name` FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Cindy Stewart'
[ "List", "the", "name", "of", "all", "products", "that", "Cindy", "Stewart", "ordered", "in", "the", "east", "superstore", "." ]
[ { "id": 4, "type": "table", "value": "south_superstore" }, { "id": 2, "type": "column", "value": "Customer Name" }, { "id": 3, "type": "value", "value": "Cindy Stewart" }, { "id": 0, "type": "column", "value": "Product Name" }, { "id": 7, "type...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 1, 2 ] }, { "entity_id": 3, "token_idxs": [ 7, 8 ] }, { "entity_id": 4, "token_idxs": [ ...
[ "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "B-TABLE", "O" ]
3,499
hockey
bird:train.json:7800
What's the decrease rate of the game plays did David Aebischer after he got traded in 2005?
SELECT CAST((SUM(CASE WHEN T1.year = 2005 THEN T1.GP ELSE 0 END) - SUM(CASE WHEN T1.year = 2006 THEN T1.GP ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN T1.year = 2005 THEN T1.GP ELSE 0 END) FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.firstName = 'David' AND T2.lastName = 'Aebischer'
[ "What", "'s", "the", "decrease", "rate", "of", "the", "game", "plays", "did", "David", "Aebischer", "after", "he", "got", "traded", "in", "2005", "?" ]
[ { "id": 3, "type": "column", "value": "firstname" }, { "id": 6, "type": "value", "value": "Aebischer" }, { "id": 2, "type": "column", "value": "playerid" }, { "id": 5, "type": "column", "value": "lastname" }, { "id": 0, "type": "table", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [ 8, 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O" ]
3,500
scientist_1
spider:train_spider.json:6501
Find the SSN and name of scientists who are assigned to the project with the longest hours.
SELECT T3.ssn , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects)
[ "Find", "the", "SSN", "and", "name", "of", "scientists", "who", "are", "assigned", "to", "the", "project", "with", "the", "longest", "hours", "." ]
[ { "id": 2, "type": "table", "value": "scientists" }, { "id": 4, "type": "table", "value": "assignedto" }, { "id": 6, "type": "column", "value": "scientist" }, { "id": 5, "type": "table", "value": "projects" }, { "id": 7, "type": "column", "...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 16 ] }, { "entity_id": 4, "token_idxs": [ 9, 10 ] }, { ...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O" ]
3,503
aan_1
bird:test.json:1030
Give the title of the paper with the most authors.
SELECT T2.title FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id GROUP BY T2.paper_id ORDER BY count(*) DESC LIMIT 1
[ "Give", "the", "title", "of", "the", "paper", "with", "the", "most", "authors", "." ]
[ { "id": 2, "type": "table", "value": "author_list" }, { "id": 0, "type": "column", "value": "paper_id" }, { "id": 1, "type": "column", "value": "title" }, { "id": 3, "type": "table", "value": "paper" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O" ]
3,504
soccer_2016
bird:train.json:1886
List down all of the winning teams' IDs that played in St George's Park.
SELECT T2.Match_Winner FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Venue_Name LIKE 'St George%'
[ "List", "down", "all", "of", "the", "winning", "teams", "'", "IDs", "that", "played", "in", "St", "George", "'s", "Park", "." ]
[ { "id": 0, "type": "column", "value": "match_winner" }, { "id": 3, "type": "column", "value": "venue_name" }, { "id": 4, "type": "value", "value": "St George%" }, { "id": 5, "type": "column", "value": "venue_id" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12, 13 ] }, { "entity_id": 5, "token_idxs": []...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O" ]
3,506
network_2
spider:train_spider.json:4458
Find the female friends of Alice.
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female'
[ "Find", "the", "female", "friends", "of", "Alice", "." ]
[ { "id": 2, "type": "table", "value": "personfriend" }, { "id": 0, "type": "column", "value": "friend" }, { "id": 1, "type": "table", "value": "person" }, { "id": 5, "type": "column", "value": "gender" }, { "id": 6, "type": "value", "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": [ 5 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-VALUE", "B-COLUMN", "O", "B-VALUE", "O" ]
3,507
world_development_indicators
bird:train.json:2228
From 1975 to 1980, how much is the total amount CO2 emmission in kiloton of the the world? Indicate which year the world recorded its highest CO2 emmissions.
SELECT SUM(T1.Value), T1.Year FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName = 'CO2 emissions (kt)' AND T1.Year >= 1975 AND T1.Year < 1981 AND T1.CountryCode = 'WLD' AND T2.SpecialNotes = 'World aggregate.'
[ "From", "1975", "to", "1980", ",", "how", "much", "is", "the", "total", "amount", "CO2", "emmission", "in", "kiloton", "of", "the", "the", "world", "?", "Indicate", "which", "year", "the", "world", "recorded", "its", "highest", "CO2", "emmissions", "." ]
[ { "id": 6, "type": "value", "value": "CO2 emissions (kt)" }, { "id": 11, "type": "value", "value": "World aggregate." }, { "id": 5, "type": "column", "value": "indicatorname" }, { "id": 10, "type": "column", "value": "specialnotes" }, { "id": 4, ...
[ { "entity_id": 0, "token_idxs": [ 22 ] }, { "entity_id": 1, "token_idxs": [ 20 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O" ]
3,508
aircraft
spider:train_spider.json:4814
What are the names of all pilots 30 years old or young in descending alphabetical order?
SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC
[ "What", "are", "the", "names", "of", "all", "pilots", "30", "years", "old", "or", "young", "in", "descending", "alphabetical", "order", "?" ]
[ { "id": 0, "type": "table", "value": "pilot" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "column", "value": "age" }, { "id": 3, "type": "value", "value": "30" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_...
[ "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,509
world
bird:train.json:7882
What is the GNP of the least crowded city in the world?
SELECT T2.GNP FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T1.Population ASC LIMIT 1
[ "What", "is", "the", "GNP", "of", "the", "least", "crowded", "city", "in", "the", "world", "?" ]
[ { "id": 4, "type": "column", "value": "countrycode" }, { "id": 3, "type": "column", "value": "population" }, { "id": 2, "type": "table", "value": "country" }, { "id": 1, "type": "table", "value": "city" }, { "id": 5, "type": "column", "valu...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "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", "B-COLUMN", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O" ]
3,511
superhero
bird:dev.json:834
Among all superheroes created by George Lucas, identify the percentage of female superheroes.
SELECT CAST(COUNT(CASE WHEN T3.gender = 'Female' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.publisher_name = 'George Lucas'
[ "Among", "all", "superheroes", "created", "by", "George", "Lucas", ",", "identify", "the", "percentage", "of", "female", "superheroes", "." ]
[ { "id": 1, "type": "column", "value": "publisher_name" }, { "id": 2, "type": "value", "value": "George Lucas" }, { "id": 8, "type": "column", "value": "publisher_id" }, { "id": 3, "type": "table", "value": "superhero" }, { "id": 4, "type": "tab...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "O", "O" ]
3,512
shipping
bird:train.json:5612
What is the full name of the driver who delivered the most shipments to the least populated city?
SELECT T1.first_name, T1.last_name FROM driver AS T1 INNER JOIN shipment AS T2 ON T1.driver_id = T2.driver_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id GROUP BY T1.first_name, T1.last_name, T3.population HAVING T3.population = MAX(T3.population) ORDER BY COUNT(*) DESC LIMIT 1
[ "What", "is", "the", "full", "name", "of", "the", "driver", "who", "delivered", "the", "most", "shipments", "to", "the", "least", "populated", "city", "?" ]
[ { "id": 0, "type": "column", "value": "first_name" }, { "id": 2, "type": "column", "value": "population" }, { "id": 1, "type": "column", "value": "last_name" }, { "id": 7, "type": "column", "value": "driver_id" }, { "id": 5, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 16 ] }, { "entity_id": 3, "token_idxs": [ 17 ] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entit...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "B-TABLE", "O" ]
3,513
customers_card_transactions
spider:train_spider.json:719
Show all card type codes and the number of cards in each type.
SELECT card_type_code , count(*) FROM Customers_cards GROUP BY card_type_code
[ "Show", "all", "card", "type", "codes", "and", "the", "number", "of", "cards", "in", "each", "type", "." ]
[ { "id": 0, "type": "table", "value": "customers_cards" }, { "id": 1, "type": "column", "value": "card_type_code" } ]
[ { "entity_id": 0, "token_idxs": [ 7, 8, 9 ] }, { "entity_id": 1, "token_idxs": [ 2, 3, 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "O", "O" ]
3,514
sales
bird:train.json:5455
Among the "Mountain-500 Black" product types, which type was purchased the most?
SELECT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE 'Mountain-500 Black%' GROUP BY T2.Quantity, T1.Name ORDER BY SUM(T2.Quantity) DESC LIMIT 1
[ "Among", "the", "\"", "Mountain-500", "Black", "\"", "product", "types", ",", "which", "type", "was", "purchased", "the", "most", "?" ]
[ { "id": 4, "type": "value", "value": "Mountain-500 Black%" }, { "id": 5, "type": "column", "value": "productid" }, { "id": 0, "type": "column", "value": "quantity" }, { "id": 2, "type": "table", "value": "products" }, { "id": 3, "type": "table"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 3, 4 ] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
3,515
works_cycles
bird:train.json:7155
Where is Business Entity ID No.4 located at? Give the address down to street.
SELECT AddressLine1, AddressLine2 FROM Address WHERE AddressID IN ( SELECT AddressID FROM BusinessEntityAddress WHERE BusinessEntityID = 4 )
[ "Where", "is", "Business", "Entity", "ID", "No.4", "located", "at", "?", "Give", "the", "address", "down", "to", "street", "." ]
[ { "id": 4, "type": "table", "value": "businessentityaddress" }, { "id": 5, "type": "column", "value": "businessentityid" }, { "id": 1, "type": "column", "value": "addressline1" }, { "id": 2, "type": "column", "value": "addressline2" }, { "id": 3, ...
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "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": [ 2, ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O" ]
3,516
movie_platform
bird:train.json:70
When did user 39115684 rate the movie "A Way of Life"?
SELECT T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_id = 39115684
[ "When", "did", "user", "39115684", "rate", "the", "movie", "\"", "A", "Way", "of", "Life", "\"", "?" ]
[ { "id": 5, "type": "value", "value": "A Way of Life" }, { "id": 0, "type": "column", "value": "rating_score" }, { "id": 4, "type": "column", "value": "movie_title" }, { "id": 3, "type": "column", "value": "movie_id" }, { "id": 7, "type": "value...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 8, ...
[ "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
3,517
student_club
bird:dev.json:1457
Give the full name and contact number of members who had to spend more than average on each expense.
SELECT DISTINCT T3.first_name, T3.last_name, T3.phone FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id INNER JOIN member AS T3 ON T3.member_id = T1.link_to_member WHERE T1.cost > ( SELECT AVG(T1.cost) FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id INNER JOIN...
[ "Give", "the", "full", "name", "and", "contact", "number", "of", "members", "who", "had", "to", "spend", "more", "than", "average", "on", "each", "expense", "." ]
[ { "id": 8, "type": "column", "value": "link_to_member" }, { "id": 9, "type": "column", "value": "link_to_budget" }, { "id": 0, "type": "column", "value": "first_name" }, { "id": 1, "type": "column", "value": "last_name" }, { "id": 7, "type": "c...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
3,518
culture_company
spider:train_spider.json:6990
Show all director names who have a movie in the year 1999 or 2000.
SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000
[ "Show", "all", "director", "names", "who", "have", "a", "movie", "in", "the", "year", "1999", "or", "2000", "." ]
[ { "id": 1, "type": "column", "value": "director" }, { "id": 0, "type": "table", "value": "movie" }, { "id": 2, "type": "column", "value": "year" }, { "id": 3, "type": "value", "value": "1999" }, { "id": 4, "type": "value", "value": "2000" ...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-VALUE", "O", "B-VALUE", "O" ]
3,519
language_corpus
bird:train.json:5768
How many word appeared 8 times? State the language id of the page.
SELECT COUNT(T2.wid), T1.lid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.occurrences = 8
[ "How", "many", "word", "appeared", "8", "times", "?", "State", "the", "language", "i", "d", "of", "the", "page", "." ]
[ { "id": 2, "type": "table", "value": "pages_words" }, { "id": 3, "type": "column", "value": "occurrences" }, { "id": 1, "type": "table", "value": "pages" }, { "id": 0, "type": "column", "value": "lid" }, { "id": 5, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 14 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O" ]
3,520
talkingdata
bird:train.json:1178
List the phone brands and models of the users under 10 years of age.
SELECT T2.phone_brand, T2.device_model FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.age < 10
[ "List", "the", "phone", "brands", "and", "models", "of", "the", "users", "under", "10", "years", "of", "age", "." ]
[ { "id": 3, "type": "table", "value": "phone_brand_device_model2" }, { "id": 1, "type": "column", "value": "device_model" }, { "id": 0, "type": "column", "value": "phone_brand" }, { "id": 2, "type": "table", "value": "gender_age" }, { "id": 6, "...
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 4, 5 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "e...
[ "O", "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O" ]
3,521
sports_competition
spider:train_spider.json:3364
What are the positions of players whose average number of points scored by that position is larger than 20?
SELECT POSITION FROM player GROUP BY name HAVING avg(Points) >= 20
[ "What", "are", "the", "positions", "of", "players", "whose", "average", "number", "of", "points", "scored", "by", "that", "position", "is", "larger", "than", "20", "?" ]
[ { "id": 2, "type": "column", "value": "position" }, { "id": 0, "type": "table", "value": "player" }, { "id": 4, "type": "column", "value": "points" }, { "id": 1, "type": "column", "value": "name" }, { "id": 3, "type": "value", "value": "20"...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [ 18 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, ...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O" ]
3,522
e_commerce
bird:test.json:63
What are the first names, middle initials, last names, and payment methods of all customers?
SELECT T1.customer_first_name , T1.customer_middle_initial , T1.customer_last_name , T2.Payment_method_code FROM Customers AS T1 JOIN Customer_Payment_Methods AS T2 ON T1.customer_id = T2.customer_id
[ "What", "are", "the", "first", "names", ",", "middle", "initials", ",", "last", "names", ",", "and", "payment", "methods", "of", "all", "customers", "?" ]
[ { "id": 5, "type": "table", "value": "customer_payment_methods" }, { "id": 1, "type": "column", "value": "customer_middle_initial" }, { "id": 0, "type": "column", "value": "customer_first_name" }, { "id": 3, "type": "column", "value": "payment_method_code"...
[ { "entity_id": 0, "token_idxs": [ 2, 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 6, 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 13, 14, 15 ] }, { "entity_id": 4, "to...
[ "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-TABLE", "O" ]
3,523
tracking_orders
spider:train_spider.json:6921
Find the ids of orders which are shipped after 2000-01-01.
SELECT order_id FROM shipments WHERE shipment_date > "2000-01-01"
[ "Find", "the", "ids", "of", "orders", "which", "are", "shipped", "after", "2000", "-", "01", "-", "01", "." ]
[ { "id": 2, "type": "column", "value": "shipment_date" }, { "id": 3, "type": "column", "value": "2000-01-01" }, { "id": 0, "type": "table", "value": "shipments" }, { "id": 1, "type": "column", "value": "order_id" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 9, 10, 11, 12, 13 ] }, { "entity_id": 4, ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
3,524
soccer_2016
bird:train.json:1891
Calculate the average runs scored during the first half of all first innings.
SELECT CAST(SUM(CASE WHEN 1 < Over_Id AND Over_Id < 25 THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(Runs_Scored) FROM Batsman_Scored WHERE Innings_No = 1
[ "Calculate", "the", "average", "runs", "scored", "during", "the", "first", "half", "of", "all", "first", "innings", "." ]
[ { "id": 0, "type": "table", "value": "batsman_scored" }, { "id": 4, "type": "column", "value": "runs_scored" }, { "id": 1, "type": "column", "value": "innings_no" }, { "id": 6, "type": "column", "value": "over_id" }, { "id": 3, "type": "value",...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 3, 4 ] }, { "entity_id": 5, "tok...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
3,525
legislator
bird:train.json:4844
Among the male legislators born between 1955 to 1965, what is the percentage of the legislators with an independent party?
SELECT CAST(SUM(CASE WHEN T2.party = 'Independent' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.party) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'M' AND strftime('%Y', T1.birthday_bio) BETWEEN '1955' AND '1965'
[ "Among", "the", "male", "legislators", "born", "between", "1955", "to", "1965", ",", "what", "is", "the", "percentage", "of", "the", "legislators", "with", "an", "independent", "party", "?" ]
[ { "id": 1, "type": "table", "value": "current-terms" }, { "id": 11, "type": "column", "value": "birthday_bio" }, { "id": 2, "type": "column", "value": "bioguide_id" }, { "id": 14, "type": "value", "value": "Independent" }, { "id": 4, "type": "c...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id...
[ "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
3,526
cre_Doc_and_collections
bird:test.json:731
List id of documents that in collection named Best but not in document subset Best for 2000.
SELECT DISTINCT T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = "Best" EXCEPT SELECT DISTINCT T3.Document_Object_ID FROM Document_Subset_Members AS T3 JOIN Document_Subsets AS T4 ON T3.Document_Subset_ID = T4.Document_Su...
[ "List", "i", "d", "of", "documents", "that", "in", "collection", "named", "Best", "but", "not", "in", "document", "subset", "Best", "for", "2000", "." ]
[ { "id": 2, "type": "table", "value": "documents_in_collections" }, { "id": 5, "type": "table", "value": "document_subset_members" }, { "id": 7, "type": "column", "value": "document_subset_name" }, { "id": 0, "type": "column", "value": "document_object_id" ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 4, 5, 6 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 15 ] ...
[ "O", "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "B-COLUMN", "I-COLUMN", "O" ]
3,528
hockey
bird:train.json:7793
For the goalkeeper that became a coach than a Hall of Famer, who played for BOS in 1972?
SELECT T2.firstName, T2.lastName , IIF(T1.tmID = 'BOS', 'YES', 'NO') FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.year = 1972 AND T1.tmID = 'BOS' AND T2.coachID IS NOT NULL AND T2.hofID IS NULL
[ "For", "the", "goalkeeper", "that", "became", "a", "coach", "than", "a", "Hall", "of", "Famer", ",", "who", "played", "for", "BOS", "in", "1972", "?" ]
[ { "id": 0, "type": "column", "value": "firstname" }, { "id": 1, "type": "column", "value": "lastname" }, { "id": 6, "type": "column", "value": "playerid" }, { "id": 2, "type": "table", "value": "goalies" }, { "id": 11, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O" ]
3,529
hospital_1
spider:train_spider.json:3903
Find the name and position of the head of the department with the least employees.
SELECT T2.name , T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;
[ "Find", "the", "name", "and", "position", "of", "the", "head", "of", "the", "department", "with", "the", "least", "employees", "." ]
[ { "id": 0, "type": "column", "value": "departmentid" }, { "id": 3, "type": "table", "value": "department" }, { "id": 6, "type": "column", "value": "employeeid" }, { "id": 4, "type": "table", "value": "physician" }, { "id": 2, "type": "column", ...
[ { "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-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O" ]
3,530
storm_record
spider:train_spider.json:2712
Show the name for regions and the number of storms for each region.
SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id
[ "Show", "the", "name", "for", "regions", "and", "the", "number", "of", "storms", "for", "each", "region", "." ]
[ { "id": 3, "type": "table", "value": "affected_region" }, { "id": 1, "type": "column", "value": "region_name" }, { "id": 0, "type": "column", "value": "region_id" }, { "id": 2, "type": "table", "value": "region" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-TABLE", "O" ]
3,531
retail_world
bird:train.json:6425
What is the family name of the employee who shipped the order 10521 to CACTU?
SELECT T1.LastName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.OrderID = 10521 AND T2.CustomerID = 'CACTU'
[ "What", "is", "the", "family", "name", "of", "the", "employee", "who", "shipped", "the", "order", "10521", "to", "CACTU", "?" ]
[ { "id": 3, "type": "column", "value": "employeeid" }, { "id": 6, "type": "column", "value": "customerid" }, { "id": 1, "type": "table", "value": "employees" }, { "id": 0, "type": "column", "value": "lastname" }, { "id": 4, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "B-VALUE", "O", "B-VALUE", "O" ]
3,532
scientist_1
spider:train_spider.json:6471
Find the total hours of all projects.
SELECT sum(hours) FROM projects
[ "Find", "the", "total", "hours", "of", "all", "projects", "." ]
[ { "id": 0, "type": "table", "value": "projects" }, { "id": 1, "type": "column", "value": "hours" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
3,533
candidate_poll
spider:train_spider.json:2398
what are the top 3 highest support rates?
SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3
[ "what", "are", "the", "top", "3", "highest", "support", "rates", "?" ]
[ { "id": 1, "type": "column", "value": "support_rate" }, { "id": 0, "type": "table", "value": "candidate" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6, 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
3,534
art_1
bird:test.json:1252
Find the unique id of the painters who had medium oil paintings exhibited at gallery 240?
SELECT DISTINCT painterID FROM paintings WHERE medium = "oil" AND LOCATION = "Gallery 240"
[ "Find", "the", "unique", "i", "d", "of", "the", "painters", "who", "had", "medium", "oil", "paintings", "exhibited", "at", "gallery", "240", "?" ]
[ { "id": 5, "type": "column", "value": "Gallery 240" }, { "id": 0, "type": "table", "value": "paintings" }, { "id": 1, "type": "column", "value": "painterid" }, { "id": 4, "type": "column", "value": "location" }, { "id": 2, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "enti...
[ "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "B-COLUMN", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]