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 |
|---|---|---|---|---|---|---|---|---|
13,373 | video_game | bird:test.json:1952 | What are the different developers of games that are played by players that attend Auburn college? | SELECT DISTINCT T1.Developers FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.College = "Auburn" | [
"What",
"are",
"the",
"different",
"developers",
"of",
"games",
"that",
"are",
"played",
"by",
"players",
"that",
"attend",
"Auburn",
"college",
"?"
] | [
{
"id": 5,
"type": "table",
"value": "game_player"
},
{
"id": 0,
"type": "column",
"value": "developers"
},
{
"id": 6,
"type": "column",
"value": "player_id"
},
{
"id": 2,
"type": "column",
"value": "college"
},
{
"id": 7,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
13,374 | retail_world | bird:train.json:6564 | Provide Speedy Express's phone number and number of shipped orders on 30th January, 1998. | SELECT T2.Phone, COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Speedy Express' AND T1.ShippedDate LIKE '1998-01-30%' GROUP BY T2.Phone | [
"Provide",
"Speedy",
"Express",
"'s",
"phone",
"number",
"and",
"number",
"of",
"shipped",
"orders",
"on",
"30th",
"January",
",",
"1998",
"."
] | [
{
"id": 7,
"type": "value",
"value": "Speedy Express"
},
{
"id": 6,
"type": "column",
"value": "companyname"
},
{
"id": 8,
"type": "column",
"value": "shippeddate"
},
{
"id": 9,
"type": "value",
"value": "1998-01-30%"
},
{
"id": 5,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,375 | online_exams | bird:test.json:222 | For each gender, return the gender code and the number of students who identify as that gender. | SELECT Gender_MFU , COUNT(*) FROM Students GROUP BY Gender_MFU | [
"For",
"each",
"gender",
",",
"return",
"the",
"gender",
"code",
"and",
"the",
"number",
"of",
"students",
"who",
"identify",
"as",
"that",
"gender",
"."
] | [
{
"id": 1,
"type": "column",
"value": "gender_mfu"
},
{
"id": 0,
"type": "table",
"value": "students"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,376 | shop_membership | spider:train_spider.json:5428 | What is the name and open year for the branch with most number of memberships registered in 2016? | SELECT T2.name , T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"and",
"open",
"year",
"for",
"the",
"branch",
"with",
"most",
"number",
"of",
"memberships",
"registered",
"in",
"2016",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "membership_register_branch"
},
{
"id": 5,
"type": "column",
"value": "register_year"
},
{
"id": 0,
"type": "column",
"value": "branch_id"
},
{
"id": 2,
"type": "column",
"value": "open_year"
},
{
"id": 4,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": [
14,
16
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-TABLE",
"B-VALUE",
"O"
] |
13,379 | video_games | bird:train.json:3361 | List down the names of platform where the games released in 2016 can be played on. | SELECT DISTINCT T1.platform_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id WHERE T2.release_year = 2016 | [
"List",
"down",
"the",
"names",
"of",
"platform",
"where",
"the",
"games",
"released",
"in",
"2016",
"can",
"be",
"played",
"on",
"."
] | [
{
"id": 0,
"type": "column",
"value": "platform_name"
},
{
"id": 2,
"type": "table",
"value": "game_platform"
},
{
"id": 3,
"type": "column",
"value": "release_year"
},
{
"id": 6,
"type": "column",
"value": "platform_id"
},
{
"id": 1,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
13,380 | gas_company | spider:train_spider.json:2004 | What are the different main industries for all companies? | SELECT DISTINCT main_industry FROM company | [
"What",
"are",
"the",
"different",
"main",
"industries",
"for",
"all",
"companies",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "main_industry"
},
{
"id": 0,
"type": "table",
"value": "company"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
13,381 | codebase_community | bird:dev.json:707 | Among the posts with views ranging from 100 to 150, what is the comment with the highest score? | SELECT Text FROM comments WHERE PostId IN ( SELECT Id FROM posts WHERE ViewCount BETWEEN 100 AND 150 ) ORDER BY Score DESC LIMIT 1 | [
"Among",
"the",
"posts",
"with",
"views",
"ranging",
"from",
"100",
"to",
"150",
",",
"what",
"is",
"the",
"comment",
"with",
"the",
"highest",
"score",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "viewcount"
},
{
"id": 0,
"type": "table",
"value": "comments"
},
{
"id": 2,
"type": "column",
"value": "postid"
},
{
"id": 3,
"type": "column",
"value": "score"
},
{
"id": 4,
"type": "table",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
18
]
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,382 | talkingdata | bird:train.json:1141 | Among all the users who use a vivo device, what is the age of the youngest user? | SELECT T1.age FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo' ORDER BY T1.age LIMIT 1 | [
"Among",
"all",
"the",
"users",
"who",
"use",
"a",
"vivo",
"device",
",",
"what",
"is",
"the",
"age",
"of",
"the",
"youngest",
"user",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "phone_brand_device_model2"
},
{
"id": 3,
"type": "column",
"value": "phone_brand"
},
{
"id": 1,
"type": "table",
"value": "gender_age"
},
{
"id": 5,
"type": "column",
"value": "device_id"
},
{
"id": 4,
"typ... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
13,383 | sing_contest | bird:test.json:750 | What are the ids, names and popularity of the participants, order by the number of songs they perform? | SELECT T1.id , T1.Name , T1.popularity FROM participants AS T1 JOIN performance_score AS T2 ON T2.participant_id = T1.id GROUP BY T1.id ORDER BY count(*) | [
"What",
"are",
"the",
"ids",
",",
"names",
"and",
"popularity",
"of",
"the",
"participants",
",",
"order",
"by",
"the",
"number",
"of",
"songs",
"they",
"perform",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "performance_score"
},
{
"id": 5,
"type": "column",
"value": "participant_id"
},
{
"id": 3,
"type": "table",
"value": "participants"
},
{
"id": 2,
"type": "column",
"value": "popularity"
},
{
"id": 1,
"type"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
19
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,384 | boat_1 | bird:test.json:882 | What are the names and ids of all sailors who have a rating of at least 3 and reserved a boat? | SELECT DISTINCT T1.name , T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid WHERE T1.rating > 2 | [
"What",
"are",
"the",
"names",
"and",
"ids",
"of",
"all",
"sailors",
"who",
"have",
"a",
"rating",
"of",
"at",
"least",
"3",
"and",
"reserved",
"a",
"boat",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "reserves"
},
{
"id": 2,
"type": "table",
"value": "sailors"
},
{
"id": 4,
"type": "column",
"value": "rating"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 1,
"type": "column",
"value": "si... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
18
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
13,385 | student_1 | spider:train_spider.json:4045 | Show me the classrooms grade 5 is using. | SELECT DISTINCT classroom FROM list WHERE grade = 5 | [
"Show",
"me",
"the",
"classrooms",
"grade",
"5",
"is",
"using",
"."
] | [
{
"id": 1,
"type": "column",
"value": "classroom"
},
{
"id": 2,
"type": "column",
"value": "grade"
},
{
"id": 0,
"type": "table",
"value": "list"
},
{
"id": 3,
"type": "value",
"value": "5"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-VALUE",
"B-TABLE",
"O",
"O"
] |
13,386 | network_2 | spider:train_spider.json:4472 | Find the name of persons who are friends with Alice for the shortest years. | SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT min(YEAR) FROM PersonFriend WHERE friend = 'Alice') | [
"Find",
"the",
"name",
"of",
"persons",
"who",
"are",
"friends",
"with",
"Alice",
"for",
"the",
"shortest",
"years",
"."
] | [
{
"id": 0,
"type": "table",
"value": "personfriend"
},
{
"id": 2,
"type": "column",
"value": "friend"
},
{
"id": 3,
"type": "value",
"value": "Alice"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,388 | cars | bird:train.json:3134 | What is the price of Chevrolet Vega 2300? | SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'chevrolet vega 2300' | [
"What",
"is",
"the",
"price",
"of",
"Chevrolet",
"Vega",
"2300",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "chevrolet vega 2300"
},
{
"id": 3,
"type": "column",
"value": "car_name"
},
{
"id": 0,
"type": "column",
"value": "price"
},
{
"id": 2,
"type": "table",
"value": "price"
},
{
"id": 1,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5,
6,
7
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
13,389 | ice_hockey_draft | bird:train.json:6990 | How many playoffs did Per Mars participate in? | SELECT SUM(T2.GP) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.PlayerName = 'Per Mars' AND T2.GAMETYPE = 'Playoffs' | [
"How",
"many",
"playoffs",
"did",
"Per",
"Mars",
"participate",
"in",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "seasonstatus"
},
{
"id": 0,
"type": "table",
"value": "playerinfo"
},
{
"id": 4,
"type": "column",
"value": "playername"
},
{
"id": 5,
"type": "value",
"value": "Per Mars"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
4,
5
]
... | [
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
13,390 | government_shift | bird:test.json:361 | Find all the services that has been used by the customer with details "Hardy Kutch". | SELECT t3.service_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t1.customer_details = "Hardy Kutch" | [
"Find",
"all",
"the",
"services",
"that",
"has",
"been",
"used",
"by",
"the",
"customer",
"with",
"details",
"\"",
"Hardy",
"Kutch",
"\"",
"."
] | [
{
"id": 5,
"type": "table",
"value": "customers_and_services"
},
{
"id": 2,
"type": "column",
"value": "customer_details"
},
{
"id": 0,
"type": "column",
"value": "service_details"
},
{
"id": 3,
"type": "column",
"value": "Hardy Kutch"
},
{
"id": 7... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
11,
12
]
},
{
"entity_id": 3,
"token_idxs": [
14,
15
]
},
{
"entity_id": 4,
"token_idxs": [
10
... | [
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
13,391 | soccer_2016 | bird:train.json:1823 | How many matches did Team 10 play in 2012? | SELECT SUM(CASE WHEN Team_1 = 10 OR Team_2 = 10 THEN 1 ELSE 0 END) FROM `Match` WHERE SUBSTR(Match_Date, 1, 4) = '2012' | [
"How",
"many",
"matches",
"did",
"Team",
"10",
"play",
"in",
"2012",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "match_date"
},
{
"id": 6,
"type": "column",
"value": "team_1"
},
{
"id": 8,
"type": "column",
"value": "team_2"
},
{
"id": 0,
"type": "table",
"value": "Match"
},
{
"id": 1,
"type": "value",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
13,392 | codebase_community | bird:dev.json:653 | What is the owner's display name of the most popular post? | SELECT DisplayName FROM users WHERE Id = ( SELECT OwnerUserId FROM posts ORDER BY ViewCount DESC LIMIT 1 ) | [
"What",
"is",
"the",
"owner",
"'s",
"display",
"name",
"of",
"the",
"most",
"popular",
"post",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "displayname"
},
{
"id": 4,
"type": "column",
"value": "owneruserid"
},
{
"id": 5,
"type": "column",
"value": "viewcount"
},
{
"id": 0,
"type": "table",
"value": "users"
},
{
"id": 3,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
3,
4
]
},
{
"e... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,393 | donor | bird:train.json:3259 | Write the messages of those who donated to the Newark School District in the coordinates of 40.735332, -74.196014. | SELECT T1.donation_message FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_latitude = 40.735332 AND T2.school_longitude = -74.196014 AND T2.school_district = 'Newark School District' | [
"Write",
"the",
"messages",
"of",
"those",
"who",
"donated",
"to",
"the",
"Newark",
"School",
"District",
"in",
"the",
"coordinates",
"of",
"40.735332",
",",
"-74.196014",
"."
] | [
{
"id": 9,
"type": "value",
"value": "Newark School District"
},
{
"id": 0,
"type": "column",
"value": "donation_message"
},
{
"id": 6,
"type": "column",
"value": "school_longitude"
},
{
"id": 4,
"type": "column",
"value": "school_latitude"
},
{
"i... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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,
"toke... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
13,394 | superhero | bird:dev.json:785 | Describe the names of neutral alignment superheroes. | SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id WHERE T2.alignment = 'Neutral' | [
"Describe",
"the",
"names",
"of",
"neutral",
"alignment",
"superheroes",
"."
] | [
{
"id": 0,
"type": "column",
"value": "superhero_name"
},
{
"id": 5,
"type": "column",
"value": "alignment_id"
},
{
"id": 1,
"type": "table",
"value": "superhero"
},
{
"id": 2,
"type": "table",
"value": "alignment"
},
{
"id": 3,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"B-TABLE",
"O"
] |
13,395 | public_review_platform | bird:train.json:4020 | What is the closing time of business id 4 on Sunday? | SELECT T2.closing_time FROM Days AS T1 INNER JOIN Business_Hours AS T2 ON T1.day_id = T2.day_id WHERE T1.day_of_week = 'Sunday' AND T2.business_id = 4 | [
"What",
"is",
"the",
"closing",
"time",
"of",
"business",
"i",
"d",
"4",
"on",
"Sunday",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "business_hours"
},
{
"id": 0,
"type": "column",
"value": "closing_time"
},
{
"id": 4,
"type": "column",
"value": "day_of_week"
},
{
"id": 6,
"type": "column",
"value": "business_id"
},
{
"id": 3,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"B-TABLE",
"O"
] |
13,396 | aan_1 | bird:test.json:990 | How many papers did each author publish, ordered by number of papers? | SELECT T1.name , count(*) FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_id ORDER BY count(*) DESC | [
"How",
"many",
"papers",
"did",
"each",
"author",
"publish",
",",
"ordered",
"by",
"number",
"of",
"papers",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "author_list"
},
{
"id": 0,
"type": "column",
"value": "author_id"
},
{
"id": 2,
"type": "table",
"value": "author"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
13,397 | video_games | bird:train.json:3500 | List down at least five publishers of the games with number of sales less than 10000. | SELECT T.publisher_name FROM ( SELECT DISTINCT T5.publisher_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN publisher AS T5 ON T4.publisher_id = T5.id WHE... | [
"List",
"down",
"at",
"least",
"five",
"publishers",
"of",
"the",
"games",
"with",
"number",
"of",
"sales",
"less",
"than",
"10000",
"."
] | [
{
"id": 9,
"type": "column",
"value": "game_publisher_id"
},
{
"id": 14,
"type": "column",
"value": "game_platform_id"
},
{
"id": 0,
"type": "column",
"value": "publisher_name"
},
{
"id": 2,
"type": "table",
"value": "game_publisher"
},
{
"id": 6,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
13,398 | regional_sales | bird:train.json:2658 | Find the number of baseball ordered in December 2017. | SELECT COUNT(T2.OrderNumber) FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID WHERE T1.`Product Name` = 'Baseball' AND T2.OrderDate LIKE '12/%/18' | [
"Find",
"the",
"number",
"of",
"baseball",
"ordered",
"in",
"December",
"2017",
"."
] | [
{
"id": 1,
"type": "table",
"value": "Sales Orders"
},
{
"id": 5,
"type": "column",
"value": "Product Name"
},
{
"id": 2,
"type": "column",
"value": "ordernumber"
},
{
"id": 3,
"type": "column",
"value": "_productid"
},
{
"id": 4,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
13,399 | election | spider:train_spider.json:2787 | Which counties have two or more delegates? Give me the county names. | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2 | [
"Which",
"counties",
"have",
"two",
"or",
"more",
"delegates",
"?",
"Give",
"me",
"the",
"county",
"names",
"."
] | [
{
"id": 1,
"type": "column",
"value": "county_name"
},
{
"id": 0,
"type": "column",
"value": "county_id"
},
{
"id": 3,
"type": "table",
"value": "election"
},
{
"id": 5,
"type": "column",
"value": "district"
},
{
"id": 2,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"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",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
13,400 | european_football_2 | bird:dev.json:1088 | Please list the names of the players whose volley score and dribbling score are over 70. | SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.volleys > 70 AND t2.dribbling > 70 | [
"Please",
"list",
"the",
"names",
"of",
"the",
"players",
"whose",
"volley",
"score",
"and",
"dribbling",
"score",
"are",
"over",
"70",
"."
] | [
{
"id": 2,
"type": "table",
"value": "player_attributes"
},
{
"id": 3,
"type": "column",
"value": "player_api_id"
},
{
"id": 0,
"type": "column",
"value": "player_name"
},
{
"id": 6,
"type": "column",
"value": "dribbling"
},
{
"id": 4,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
13,401 | soccer_2016 | bird:train.json:1819 | How many times does M Chinnaswamy Stadium host games than Maharashtra Cricket Association Stadium? | SELECT SUM(CASE WHEN T2.Venue_Name = 'M Chinnaswamy Stadium' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.Venue_Name = 'Maharashtra Cricket Association Stadium' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id | [
"How",
"many",
"times",
"does",
"M",
"Chinnaswamy",
"Stadium",
"host",
"games",
"than",
"Maharashtra",
"Cricket",
"Association",
"Stadium",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "Maharashtra Cricket Association Stadium"
},
{
"id": 6,
"type": "value",
"value": "M Chinnaswamy Stadium"
},
{
"id": 5,
"type": "column",
"value": "venue_name"
},
{
"id": 2,
"type": "column",
"value": "venue_id"
},
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
13,402 | works_cycles | bird:train.json:7461 | How many products using "roadster_black_small.gif" as the thumbnail photo? | SELECT COUNT(DISTINCT T2.ProductID) FROM ProductPhoto AS T1 INNER JOIN ProductProductPhoto AS T2 ON T1.ProductPhotoID = T2.ProductPhotoID WHERE T1.LargePhotoFileName = 'roadster_black_large.gif' | [
"How",
"many",
"products",
"using",
"\"",
"roadster_black_small.gif",
"\"",
"as",
"the",
"thumbnail",
"photo",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "roadster_black_large.gif"
},
{
"id": 1,
"type": "table",
"value": "productproductphoto"
},
{
"id": 2,
"type": "column",
"value": "largephotofilename"
},
{
"id": 5,
"type": "column",
"value": "productphotoid"
},
{
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,403 | shipping | bird:train.json:5624 | Identify the full name of the driver who delivered a shipment to the city of New York in February 2016. | SELECT T3.first_name, T3.last_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN driver AS T3 ON T3.driver_id = T1.driver_id WHERE T2.city_name = 'New York' AND T1.ship_date LIKE '2016-02%' | [
"Identify",
"the",
"full",
"name",
"of",
"the",
"driver",
"who",
"delivered",
"a",
"shipment",
"to",
"the",
"city",
"of",
"New",
"York",
"in",
"February",
"2016",
"."
] | [
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 1,
"type": "column",
"value": "last_name"
},
{
"id": 5,
"type": "column",
"value": "driver_id"
},
{
"id": 6,
"type": "column",
"value": "city_name"
},
{
"id": 8,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
13,404 | customers_and_orders | bird:test.json:242 | Give the price of the Monitor product. | SELECT product_price FROM Products WHERE product_name = "Monitor" | [
"Give",
"the",
"price",
"of",
"the",
"Monitor",
"product",
"."
] | [
{
"id": 1,
"type": "column",
"value": "product_price"
},
{
"id": 2,
"type": "column",
"value": "product_name"
},
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 3,
"type": "column",
"value": "Monitor"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"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",
"B-TABLE",
"O"
] |
13,405 | works_cycles | bird:train.json:7064 | What is the name style of the employee with the lowest pay rate? | SELECT T2.NameStyle FROM EmployeePayHistory AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Rate IS NOT NULL ORDER BY T1.Rate ASC LIMIT 1 | [
"What",
"is",
"the",
"name",
"style",
"of",
"the",
"employee",
"with",
"the",
"lowest",
"pay",
"rate",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "employeepayhistory"
},
{
"id": 4,
"type": "column",
"value": "businessentityid"
},
{
"id": 0,
"type": "column",
"value": "namestyle"
},
{
"id": 2,
"type": "table",
"value": "person"
},
{
"id": 3,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
7,
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"e... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,406 | movie_3 | bird:train.json:9342 | List down all of the film titles that are rated for general audiences. | SELECT title FROM film WHERE rating = 'G' | [
"List",
"down",
"all",
"of",
"the",
"film",
"titles",
"that",
"are",
"rated",
"for",
"general",
"audiences",
"."
] | [
{
"id": 2,
"type": "column",
"value": "rating"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 0,
"type": "table",
"value": "film"
},
{
"id": 3,
"type": "value",
"value": "G"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,407 | college_2 | spider:train_spider.json:1374 | List the names of all courses ordered by their titles and credits. | SELECT title FROM course ORDER BY title , credits | [
"List",
"the",
"names",
"of",
"all",
"courses",
"ordered",
"by",
"their",
"titles",
"and",
"credits",
"."
] | [
{
"id": 2,
"type": "column",
"value": "credits"
},
{
"id": 0,
"type": "table",
"value": "course"
},
{
"id": 1,
"type": "column",
"value": "title"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"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",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
13,408 | disney | bird:train.json:4669 | Who voiced the villain in "The Rescuers"? | SELECT T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T2.movie_title = T1.movie WHERE T2.movie_title = 'The Rescuers' AND T1.character = T2.villian | [
"Who",
"voiced",
"the",
"villain",
"in",
"\"",
"The",
"Rescuers",
"\"",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "voice-actors"
},
{
"id": 5,
"type": "value",
"value": "The Rescuers"
},
{
"id": 0,
"type": "column",
"value": "voice-actor"
},
{
"id": 3,
"type": "column",
"value": "movie_title"
},
{
"id": 2,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
6,
... | [
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
13,410 | menu | bird:train.json:5476 | Among all the menu pages with the appearance of the dish "Clear green turtle", how many of them have the dish at a stable price? | SELECT SUM(CASE WHEN T1.name = 'Clear green turtle' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.highest_price IS NULL | [
"Among",
"all",
"the",
"menu",
"pages",
"with",
"the",
"appearance",
"of",
"the",
"dish",
"\"",
"Clear",
"green",
"turtle",
"\"",
",",
"how",
"many",
"of",
"them",
"have",
"the",
"dish",
"at",
"a",
"stable",
"price",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "Clear green turtle"
},
{
"id": 2,
"type": "column",
"value": "highest_price"
},
{
"id": 1,
"type": "table",
"value": "menuitem"
},
{
"id": 4,
"type": "column",
"value": "dish_id"
},
{
"id": 0,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
23
]
},
{
"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-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
13,411 | book_press | bird:test.json:1996 | Which book series contain both books with sale amount above 1000 and books with sale amount below 500? | SELECT book_series FROM book WHERE sale_amount > 1000 INTERSECT SELECT book_series FROM book WHERE sale_amount < 500 | [
"Which",
"book",
"series",
"contain",
"both",
"books",
"with",
"sale",
"amount",
"above",
"1000",
"and",
"books",
"with",
"sale",
"amount",
"below",
"500",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "book_series"
},
{
"id": 2,
"type": "column",
"value": "sale_amount"
},
{
"id": 0,
"type": "table",
"value": "book"
},
{
"id": 3,
"type": "value",
"value": "1000"
},
{
"id": 4,
"type": "value",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
14,
15
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
17
... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
13,412 | college_3 | spider:train_spider.json:4708 | What are the first names of all students that are not enrolled in courses? | SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN) | [
"What",
"are",
"the",
"first",
"names",
"of",
"all",
"students",
"that",
"are",
"not",
"enrolled",
"in",
"courses",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "enrolled_in"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "fname"
},
{
"id": 2,
"type": "column",
"value": "stuid"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O"
] |
13,413 | soccer_2016 | bird:train.json:1856 | List the over IDs, ball IDs, and innings numbers of the match ID "336004" while the batsman got the maximum scores. | SELECT Over_Id, Ball_Id, Innings_No FROM Batsman_Scored WHERE Match_Id = 336004 ORDER BY Runs_Scored DESC LIMIT 1 | [
"List",
"the",
"over",
"IDs",
",",
"ball",
"IDs",
",",
"and",
"innings",
"numbers",
"of",
"the",
"match",
"ID",
"\"",
"336004",
"\"",
"while",
"the",
"batsman",
"got",
"the",
"maximum",
"scores",
"."
] | [
{
"id": 0,
"type": "table",
"value": "batsman_scored"
},
{
"id": 6,
"type": "column",
"value": "runs_scored"
},
{
"id": 3,
"type": "column",
"value": "innings_no"
},
{
"id": 4,
"type": "column",
"value": "match_id"
},
{
"id": 1,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": [
20
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,414 | movielens | bird:train.json:2282 | For the movies in English that are the oldest, how many of them have the lowest rating? | SELECT COUNT(DISTINCT T1.movieid) FROM movies AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid WHERE T1.year = 1 AND T2.rating = 1 AND T1.isEnglish = 'T' | [
"For",
"the",
"movies",
"in",
"English",
"that",
"are",
"the",
"oldest",
",",
"how",
"many",
"of",
"them",
"have",
"the",
"lowest",
"rating",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "isenglish"
},
{
"id": 2,
"type": "column",
"value": "movieid"
},
{
"id": 0,
"type": "table",
"value": "movies"
},
{
"id": 1,
"type": "table",
"value": "u2base"
},
{
"id": 5,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
17
... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,415 | candidate_poll | spider:train_spider.json:2430 | find the name of people whose height is lower than the average. | SELECT name FROM people WHERE height < (SELECT avg(height) FROM people) | [
"find",
"the",
"name",
"of",
"people",
"whose",
"height",
"is",
"lower",
"than",
"the",
"average",
"."
] | [
{
"id": 0,
"type": "table",
"value": "people"
},
{
"id": 2,
"type": "column",
"value": "height"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,416 | retail_world | bird:train.json:6439 | How many territories are there? | SELECT COUNT(TerritoryID) FROM Territories | [
"How",
"many",
"territories",
"are",
"there",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "territories"
},
{
"id": 1,
"type": "column",
"value": "territoryid"
}
] | [
{
"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": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
13,417 | books | bird:train.json:6031 | In which cities are the customers of Costa Rica located? | SELECT T1.city FROM address AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE T2.country_name = 'Costa Rica' | [
"In",
"which",
"cities",
"are",
"the",
"customers",
"of",
"Costa",
"Rica",
"located",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "country_name"
},
{
"id": 4,
"type": "value",
"value": "Costa Rica"
},
{
"id": 5,
"type": "column",
"value": "country_id"
},
{
"id": 1,
"type": "table",
"value": "address"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7,
8
]
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
13,418 | retail_complains | bird:train.json:386 | Please give the first name and phone number of the client whose complaint id is CR0922485. | SELECT T1.first, T1.phone FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Complaint ID` = 'CR0922485' | [
"Please",
"give",
"the",
"first",
"name",
"and",
"phone",
"number",
"of",
"the",
"client",
"whose",
"complaint",
"i",
"d",
"is",
"CR0922485",
"."
] | [
{
"id": 4,
"type": "column",
"value": "Complaint ID"
},
{
"id": 5,
"type": "value",
"value": "CR0922485"
},
{
"id": 6,
"type": "column",
"value": "client_id"
},
{
"id": 2,
"type": "table",
"value": "client"
},
{
"id": 3,
"type": "table",
"v... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12,
13,
14
]... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
13,419 | car_retails | bird:train.json:1628 | How many customers have an employee who reports to William Patterson as their sales representitive? | SELECT COUNT(t1.customerNumber) FROM customers AS t1 INNER JOIN employees AS t2 ON t1.salesRepEmployeeNumber = t2.employeeNumber WHERE t2.firstName = 'William' AND t2.lastName = 'Patterson' | [
"How",
"many",
"customers",
"have",
"an",
"employee",
"who",
"reports",
"to",
"William",
"Patterson",
"as",
"their",
"sales",
"representitive",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "salesrepemployeenumber"
},
{
"id": 2,
"type": "column",
"value": "customernumber"
},
{
"id": 4,
"type": "column",
"value": "employeenumber"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 1,
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
13,420 | chinook_1 | spider:train_spider.json:815 | What are the distinct billing countries of the invoices? | SELECT distinct(BillingCountry) FROM INVOICE | [
"What",
"are",
"the",
"distinct",
"billing",
"countries",
"of",
"the",
"invoices",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "billingcountry"
},
{
"id": 0,
"type": "table",
"value": "invoice"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
13,421 | bakery_1 | bird:test.json:1500 | What are the customer ids of customers who have at least 15 receipts? | SELECT CustomerId FROM receipts GROUP BY CustomerId HAVING count(*) >= 15 | [
"What",
"are",
"the",
"customer",
"ids",
"of",
"customers",
"who",
"have",
"at",
"least",
"15",
"receipts",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "customerid"
},
{
"id": 0,
"type": "table",
"value": "receipts"
},
{
"id": 2,
"type": "value",
"value": "15"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
13,422 | icfp_1 | spider:train_spider.json:2889 | How many papers are written by authors from the institution "University of Pennsylvania"? | SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Pennsylvania" | [
"How",
"many",
"papers",
"are",
"written",
"by",
"authors",
"from",
"the",
"institution",
"\"",
"University",
"of",
"Pennsylvania",
"\"",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "University of Pennsylvania"
},
{
"id": 5,
"type": "table",
"value": "authorship"
},
{
"id": 7,
"type": "column",
"value": "paperid"
},
{
"id": 4,
"type": "table",
"value": "papers"
},
{
"id": 6,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
11,
12,
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O"
] |
13,423 | hockey | bird:train.json:7718 | For the goalies whose weight are above 190, who had most goal againsts in 1978 season? | SELECT T1.playerID FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.year = '1978' AND T2.weight > 190 ORDER BY T1.GA DESC LIMIT 1 | [
"For",
"the",
"goalies",
"whose",
"weight",
"are",
"above",
"190",
",",
"who",
"had",
"most",
"goal",
"againsts",
"in",
"1978",
"season",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "playerid"
},
{
"id": 1,
"type": "table",
"value": "goalies"
},
{
"id": 2,
"type": "table",
"value": "master"
},
{
"id": 6,
"type": "column",
"value": "weight"
},
{
"id": 4,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
13,424 | image_and_language | bird:train.json:7544 | Name the object class of the image with a bounding (422, 63, 77, 363). | SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.X = 422 AND T1.Y = 63 AND T1.W = 77 AND T1.H = 363 | [
"Name",
"the",
"object",
"class",
"of",
"the",
"image",
"with",
"a",
"bounding",
"(",
"422",
",",
"63",
",",
"77",
",",
"363",
")",
"."
] | [
{
"id": 3,
"type": "column",
"value": "obj_class_id"
},
{
"id": 2,
"type": "table",
"value": "obj_classes"
},
{
"id": 0,
"type": "column",
"value": "obj_class"
},
{
"id": 1,
"type": "table",
"value": "img_obj"
},
{
"id": 5,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O"
] |
13,425 | flight_1 | spider:train_spider.json:419 | How many employees have certificate. | SELECT count(DISTINCT eid) FROM Certificate | [
"How",
"many",
"employees",
"have",
"certificate",
"."
] | [
{
"id": 0,
"type": "table",
"value": "certificate"
},
{
"id": 1,
"type": "column",
"value": "eid"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,426 | disney | bird:train.json:4658 | What is the most popular movie directed by Ron Clements? | SELECT T2.name FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T2.name = T1.movie_title WHERE T2.director = 'Ron Clements' ORDER BY CAST(REPLACE(SUBSTR(total_gross, 2), ',', '') AS int) DESC LIMIT 1 | [
"What",
"is",
"the",
"most",
"popular",
"movie",
"directed",
"by",
"Ron",
"Clements",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "movies_total_gross"
},
{
"id": 4,
"type": "value",
"value": "Ron Clements"
},
{
"id": 5,
"type": "column",
"value": "movie_title"
},
{
"id": 7,
"type": "column",
"value": "total_gross"
},
{
"id": 2,
"type":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
8,
9
]
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
13,427 | insurance_and_eClaims | spider:train_spider.json:1535 | Find the names of all the customers and staff members. | SELECT customer_details FROM customers UNION SELECT staff_details FROM staff | [
"Find",
"the",
"names",
"of",
"all",
"the",
"customers",
"and",
"staff",
"members",
"."
] | [
{
"id": 2,
"type": "column",
"value": "customer_details"
},
{
"id": 3,
"type": "column",
"value": "staff_details"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 1,
"type": "table",
"value": "staff"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O"
] |
13,428 | bike_share_1 | bird:train.json:9101 | What is the average coldest temperature for the zip code of 94301 and what stations are within the zip code? Include the latitude and longitude as well. | SELECT AVG(T3.min_temperature_f), T1.long, T1.lat FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name INNER JOIN weather AS T3 ON T3.zip_code = T2.zip_code WHERE T3.zip_code = 94301 | [
"What",
"is",
"the",
"average",
"coldest",
"temperature",
"for",
"the",
"zip",
"code",
"of",
"94301",
"and",
"what",
"stations",
"are",
"within",
"the",
"zip",
"code",
"?",
"Include",
"the",
"latitude",
"and",
"longitude",
"as",
"well",
"."
] | [
{
"id": 8,
"type": "column",
"value": "start_station_name"
},
{
"id": 5,
"type": "column",
"value": "min_temperature_f"
},
{
"id": 3,
"type": "column",
"value": "zip_code"
},
{
"id": 2,
"type": "table",
"value": "weather"
},
{
"id": 6,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
25
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
13,429 | codebase_community | bird:dev.json:630 | What is the name of tags used by John Salvatier's? | SELECT T3.Tags FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN posts AS T3 ON T2.PostId = T3.Id WHERE T1.DisplayName = 'John Salvatier' | [
"What",
"is",
"the",
"name",
"of",
"tags",
"used",
"by",
"John",
"Salvatier",
"'s",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "John Salvatier"
},
{
"id": 2,
"type": "column",
"value": "displayname"
},
{
"id": 5,
"type": "table",
"value": "posthistory"
},
{
"id": 6,
"type": "column",
"value": "postid"
},
{
"id": 8,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
13,430 | soccer_2016 | bird:train.json:1842 | Give the country where St. George's Park is located. | SELECT T3.Country_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T2.City_Id = T1.City_Id INNER JOIN Country AS T3 ON T3.Country_Id = T2.Country_id WHERE T1.Venue_Name = 'St George''s Park' | [
"Give",
"the",
"country",
"where",
"St.",
"George",
"'s",
"Park",
"is",
"located",
"."
] | [
{
"id": 3,
"type": "value",
"value": "St George's Park"
},
{
"id": 0,
"type": "column",
"value": "country_name"
},
{
"id": 2,
"type": "column",
"value": "venue_name"
},
{
"id": 6,
"type": "column",
"value": "country_id"
},
{
"id": 1,
"type": "t... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4,
5,
6,
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
13,431 | swimming | spider:train_spider.json:5623 | Find the name of the swimmer who has the most records. | SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY count(*) DESC LIMIT 1 | [
"Find",
"the",
"name",
"of",
"the",
"swimmer",
"who",
"has",
"the",
"most",
"records",
"."
] | [
{
"id": 0,
"type": "column",
"value": "swimmer_id"
},
{
"id": 2,
"type": "table",
"value": "swimmer"
},
{
"id": 3,
"type": "table",
"value": "record"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
0
]
},
{
"entity... | [
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,432 | public_review_platform | bird:train.json:3868 | How many "Good for Kids" Yelp_Businesses are open everyday of the week? | SELECT COUNT(T1.business_id) FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business_Attributes AS T3 ON T1.business_id = T3.business_id INNER JOIN Attributes AS T4 ON T4.attribute_id = T4.attribute_id WHERE T2.day_id IN (1, 2, 3, 4, 5, 6, 7) AND T4.attribute_name = 'Good for Kids' ... | [
"How",
"many",
"\"",
"Good",
"for",
"Kids",
"\"",
"Yelp_Businesses",
"are",
"open",
"everyday",
"of",
"the",
"week",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "business_attributes"
},
{
"id": 14,
"type": "column",
"value": "attribute_value"
},
{
"id": 12,
"type": "column",
"value": "attribute_name"
},
{
"id": 16,
"type": "table",
"value": "business_hours"
},
{
"id": 1... | [
{
"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": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,433 | olympics | bird:train.json:5054 | What were the cities in which John Aalberg competed? | SELECT T4.city_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN games_city AS T3 ON T2.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id WHERE T1.full_name = 'John Aalberg' | [
"What",
"were",
"the",
"cities",
"in",
"which",
"John",
"Aalberg",
"competed",
"?"
] | [
{
"id": 8,
"type": "table",
"value": "games_competitor"
},
{
"id": 3,
"type": "value",
"value": "John Aalberg"
},
{
"id": 4,
"type": "table",
"value": "games_city"
},
{
"id": 0,
"type": "column",
"value": "city_name"
},
{
"id": 2,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6,
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
13,434 | airline | bird:train.json:5889 | List the tail number of flights that flew on August 17, 2018. | SELECT TAIL_NUM FROM Airlines WHERE FL_DATE = '2018/8/17' GROUP BY TAIL_NUM | [
"List",
"the",
"tail",
"number",
"of",
"flights",
"that",
"flew",
"on",
"August",
"17",
",",
"2018",
"."
] | [
{
"id": 3,
"type": "value",
"value": "2018/8/17"
},
{
"id": 0,
"type": "table",
"value": "airlines"
},
{
"id": 1,
"type": "column",
"value": "tail_num"
},
{
"id": 2,
"type": "column",
"value": "fl_date"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
13,435 | hr_1 | spider:train_spider.json:3414 | What is all the information about the Marketing department? | SELECT * FROM departments WHERE department_name = 'Marketing' | [
"What",
"is",
"all",
"the",
"information",
"about",
"the",
"Marketing",
"department",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "department_name"
},
{
"id": 0,
"type": "table",
"value": "departments"
},
{
"id": 2,
"type": "value",
"value": "Marketing"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
13,436 | district_spokesman | bird:test.json:1184 | List the ids, names, and government websites of all districts sorted by population. | SELECT name , Government_website , district_id FROM district ORDER BY Population | [
"List",
"the",
"ids",
",",
"names",
",",
"and",
"government",
"websites",
"of",
"all",
"districts",
"sorted",
"by",
"population",
"."
] | [
{
"id": 2,
"type": "column",
"value": "government_website"
},
{
"id": 3,
"type": "column",
"value": "district_id"
},
{
"id": 4,
"type": "column",
"value": "population"
},
{
"id": 0,
"type": "table",
"value": "district"
},
{
"id": 1,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O"
] |
13,437 | dorm_1 | spider:train_spider.json:5753 | What amenities does Smith Hall have in alphabetical order? | SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name | [
"What",
"amenities",
"does",
"Smith",
"Hall",
"have",
"in",
"alphabetical",
"order",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "amenity_name"
},
{
"id": 1,
"type": "table",
"value": "dorm_amenity"
},
{
"id": 5,
"type": "table",
"value": "has_amenity"
},
{
"id": 3,
"type": "value",
"value": "Smith Hall"
},
{
"id": 2,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
3,
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
... | [
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
13,438 | public_review_platform | bird:train.json:3808 | Provide the businesses name in Tempe city whose opening hours are earlier than 8AM. | SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T3.city LIKE 'Tempe' AND T4.opening_time < '8AM' | [
"Provide",
"the",
"businesses",
"name",
"in",
"Tempe",
"city",
"whose",
"opening",
"hours",
"are",
"earlier",
"than",
"8AM",
"."
] | [
{
"id": 9,
"type": "table",
"value": "business_categories"
},
{
"id": 1,
"type": "table",
"value": "business_hours"
},
{
"id": 0,
"type": "column",
"value": "category_name"
},
{
"id": 6,
"type": "column",
"value": "opening_time"
},
{
"id": 3,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
13,439 | customers_and_orders | bird:test.json:236 | What are all the address ids and address details? | SELECT address_id , address_details FROM Addresses | [
"What",
"are",
"all",
"the",
"address",
"ids",
"and",
"address",
"details",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "address_details"
},
{
"id": 1,
"type": "column",
"value": "address_id"
},
{
"id": 0,
"type": "table",
"value": "addresses"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
13,440 | cs_semester | bird:train.json:935 | Among professors with the highest popularity, how many of their students have research capability of 5? | SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T1.capability = 5 ORDER BY T2.popularity DESC LIMIT 1 | [
"Among",
"professors",
"with",
"the",
"highest",
"popularity",
",",
"how",
"many",
"of",
"their",
"students",
"have",
"research",
"capability",
"of",
"5",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "capability"
},
{
"id": 4,
"type": "column",
"value": "popularity"
},
{
"id": 5,
"type": "column",
"value": "student_id"
},
{
"id": 6,
"type": "column",
"value": "prof_id"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"enti... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"B-VALUE",
"O"
] |
13,441 | thrombosis_prediction | bird:dev.json:1223 | Are there more male patients with creatinine not within the normal range than female? True or False? | SELECT CASE WHEN SUM(CASE WHEN T1.SEX = 'M' THEN 1 ELSE 0 END) > SUM(CASE WHEN T1.SEX = 'F' THEN 1 ELSE 0 END) THEN 'True' ELSE 'False' END FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.CRE >= 1.5 | [
"Are",
"there",
"more",
"male",
"patients",
"with",
"creatinine",
"not",
"within",
"the",
"normal",
"range",
"than",
"female",
"?",
"True",
"or",
"False",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "laboratory"
},
{
"id": 0,
"type": "table",
"value": "patient"
},
{
"id": 4,
"type": "value",
"value": "False"
},
{
"id": 6,
"type": "value",
"value": "True"
},
{
"id": 2,
"type": "column",
"value": "cre... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
13,442 | restaurant | bird:train.json:1774 | How many restaurants can you find in Concord? | SELECT COUNT(id_restaurant) FROM location WHERE city = 'concord' | [
"How",
"many",
"restaurants",
"can",
"you",
"find",
"in",
"Concord",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "id_restaurant"
},
{
"id": 0,
"type": "table",
"value": "location"
},
{
"id": 2,
"type": "value",
"value": "concord"
},
{
"id": 1,
"type": "column",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
13,444 | college_completion | bird:train.json:3744 | In the state of Connecticut, what is the name of the instution with the highest percent rank for freshman retention percentage within the sector? | SELECT chronname FROM institution_details WHERE state = 'Connecticut' AND retain_percentile = ( SELECT MAX(retain_percentile) FROM institution_details WHERE state = 'Connecticut' ) | [
"In",
"the",
"state",
"of",
"Connecticut",
",",
"what",
"is",
"the",
"name",
"of",
"the",
"instution",
"with",
"the",
"highest",
"percent",
"rank",
"for",
"freshman",
"retention",
"percentage",
"within",
"the",
"sector",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "institution_details"
},
{
"id": 4,
"type": "column",
"value": "retain_percentile"
},
{
"id": 3,
"type": "value",
"value": "Connecticut"
},
{
"id": 1,
"type": "column",
"value": "chronname"
},
{
"id": 2,
"ty... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
20,
21
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O"
] |
13,445 | cre_Docs_and_Epenses | spider:train_spider.json:6411 | Show project ids and the number of documents in each project. | SELECT project_id , count(*) FROM Documents GROUP BY project_id | [
"Show",
"project",
"ids",
"and",
"the",
"number",
"of",
"documents",
"in",
"each",
"project",
"."
] | [
{
"id": 1,
"type": "column",
"value": "project_id"
},
{
"id": 0,
"type": "table",
"value": "documents"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
13,446 | sales | bird:train.json:5443 | What is the name of the most expensive product? | SELECT Name FROM Products WHERE Price = ( SELECT MAX(Price) FROM Products ) | [
"What",
"is",
"the",
"name",
"of",
"the",
"most",
"expensive",
"product",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 2,
"type": "column",
"value": "price"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"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",
"O",
"O",
"B-TABLE",
"O"
] |
13,447 | vehicle_rent | bird:test.json:438 | What are the average city fuel economy rate, average highway fuel economy rate for different types of powertrains? | SELECT avg(City_fuel_economy_rate) , avg(Highway_fuel_economy_rate) , Type_of_powertrain FROM vehicles GROUP BY Type_of_powertrain | [
"What",
"are",
"the",
"average",
"city",
"fuel",
"economy",
"rate",
",",
"average",
"highway",
"fuel",
"economy",
"rate",
"for",
"different",
"types",
"of",
"powertrains",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "highway_fuel_economy_rate"
},
{
"id": 2,
"type": "column",
"value": "city_fuel_economy_rate"
},
{
"id": 1,
"type": "column",
"value": "type_of_powertrain"
},
{
"id": 0,
"type": "table",
"value": "vehicles"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
16,
17,
18
]
},
{
"entity_id": 2,
"token_idxs": [
4,
5,
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
10,
11,
12,
13
]
},
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
13,448 | loan_1 | spider:train_spider.json:3007 | Count the number of bank branches. | SELECT count(*) FROM bank | [
"Count",
"the",
"number",
"of",
"bank",
"branches",
"."
] | [
{
"id": 0,
"type": "table",
"value": "bank"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
13,449 | soccer_2016 | bird:train.json:1875 | List down the ID of toss winners who decided to bat after winning the "toss of the coin". | SELECT Toss_Winner FROM Match WHERE Toss_Decide = 2 | [
"List",
"down",
"the",
"ID",
"of",
"toss",
"winners",
"who",
"decided",
"to",
"bat",
"after",
"winning",
"the",
"\"",
"toss",
"of",
"the",
"coin",
"\"",
"."
] | [
{
"id": 1,
"type": "column",
"value": "toss_winner"
},
{
"id": 2,
"type": "column",
"value": "toss_decide"
},
{
"id": 0,
"type": "table",
"value": "match"
},
{
"id": 3,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,450 | public_review_platform | bird:train.json:3760 | How many long reviews does user No. 36139 give for the Yelp businesses? | SELECT COUNT(review_length) FROM Reviews WHERE user_id = 36139 AND review_length LIKE 'long' | [
"How",
"many",
"long",
"reviews",
"does",
"user",
"No",
".",
"36139",
"give",
"for",
"the",
"Yelp",
"businesses",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "review_length"
},
{
"id": 0,
"type": "table",
"value": "reviews"
},
{
"id": 2,
"type": "column",
"value": "user_id"
},
{
"id": 3,
"type": "value",
"value": "36139"
},
{
"id": 4,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_... | [
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,451 | boat_1 | bird:test.json:854 | What is the different id of every sailor who is not the youngest? | SELECT DISTINCT sid FROM Sailors WHERE age > (SELECT min(age) FROM Sailors); | [
"What",
"is",
"the",
"different",
"i",
"d",
"of",
"every",
"sailor",
"who",
"is",
"not",
"the",
"youngest",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "sailors"
},
{
"id": 1,
"type": "column",
"value": "sid"
},
{
"id": 2,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,452 | shakespeare | bird:train.json:3052 | What is the long title of the Shakespeare's work with Act 4 Scene 5 described as "Mytilene. A street before the brothel."? | SELECT T1.LongTitle FROM works AS T1 RIGHT JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Description = 'Mytilene. A street before the brothel.' | [
"What",
"is",
"the",
"long",
"title",
"of",
"the",
"Shakespeare",
"'s",
"work",
"with",
"Act",
"4",
"Scene",
"5",
"described",
"as",
"\"",
"Mytilene",
".",
"A",
"street",
"before",
"the",
"brothel",
".",
"\"",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Mytilene. A street before the brothel."
},
{
"id": 3,
"type": "column",
"value": "description"
},
{
"id": 0,
"type": "column",
"value": "longtitle"
},
{
"id": 2,
"type": "table",
"value": "chapters"
},
{
"id": ... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
18,
19,
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
13,453 | storm_record | spider:train_spider.json:2692 | Show all region code and region name sorted by the codes. | SELECT region_code , region_name FROM region ORDER BY region_code | [
"Show",
"all",
"region",
"code",
"and",
"region",
"name",
"sorted",
"by",
"the",
"codes",
"."
] | [
{
"id": 1,
"type": "column",
"value": "region_code"
},
{
"id": 2,
"type": "column",
"value": "region_name"
},
{
"id": 0,
"type": "table",
"value": "region"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
13,454 | formula_1 | spider:train_spider.json:2184 | What are all the different first names of the drivers who are in position as standing and won? | SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 | [
"What",
"are",
"all",
"the",
"different",
"first",
"names",
"of",
"the",
"drivers",
"who",
"are",
"in",
"position",
"as",
"standing",
"and",
"won",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "driverstandings"
},
{
"id": 0,
"type": "column",
"value": "forename"
},
{
"id": 3,
"type": "column",
"value": "driverid"
},
{
"id": 4,
"type": "column",
"value": "position"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
13,455 | boat_1 | bird:test.json:873 | Find id for the sailors who do not have a reservation of a boat? | SELECT sid FROM Sailors EXCEPT SELECT T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid | [
"Find",
"i",
"d",
"for",
"the",
"sailors",
"who",
"do",
"not",
"have",
"a",
"reservation",
"of",
"a",
"boat",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "reserves"
},
{
"id": 0,
"type": "table",
"value": "sailors"
},
{
"id": 1,
"type": "column",
"value": "sid"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
13,456 | mental_health_survey | bird:train.json:4615 | What is the average number of respondents per survey between 2014 and 2019? | SELECT CAST(COUNT(SurveyID) AS REAL) / 5 FROM Answer WHERE SurveyID BETWEEN 2014 AND 2019 | [
"What",
"is",
"the",
"average",
"number",
"of",
"respondents",
"per",
"survey",
"between",
"2014",
"and",
"2019",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "surveyid"
},
{
"id": 0,
"type": "table",
"value": "answer"
},
{
"id": 2,
"type": "value",
"value": "2014"
},
{
"id": 3,
"type": "value",
"value": "2019"
},
{
"id": 4,
"type": "value",
"value": "5"
}
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
13,457 | local_govt_and_lot | spider:train_spider.json:4850 | Which events have the number of notes between one and three? List the event id and the property id. | SELECT T1.Customer_Event_ID , T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count(*) BETWEEN 1 AND 3 | [
"Which",
"events",
"have",
"the",
"number",
"of",
"notes",
"between",
"one",
"and",
"three",
"?",
"List",
"the",
"event",
"i",
"d",
"and",
"the",
"property",
"i",
"d."
] | [
{
"id": 3,
"type": "table",
"value": "customer_event_notes"
},
{
"id": 0,
"type": "column",
"value": "customer_event_id"
},
{
"id": 2,
"type": "table",
"value": "customer_events"
},
{
"id": 1,
"type": "column",
"value": "property_id"
},
{
"id": 4,
... | [
{
"entity_id": 0,
"token_idxs": [
15,
16
]
},
{
"entity_id": 1,
"token_idxs": [
19,
20,
21
]
},
{
"entity_id": 2,
"token_idxs": [
13,
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_i... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN"
] |
13,458 | video_games | bird:train.json:3321 | Among the games published by Nintendo, what is the percentage of those in the genre of sports? | SELECT CAST(COUNT(CASE WHEN T4.genre_name = 'Sports' THEN T1.id ELSE NULL END) AS REAL) * 100/ COUNT(T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T3.publisher_name = 'Nintendo' | [
"Among",
"the",
"games",
"published",
"by",
"Nintendo",
",",
"what",
"is",
"the",
"percentage",
"of",
"those",
"in",
"the",
"genre",
"of",
"sports",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "publisher_name"
},
{
"id": 8,
"type": "table",
"value": "game_publisher"
},
{
"id": 9,
"type": "column",
"value": "publisher_id"
},
{
"id": 11,
"type": "column",
"value": "genre_name"
},
{
"id": 3,
"type":... | [
{
"entity_id": 0,
"token_idxs": [
15
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
13,459 | customers_and_orders | bird:test.json:306 | What is the total number of Monitor products that have been ordered? | SELECT sum(order_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "Monitor" | [
"What",
"is",
"the",
"total",
"number",
"of",
"Monitor",
"products",
"that",
"have",
"been",
"ordered",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "order_quantity"
},
{
"id": 2,
"type": "column",
"value": "product_name"
},
{
"id": 0,
"type": "table",
"value": "order_items"
},
{
"id": 5,
"type": "column",
"value": "product_id"
},
{
"id": 1,
"type": "ta... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,460 | video_games | bird:train.json:3311 | Who is the publisher of 3D Lemmings? | SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = '3D Lemmings' | [
"Who",
"is",
"the",
"publisher",
"of",
"3D",
"Lemmings",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "publisher_name"
},
{
"id": 5,
"type": "table",
"value": "game_publisher"
},
{
"id": 6,
"type": "column",
"value": "publisher_id"
},
{
"id": 3,
"type": "value",
"value": "3D Lemmings"
},
{
"id": 1,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5,
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
13,461 | flight_4 | spider:train_spider.json:6828 | How many routes end in a Canadian airport? | SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada' | [
"How",
"many",
"routes",
"end",
"in",
"a",
"Canadian",
"airport",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "airports"
},
{
"id": 5,
"type": "column",
"value": "dst_apid"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 1,
"type": "table",
"value": "routes"
},
{
"id": 3,
"type": "value",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
13,462 | activity_1 | spider:train_spider.json:6758 | How many students are advised by each rank of faculty? List the rank and the number of students. | SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank | [
"How",
"many",
"students",
"are",
"advised",
"by",
"each",
"rank",
"of",
"faculty",
"?",
"List",
"the",
"rank",
"and",
"the",
"number",
"of",
"students",
"."
] | [
{
"id": 1,
"type": "table",
"value": "faculty"
},
{
"id": 2,
"type": "table",
"value": "student"
},
{
"id": 4,
"type": "column",
"value": "advisor"
},
{
"id": 3,
"type": "column",
"value": "facid"
},
{
"id": 0,
"type": "column",
"value": "r... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
18
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,463 | tracking_orders | spider:train_spider.json:6934 | What are the invoice numbers created before 1989-09-03 or after 2007-12-25? | SELECT invoice_number FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25" | [
"What",
"are",
"the",
"invoice",
"numbers",
"created",
"before",
"1989",
"-",
"09",
"-",
"03",
"or",
"after",
"2007",
"-",
"12",
"-",
"25",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "invoice_number"
},
{
"id": 2,
"type": "column",
"value": "invoice_date"
},
{
"id": 3,
"type": "column",
"value": "1989-09-03"
},
{
"id": 4,
"type": "column",
"value": "2007-12-25"
},
{
"id": 0,
"type": "ta... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7,
8,
9,
10,
11
]
},
{
"entity_id": 4,
"token_idxs":... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
13,465 | school_finance | spider:train_spider.json:1909 | List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget. | SELECT T1.School_name , T1.Mascot , T1.IHSAA_Football_Class FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE Budgeted > 6000 OR YEAR < 2003 ORDER BY T2.total_budget_percent_invested , T2.total_budget_percent_budgeted | [
"List",
"the",
"name",
",",
"IHSAA",
"Football",
"Class",
",",
"and",
"Mascot",
"of",
"the",
"schools",
"that",
"have",
"more",
"than",
"6000",
"of",
"budgeted",
"amount",
"or",
"were",
"founded",
"before",
"2003",
",",
"in",
"the",
"order",
"of",
"perce... | [
{
"id": 5,
"type": "column",
"value": "total_budget_percent_invested"
},
{
"id": 6,
"type": "column",
"value": "total_budget_percent_budgeted"
},
{
"id": 2,
"type": "column",
"value": "ihsaa_football_class"
},
{
"id": 0,
"type": "column",
"value": "school_... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
39
]
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-C... |
13,466 | store_1 | spider:train_spider.json:633 | List the name of tracks belongs to genre Rock or genre Jazz. | SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz" | [
"List",
"the",
"name",
"of",
"tracks",
"belongs",
"to",
"genre",
"Rock",
"or",
"genre",
"Jazz",
"."
] | [
{
"id": 4,
"type": "column",
"value": "genre_id"
},
{
"id": 1,
"type": "table",
"value": "genres"
},
{
"id": 2,
"type": "table",
"value": "tracks"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 5,
"type": "column",
"value": "Roc... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"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-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
13,467 | sales_in_weather | bird:train.json:8210 | What is the ratio of the highest and lowest temperature in store 11? | SELECT CAST((MAX(T1.tmax) - MIN(T1.tmin)) AS REAL) / MIN(T1.tmin) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 11 | [
"What",
"is",
"the",
"ratio",
"of",
"the",
"highest",
"and",
"lowest",
"temperature",
"in",
"store",
"11",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "station_nbr"
},
{
"id": 2,
"type": "column",
"value": "store_nbr"
},
{
"id": 1,
"type": "table",
"value": "relation"
},
{
"id": 0,
"type": "table",
"value": "weather"
},
{
"id": 5,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-VALUE",
"O"
] |
13,468 | allergy_1 | spider:train_spider.json:469 | Show first name, last name, age for all female students. Their sex is F. | SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F' | [
"Show",
"first",
"name",
",",
"last",
"name",
",",
"age",
"for",
"all",
"female",
"students",
".",
"Their",
"sex",
"is",
"F."
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "fname"
},
{
"id": 2,
"type": "column",
"value": "lname"
},
{
"id": 3,
"type": "column",
"value": "age"
},
{
"id": 4,
"type": "column",
"value": "sex"
... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE"
] |
13,469 | device | spider:train_spider.json:5056 | What are the names of shops in ascending order of open year? | SELECT Shop_Name FROM shop ORDER BY Open_Year ASC | [
"What",
"are",
"the",
"names",
"of",
"shops",
"in",
"ascending",
"order",
"of",
"open",
"year",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "shop_name"
},
{
"id": 2,
"type": "column",
"value": "open_year"
},
{
"id": 0,
"type": "table",
"value": "shop"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10,
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
13,470 | synthea | bird:train.json:1517 | List the full names of patients with nut allergy. | SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Allergy to nut' | [
"List",
"the",
"full",
"names",
"of",
"patients",
"with",
"nut",
"allergy",
"."
] | [
{
"id": 5,
"type": "value",
"value": "Allergy to nut"
},
{
"id": 4,
"type": "column",
"value": "description"
},
{
"id": 3,
"type": "table",
"value": "allergies"
},
{
"id": 2,
"type": "table",
"value": "patients"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
0
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
13,471 | district_spokesman | bird:test.json:1179 | Find the name of the district which has the largest area. | SELECT name FROM district ORDER BY Area_km DESC LIMIT 1 | [
"Find",
"the",
"name",
"of",
"the",
"district",
"which",
"has",
"the",
"largest",
"area",
"."
] | [
{
"id": 0,
"type": "table",
"value": "district"
},
{
"id": 2,
"type": "column",
"value": "area_km"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,472 | student_loan | bird:train.json:4492 | Among the students with disabilities, list any five students' names who are unemployed. | SELECT T1.name FROM disabled AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name LIMIT 5 | [
"Among",
"the",
"students",
"with",
"disabilities",
",",
"list",
"any",
"five",
"students",
"'",
"names",
"who",
"are",
"unemployed",
"."
] | [
{
"id": 2,
"type": "table",
"value": "unemployed"
},
{
"id": 1,
"type": "table",
"value": "disabled"
},
{
"id": 0,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
13,473 | cars | bird:train.json:3112 | What is the horsepower and model year of the car named Subaru Dl? | SELECT T1.horsepower, T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'subaru dl' | [
"What",
"is",
"the",
"horsepower",
"and",
"model",
"year",
"of",
"the",
"car",
"named",
"Subaru",
"Dl",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "horsepower"
},
{
"id": 1,
"type": "column",
"value": "model_year"
},
{
"id": 3,
"type": "table",
"value": "production"
},
{
"id": 5,
"type": "value",
"value": "subaru dl"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9,
10
]
},
{
"e... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"O"
] |
13,474 | swimming | spider:train_spider.json:5604 | What is the name of the event that happened in the most recent year? | SELECT name FROM event ORDER BY YEAR DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"event",
"that",
"happened",
"in",
"the",
"most",
"recent",
"year",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "event"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "year"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,475 | manufactory_1 | spider:train_spider.json:5332 | Compute the average price of all products with manufacturer code equal to 2. | SELECT avg(price) FROM products WHERE Manufacturer = 2 | [
"Compute",
"the",
"average",
"price",
"of",
"all",
"products",
"with",
"manufacturer",
"code",
"equal",
"to",
"2",
"."
] | [
{
"id": 1,
"type": "column",
"value": "manufacturer"
},
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 3,
"type": "column",
"value": "price"
},
{
"id": 2,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
13,476 | chinook_1 | spider:train_spider.json:872 | What are the last names of employees who serve at most 20 customers? | SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20 | [
"What",
"are",
"the",
"last",
"names",
"of",
"employees",
"who",
"serve",
"at",
"most",
"20",
"customers",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "supportrepid"
},
{
"id": 5,
"type": "column",
"value": "employeeid"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 2,
"type": "table",
"value": "customer"
},
{
"id": 3,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
13,477 | professional_basketball | bird:train.json:2866 | What is the average BMI of an All-star player? | SELECT AVG(CAST(T1.weight AS REAL) / (T1.height * T1.height)) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID | [
"What",
"is",
"the",
"average",
"BMI",
"of",
"an",
"All",
"-",
"star",
"player",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "player_allstar"
},
{
"id": 2,
"type": "column",
"value": "playerid"
},
{
"id": 0,
"type": "table",
"value": "players"
},
{
"id": 3,
"type": "column",
"value": "weight"
},
{
"id": 4,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
0
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"e... | [
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"B-TABLE",
"O"
] |
13,478 | cs_semester | bird:train.json:855 | Please list the names of the courses that are less important than Machine Learning Theory. | SELECT name FROM course WHERE credit < ( SELECT credit FROM course WHERE name = 'Machine Learning Theory' ) | [
"Please",
"list",
"the",
"names",
"of",
"the",
"courses",
"that",
"are",
"less",
"important",
"than",
"Machine",
"Learning",
"Theory",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Machine Learning Theory"
},
{
"id": 0,
"type": "table",
"value": "course"
},
{
"id": 2,
"type": "column",
"value": "credit"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12,
13,
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.