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
11,662
college_2
spider:train_spider.json:1430
Find the name of the instructors who taught C Programming course before.
SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming'
[ "Find", "the", "name", "of", "the", "instructors", "who", "taught", "C", "Programming", "course", "before", "." ]
[ { "id": 3, "type": "value", "value": "C Programming" }, { "id": 4, "type": "table", "value": "instructor" }, { "id": 6, "type": "column", "value": "course_id" }, { "id": 5, "type": "table", "value": "teaches" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8, 9 ] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { ...
[ "B-COLUMN", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "B-TABLE", "O", "O" ]
11,663
small_bank_1
spider:train_spider.json:1785
Find the number of accounts with a savings balance that is higher than the average savings balance.
SELECT count(*) FROM savings WHERE balance > (SELECT avg(balance) FROM savings)
[ "Find", "the", "number", "of", "accounts", "with", "a", "savings", "balance", "that", "is", "higher", "than", "the", "average", "savings", "balance", "." ]
[ { "id": 0, "type": "table", "value": "savings" }, { "id": 1, "type": "column", "value": "balance" } ]
[ { "entity_id": 0, "token_idxs": [ 15 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O" ]
11,664
talkingdata
bird:train.json:1186
How many labels belong to the game-card category?
SELECT COUNT(label_id) FROM label_categories WHERE category = 'game-card'
[ "How", "many", "labels", "belong", "to", "the", "game", "-", "card", "category", "?" ]
[ { "id": 0, "type": "table", "value": "label_categories" }, { "id": 2, "type": "value", "value": "game-card" }, { "id": 1, "type": "column", "value": "category" }, { "id": 3, "type": "column", "value": "label_id" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "en...
[ "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "O" ]
11,665
retail_complains
bird:train.json:270
For all the complaint callers on 2017/3/27, what percentage of the clients are females?
SELECT CAST(SUM(CASE WHEN T1.sex = 'Female' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.sex) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Date received` = '2017-03-27'
[ "For", "all", "the", "complaint", "callers", "on", "2017/3/27", ",", "what", "percentage", "of", "the", "clients", "are", "females", "?" ]
[ { "id": 2, "type": "column", "value": "Date received" }, { "id": 3, "type": "value", "value": "2017-03-27" }, { "id": 4, "type": "column", "value": "client_id" }, { "id": 0, "type": "table", "value": "client" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O" ]
11,666
document_management
spider:train_spider.json:4510
Return the structure description of the document that has been accessed the fewest number of times.
SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY count(*) DESC LIMIT 1
[ "Return", "the", "structure", "description", "of", "the", "document", "that", "has", "been", "accessed", "the", "fewest", "number", "of", "times", "." ]
[ { "id": 1, "type": "column", "value": "document_structure_description" }, { "id": 0, "type": "column", "value": "document_structure_code" }, { "id": 3, "type": "table", "value": "document_structures" }, { "id": 2, "type": "table", "value": "documents" } ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
11,667
thrombosis_prediction
bird:dev.json:1275
Among the patients who has a normal level of anti-centromere and a normal level of anti-SSB, how many of them are male?
SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.CENTROMEA IN ('negative', '0') AND T2.SSB IN ('negative', '0') AND T1.SEX = 'M'
[ "Among", "the", "patients", "who", "has", "a", "normal", "level", "of", "anti", "-", "centromere", "and", "a", "normal", "level", "of", "anti", "-", "SSB", ",", "how", "many", "of", "them", "are", "male", "?" ]
[ { "id": 1, "type": "table", "value": "laboratory" }, { "id": 3, "type": "column", "value": "centromea" }, { "id": 4, "type": "value", "value": "negative" }, { "id": 0, "type": "table", "value": "patient" }, { "id": 6, "type": "column", "val...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O" ]
11,668
video_games
bird:train.json:3354
What are the names of the games that were published by 505 Games?
SELECT T3.game_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.publisher_name = '505 Games'
[ "What", "are", "the", "names", "of", "the", "games", "that", "were", "published", "by", "505", "Games", "?" ]
[ { "id": 2, "type": "column", "value": "publisher_name" }, { "id": 5, "type": "table", "value": "game_publisher" }, { "id": 8, "type": "column", "value": "publisher_id" }, { "id": 0, "type": "column", "value": "game_name" }, { "id": 3, "type": "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "B-TABLE", "O" ]
11,669
superhero
bird:dev.json:741
What is the name of the superhero that has the most powers?
SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id GROUP BY T1.superhero_name ORDER BY COUNT(T2.hero_id) DESC LIMIT 1
[ "What", "is", "the", "name", "of", "the", "superhero", "that", "has", "the", "most", "powers", "?" ]
[ { "id": 0, "type": "column", "value": "superhero_name" }, { "id": 2, "type": "table", "value": "hero_power" }, { "id": 1, "type": "table", "value": "superhero" }, { "id": 4, "type": "column", "value": "hero_id" }, { "id": 3, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 9, 10, 11 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O" ]
11,670
beer_factory
bird:train.json:5314
What star rating is the most common for beers containing corn syrup?
SELECT T2.StarRating FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.CornSyrup = 'TRUE' GROUP BY T2.StarRating ORDER BY COUNT(T2.StarRating) DESC LIMIT 1
[ "What", "star", "rating", "is", "the", "most", "common", "for", "beers", "containing", "corn", "syrup", "?" ]
[ { "id": 2, "type": "table", "value": "rootbeerreview" }, { "id": 1, "type": "table", "value": "rootbeerbrand" }, { "id": 0, "type": "column", "value": "starrating" }, { "id": 3, "type": "column", "value": "cornsyrup" }, { "id": 5, "type": "colu...
[ { "entity_id": 0, "token_idxs": [ 1, 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10, 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5...
[ "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
11,671
movie_3
bird:train.json:9220
Describe the full names and cities of the customers who rented "DREAM PICKUP".
SELECT T4.first_name, T4.last_name, T6.city FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id INNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN customer AS T4 ON T3.customer_id = T4.customer_id INNER JOIN address AS T5 ON T4.address_id = T5.address_id INNER JOIN city AS T6 ON T...
[ "Describe", "the", "full", "names", "and", "cities", "of", "the", "customers", "who", "rented", "\"", "DREAM", "PICKUP", "\"", "." ]
[ { "id": 5, "type": "value", "value": "DREAM PICKUP" }, { "id": 14, "type": "column", "value": "inventory_id" }, { "id": 11, "type": "column", "value": "customer_id" }, { "id": 0, "type": "column", "value": "first_name" }, { "id": 9, "type": "co...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 12, ...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O" ]
11,672
simpson_episodes
bird:train.json:4247
Which episode of The simpson 20s: Season 20 has received the most nominations? Indicate the title.
SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id GROUP BY T1.episode_id ORDER BY COUNT(*) DESC LIMIT 1;
[ "Which", "episode", "of", "The", "simpson", "20s", ":", "Season", "20", "has", "received", "the", "most", "nominations", "?", "Indicate", "the", "title", "." ]
[ { "id": 0, "type": "column", "value": "episode_id" }, { "id": 3, "type": "table", "value": "episode" }, { "id": 1, "type": "column", "value": "title" }, { "id": 2, "type": "table", "value": "award" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 17 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 1 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
11,673
warehouse_1
bird:test.json:1713
Find the location of the warehouses which have contents Rocks but not Scissors.
SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Rocks' EXCEPT SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Scissors'
[ "Find", "the", "location", "of", "the", "warehouses", "which", "have", "contents", "Rocks", "but", "not", "Scissors", "." ]
[ { "id": 2, "type": "table", "value": "warehouses" }, { "id": 6, "type": "column", "value": "warehouse" }, { "id": 0, "type": "column", "value": "location" }, { "id": 3, "type": "column", "value": "contents" }, { "id": 5, "type": "value", "v...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "B-VALUE", "O" ]
11,674
entertainment_awards
spider:train_spider.json:4608
Show distinct types of artworks that are nominated in festivals in 2007.
SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007
[ "Show", "distinct", "types", "of", "artworks", "that", "are", "nominated", "in", "festivals", "in", "2007", "." ]
[ { "id": 1, "type": "table", "value": "festival_detail" }, { "id": 6, "type": "column", "value": "festival_id" }, { "id": 4, "type": "table", "value": "nomination" }, { "id": 7, "type": "column", "value": "artwork_id" }, { "id": 5, "type": "tabl...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 7, 8 ] }, { "entity_id"...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "B-VALUE", "O" ]
11,675
product_catalog
spider:train_spider.json:311
Which catalog publisher has published the most catalogs?
SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1
[ "Which", "catalog", "publisher", "has", "published", "the", "most", "catalogs", "?" ]
[ { "id": 1, "type": "column", "value": "catalog_publisher" }, { "id": 0, "type": "table", "value": "catalogs" } ]
[ { "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" ]
11,676
movie_3
bird:train.json:9107
Which film has a higher replacement cost, ACE GOLDFINGER or ACADEMY DINOSAUR?
SELECT title FROM film WHERE title IN ('ACE GOLDFINGER', 'ACADEMY DINOSAUR') ORDER BY replacement_cost DESC LIMIT 1
[ "Which", "film", "has", "a", "higher", "replacement", "cost", ",", "ACE", "GOLDFINGER", "or", "ACADEMY", "DINOSAUR", "?" ]
[ { "id": 3, "type": "value", "value": "ACADEMY DINOSAUR" }, { "id": 4, "type": "column", "value": "replacement_cost" }, { "id": 2, "type": "value", "value": "ACE GOLDFINGER" }, { "id": 1, "type": "column", "value": "title" }, { "id": 0, "type": ...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8, 9 ] }, { "entity_id": 3, "token_idxs": [ 11, 12 ] }, { "entity_id": 4, "token_idxs": [ 5, ...
[ "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "B-VALUE", "I-VALUE", "O" ]
11,677
california_schools
bird:dev.json:69
Please provide the National Center for Educational Statistics school district identification number for all schools with a School Ownership Code that are part of the State Special Schools.
SELECT NCESDist FROM schools WHERE SOC = 31
[ "Please", "provide", "the", "National", "Center", "for", "Educational", "Statistics", "school", "district", "identification", "number", "for", "all", "schools", "with", "a", "School", "Ownership", "Code", "that", "are", "part", "of", "the", "State", "Special", "...
[ { "id": 1, "type": "column", "value": "ncesdist" }, { "id": 0, "type": "table", "value": "schools" }, { "id": 2, "type": "column", "value": "soc" }, { "id": 3, "type": "value", "value": "31" } ]
[ { "entity_id": 0, "token_idxs": [ 27 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
11,678
talkingdata
bird:train.json:1096
What is the brand of the device used by the youngest female user?
SELECT phone_brand FROM phone_brand_device_model2 WHERE device_id IN ( SELECT * FROM ( SELECT device_id FROM gender_age WHERE gender = 'F' ORDER BY age LIMIT 1 ) AS T )
[ "What", "is", "the", "brand", "of", "the", "device", "used", "by", "the", "youngest", "female", "user", "?" ]
[ { "id": 0, "type": "table", "value": "phone_brand_device_model2" }, { "id": 1, "type": "column", "value": "phone_brand" }, { "id": 3, "type": "table", "value": "gender_age" }, { "id": 2, "type": "column", "value": "device_id" }, { "id": 4, "typ...
[ { "entity_id": 0, "token_idxs": [] }, { "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": 5, "toke...
[ "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O" ]
11,679
twitter_1
spider:train_spider.json:279
Find the number of tweets in record.
SELECT count(*) FROM tweets
[ "Find", "the", "number", "of", "tweets", "in", "record", "." ]
[ { "id": 0, "type": "table", "value": "tweets" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O" ]
11,681
retail_world
bird:train.json:6653
How many customers are located in London?
SELECT COUNT(CustomerID) FROM Customers WHERE City = 'London'
[ "How", "many", "customers", "are", "located", "in", "London", "?" ]
[ { "id": 3, "type": "column", "value": "customerid" }, { "id": 0, "type": "table", "value": "customers" }, { "id": 2, "type": "value", "value": "London" }, { "id": 1, "type": "column", "value": "city" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O" ]
11,682
bike_1
spider:train_spider.json:197
Find the id for the trips that lasted at least as long as the average duration of trips in zip code 94103.
SELECT id FROM trip WHERE duration >= (SELECT avg(duration) FROM trip WHERE zip_code = 94103)
[ "Find", "the", "i", "d", "for", "the", "trips", "that", "lasted", "at", "least", "as", "long", "as", "the", "average", "duration", "of", "trips", "in", "zip", "code", "94103", "." ]
[ { "id": 2, "type": "column", "value": "duration" }, { "id": 3, "type": "column", "value": "zip_code" }, { "id": 4, "type": "value", "value": "94103" }, { "id": 0, "type": "table", "value": "trip" }, { "id": 1, "type": "column", "value": "id...
[ { "entity_id": 0, "token_idxs": [ 18 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 16 ] }, { "entity_id": 3, "token_idxs": [ 20, 21 ] }, { "entity_id": 4, "token_idxs": [ ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O" ]
11,683
law_episode
bird:train.json:1273
Who is the script supervisor of the series in episode tt0629204?
SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.episode_id = 'tt0629204' AND T1.role = 'script supervisor'
[ "Who", "is", "the", "script", "supervisor", "of", "the", "series", "in", "episode", "tt0629204", "?" ]
[ { "id": 7, "type": "value", "value": "script supervisor" }, { "id": 4, "type": "column", "value": "episode_id" }, { "id": 3, "type": "column", "value": "person_id" }, { "id": 5, "type": "value", "value": "tt0629204" }, { "id": 1, "type": "table...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-TABLE", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "B-VALUE", "O" ]
11,684
language_corpus
bird:train.json:5698
What is the title of the Catalan language Wikipedia page that has the highest number of different words?
SELECT title FROM pages WHERE words = ( SELECT MAX(words) FROM pages )
[ "What", "is", "the", "title", "of", "the", "Catalan", "language", "Wikipedia", "page", "that", "has", "the", "highest", "number", "of", "different", "words", "?" ]
[ { "id": 0, "type": "table", "value": "pages" }, { "id": 1, "type": "column", "value": "title" }, { "id": 2, "type": "column", "value": "words" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 17 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
11,685
cre_Doc_Tracking_DB
spider:train_spider.json:4175
When was the document named "Marry CV" stored? Give me the date.
SELECT date_stored FROM All_documents WHERE Document_name = "Marry CV"
[ "When", "was", "the", "document", "named", "\"", "Marry", "CV", "\"", "stored", "?", "Give", "me", "the", "date", "." ]
[ { "id": 0, "type": "table", "value": "all_documents" }, { "id": 2, "type": "column", "value": "document_name" }, { "id": 1, "type": "column", "value": "date_stored" }, { "id": 3, "type": "column", "value": "Marry CV" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 3, 4 ] }, { "entity_id": 3, "token_idxs": [ 6, 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "en...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O" ]
11,686
store_product
spider:train_spider.json:4912
Find the total population of the top 3 districts with the largest area.
SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3
[ "Find", "the", "total", "population", "of", "the", "top", "3", "districts", "with", "the", "largest", "area", "." ]
[ { "id": 2, "type": "column", "value": "city_population" }, { "id": 1, "type": "column", "value": "city_area" }, { "id": 0, "type": "table", "value": "district" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O" ]
11,687
chicago_crime
bird:train.json:8728
What are the communities that are grouped together on the central side?
SELECT community_area_name FROM Community_Area WHERE side = 'Central'
[ "What", "are", "the", "communities", "that", "are", "grouped", "together", "on", "the", "central", "side", "?" ]
[ { "id": 1, "type": "column", "value": "community_area_name" }, { "id": 0, "type": "table", "value": "community_area" }, { "id": 3, "type": "value", "value": "Central" }, { "id": 2, "type": "column", "value": "side" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 4, 5 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
11,688
farm
spider:train_spider.json:26
What are the maximum and minimum number of cows across all farms.
SELECT max(Cows) , min(Cows) FROM farm
[ "What", "are", "the", "maximum", "and", "minimum", "number", "of", "cows", "across", "all", "farms", "." ]
[ { "id": 0, "type": "table", "value": "farm" }, { "id": 1, "type": "column", "value": "cows" } ]
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
11,689
retails
bird:train.json:6797
Calculate the average profit of prom brushed steel products.
SELECT SUM(T2.l_extendedprice * (1 - T2.l_discount) - T1.ps_supplycost * T2.l_quantity) / COUNT(T1.ps_partkey) FROM partsupp AS T1 INNER JOIN lineitem AS T2 ON T1.ps_suppkey = T2.l_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T3.p_type = 'PROMO BRUSHED STEEL'
[ "Calculate", "the", "average", "profit", "of", "prom", "brushed", "steel", "products", "." ]
[ { "id": 2, "type": "value", "value": "PROMO BRUSHED STEEL" }, { "id": 9, "type": "column", "value": "l_extendedprice" }, { "id": 10, "type": "column", "value": "ps_supplycost" }, { "id": 5, "type": "column", "value": "ps_partkey" }, { "id": 7, ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5, 6, 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
11,691
retail_world
bird:train.json:6615
Name the suppliers that supply products under the category 'cheeses.'
SELECT DISTINCT T1.CompanyName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN Categories AS T3 ON T2.CategoryID = T3.CategoryID WHERE T3.Description = 'Cheeses'
[ "Name", "the", "suppliers", "that", "supply", "products", "under", "the", "category", "'", "cheeses", ".", "'" ]
[ { "id": 0, "type": "column", "value": "companyname" }, { "id": 2, "type": "column", "value": "description" }, { "id": 1, "type": "table", "value": "categories" }, { "id": 6, "type": "column", "value": "categoryid" }, { "id": 7, "type": "column"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [ 2 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O" ]
11,692
video_games
bird:train.json:3358
Give the game publisher ID of records with platform ID 15.
SELECT T.game_publisher_id FROM game_platform AS T WHERE T.platform_id = 15
[ "Give", "the", "game", "publisher", "ID", "of", "records", "with", "platform", "ID", "15", "." ]
[ { "id": 1, "type": "column", "value": "game_publisher_id" }, { "id": 0, "type": "table", "value": "game_platform" }, { "id": 2, "type": "column", "value": "platform_id" }, { "id": 3, "type": "value", "value": "15" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2, 3, 4 ] }, { "entity_id": 2, "token_idxs": [ 8, 9 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O" ]
11,693
hockey
bird:train.json:7755
Which team got the most bench minor penalties in 2006?
SELECT name FROM Teams WHERE year = 2006 GROUP BY tmID, name ORDER BY CAST(SUM(BenchMinor) AS REAL) / 2 DESC LIMIT 1
[ "Which", "team", "got", "the", "most", "bench", "minor", "penalties", "in", "2006", "?" ]
[ { "id": 6, "type": "column", "value": "benchminor" }, { "id": 0, "type": "table", "value": "teams" }, { "id": 1, "type": "column", "value": "tmid" }, { "id": 2, "type": "column", "value": "name" }, { "id": 3, "type": "column", "value": "yea...
[ { "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": [ 9 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O" ]
11,694
book_publishing_company
bird:train.json:183
In which year has the most hired employees?
SELECT STRFTIME('%Y', hire_date) FROM employee GROUP BY STRFTIME('%Y', hire_date) ORDER BY COUNT(emp_id) DESC LIMIT 1
[ "In", "which", "year", "has", "the", "most", "hired", "employees", "?" ]
[ { "id": 2, "type": "column", "value": "hire_date" }, { "id": 0, "type": "table", "value": "employee" }, { "id": 3, "type": "column", "value": "emp_id" }, { "id": 1, "type": "value", "value": "%Y" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O" ]
11,695
flight_company
spider:train_spider.json:6366
How many flights have a velocity larger than 200?
SELECT count(*) FROM flight WHERE velocity > 200
[ "How", "many", "flights", "have", "a", "velocity", "larger", "than", "200", "?" ]
[ { "id": 1, "type": "column", "value": "velocity" }, { "id": 0, "type": "table", "value": "flight" }, { "id": 2, "type": "value", "value": "200" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
11,696
epinions_1
spider:train_spider.json:1692
How many users are there?
SELECT count(*) FROM useracct
[ "How", "many", "users", "are", "there", "?" ]
[ { "id": 0, "type": "table", "value": "useracct" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "O", "O" ]
11,697
warehouse_1
bird:test.json:1754
How many different types of contents are stored in each warehouse?
SELECT count(DISTINCT CONTENTS) , warehouse FROM boxes GROUP BY warehouse
[ "How", "many", "different", "types", "of", "contents", "are", "stored", "in", "each", "warehouse", "?" ]
[ { "id": 1, "type": "column", "value": "warehouse" }, { "id": 2, "type": "column", "value": "contents" }, { "id": 0, "type": "table", "value": "boxes" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O" ]
11,698
movie_3
bird:train.json:9114
Please list the titles of the top 3 films with the highest replacement cost.
SELECT title FROM film WHERE replacement_cost = ( SELECT MAX(replacement_cost) FROM film ) LIMIT 3
[ "Please", "list", "the", "titles", "of", "the", "top", "3", "films", "with", "the", "highest", "replacement", "cost", "." ]
[ { "id": 2, "type": "column", "value": "replacement_cost" }, { "id": 1, "type": "column", "value": "title" }, { "id": 0, "type": "table", "value": "film" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 12, 13 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
11,699
game_1
spider:train_spider.json:6029
Show total hours per week and number of games played for student David Shieber.
SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = "David" AND T2.Lname = "Shieber"
[ "Show", "total", "hours", "per", "week", "and", "number", "of", "games", "played", "for", "student", "David", "Shieber", "." ]
[ { "id": 2, "type": "column", "value": "hoursperweek" }, { "id": 3, "type": "column", "value": "gamesplayed" }, { "id": 0, "type": "table", "value": "sportsinfo" }, { "id": 1, "type": "table", "value": "student" }, { "id": 8, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2, 3, 4 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "e...
[ "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "B-COLUMN", "B-COLUMN", "O", "B-COLUMN", "B-COLUMN", "B-COLUMN", "O" ]
11,700
public_review_platform
bird:train.json:4005
What time does the business with ID no.12 open on Monday?
SELECT T1.opening_time FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T1.business_id = 12 AND T2.day_of_week = 'Monday'
[ "What", "time", "does", "the", "business", "with", "ID", "no.12", "open", "on", "Monday", "?" ]
[ { "id": 1, "type": "table", "value": "business_hours" }, { "id": 0, "type": "column", "value": "opening_time" }, { "id": 4, "type": "column", "value": "business_id" }, { "id": 6, "type": "column", "value": "day_of_week" }, { "id": 3, "type": "c...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
11,701
club_1
spider:train_spider.json:4273
What are the first name and last name of each male member in club "Hopkins Student Enterprises"?
SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" AND t3.sex = "M"
[ "What", "are", "the", "first", "name", "and", "last", "name", "of", "each", "male", "member", "in", "club", "\"", "Hopkins", "Student", "Enterprises", "\"", "?" ]
[ { "id": 7, "type": "column", "value": "Hopkins Student Enterprises" }, { "id": 4, "type": "table", "value": "member_of_club" }, { "id": 6, "type": "column", "value": "clubname" }, { "id": 2, "type": "table", "value": "student" }, { "id": 10, "t...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ 11, 12 ] }, { "entity_i...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "I-TABLE", "B-TABLE", "O", "B-COLUMN", "B-COLUMN", "B-COLUMN", "O", "O" ]
11,702
retail_world
bird:train.json:6513
How many employees report to Andrew Fuller?
SELECT COUNT(EmployeeID) FROM Employees WHERE ReportsTo = ( SELECT EmployeeID FROM Employees WHERE LastName = 'Fuller' AND FirstName = 'Andrew' )
[ "How", "many", "employees", "report", "to", "Andrew", "Fuller", "?" ]
[ { "id": 2, "type": "column", "value": "employeeid" }, { "id": 0, "type": "table", "value": "employees" }, { "id": 1, "type": "column", "value": "reportsto" }, { "id": 5, "type": "column", "value": "firstname" }, { "id": 3, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 6 ] }, { "entity_id":...
[ "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "B-VALUE", "B-VALUE", "O" ]
11,703
student_loan
bird:train.json:4567
How many months did a student in the Air Force miss school the most?
SELECT T1.month FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name ORDER BY T1.month DESC LIMIT 1
[ "How", "many", "months", "did", "a", "student", "in", "the", "Air", "Force", "miss", "school", "the", "most", "?" ]
[ { "id": 1, "type": "table", "value": "longest_absense_from_school" }, { "id": 2, "type": "table", "value": "enlist" }, { "id": 0, "type": "column", "value": "month" }, { "id": 3, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
11,704
entrepreneur
spider:train_spider.json:2293
List the names of entrepreneurs and their companies in descending order of money requested?
SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
[ "List", "the", "names", "of", "entrepreneurs", "and", "their", "companies", "in", "descending", "order", "of", "money", "requested", "?" ]
[ { "id": 4, "type": "column", "value": "money_requested" }, { "id": 2, "type": "table", "value": "entrepreneur" }, { "id": 5, "type": "column", "value": "people_id" }, { "id": 1, "type": "column", "value": "company" }, { "id": 3, "type": "table"...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12, 13 ] }, { ...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
11,705
retail_world
bird:train.json:6603
Please indicate total order quantity of product Geitost and calculate the percentage of such product among all the order quantity.
SELECT SUM(IF(T1.ProductName = 'Geitost', 1, 0)) AS sum , CAST(SUM(IF(T1.ProductName = 'Geitost', 1, 0)) AS REAL) / COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID
[ "Please", "indicate", "total", "order", "quantity", "of", "product", "Geitost", "and", "calculate", "the", "percentage", "of", "such", "product", "among", "all", "the", "order", "quantity", "." ]
[ { "id": 1, "type": "table", "value": "Order Details" }, { "id": 5, "type": "column", "value": "productname" }, { "id": 2, "type": "column", "value": "productid" }, { "id": 0, "type": "table", "value": "products" }, { "id": 6, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "B-TABLE", "I-TABLE", "O", "B-TABLE", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O" ]
11,706
thrombosis_prediction
bird:dev.json:1258
How many patients with a normal Rhuematoid Factor has a positive measure of degree of coagulation?
SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE (T2.RA = '-' OR T2.RA = '+-') AND T3.KCT = '+'
[ "How", "many", "patients", "with", "a", "normal", "Rhuematoid", "Factor", "has", "a", "positive", "measure", "of", "degree", "of", "coagulation", "?" ]
[ { "id": 0, "type": "table", "value": "examination" }, { "id": 3, "type": "table", "value": "laboratory" }, { "id": 2, "type": "table", "value": "patient" }, { "id": 4, "type": "column", "value": "kct" }, { "id": 1, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
11,707
student_club
bird:dev.json:1420
State the name of major that Vice President has joined.
SELECT T1.major_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Vice President'
[ "State", "the", "name", "of", "major", "that", "Vice", "President", "has", "joined", "." ]
[ { "id": 4, "type": "value", "value": "Vice President" }, { "id": 6, "type": "column", "value": "link_to_major" }, { "id": 0, "type": "column", "value": "major_name" }, { "id": 3, "type": "column", "value": "position" }, { "id": 5, "type": "colu...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 6, 7 ] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "O" ]
11,708
government_shift
bird:test.json:394
Which services have been rated as "unsatisfied" in customers and services details? Give me the service_details.
SELECT DISTINCT t1.service_details FROM services AS t1 JOIN customers_and_services AS t2 ON t1.service_id = t2.service_id WHERE t2.customers_and_services_details = "Unsatisfied"
[ "Which", "services", "have", "been", "rated", "as", "\"", "unsatisfied", "\"", "in", "customers", "and", "services", "details", "?", "Give", "me", "the", "service_details", "." ]
[ { "id": 3, "type": "column", "value": "customers_and_services_details" }, { "id": 2, "type": "table", "value": "customers_and_services" }, { "id": 0, "type": "column", "value": "service_details" }, { "id": 4, "type": "column", "value": "Unsatisfied" }, ...
[ { "entity_id": 0, "token_idxs": [ 18 ] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [ 10, 11 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ 7 ...
[ "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O" ]
11,709
art_1
bird:test.json:1268
Find the titles of paintings and sculpture works made by the artist whose id is 222?
SELECT T2.title FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.artistID = 222 UNION SELECT T4.title FROM artists AS T3 JOIN sculptures AS T4 ON T3.artistID = T4.sculptorID WHERE T3.artistID = 222
[ "Find", "the", "titles", "of", "paintings", "and", "sculpture", "works", "made", "by", "the", "artist", "whose", "i", "d", "is", "222", "?" ]
[ { "id": 5, "type": "table", "value": "sculptures" }, { "id": 7, "type": "column", "value": "sculptorid" }, { "id": 2, "type": "table", "value": "paintings" }, { "id": 6, "type": "column", "value": "painterid" }, { "id": 3, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 16 ] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O" ]
11,710
soccer_2016
bird:train.json:1961
Which country is the youngest player from?
SELECT T1.Country_Name FROM Country AS T1 INNER JOIN Player AS T2 ON T1.Country_Id = T2.Country_Name ORDER BY T2.DOB DESC LIMIT 1
[ "Which", "country", "is", "the", "youngest", "player", "from", "?" ]
[ { "id": 0, "type": "column", "value": "country_name" }, { "id": 4, "type": "column", "value": "country_id" }, { "id": 1, "type": "table", "value": "country" }, { "id": 2, "type": "table", "value": "player" }, { "id": 3, "type": "column", "v...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "O" ]
11,711
olympics
bird:train.json:4992
What are the names of the cities where Carl Lewis Borack 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 = 'Carl Lewis Borack'
[ "What", "are", "the", "names", "of", "the", "cities", "where", "Carl", "Lewis", "Borack", "competed", "?" ]
[ { "id": 3, "type": "value", "value": "Carl Lewis Borack" }, { "id": 8, "type": "table", "value": "games_competitor" }, { "id": 4, "type": "table", "value": "games_city" }, { "id": 0, "type": "column", "value": "city_name" }, { "id": 2, "type": ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8, 9, 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5,...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
11,712
legislator
bird:train.json:4891
Please list the username of the current official Facebook presence of all the current legislators that are famous or impact.
SELECT T2.facebook FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.wikipedia_id IS NOT NULL GROUP BY T2.facebook
[ "Please", "list", "the", "username", "of", "the", "current", "official", "Facebook", "presence", "of", "all", "the", "current", "legislators", "that", "are", "famous", "or", "impact", "." ]
[ { "id": 2, "type": "table", "value": "social-media" }, { "id": 3, "type": "column", "value": "wikipedia_id" }, { "id": 4, "type": "column", "value": "bioguide_id" }, { "id": 0, "type": "column", "value": "facebook" }, { "id": 5, "type": "column...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "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-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
11,713
sports_competition
spider:train_spider.json:3368
What is the most common competition type?
SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1
[ "What", "is", "the", "most", "common", "competition", "type", "?" ]
[ { "id": 1, "type": "column", "value": "competition_type" }, { "id": 0, "type": "table", "value": "competition" } ]
[ { "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" ]
11,714
loan_1
spider:train_spider.json:3045
What are the names of customers with credit score less than the average credit score across customers?
SELECT cust_name FROM customer WHERE credit_score < (SELECT avg(credit_score) FROM customer)
[ "What", "are", "the", "names", "of", "customers", "with", "credit", "score", "less", "than", "the", "average", "credit", "score", "across", "customers", "?" ]
[ { "id": 2, "type": "column", "value": "credit_score" }, { "id": 1, "type": "column", "value": "cust_name" }, { "id": 0, "type": "table", "value": "customer" } ]
[ { "entity_id": 0, "token_idxs": [ 16 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 7, 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
11,715
university
bird:train.json:8039
What is the name of the ranking system for Teaching criteria?
SELECT T1.system_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T2.criteria_name = 'Teaching'
[ "What", "is", "the", "name", "of", "the", "ranking", "system", "for", "Teaching", "criteria", "?" ]
[ { "id": 6, "type": "column", "value": "ranking_system_id" }, { "id": 2, "type": "table", "value": "ranking_criteria" }, { "id": 1, "type": "table", "value": "ranking_system" }, { "id": 3, "type": "column", "value": "criteria_name" }, { "id": 0, ...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "B-COLUMN", "O" ]
11,716
airline
bird:train.json:5869
Which airport did Republic Airline fly the most from?
SELECT T2.DEST FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description = 'Republic Airline: YX' GROUP BY T2.DEST ORDER BY COUNT(T2.DEST) DESC LIMIT 1
[ "Which", "airport", "did", "Republic", "Airline", "fly", "the", "most", "from", "?" ]
[ { "id": 6, "type": "column", "value": "op_carrier_airline_id" }, { "id": 4, "type": "value", "value": "Republic Airline: YX" }, { "id": 1, "type": "table", "value": "Air Carriers" }, { "id": 3, "type": "column", "value": "description" }, { "id": 2,...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 3, 5 ] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "B-VALUE", "B-TABLE", "B-VALUE", "O", "O", "O", "O" ]
11,717
financial
bird:dev.json:142
Which accounts placed orders for household payment in Pisek?
SELECT DISTINCT T2.account_id FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id WHERE T1.k_symbol = 'SIPO' AND T3.A2 = 'Pisek'
[ "Which", "accounts", "placed", "orders", "for", "household", "payment", "in", "Pisek", "?" ]
[ { "id": 4, "type": "column", "value": "district_id" }, { "id": 0, "type": "column", "value": "account_id" }, { "id": 1, "type": "table", "value": "district" }, { "id": 5, "type": "column", "value": "k_symbol" }, { "id": 3, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 1 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
11,718
music_1
spider:train_spider.json:3625
Find the names of the artists who have produced English songs but have never received rating higher than 8.
SELECT DISTINCT artist_name FROM song WHERE languages = "english" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8
[ "Find", "the", "names", "of", "the", "artists", "who", "have", "produced", "English", "songs", "but", "have", "never", "received", "rating", "higher", "than", "8", "." ]
[ { "id": 1, "type": "column", "value": "artist_name" }, { "id": 2, "type": "column", "value": "languages" }, { "id": 3, "type": "column", "value": "english" }, { "id": 4, "type": "column", "value": "rating" }, { "id": 0, "type": "table", "va...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 15 ] }, { "entit...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
11,719
beer_factory
bird:train.json:5305
In the reviews of September 2014. Which brand of beers obtained the highest star ratings?
SELECT DISTINCT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T2.StarRating = 5 AND T2.ReviewDate BETWEEN '2014-09-01' AND '2014-09-30'
[ "In", "the", "reviews", "of", "September", "2014", ".", "Which", "brand", "of", "beers", "obtained", "the", "highest", "star", "ratings", "?" ]
[ { "id": 2, "type": "table", "value": "rootbeerreview" }, { "id": 1, "type": "table", "value": "rootbeerbrand" }, { "id": 4, "type": "column", "value": "starrating" }, { "id": 6, "type": "column", "value": "reviewdate" }, { "id": 7, "type": "val...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 9, 10, 11 ] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 14, ...
[ "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
11,720
food_inspection_2
bird:train.json:6226
What is the total number of establishments with the highest risk level?
SELECT COUNT(license_no) FROM establishment WHERE risk_level = 3
[ "What", "is", "the", "total", "number", "of", "establishments", "with", "the", "highest", "risk", "level", "?" ]
[ { "id": 0, "type": "table", "value": "establishment" }, { "id": 1, "type": "column", "value": "risk_level" }, { "id": 3, "type": "column", "value": "license_no" }, { "id": 2, "type": "value", "value": "3" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 10, 11 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "to...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
11,721
wine_1
spider:train_spider.json:6530
Return the prices of wines produced before 2010.
SELECT Price FROM WINE WHERE YEAR < 2010
[ "Return", "the", "prices", "of", "wines", "produced", "before", "2010", "." ]
[ { "id": 1, "type": "column", "value": "price" }, { "id": 0, "type": "table", "value": "wine" }, { "id": 2, "type": "column", "value": "year" }, { "id": 3, "type": "value", "value": "2010" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-VALUE", "O" ]
11,722
debit_card_specializing
bird:dev.json:1511
For the customers who paid in the euro, what is their average total price of the transactions?
SELECT AVG(T1.Price) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN customers AS T3 ON T1.CustomerID = T3.CustomerID WHERE T3.Currency = 'EUR'
[ "For", "the", "customers", "who", "paid", "in", "the", "euro", ",", "what", "is", "their", "average", "total", "price", "of", "the", "transactions", "?" ]
[ { "id": 4, "type": "table", "value": "transactions_1k" }, { "id": 7, "type": "column", "value": "gasstationid" }, { "id": 5, "type": "table", "value": "gasstations" }, { "id": 6, "type": "column", "value": "customerid" }, { "id": 0, "type": "ta...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
11,723
game_1
spider:train_spider.json:6012
How many students play each sport?
SELECT sportname , count(*) FROM Sportsinfo GROUP BY sportname
[ "How", "many", "students", "play", "each", "sport", "?" ]
[ { "id": 0, "type": "table", "value": "sportsinfo" }, { "id": 1, "type": "column", "value": "sportname" } ]
[ { "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-COLUMN", "O" ]
11,724
law_episode
bird:train.json:1251
What is the title of the episode that got the most 10-star votes?
SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 10 ORDER BY T2.votes DESC LIMIT 1
[ "What", "is", "the", "title", "of", "the", "episode", "that", "got", "the", "most", "10", "-", "star", "votes", "?" ]
[ { "id": 6, "type": "column", "value": "episode_id" }, { "id": 1, "type": "table", "value": "episode" }, { "id": 0, "type": "column", "value": "title" }, { "id": 3, "type": "column", "value": "stars" }, { "id": 5, "type": "column", "value": ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "B-COLUMN", "B-TABLE", "O" ]
11,725
donor
bird:train.json:3176
When was the project with the highest quantity went live on the site? Indicate the grade level for which the project materials are intended.
SELECT T2.date_posted, T2.grade_level FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid ORDER BY T1.item_quantity DESC LIMIT 1
[ "When", "was", "the", "project", "with", "the", "highest", "quantity", "went", "live", "on", "the", "site", "?", "Indicate", "the", "grade", "level", "for", "which", "the", "project", "materials", "are", "intended", "." ]
[ { "id": 4, "type": "column", "value": "item_quantity" }, { "id": 0, "type": "column", "value": "date_posted" }, { "id": 1, "type": "column", "value": "grade_level" }, { "id": 2, "type": "table", "value": "resources" }, { "id": 5, "type": "colum...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 16, 17 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 21 ] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_i...
[ "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O" ]
11,726
entrepreneur
spider:train_spider.json:2302
Which company was started by the entrepreneur with the greatest height?
SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1
[ "Which", "company", "was", "started", "by", "the", "entrepreneur", "with", "the", "greatest", "height", "?" ]
[ { "id": 1, "type": "table", "value": "entrepreneur" }, { "id": 4, "type": "column", "value": "people_id" }, { "id": 0, "type": "column", "value": "company" }, { "id": 2, "type": "table", "value": "people" }, { "id": 3, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O" ]
11,727
video_games
bird:train.json:3359
List down the record ID of records released between 2000 to 2003.
SELECT T.id FROM game_platform AS T WHERE T.release_year BETWEEN 2000 AND 2003
[ "List", "down", "the", "record", "ID", "of", "records", "released", "between", "2000", "to", "2003", "." ]
[ { "id": 0, "type": "table", "value": "game_platform" }, { "id": 2, "type": "column", "value": "release_year" }, { "id": 3, "type": "value", "value": "2000" }, { "id": 4, "type": "value", "value": "2003" }, { "id": 1, "type": "column", "valu...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O" ]
11,728
customer_complaints
spider:train_spider.json:5782
Find the email and phone number of the customers who have never filed a complaint before.
SELECT email_address , phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)
[ "Find", "the", "email", "and", "phone", "number", "of", "the", "customers", "who", "have", "never", "filed", "a", "complaint", "before", "." ]
[ { "id": 1, "type": "column", "value": "email_address" }, { "id": 2, "type": "column", "value": "phone_number" }, { "id": 3, "type": "column", "value": "customer_id" }, { "id": 4, "type": "table", "value": "complaints" }, { "id": 0, "type": "tab...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 4, 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 14 ] ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O" ]
11,729
music_4
spider:train_spider.json:6185
Please show the categories of the music festivals with count more than 1.
SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1
[ "Please", "show", "the", "categories", "of", "the", "music", "festivals", "with", "count", "more", "than", "1", "." ]
[ { "id": 0, "type": "table", "value": "music_festival" }, { "id": 1, "type": "column", "value": "category" }, { "id": 2, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 6, 7 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "B-VALUE", "O" ]
11,730
inn_1
spider:train_spider.json:2618
Find the number of rooms with king bed for each decor type.
SELECT decor , count(*) FROM Rooms WHERE bedType = "King" GROUP BY decor;
[ "Find", "the", "number", "of", "rooms", "with", "king", "bed", "for", "each", "decor", "type", "." ]
[ { "id": 2, "type": "column", "value": "bedtype" }, { "id": 0, "type": "table", "value": "rooms" }, { "id": 1, "type": "column", "value": "decor" }, { "id": 3, "type": "column", "value": "King" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entit...
[ "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O" ]
11,732
sing_contest
bird:test.json:746
What are the id, language and original artist of the songs whose name is not 'Love'?
SELECT id , LANGUAGE , original_artist FROM songs WHERE name != 'Love'
[ "What", "are", "the", "i", "d", ",", "language", "and", "original", "artist", "of", "the", "songs", "whose", "name", "is", "not", "'", "Love", "'", "?" ]
[ { "id": 3, "type": "column", "value": "original_artist" }, { "id": 2, "type": "column", "value": "language" }, { "id": 0, "type": "table", "value": "songs" }, { "id": 4, "type": "column", "value": "name" }, { "id": 5, "type": "value", "valu...
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 8, 9 ] }, { "entity_id": 4, "token_idxs": [ ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O" ]
11,733
college_3
spider:train_spider.json:4696
What are the full names of students minoring in department 140?
SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140
[ "What", "are", "the", "full", "names", "of", "students", "minoring", "in", "department", "140", "?" ]
[ { "id": 2, "type": "table", "value": "minor_in" }, { "id": 3, "type": "table", "value": "student" }, { "id": 0, "type": "column", "value": "fname" }, { "id": 1, "type": "column", "value": "lname" }, { "id": 6, "type": "column", "value": "st...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-TABLE", "O", "O", "B-VALUE", "O" ]
11,735
allergy_1
spider:train_spider.json:519
Find the last name and age of the student who has allergy to both milk and cat.
SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat")
[ "Find", "the", "last", "name", "and", "age", "of", "the", "student", "who", "has", "allergy", "to", "both", "milk", "and", "cat", "." ]
[ { "id": 4, "type": "table", "value": "has_allergy" }, { "id": 0, "type": "table", "value": "student" }, { "id": 5, "type": "column", "value": "allergy" }, { "id": 1, "type": "column", "value": "lname" }, { "id": 3, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]
11,736
music_4
spider:train_spider.json:6202
Return the issue dates of volumes by artists who are at most 23 years old?
SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23
[ "Return", "the", "issue", "dates", "of", "volumes", "by", "artists", "who", "are", "at", "most", "23", "years", "old", "?" ]
[ { "id": 0, "type": "column", "value": "issue_date" }, { "id": 5, "type": "column", "value": "artist_id" }, { "id": 1, "type": "table", "value": "artist" }, { "id": 2, "type": "table", "value": "volume" }, { "id": 3, "type": "column", "value...
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 12 ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O" ]
11,737
works_cycles
bird:train.json:7411
Please list the e-mail addresses of all the employees who wish to receive e-mail promotions from Adventureworks and selected partners.
SELECT T2.EmailAddress FROM Person AS T1 INNER JOIN EmailAddress AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.EmailPromotion = 2
[ "Please", "list", "the", "e", "-", "mail", "addresses", "of", "all", "the", "employees", "who", "wish", "to", "receive", "e", "-", "mail", "promotions", "from", "Adventureworks", "and", "selected", "partners", "." ]
[ { "id": 5, "type": "column", "value": "businessentityid" }, { "id": 3, "type": "column", "value": "emailpromotion" }, { "id": 0, "type": "column", "value": "emailaddress" }, { "id": 2, "type": "table", "value": "emailaddress" }, { "id": 1, "typ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3, 4, 5, 6 ] }, { "entity_id": 3, "token_idxs": [ 17, 18 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O" ]
11,738
image_and_language
bird:train.json:7538
How many object elements can be detected on image no. 31?
SELECT COUNT(OBJ_CLASS_ID) FROM IMG_OBJ WHERE IMG_ID = 31
[ "How", "many", "object", "elements", "can", "be", "detected", "on", "image", "no", ".", "31", "?" ]
[ { "id": 3, "type": "column", "value": "obj_class_id" }, { "id": 0, "type": "table", "value": "img_obj" }, { "id": 1, "type": "column", "value": "img_id" }, { "id": 2, "type": "value", "value": "31" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "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-VALUE", "O" ]
11,739
customers_and_invoices
spider:train_spider.json:1618
How many order items correspond to each order id?
SELECT order_id , count(*) FROM Order_items GROUP BY order_id
[ "How", "many", "order", "items", "correspond", "to", "each", "order", "i", "d", "?" ]
[ { "id": 0, "type": "table", "value": "order_items" }, { "id": 1, "type": "column", "value": "order_id" } ]
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [ 7, 8, 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity...
[ "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
11,740
conference
bird:test.json:1062
How many conferences occur every year?
SELECT YEAR , count(*) FROM conference GROUP BY YEAR
[ "How", "many", "conferences", "occur", "every", "year", "?" ]
[ { "id": 0, "type": "table", "value": "conference" }, { "id": 1, "type": "column", "value": "year" } ]
[ { "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-COLUMN", "O" ]
11,741
wine_1
spider:train_spider.json:6580
Which wineries produce at least four wines?
SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4
[ "Which", "wineries", "produce", "at", "least", "four", "wines", "?" ]
[ { "id": 1, "type": "column", "value": "winery" }, { "id": 0, "type": "table", "value": "wine" }, { "id": 2, "type": "value", "value": "4" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
11,742
apartment_rentals
spider:train_spider.json:1263
Which apartment type code is the most common among apartments with more than one bathroom?
SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1
[ "Which", "apartment", "type", "code", "is", "the", "most", "common", "among", "apartments", "with", "more", "than", "one", "bathroom", "?" ]
[ { "id": 2, "type": "column", "value": "bathroom_count" }, { "id": 1, "type": "column", "value": "apt_type_code" }, { "id": 0, "type": "table", "value": "apartments" }, { "id": 3, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O" ]
11,743
talkingdata
bird:train.json:1051
What is the most common device model among female users between the ages 27 to 28?
SELECT T2.device_model FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.`group` = 'F27-28' AND T1.gender = 'F' ORDER BY T2.device_id DESC LIMIT 1
[ "What", "is", "the", "most", "common", "device", "model", "among", "female", "users", "between", "the", "ages", "27", "to", "28", "?" ]
[ { "id": 2, "type": "table", "value": "phone_brand_device_model2" }, { "id": 0, "type": "column", "value": "device_model" }, { "id": 1, "type": "table", "value": "gender_age" }, { "id": 3, "type": "column", "value": "device_id" }, { "id": 5, "ty...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
11,744
soccer_1
spider:train_spider.json:1299
List the names of all players who have a crossing score higher than 90 and prefer their right foot.
SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = "right"
[ "List", "the", "names", "of", "all", "players", "who", "have", "a", "crossing", "score", "higher", "than", "90", "and", "prefer", "their", "right", "foot", "." ]
[ { "id": 2, "type": "table", "value": "player_attributes" }, { "id": 6, "type": "column", "value": "preferred_foot" }, { "id": 3, "type": "column", "value": "player_api_id" }, { "id": 0, "type": "column", "value": "player_name" }, { "id": 4, "ty...
[ { "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": [ 9 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O" ]
11,745
music_1
spider:train_spider.json:3557
What is the country of origin of the artist who is female and produced a song in Bangla?
SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla"
[ "What", "is", "the", "country", "of", "origin", "of", "the", "artist", "who", "is", "female", "and", "produced", "a", "song", "in", "Bangla", "?" ]
[ { "id": 3, "type": "column", "value": "artist_name" }, { "id": 6, "type": "column", "value": "languages" }, { "id": 0, "type": "column", "value": "country" }, { "id": 1, "type": "table", "value": "artist" }, { "id": 4, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O" ]
11,746
allergy_1
spider:train_spider.json:448
What are all the different food allergies?
SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = "food"
[ "What", "are", "all", "the", "different", "food", "allergies", "?" ]
[ { "id": 0, "type": "table", "value": "allergy_type" }, { "id": 2, "type": "column", "value": "allergytype" }, { "id": 1, "type": "column", "value": "allergy" }, { "id": 3, "type": "column", "value": "food" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "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-COLUMN", "O" ]
11,747
movie_3
bird:train.json:9221
Calculate how many percent of customers were located in India.
SELECT CAST(SUM(IIF(T1.country = 'India', 1, 0)) AS REAL) * 100 / COUNT(T4.customer_id) FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id INNER JOIN address AS T3 ON T2.city_id = T3.city_id INNER JOIN customer AS T4 ON T3.address_id = T4.address_id
[ "Calculate", "how", "many", "percent", "of", "customers", "were", "located", "in", "India", "." ]
[ { "id": 4, "type": "column", "value": "customer_id" }, { "id": 2, "type": "column", "value": "address_id" }, { "id": 8, "type": "column", "value": "country_id" }, { "id": 0, "type": "table", "value": "customer" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O" ]
11,748
mondial_geo
bird:train.json:8464
Name the first organisation established in the Paris city. State its abbreviation, full name and date of establishment.
SELECT Abbreviation, Name, Established FROM organization WHERE City = 'Paris' ORDER BY Established ASC LIMIT 1
[ "Name", "the", "first", "organisation", "established", "in", "the", "Paris", "city", ".", "State", "its", "abbreviation", ",", "full", "name", "and", "date", "of", "establishment", "." ]
[ { "id": 0, "type": "table", "value": "organization" }, { "id": 1, "type": "column", "value": "abbreviation" }, { "id": 3, "type": "column", "value": "established" }, { "id": 5, "type": "value", "value": "Paris" }, { "id": 2, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [ 8 ] }, ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O" ]
11,749
superhero
bird:dev.json:806
Provide the eye colour of the superhero who has Karen Beecher-Duncan as their full name.
SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.full_name = 'Karen Beecher-Duncan'
[ "Provide", "the", "eye", "colour", "of", "the", "superhero", "who", "has", "Karen", "Beecher", "-", "Duncan", "as", "their", "full", "name", "." ]
[ { "id": 4, "type": "value", "value": "Karen Beecher-Duncan" }, { "id": 5, "type": "column", "value": "eye_colour_id" }, { "id": 1, "type": "table", "value": "superhero" }, { "id": 3, "type": "column", "value": "full_name" }, { "id": 0, "type": ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [ 15, 16 ] }, { "entity_id": 4, "token_idxs": [ 9, 10, ...
[ "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
11,750
legislator
bird:train.json:4763
What is the current official Youtube username of Chris Van Hollen?
SELECT T2.youtube FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.official_full_name = 'Chris Van Hollen'
[ "What", "is", "the", "current", "official", "Youtube", "username", "of", "Chris", "Van", "Hollen", "?" ]
[ { "id": 3, "type": "column", "value": "official_full_name" }, { "id": 4, "type": "value", "value": "Chris Van Hollen" }, { "id": 2, "type": "table", "value": "social-media" }, { "id": 6, "type": "column", "value": "bioguide_id" }, { "id": 5, "t...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [ 8, 9, 10 ] ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
11,751
bike_share_1
bird:train.json:9062
In which city's station is a bike borrowed on trip ID4069?
SELECT T2.city FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.id = 4069
[ "In", "which", "city", "'s", "station", "is", "a", "bike", "borrowed", "on", "trip", "ID4069", "?" ]
[ { "id": 6, "type": "column", "value": "start_station_name" }, { "id": 2, "type": "table", "value": "station" }, { "id": 0, "type": "column", "value": "city" }, { "id": 1, "type": "table", "value": "trip" }, { "id": 4, "type": "value", "valu...
[ { "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": [ 11 ] }, { "entit...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "B-VALUE", "O" ]
11,752
soccer_2016
bird:train.json:1874
How many percent of the toss-winners decided to bowl first on the pitch from 2010 to 2016?
SELECT CAST(SUM(CASE WHEN T2.Toss_Name = 'field' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.Toss_Id) FROM Match AS T1 INNER JOIN Toss_Decision AS T2 ON T2.Toss_Id = T1.Toss_Decide WHERE T1.Match_Date BETWEEN '2010-01-01' AND '2016-12-31'
[ "How", "many", "percent", "of", "the", "toss", "-", "winners", "decided", "to", "bowl", "first", "on", "the", "pitch", "from", "2010", "to", "2016", "?" ]
[ { "id": 1, "type": "table", "value": "toss_decision" }, { "id": 6, "type": "column", "value": "toss_decide" }, { "id": 2, "type": "column", "value": "match_date" }, { "id": 3, "type": "value", "value": "2010-01-01" }, { "id": 4, "type": "value"...
[ { "entity_id": 0, "token_idxs": [ 14 ] }, { "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": [ 5 ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O" ]
11,753
shop_membership
spider:train_spider.json:5410
Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.
SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'
[ "Show", "minimum", "and", "maximum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "." ]
[ { "id": 1, "type": "column", "value": "membership_amount" }, { "id": 2, "type": "column", "value": "open_year" }, { "id": 0, "type": "table", "value": "branch" }, { "id": 5, "type": "value", "value": "London" }, { "id": 3, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 16 ] }, ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "B-VALUE", "O" ]
11,754
movie_3
bird:train.json:9278
How many customers live in the city of Miyakonojo?
SELECT COUNT(T3.customer_id) FROM city AS T1 INNER JOIN address AS T2 ON T1.city_id = T2.city_id INNER JOIN customer AS T3 ON T2.address_id = T3.address_id WHERE T1.city = 'Miyakonojo'
[ "How", "many", "customers", "live", "in", "the", "city", "of", "Miyakonojo", "?" ]
[ { "id": 3, "type": "column", "value": "customer_id" }, { "id": 2, "type": "value", "value": "Miyakonojo" }, { "id": 6, "type": "column", "value": "address_id" }, { "id": 0, "type": "table", "value": "customer" }, { "id": 5, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 6 ] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O" ]
11,755
toxicology
bird:dev.json:237
Which molecule does the atom TR001_10 belong to? Please state whether this molecule is carcinogenic or not.
SELECT T2.molecule_id , IIF(T2.label = '+', 'YES', 'NO') AS flag_carcinogenic FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.atom_id = 'TR001_10'
[ "Which", "molecule", "does", "the", "atom", "TR001_10", "belong", "to", "?", "Please", "state", "whether", "this", "molecule", "is", "carcinogenic", "or", "not", "." ]
[ { "id": 0, "type": "column", "value": "molecule_id" }, { "id": 2, "type": "table", "value": "molecule" }, { "id": 4, "type": "value", "value": "TR001_10" }, { "id": 3, "type": "column", "value": "atom_id" }, { "id": 7, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entity_id": 5, "...
[ "O", "B-TABLE", "O", "O", "B-TABLE", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
11,756
works_cycles
bird:train.json:7282
Which product gets the most reviews?
SELECT T2.Name FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID GROUP BY T1.ProductID ORDER BY COUNT(T1.ProductReviewID) DESC LIMIT 1
[ "Which", "product", "gets", "the", "most", "reviews", "?" ]
[ { "id": 4, "type": "column", "value": "productreviewid" }, { "id": 2, "type": "table", "value": "productreview" }, { "id": 0, "type": "column", "value": "productid" }, { "id": 3, "type": "table", "value": "product" }, { "id": 1, "type": "column...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 1 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "B-TABLE", "O", "O", "O", "O", "O" ]
11,758
bike_share_1
bird:train.json:9008
How many stations in San Francico can hold more than 20 bikes?
SELECT SUM(CASE WHEN city = 'San Francisco' AND dock_count > 20 THEN 1 ELSE 0 END) FROM station
[ "How", "many", "stations", "in", "San", "Francico", "can", "hold", "more", "than", "20", "bikes", "?" ]
[ { "id": 4, "type": "value", "value": "San Francisco" }, { "id": 5, "type": "column", "value": "dock_count" }, { "id": 0, "type": "table", "value": "station" }, { "id": 3, "type": "column", "value": "city" }, { "id": 6, "type": "value", "val...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 4, 5 ] }, { "entity_id"...
[ "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "B-VALUE", "O", "O" ]
11,759
works_cycles
bird:train.json:6999
What is the average standard cost of product number CA-1098?
SELECT AVG(T2.StandardCost) FROM Product AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductNumber = 'CA-1098'
[ "What", "is", "the", "average", "standard", "cost", "of", "product", "number", "CA-1098", "?" ]
[ { "id": 1, "type": "table", "value": "productcosthistory" }, { "id": 2, "type": "column", "value": "productnumber" }, { "id": 4, "type": "column", "value": "standardcost" }, { "id": 5, "type": "column", "value": "productid" }, { "id": 0, "type"...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 4, 5 ] }, { ...
[ "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O" ]
11,760
formula_1
bird:dev.json:950
Please list the constructor names with 0 points at race 291.
SELECT T2.name FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T1.raceId = 291
[ "Please", "list", "the", "constructor", "names", "with", "0", "points", "at", "race", "291", "." ]
[ { "id": 1, "type": "table", "value": "constructorstandings" }, { "id": 3, "type": "column", "value": "constructorid" }, { "id": 2, "type": "table", "value": "constructors" }, { "id": 4, "type": "column", "value": "points" }, { "id": 6, "type": ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "B-COLUMN", "O", "B-COLUMN", "B-VALUE", "O" ]
11,761
storm_record
spider:train_spider.json:2720
Show storm name with at least two regions and 10 cities affected.
SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected) >= 10
[ "Show", "storm", "name", "with", "at", "least", "two", "regions", "and", "10", "cities", "affected", "." ]
[ { "id": 6, "type": "column", "value": "number_city_affected" }, { "id": 3, "type": "table", "value": "affected_region" }, { "id": 0, "type": "column", "value": "storm_id" }, { "id": 2, "type": "table", "value": "storm" }, { "id": 1, "type": "co...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "B-TABLE", "O" ]
11,763
real_estate_rentals
bird:test.json:1431
Return the zip codes for properties not belonging to users who own two or fewer properties.
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Properties AS T2 ON T1.address_id = T2.property_address_id WHERE T2.owner_user_id NOT IN ( SELECT owner_user_id FROM Properties GROUP BY owner_user_id HAVING count(*) <= 2 );
[ "Return", "the", "zip", "codes", "for", "properties", "not", "belonging", "to", "users", "who", "own", "two", "or", "fewer", "properties", "." ]
[ { "id": 4, "type": "column", "value": "property_address_id" }, { "id": 5, "type": "column", "value": "owner_user_id" }, { "id": 0, "type": "column", "value": "zip_postcode" }, { "id": 2, "type": "table", "value": "properties" }, { "id": 3, "typ...
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entity_id"...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
11,764
california_schools
bird:dev.json:20
How many schools in Amador which the Low Grade is 9 and the High Grade is 12?
SELECT COUNT(T1.`School Name`) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Amador' AND T1.`Low Grade` = 9 AND T1.`High Grade` = 12
[ "How", "many", "schools", "in", "Amador", "which", "the", "Low", "Grade", "is", "9", "and", "the", "High", "Grade", "is", "12", "?" ]
[ { "id": 2, "type": "column", "value": "School Name" }, { "id": 8, "type": "column", "value": "High Grade" }, { "id": 6, "type": "column", "value": "Low Grade" }, { "id": 1, "type": "table", "value": "schools" }, { "id": 3, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
11,765
airline
bird:train.json:5831
How many flights operated by American Airlines Inc. on 2018/8/1 were faster than scheduled?
SELECT SUM(CASE WHEN T2.ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T2.FL_DATE = '2018/8/1' AND T3.Description = 'American Airlines Inc.: AA'
[ "How", "many", "flights", "operated", "by", "American", "Airlines", "Inc.", "on", "2018/8/1", "were", "faster", "than", "scheduled", "?" ]
[ { "id": 8, "type": "value", "value": "American Airlines Inc.: AA" }, { "id": 3, "type": "column", "value": "op_carrier_airline_id" }, { "id": 12, "type": "column", "value": "actual_elapsed_time" }, { "id": 13, "type": "column", "value": "crs_elapsed_time" ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 11 ...
[ "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "B-VALUE", "O", "B-VALUE", "O", "B-COLUMN", "O", "O", "O" ]
11,766
online_exams
bird:test.json:196
Give me an alphabetically ordered list of the distinct subject code for exams.
SELECT DISTINCT Subject_Code FROM Exams ORDER BY Subject_Code
[ "Give", "me", "an", "alphabetically", "ordered", "list", "of", "the", "distinct", "subject", "code", "for", "exams", "." ]
[ { "id": 1, "type": "column", "value": "subject_code" }, { "id": 0, "type": "table", "value": "exams" } ]
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 9, 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "to...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O" ]
11,767
swimming
spider:train_spider.json:5602
How many events are there?
SELECT count(*) FROM event
[ "How", "many", "events", "are", "there", "?" ]
[ { "id": 0, "type": "table", "value": "event" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "O", "O" ]