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
10,588
toxicology
bird:dev.json:311
How many molecules without sulphur element is not having double bond?
SELECT COUNT(DISTINCT T1.molecule_id) FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element <> 's' AND T2.bond_type <> '='
[ "How", "many", "molecules", "without", "sulphur", "element", "is", "not", "having", "double", "bond", "?" ]
[ { "id": 2, "type": "column", "value": "molecule_id" }, { "id": 5, "type": "column", "value": "bond_type" }, { "id": 3, "type": "column", "value": "element" }, { "id": 0, "type": "table", "value": "atom" }, { "id": 1, "type": "table", "value...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [ 6 ] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "B-TABLE", "O" ]
10,589
works_cycles
bird:train.json:7396
What is the average profit of all the low class universal road frames? Indicate how many variety of sizes are there and the available colors.
SELECT AVG(T1.ListPrice - T1.StandardCost), COUNT(DISTINCT T1.Size) , COUNT(DISTINCT T1.Style) FROM Product AS T1 INNER JOIN ProductSubcategory AS T2 ON T1.ProductSubcategoryID = T2.ProductSubcategoryID WHERE T1.Class = 'L' AND T2.Name = 'Road Frames' GROUP BY T1.Class, T1.Color
[ "What", "is", "the", "average", "profit", "of", "all", "the", "low", "class", "universal", "road", "frames", "?", "Indicate", "how", "many", "variety", "of", "sizes", "are", "there", "and", "the", "available", "colors", "." ]
[ { "id": 6, "type": "column", "value": "productsubcategoryid" }, { "id": 3, "type": "table", "value": "productsubcategory" }, { "id": 11, "type": "column", "value": "standardcost" }, { "id": 9, "type": "value", "value": "Road Frames" }, { "id": 10, ...
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 25 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 19 ] }, { "entit...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
10,590
books
bird:train.json:6089
List the title of books published by AK Press.
SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'AK Press'
[ "List", "the", "title", "of", "books", "published", "by", "AK", "Press", "." ]
[ { "id": 3, "type": "column", "value": "publisher_name" }, { "id": 5, "type": "column", "value": "publisher_id" }, { "id": 2, "type": "table", "value": "publisher" }, { "id": 4, "type": "value", "value": "AK Press" }, { "id": 0, "type": "column"...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7, 8 ] }, { ...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O" ]
10,591
music_tracker
bird:train.json:2080
How many singles were released between 1979 and 1981 labeled as "soul"?
SELECT COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'soul' AND T1.groupYear BETWEEN 1979 AND 1981 AND T1.releaseType LIKE 'single'
[ "How", "many", "singles", "were", "released", "between", "1979", "and", "1981", "labeled", "as", "\"", "soul", "\"", "?" ]
[ { "id": 8, "type": "column", "value": "releasetype" }, { "id": 5, "type": "column", "value": "groupyear" }, { "id": 0, "type": "table", "value": "torrents" }, { "id": 9, "type": "value", "value": "single" }, { "id": 1, "type": "table", "val...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "B-VALUE", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O", "B-TABLE", "O", "B-VALUE", "O", "O" ]
10,592
music_platform_2
bird:train.json:7928
State the podcast title, content review and rating for all reviews with titled 'Love it!'
SELECT DISTINCT T1.title, T2.content, T2.rating FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'Love it!'
[ "State", "the", "podcast", "title", ",", "content", "review", "and", "rating", "for", "all", "reviews", "with", "titled", "'", "Love", "it", "!", "'" ]
[ { "id": 6, "type": "column", "value": "podcast_id" }, { "id": 3, "type": "table", "value": "podcasts" }, { "id": 5, "type": "value", "value": "Love it!" }, { "id": 1, "type": "column", "value": "content" }, { "id": 4, "type": "table", "valu...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, ...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
10,593
icfp_1
spider:train_spider.json:2891
Which papers did the author "Olin Shivers" write? Give me the paper titles.
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Olin" AND t1.lname = "Shivers"
[ "Which", "papers", "did", "the", "author", "\"", "Olin", "Shivers", "\"", "write", "?", "Give", "me", "the", "paper", "titles", "." ]
[ { "id": 3, "type": "table", "value": "authorship" }, { "id": 2, "type": "table", "value": "authors" }, { "id": 4, "type": "column", "value": "paperid" }, { "id": 8, "type": "column", "value": "Shivers" }, { "id": 1, "type": "table", "value"...
[ { "entity_id": 0, "token_idxs": [ 15 ] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 14 ] }, { "entity_id": 5, ...
[ "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O" ]
10,594
vehicle_driver
bird:test.json:190
Return the names and citizenships of drivers who have driven the vehicle with the model 'DJ1'.
SELECT T1.name , T1.citizenship FROM driver AS T1 JOIN vehicle_driver AS T2 ON T1.driver_id = T2.driver_id JOIN vehicle AS T3 ON T2.vehicle_id = T3.vehicle_id WHERE T3.model = 'DJ1'
[ "Return", "the", "names", "and", "citizenships", "of", "drivers", "who", "have", "driven", "the", "vehicle", "with", "the", "model", "'", "DJ1", "'", "." ]
[ { "id": 6, "type": "table", "value": "vehicle_driver" }, { "id": 1, "type": "column", "value": "citizenship" }, { "id": 7, "type": "column", "value": "vehicle_id" }, { "id": 8, "type": "column", "value": "driver_id" }, { "id": 2, "type": "table...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [ 16 ] }, ...
[ "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O" ]
10,595
music_platform_2
bird:train.json:7933
List all reviews created in May 2019. State the title of podcast and review rating.
SELECT DISTINCT T1.title, T2.rating FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.created_at LIKE '2019-05-%'
[ "List", "all", "reviews", "created", "in", "May", "2019", ".", "State", "the", "title", "of", "podcast", "and", "review", "rating", "." ]
[ { "id": 4, "type": "column", "value": "created_at" }, { "id": 6, "type": "column", "value": "podcast_id" }, { "id": 5, "type": "value", "value": "2019-05-%" }, { "id": 2, "type": "table", "value": "podcasts" }, { "id": 3, "type": "table", "...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 15 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [ 3 ] }, ...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "O" ]
10,596
music_2
spider:train_spider.json:5185
How many musicians play in the song "Flash"?
SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.Title = "Flash"
[ "How", "many", "musicians", "play", "in", "the", "song", "\"", "Flash", "\"", "?" ]
[ { "id": 3, "type": "table", "value": "performance" }, { "id": 6, "type": "column", "value": "bandmate" }, { "id": 5, "type": "column", "value": "songid" }, { "id": 0, "type": "table", "value": "songs" }, { "id": 1, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O" ]
10,597
apartment_rentals
spider:train_spider.json:1215
Which apartments have type code "Flat"? Give me their apartment numbers.
SELECT apt_number FROM Apartments WHERE apt_type_code = "Flat"
[ "Which", "apartments", "have", "type", "code", "\"", "Flat", "\"", "?", "Give", "me", "their", "apartment", "numbers", "." ]
[ { "id": 2, "type": "column", "value": "apt_type_code" }, { "id": 0, "type": "table", "value": "apartments" }, { "id": 1, "type": "column", "value": "apt_number" }, { "id": 3, "type": "column", "value": "Flat" } ]
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [ 13 ] }, { "entity_id": 2, "token_idxs": [ 3, 4 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
10,598
movie_3
bird:train.json:9316
Which country does Sasebo belong to?
SELECT T1.country FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id WHERE T2.city = 'Sasebo'
[ "Which", "country", "does", "Sasebo", "belong", "to", "?" ]
[ { "id": 5, "type": "column", "value": "country_id" }, { "id": 0, "type": "column", "value": "country" }, { "id": 1, "type": "table", "value": "country" }, { "id": 4, "type": "value", "value": "Sasebo" }, { "id": 2, "type": "table", "value":...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 3 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O" ]
10,599
manufactory_1
spider:train_spider.json:5335
How many products have prices of at least 180?
SELECT count(*) FROM products WHERE price >= 180
[ "How", "many", "products", "have", "prices", "of", "at", "least", "180", "?" ]
[ { "id": 0, "type": "table", "value": "products" }, { "id": 1, "type": "column", "value": "price" }, { "id": 2, "type": "value", "value": "180" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O" ]
10,600
regional_sales
bird:train.json:2645
State the name of all city in Maricopa County along with its latitude and longitude.
SELECT DISTINCT `City Name`, Latitude, Longitude FROM `Store Locations` WHERE County = 'Maricopa County'
[ "State", "the", "name", "of", "all", "city", "in", "Maricopa", "County", "along", "with", "its", "latitude", "and", "longitude", "." ]
[ { "id": 0, "type": "table", "value": "Store Locations" }, { "id": 5, "type": "value", "value": "Maricopa County" }, { "id": 1, "type": "column", "value": "City Name" }, { "id": 3, "type": "column", "value": "longitude" }, { "id": 2, "type": "co...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]
10,601
school_bus
spider:train_spider.json:6359
Show the school name and driver name for all school buses.
SELECT T2.school , T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN driver AS T3 ON T1.driver_id = T3.driver_id
[ "Show", "the", "school", "name", "and", "driver", "name", "for", "all", "school", "buses", "." ]
[ { "id": 3, "type": "table", "value": "school_bus" }, { "id": 5, "type": "column", "value": "driver_id" }, { "id": 6, "type": "column", "value": "school_id" }, { "id": 0, "type": "column", "value": "school" }, { "id": 2, "type": "table", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "B-TABLE", "O" ]
10,602
card_games
bird:dev.json:499
How many translations of the name of the set "Tenth Edition"?
SELECT COUNT(DISTINCT T2.translation) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Tenth Edition' AND T2.translation IS NOT NULL
[ "How", "many", "translations", "of", "the", "name", "of", "the", "set", "\"", "Tenth", "Edition", "\"", "?" ]
[ { "id": 1, "type": "table", "value": "set_translations" }, { "id": 6, "type": "value", "value": "Tenth Edition" }, { "id": 2, "type": "column", "value": "translation" }, { "id": 3, "type": "column", "value": "setcode" }, { "id": 0, "type": "tab...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O" ]
10,603
works_cycles
bird:train.json:7211
How many products with the id "989" were sold in August 2013?
SELECT SUM(Quantity) FROM TransactionHistory WHERE TransactionDate LIKE '2013-08%' AND TransactionType = 'S' AND ProductID = 989
[ "How", "many", "products", "with", "the", "i", "d", "\"", "989", "\"", "were", "sold", "in", "August", "2013", "?" ]
[ { "id": 0, "type": "table", "value": "transactionhistory" }, { "id": 2, "type": "column", "value": "transactiondate" }, { "id": 4, "type": "column", "value": "transactiontype" }, { "id": 6, "type": "column", "value": "productid" }, { "id": 1, "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
10,604
disney
bird:train.json:4677
Which of the movies directed by Ron Clements has the highest total gross?
SELECT T2.movie_title FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Ron Clements' ORDER BY CAST(REPLACE(trim(T2.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1
[ "Which", "of", "the", "movies", "directed", "by", "Ron", "Clements", "has", "the", "highest", "total", "gross", "?" ]
[ { "id": 2, "type": "table", "value": "movies_total_gross" }, { "id": 4, "type": "value", "value": "Ron Clements" }, { "id": 0, "type": "column", "value": "movie_title" }, { "id": 7, "type": "column", "value": "total_gross" }, { "id": 1, "type":...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [ 6, 7 ] }, { ...
[ "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O" ]
10,605
retail_world
bird:train.json:6533
How many orders were shipped to Venezuela in 1996?
SELECT COUNT(OrderID) FROM Orders WHERE ShipCountry = 'Venezuela' AND STRFTIME('%Y', ShippedDate) = '1996'
[ "How", "many", "orders", "were", "shipped", "to", "Venezuela", "in", "1996", "?" ]
[ { "id": 2, "type": "column", "value": "shipcountry" }, { "id": 6, "type": "column", "value": "shippeddate" }, { "id": 3, "type": "value", "value": "Venezuela" }, { "id": 1, "type": "column", "value": "orderid" }, { "id": 0, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O" ]
10,606
phone_1
spider:train_spider.json:1050
Find the names of the chip models that are not used by any phone with full accreditation type.
SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full'
[ "Find", "the", "names", "of", "the", "chip", "models", "that", "are", "not", "used", "by", "any", "phone", "with", "full", "accreditation", "type", "." ]
[ { "id": 4, "type": "column", "value": "accreditation_type" }, { "id": 0, "type": "table", "value": "chip_model" }, { "id": 2, "type": "column", "value": "model_name" }, { "id": 3, "type": "column", "value": "chip_model" }, { "id": 1, "type": "t...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 13 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5, 6 ] }, { "entity_id": 4, "token_idxs": [ 16, 17 ] }, { ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "O" ]
10,607
address
bird:train.json:5209
List down the names of the cities belonging to Noble, Oklahoma.
SELECT T3.city FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state INNER JOIN zip_data AS T3 ON T2.zip_code = T3.zip_code WHERE T1.name = 'Oklahoma' AND T2.county = 'NOBLE'
[ "List", "down", "the", "names", "of", "the", "cities", "belonging", "to", "Noble", ",", "Oklahoma", "." ]
[ { "id": 9, "type": "column", "value": "abbreviation" }, { "id": 1, "type": "table", "value": "zip_data" }, { "id": 4, "type": "column", "value": "zip_code" }, { "id": 6, "type": "value", "value": "Oklahoma" }, { "id": 3, "type": "table", "v...
[ { "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": [ 3 ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "B-VALUE", "O" ]
10,608
regional_sales
bird:train.json:2646
Which order have the highest unit cost?
SELECT OrderNumber FROM `Sales Orders` WHERE REPLACE(`Unit Cost`, ',', '') = ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Cost`, ',', '') DESC LIMIT 1 )
[ "Which", "order", "have", "the", "highest", "unit", "cost", "?" ]
[ { "id": 0, "type": "table", "value": "Sales Orders" }, { "id": 1, "type": "column", "value": "ordernumber" }, { "id": 2, "type": "column", "value": "Unit Cost" }, { "id": 3, "type": "value", "value": "," } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
10,609
codebase_community
bird:dev.json:645
How many negative comments were given by user ID 13?
SELECT COUNT(Id) FROM comments WHERE UserId = 13 AND Score < 60
[ "How", "many", "negative", "comments", "were", "given", "by", "user", "ID", "13", "?" ]
[ { "id": 0, "type": "table", "value": "comments" }, { "id": 2, "type": "column", "value": "userid" }, { "id": 4, "type": "column", "value": "score" }, { "id": 1, "type": "column", "value": "id" }, { "id": 3, "type": "value", "value": "13" ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_...
[ "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "B-COLUMN", "B-VALUE", "O" ]
10,610
driving_school
spider:train_spider.json:6676
How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?
SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed";
[ "How", "many", "lessons", "taken", "by", "customer", "with", "first", "name", "as", "Rylan", "and", "last", "name", "as", "Goodwin", "were", "completed", "?" ]
[ { "id": 7, "type": "column", "value": "lesson_status_code" }, { "id": 2, "type": "column", "value": "customer_id" }, { "id": 3, "type": "column", "value": "first_name" }, { "id": 1, "type": "table", "value": "customers" }, { "id": 5, "type": "c...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7, 8 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { ...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]
10,611
thrombosis_prediction
bird:dev.json:1194
What sex is the patient who in a medical examination was diagnosed with PSS and in a laboratory examination had a blood level of C-reactive protein de 2+, createnine 1 and LDH 123?
SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis = 'PSS' AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123
[ "What", "sex", "is", "the", "patient", "who", "in", "a", "medical", "examination", "was", "diagnosed", "with", "PSS", "and", "in", "a", "laboratory", "examination", "had", "a", "blood", "level", "of", "C", "-", "reactive", "protein", "de", "2", "+", ",",...
[ { "id": 3, "type": "table", "value": "examination" }, { "id": 1, "type": "table", "value": "laboratory" }, { "id": 5, "type": "column", "value": "diagnosis" }, { "id": 2, "type": "table", "value": "patient" }, { "id": 0, "type": "column", "...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [ 17 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity...
[ "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "B-COLUMN", "B-VALU...
10,612
city_record
spider:train_spider.json:6275
Find the city that hosted the most events.
SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1
[ "Find", "the", "city", "that", "hosted", "the", "most", "events", "." ]
[ { "id": 3, "type": "table", "value": "hosting_city" }, { "id": 0, "type": "column", "value": "host_city" }, { "id": 4, "type": "column", "value": "city_id" }, { "id": 1, "type": "column", "value": "city" }, { "id": 2, "type": "table", "valu...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O" ]
10,613
tracking_software_problems
spider:train_spider.json:5380
List the names of all the distinct product names in alphabetical order?
SELECT DISTINCT product_name FROM product ORDER BY product_name
[ "List", "the", "names", "of", "all", "the", "distinct", "product", "names", "in", "alphabetical", "order", "?" ]
[ { "id": 1, "type": "column", "value": "product_name" }, { "id": 0, "type": "table", "value": "product" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O" ]
10,614
synthea
bird:train.json:1478
List out 5 most common conditions for underweight patient.
SELECT DISTINCT T2.DESCRIPTION, T2.VALUE, T2.UNITS FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Body Mass Index' GROUP BY T2.VALUE ORDER BY COUNT(T2.VALUE) LIMIT 5
[ "List", "out", "5", "most", "common", "conditions", "for", "underweight", "patient", "." ]
[ { "id": 5, "type": "value", "value": "Body Mass Index" }, { "id": 4, "type": "table", "value": "observations" }, { "id": 1, "type": "column", "value": "description" }, { "id": 3, "type": "table", "value": "patients" }, { "id": 6, "type": "colum...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
10,615
customers_and_invoices
spider:train_spider.json:1580
Count the number of financial transactions that correspond to each account id.
SELECT count(*) , account_id FROM Financial_transactions
[ "Count", "the", "number", "of", "financial", "transactions", "that", "correspond", "to", "each", "account", "i", "d." ]
[ { "id": 0, "type": "table", "value": "financial_transactions" }, { "id": 1, "type": "column", "value": "account_id" } ]
[ { "entity_id": 0, "token_idxs": [ 4, 5 ] }, { "entity_id": 1, "token_idxs": [ 10, 11, 12 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "ent...
[ "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN" ]
10,616
trains
bird:train.json:692
What is the shape of the tail car on train no.1?
SELECT shape FROM cars WHERE train_id = 1 AND position = 4
[ "What", "is", "the", "shape", "of", "the", "tail", "car", "on", "train", "no.1", "?" ]
[ { "id": 2, "type": "column", "value": "train_id" }, { "id": 4, "type": "column", "value": "position" }, { "id": 1, "type": "column", "value": "shape" }, { "id": 0, "type": "table", "value": "cars" }, { "id": 3, "type": "value", "value": "1"...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O" ]
10,618
assets_maintenance
spider:train_spider.json:3153
What is the description of the type of the company who concluded its contracts most recently?
SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1
[ "What", "is", "the", "description", "of", "the", "type", "of", "the", "company", "who", "concluded", "its", "contracts", "most", "recently", "?" ]
[ { "id": 7, "type": "column", "value": "maintenance_contract_company_id" }, { "id": 3, "type": "table", "value": "third_party_companies" }, { "id": 4, "type": "table", "value": "maintenance_contracts" }, { "id": 1, "type": "table", "value": "ref_company_typ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 13 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entity_id": 5, "token_idxs"...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O" ]
10,619
retail_world
bird:train.json:6365
How many products were supplied by Pavlova, Ltd.?
SELECT COUNT(T1.ProductName) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Pavlova, Ltd.'
[ "How", "many", "products", "were", "supplied", "by", "Pavlova", ",", "Ltd.", "?" ]
[ { "id": 3, "type": "value", "value": "Pavlova, Ltd." }, { "id": 2, "type": "column", "value": "companyname" }, { "id": 4, "type": "column", "value": "productname" }, { "id": 5, "type": "column", "value": "supplierid" }, { "id": 1, "type": "tabl...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "en...
[ "O", "O", "B-TABLE", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
10,620
activity_1
spider:train_spider.json:6770
Give me the number of faculty members who participate in an activity
SELECT count(DISTINCT FacID) FROM Faculty_participates_in
[ "Give", "me", "the", "number", "of", "faculty", "members", "who", "participate", "in", "an", "activity" ]
[ { "id": 0, "type": "table", "value": "faculty_participates_in" }, { "id": 1, "type": "column", "value": "facid" } ]
[ { "entity_id": 0, "token_idxs": [ 5, 6, 7, 8, 9 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "I-TABLE", "I-TABLE", "O", "O" ]
10,621
world_development_indicators
bird:train.json:2155
Mention the series code of countries using Australian dollar as their currency unit. Which country belongs to middle income group among them.
SELECT T1.CountryCode, T2.SeriesCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Australian dollar' AND T1.IncomeGroup = 'Lower middle income'
[ "Mention", "the", "series", "code", "of", "countries", "using", "Australian", "dollar", "as", "their", "currency", "unit", ".", "Which", "country", "belongs", "to", "middle", "income", "group", "among", "them", "." ]
[ { "id": 7, "type": "value", "value": "Lower middle income" }, { "id": 5, "type": "value", "value": "Australian dollar" }, { "id": 3, "type": "table", "value": "countrynotes" }, { "id": 4, "type": "column", "value": "currencyunit" }, { "id": 0, ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [ 11, 12 ] ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "I-COLUMN", "O", "O", "O" ]
10,622
ship_1
spider:train_spider.json:6259
What are the names of ships that have more than one captain?
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1
[ "What", "are", "the", "names", "of", "ships", "that", "have", "more", "than", "one", "captain", "?" ]
[ { "id": 0, "type": "column", "value": "ship_id" }, { "id": 3, "type": "table", "value": "captain" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "table", "value": "ship" }, { "id": 4, "type": "value", "value": "1" }...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
10,623
works_cycles
bird:train.json:7370
How many Vista cards expired before the year 2007?
SELECT COUNT(CreditCardID) FROM CreditCard WHERE CardType = 'Vista' AND ExpYear < 2007
[ "How", "many", "Vista", "cards", "expired", "before", "the", "year", "2007", "?" ]
[ { "id": 1, "type": "column", "value": "creditcardid" }, { "id": 0, "type": "table", "value": "creditcard" }, { "id": 2, "type": "column", "value": "cardtype" }, { "id": 4, "type": "column", "value": "expyear" }, { "id": 3, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "...
[ "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "B-VALUE", "O" ]
10,624
law_episode
bird:train.json:1301
What is the full place of birth of Rene Chenevert Balcer?
SELECT birth_place, birth_region FROM Person WHERE birth_name = 'Rene Chenevert Balcer'
[ "What", "is", "the", "full", "place", "of", "birth", "of", "Rene", "Chenevert", "Balcer", "?" ]
[ { "id": 4, "type": "value", "value": "Rene Chenevert Balcer" }, { "id": 2, "type": "column", "value": "birth_region" }, { "id": 1, "type": "column", "value": "birth_place" }, { "id": 3, "type": "column", "value": "birth_name" }, { "id": 0, "typ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 7, 8 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [ 9, 10 ] }, { "e...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "I-COLUMN", "B-VALUE", "I-VALUE", "O" ]
10,625
world
bird:train.json:7837
List the district name of the city with the smallest population.
SELECT District FROM City ORDER BY Population LIMIT 1
[ "List", "the", "district", "name", "of", "the", "city", "with", "the", "smallest", "population", "." ]
[ { "id": 2, "type": "column", "value": "population" }, { "id": 1, "type": "column", "value": "district" }, { "id": 0, "type": "table", "value": "city" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O" ]
10,626
college_completion
bird:train.json:3715
Tell the abbreviation for "Delaware" state.
SELECT T FROM ( SELECT DISTINCT CASE WHEN state = 'Delaware' THEN state_abbr ELSE NULL END AS T FROM state_sector_grads ) WHERE T IS NOT NULL
[ "Tell", "the", "abbreviation", "for", "\"", "Delaware", "\"", "state", "." ]
[ { "id": 1, "type": "table", "value": "state_sector_grads" }, { "id": 2, "type": "column", "value": "state_abbr" }, { "id": 4, "type": "value", "value": "Delaware" }, { "id": 3, "type": "column", "value": "state" }, { "id": 0, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "B-VALUE", "O", "B-COLUMN", "O" ]
10,627
university
bird:train.json:8111
Provide the criteria name of the ranking criteria ID 13.
SELECT criteria_name FROM ranking_criteria WHERE id = 13
[ "Provide", "the", "criteria", "name", "of", "the", "ranking", "criteria", "ID", "13", "." ]
[ { "id": 0, "type": "table", "value": "ranking_criteria" }, { "id": 1, "type": "column", "value": "criteria_name" }, { "id": 2, "type": "column", "value": "id" }, { "id": 3, "type": "value", "value": "13" } ]
[ { "entity_id": 0, "token_idxs": [ 6, 7 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [] }...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "B-VALUE", "O" ]
10,628
movie_2
bird:test.json:1828
What are the names of every movie that is not playing at the Odeon theater?
SELECT title FROM movies EXCEPT SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon'
[ "What", "are", "the", "names", "of", "every", "movie", "that", "is", "not", "playing", "at", "the", "Odeon", "theater", "?" ]
[ { "id": 2, "type": "table", "value": "movietheaters" }, { "id": 0, "type": "table", "value": "movies" }, { "id": 1, "type": "column", "value": "title" }, { "id": 4, "type": "value", "value": "Odeon" }, { "id": 6, "type": "column", "value": ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 3 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O" ]
10,629
olympics
bird:train.json:5037
State the name of the city that held game id 3.
SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T1.games_id = 3
[ "State", "the", "name", "of", "the", "city", "that", "held", "game", "i", "d", "3", "." ]
[ { "id": 1, "type": "table", "value": "games_city" }, { "id": 0, "type": "column", "value": "city_name" }, { "id": 3, "type": "column", "value": "games_id" }, { "id": 5, "type": "column", "value": "city_id" }, { "id": 2, "type": "table", "va...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "I-COLUMN", "B-VALUE", "O" ]
10,630
student_loan
bird:train.json:4399
How many students from SMC are unemployed?
SELECT T2.name FROM enrolled AS T1 INNER JOIN unemployed AS T2 ON T1.`name` = T2.`name` WHERE T1.school = 'smc'
[ "How", "many", "students", "from", "SMC", "are", "unemployed", "?" ]
[ { "id": 2, "type": "table", "value": "unemployed" }, { "id": 1, "type": "table", "value": "enrolled" }, { "id": 3, "type": "column", "value": "school" }, { "id": 0, "type": "column", "value": "name" }, { "id": 4, "type": "value", "value": "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "B-VALUE", "O", "B-TABLE", "O" ]
10,631
authors
bird:train.json:3622
What is the short name for "Software - Concepts and Tools / Structured Programming"?
SELECT ShortName FROM Journal WHERE FullName = 'Software - Concepts and Tools / Structured Programming'
[ "What", "is", "the", "short", "name", "for", "\"", "Software", "-", "Concepts", "and", "Tools", "/", "Structured", "Programming", "\"", "?" ]
[ { "id": 3, "type": "value", "value": "Software - Concepts and Tools / Structured Programming" }, { "id": 1, "type": "column", "value": "shortname" }, { "id": 2, "type": "column", "value": "fullname" }, { "id": 0, "type": "table", "value": "journal" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 7, 8, 9, 10, 11, 12, 13, 14 ] }, { "en...
[ "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
10,632
icfp_1
spider:train_spider.json:2878
What are the last names of the author of the paper titled "Binders Unbound"?
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Binders Unbound"
[ "What", "are", "the", "last", "names", "of", "the", "author", "of", "the", "paper", "titled", "\"", "Binders", "Unbound", "\"", "?" ]
[ { "id": 3, "type": "column", "value": "Binders Unbound" }, { "id": 5, "type": "table", "value": "authorship" }, { "id": 4, "type": "table", "value": "authors" }, { "id": 6, "type": "column", "value": "paperid" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 13, 14 ] }, { "entity_id": 4, "token_idxs": [] }, {...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O" ]
10,633
student_loan
bird:train.json:4516
What is the percentage difference between the attendence of disabled and non-disable students? Do the disable students show better attendance than non-disable students?
SELECT CAST((SUM(IIF(T2.name IS NOT NULL AND T1.month = 0, 1, 0)) - SUM(IIF(T2.name IS NULL AND T1.month = 0, 1, 0))) AS REAL) * 100 / COUNT(T1.name), IIF(SUM(IIF(T2.name IS NOT NULL AND T1.month = 0, 1, 0)) - SUM(IIF(T2.name IS NULL AND T1.month = 0, 1, 0)) > 0, 'YES', 'NO') AS isHigh FROM longest_absense_from_school ...
[ "What", "is", "the", "percentage", "difference", "between", "the", "attendence", "of", "disabled", "and", "non", "-", "disable", "students", "?", "Do", "the", "disable", "students", "show", "better", "attendance", "than", "non", "-", "disable", "students", "?"...
[ { "id": 0, "type": "table", "value": "longest_absense_from_school" }, { "id": 1, "type": "table", "value": "disabled" }, { "id": 8, "type": "column", "value": "month" }, { "id": 4, "type": "column", "value": "name" }, { "id": 2, "type": "value"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
10,634
baseball_1
spider:train_spider.json:3633
What are first and last names of players participating in all star game in 1998?
SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998
[ "What", "are", "first", "and", "last", "names", "of", "players", "participating", "in", "all", "star", "game", "in", "1998", "?" ]
[ { "id": 0, "type": "column", "value": "name_first" }, { "id": 1, "type": "column", "value": "name_last" }, { "id": 6, "type": "column", "value": "player_id" }, { "id": 3, "type": "table", "value": "all_star" }, { "id": 2, "type": "table", "...
[ { "entity_id": 0, "token_idxs": [ 1, 2 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 10, 11 ] }, { "entity_id": 4, "token_idxs": [] ...
[ "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "B-VALUE", "O" ]
10,635
product_catalog
spider:train_spider.json:332
Which catalog contents have length below 3 or above 5? Find the catalog entry names.
SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5
[ "Which", "catalog", "contents", "have", "length", "below", "3", "or", "above", "5", "?", "Find", "the", "catalog", "entry", "names", "." ]
[ { "id": 1, "type": "column", "value": "catalog_entry_name" }, { "id": 0, "type": "table", "value": "catalog_contents" }, { "id": 2, "type": "column", "value": "length" }, { "id": 4, "type": "column", "value": "width" }, { "id": 3, "type": "valu...
[ { "entity_id": 0, "token_idxs": [ 1, 2 ] }, { "entity_id": 1, "token_idxs": [ 13, 14, 15 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_i...
[ "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "B-VALUE", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
10,636
works_cycles
bird:train.json:7354
What bike subcategories are there?
SELECT T1.Name FROM ProductSubcategory AS T1 INNER JOIN ProductCategory AS T2 ON T1.ProductCategoryID = T2.ProductCategoryID WHERE T2.name = 'Bikes'
[ "What", "bike", "subcategories", "are", "there", "?" ]
[ { "id": 1, "type": "table", "value": "productsubcategory" }, { "id": 4, "type": "column", "value": "productcategoryid" }, { "id": 2, "type": "table", "value": "productcategory" }, { "id": 3, "type": "value", "value": "Bikes" }, { "id": 0, "type...
[ { "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": [ 2 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-VALUE", "B-COLUMN", "O", "O", "O" ]
10,637
chicago_crime
bird:train.json:8750
What is the neighborhood name in the community area of Lake View?
SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name = 'Lake View'
[ "What", "is", "the", "neighborhood", "name", "in", "the", "community", "area", "of", "Lake", "View", "?" ]
[ { "id": 3, "type": "column", "value": "community_area_name" }, { "id": 0, "type": "column", "value": "neighborhood_name" }, { "id": 5, "type": "column", "value": "community_area_no" }, { "id": 1, "type": "table", "value": "community_area" }, { "id"...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 7, 8 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10, 11 ] ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "O", "B-VALUE", "I-VALUE", "O" ]
10,638
tracking_grants_for_research
spider:train_spider.json:4335
What are the send dates for all documents that have a grant amount of more than 5000 and are involved in research?
SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research...
[ "What", "are", "the", "send", "dates", "for", "all", "documents", "that", "have", "a", "grant", "amount", "of", "more", "than", "5000", "and", "are", "involved", "in", "research", "?" ]
[ { "id": 6, "type": "column", "value": "organisation_type_description" }, { "id": 1, "type": "table", "value": "organisation_types" }, { "id": 3, "type": "column", "value": "organisation_type" }, { "id": 10, "type": "column", "value": "organisation_id" },...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entity_id": 5, "tok...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-VALUE", "O" ]
10,639
student_club
bird:dev.json:1339
Calculate the total average cost that Elijah Allen spent in the events on September and October.
SELECT AVG(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.last_name = 'Allen' AND T1.first_name = 'Elijah' AND (SUBSTR(T2.expense_date, 6, 2) = '09' OR SUBSTR(T2.expense_date, 6, 2) = '10')
[ "Calculate", "the", "total", "average", "cost", "that", "Elijah", "Allen", "spent", "in", "the", "events", "on", "September", "and", "October", "." ]
[ { "id": 4, "type": "column", "value": "link_to_member" }, { "id": 11, "type": "column", "value": "expense_date" }, { "id": 7, "type": "column", "value": "first_name" }, { "id": 3, "type": "column", "value": "member_id" }, { "id": 5, "type": "co...
[ { "entity_id": 0, "token_idxs": [ 13 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-VALUE", "O", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "O" ]
10,640
synthea
bird:train.json:1436
List down the address of patients who have billable period in 2010.
SELECT DISTINCT T1.address FROM patients AS T1 INNER JOIN claims AS T2 ON T1.patient = T2.PATIENT WHERE T2.BILLABLEPERIOD LIKE '2010%'
[ "List", "down", "the", "address", "of", "patients", "who", "have", "billable", "period", "in", "2010", "." ]
[ { "id": 3, "type": "column", "value": "billableperiod" }, { "id": 1, "type": "table", "value": "patients" }, { "id": 0, "type": "column", "value": "address" }, { "id": 5, "type": "column", "value": "patient" }, { "id": 2, "type": "table", "...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 0 ] }, { "entity_id": 3, "token_idxs": [ 8, 9 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { ...
[ "B-TABLE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
10,641
movies_4
bird:train.json:507
Write down the release date of the movies produced by Twentieth Century Fox Film Corporation.
SELECT T3.release_date FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Twentieth Century Fox Film Corporation'
[ "Write", "down", "the", "release", "date", "of", "the", "movies", "produced", "by", "Twentieth", "Century", "Fox", "Film", "Corporation", "." ]
[ { "id": 3, "type": "value", "value": "Twentieth Century Fox Film Corporation" }, { "id": 4, "type": "table", "value": "production_company" }, { "id": 5, "type": "table", "value": "movie_company" }, { "id": 0, "type": "column", "value": "release_date" }, ...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10, 11, 12, 13, 14 ] }, { "entity_id": 4, "...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O" ]
10,642
beer_factory
bird:train.json:5275
What are the full names of the customer who gave River City a 5-star?
SELECT T1.First, T1.Last FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T3.BrandName = 'River City' AND T2.StarRating = 5
[ "What", "are", "the", "full", "names", "of", "the", "customer", "who", "gave", "River", "City", "a", "5", "-", "star", "?" ]
[ { "id": 4, "type": "table", "value": "rootbeerreview" }, { "id": 2, "type": "table", "value": "rootbeerbrand" }, { "id": 7, "type": "value", "value": "River City" }, { "id": 8, "type": "column", "value": "starrating" }, { "id": 10, "type": "col...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O", "B-VALUE", "O", "O", "O" ]
10,643
epinions_1
spider:train_spider.json:1702
Find the titles of items that received both a rating higher than 8 and a rating below 5.
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5
[ "Find", "the", "titles", "of", "items", "that", "received", "both", "a", "rating", "higher", "than", "8", "and", "a", "rating", "below", "5", "." ]
[ { "id": 2, "type": "table", "value": "review" }, { "id": 3, "type": "column", "value": "rating" }, { "id": 0, "type": "column", "value": "title" }, { "id": 1, "type": "table", "value": "item" }, { "id": 6, "type": "column", "value": "i_id" ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-VALUE", "O" ]
10,644
codebase_community
bird:dev.json:633
Which post by slashnick has the most answers count? State the post ID.
SELECT T2.PostId FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN posts AS T3 ON T2.PostId = T3.Id WHERE T1.DisplayName = 'slashnick' ORDER BY T3.AnswerCount DESC LIMIT 1
[ "Which", "post", "by", "slashnick", "has", "the", "most", "answers", "count", "?", "State", "the", "post", "ID", "." ]
[ { "id": 2, "type": "column", "value": "displayname" }, { "id": 4, "type": "column", "value": "answercount" }, { "id": 6, "type": "table", "value": "posthistory" }, { "id": 3, "type": "value", "value": "slashnick" }, { "id": 0, "type": "column",...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 12 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 3 ] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-VALUE", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
10,645
shipping
bird:train.json:5663
How many shipments were shipped by the driver named Zachary Hicks?
SELECT COUNT(*) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.driver_id = 23
[ "How", "many", "shipments", "were", "shipped", "by", "the", "driver", "named", "Zachary", "Hicks", "?" ]
[ { "id": 2, "type": "column", "value": "driver_id" }, { "id": 0, "type": "table", "value": "shipment" }, { "id": 1, "type": "table", "value": "driver" }, { "id": 3, "type": "value", "value": "23" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O" ]
10,646
sales
bird:train.json:5402
Name the sales person who helped Elizabeth A. White to purchase Road-250 Black, 48.
SELECT DISTINCT T3.FirstName, T3.MiddleInitial, T3.LastName FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID INNER JOIN Customers AS T4 ON T2.CustomerID = T4.CustomerID WHERE T4.MiddleInitial = 'A' AND T4.LastName = 'White' AND T1.N...
[ "Name", "the", "sales", "person", "who", "helped", "Elizabeth", "A.", "White", "to", "purchase", "Road-250", "Black", ",", "48", "." ]
[ { "id": 9, "type": "value", "value": "Road-250 Black, 48" }, { "id": 1, "type": "column", "value": "middleinitial" }, { "id": 13, "type": "column", "value": "salespersonid" }, { "id": 5, "type": "column", "value": "customerid" }, { "id": 14, "t...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { "entity_id...
[ "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "B-VALUE", "B-VALUE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O" ]
10,648
movie_2
bird:test.json:1820
What is the rating of the movie what has a name including a word like 'Citizen'?
SELECT rating FROM movies WHERE title LIKE '%Citizen%'
[ "What", "is", "the", "rating", "of", "the", "movie", "what", "has", "a", "name", "including", "a", "word", "like", "'", "Citizen", "'", "?" ]
[ { "id": 3, "type": "value", "value": "%Citizen%" }, { "id": 0, "type": "table", "value": "movies" }, { "id": 1, "type": "column", "value": "rating" }, { "id": 2, "type": "column", "value": "title" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 16 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O" ]
10,649
human_resources
bird:train.json:8947
Among the employees who work as a Trainee, how many of them have a salary of over &20,000 a year?
SELECT COUNT(*) FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL) > 20000 AND T2.positiontitle = 'Trainee'
[ "Among", "the", "employees", "who", "work", "as", "a", "Trainee", ",", "how", "many", "of", "them", "have", "a", "salary", "of", "over", "&", "20,000", "a", "year", "?" ]
[ { "id": 4, "type": "column", "value": "positiontitle" }, { "id": 2, "type": "column", "value": "positionid" }, { "id": 0, "type": "table", "value": "employee" }, { "id": 1, "type": "table", "value": "position" }, { "id": 5, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 19 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "O" ]
10,650
video_game
bird:test.json:1937
What are the names and market districts of all platforms?
SELECT Platform_name , Market_district FROM platform
[ "What", "are", "the", "names", "and", "market", "districts", "of", "all", "platforms", "?" ]
[ { "id": 2, "type": "column", "value": "market_district" }, { "id": 1, "type": "column", "value": "platform_name" }, { "id": 0, "type": "table", "value": "platform" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O" ]
10,652
game_injury
spider:train_spider.json:1280
What is the season of the game which causes the player 'Walter Samuel' to get injured?
SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id WHERE T2.player = 'Walter Samuel'
[ "What", "is", "the", "season", "of", "the", "game", "which", "causes", "the", "player", "'", "Walter", "Samuel", "'", "to", "get", "injured", "?" ]
[ { "id": 2, "type": "table", "value": "injury_accident" }, { "id": 4, "type": "value", "value": "Walter Samuel" }, { "id": 6, "type": "column", "value": "game_id" }, { "id": 0, "type": "column", "value": "season" }, { "id": 3, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [ 12, 13 ] }, { ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O" ]
10,653
tracking_software_problems
spider:train_spider.json:5359
What are the log id and entry description of each problem?
SELECT problem_log_id , log_entry_description FROM problem_log
[ "What", "are", "the", "log", "i", "d", "and", "entry", "description", "of", "each", "problem", "?" ]
[ { "id": 2, "type": "column", "value": "log_entry_description" }, { "id": 1, "type": "column", "value": "problem_log_id" }, { "id": 0, "type": "table", "value": "problem_log" } ]
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 7, 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "tok...
[ "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O" ]
10,654
match_season
spider:train_spider.json:1066
How many distinct teams are involved in match seasons?
SELECT count(DISTINCT Team) FROM match_season
[ "How", "many", "distinct", "teams", "are", "involved", "in", "match", "seasons", "?" ]
[ { "id": 0, "type": "table", "value": "match_season" }, { "id": 1, "type": "column", "value": "team" } ]
[ { "entity_id": 0, "token_idxs": [ 7, 8 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "I-TABLE", "O" ]
10,655
student_loan
bird:train.json:4386
Does student348 have a due payment?
SELECT bool FROM no_payment_due WHERE name = 'student348'
[ "Does", "student348", "have", "a", "due", "payment", "?" ]
[ { "id": 0, "type": "table", "value": "no_payment_due" }, { "id": 3, "type": "value", "value": "student348" }, { "id": 1, "type": "column", "value": "bool" }, { "id": 2, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "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-VALUE", "O", "O", "O", "B-TABLE", "O" ]
10,656
manufactory_1
spider:train_spider.json:5299
What are the names, headquarters and revenues for manufacturers, sorted by revenue descending?
SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC
[ "What", "are", "the", "names", ",", "headquarters", "and", "revenues", "for", "manufacturers", ",", "sorted", "by", "revenue", "descending", "?" ]
[ { "id": 0, "type": "table", "value": "manufacturers" }, { "id": 2, "type": "column", "value": "headquarter" }, { "id": 3, "type": "column", "value": "revenue" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O" ]
10,657
small_bank_1
spider:train_spider.json:1782
Find the average checking balance.
SELECT avg(balance) FROM checking
[ "Find", "the", "average", "checking", "balance", "." ]
[ { "id": 0, "type": "table", "value": "checking" }, { "id": 1, "type": "column", "value": "balance" } ]
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
10,658
flight_4
spider:train_spider.json:6826
How many routes does American Airlines operate?
SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'
[ "How", "many", "routes", "does", "American", "Airlines", "operate", "?" ]
[ { "id": 3, "type": "value", "value": "American Airlines" }, { "id": 0, "type": "table", "value": "airlines" }, { "id": 1, "type": "table", "value": "routes" }, { "id": 2, "type": "column", "value": "name" }, { "id": 4, "type": "column", "va...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "B-VALUE", "B-TABLE", "O", "O" ]
10,659
formula_1
bird:dev.json:882
Which year was the first Singapore Grand Prix?
SELECT year FROM races WHERE name = 'Singapore Grand Prix' ORDER BY year ASC LIMIT 1
[ "Which", "year", "was", "the", "first", "Singapore", "Grand", "Prix", "?" ]
[ { "id": 3, "type": "value", "value": "Singapore Grand Prix" }, { "id": 0, "type": "table", "value": "races" }, { "id": 1, "type": "column", "value": "year" }, { "id": 2, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5, 6, 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
10,660
hockey
bird:train.json:7680
What is the average BMI of all the coaches who have gotten in the Hall of Fame?
SELECT SUM(T1.weight / (T1.height * T1.height)) / COUNT(T1.coachID) FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID
[ "What", "is", "the", "average", "BMI", "of", "all", "the", "coaches", "who", "have", "gotten", "in", "the", "Hall", "of", "Fame", "?" ]
[ { "id": 3, "type": "column", "value": "coachid" }, { "id": 0, "type": "table", "value": "master" }, { "id": 4, "type": "column", "value": "weight" }, { "id": 5, "type": "column", "value": "height" }, { "id": 2, "type": "column", "value": "h...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 15 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 0 ] }, { "entity_id": 5, ...
[ "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O" ]
10,661
activity_1
spider:train_spider.json:6733
Show the first name and last name for all the instructors.
SELECT fname , lname FROM Faculty WHERE Rank = "Instructor"
[ "Show", "the", "first", "name", "and", "last", "name", "for", "all", "the", "instructors", "." ]
[ { "id": 4, "type": "column", "value": "Instructor" }, { "id": 0, "type": "table", "value": "faculty" }, { "id": 1, "type": "column", "value": "fname" }, { "id": 2, "type": "column", "value": "lname" }, { "id": 3, "type": "column", "value": ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O" ]
10,662
wine_1
spider:train_spider.json:6564
What is the area for the appelation which produced the most wines prior to 2010?
SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY count(*) DESC LIMIT 1
[ "What", "is", "the", "area", "for", "the", "appelation", "which", "produced", "the", "most", "wines", "prior", "to", "2010", "?" ]
[ { "id": 2, "type": "table", "value": "appellations" }, { "id": 0, "type": "column", "value": "appelation" }, { "id": 1, "type": "column", "value": "area" }, { "id": 3, "type": "table", "value": "wine" }, { "id": 4, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O" ]
10,663
chicago_crime
bird:train.json:8693
How many crimes happened in longitude -8772658001?
SELECT COUNT(*) FROM Crime WHERE longitude = '-87.72658001'
[ "How", "many", "crimes", "happened", "in", "longitude", "-8772658001", "?" ]
[ { "id": 2, "type": "value", "value": "-87.72658001" }, { "id": 1, "type": "column", "value": "longitude" }, { "id": 0, "type": "table", "value": "crime" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-VALUE", "O" ]
10,664
e_learning
spider:train_spider.json:3839
Which student are enrolled in at least two courses? Give me the student ID and personal name.
SELECT T1.student_id , T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) >= 2
[ "Which", "student", "are", "enrolled", "in", "at", "least", "two", "courses", "?", "Give", "me", "the", "student", "ID", "and", "personal", "name", "." ]
[ { "id": 2, "type": "table", "value": "student_course_enrolment" }, { "id": 1, "type": "column", "value": "personal_name" }, { "id": 0, "type": "column", "value": "student_id" }, { "id": 3, "type": "table", "value": "students" }, { "id": 4, "typ...
[ { "entity_id": 0, "token_idxs": [ 13, 14 ] }, { "entity_id": 1, "token_idxs": [ 16, 17 ] }, { "entity_id": 2, "token_idxs": [ 2, 3 ] }, { "entity_id": 3, "token_idxs": [ 1 ] }, { "entity_id": 4, "token_...
[ "O", "B-TABLE", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O" ]
10,665
codebase_comments
bird:train.json:643
What is the solution's path of method "HtmlSharp.HtmlParser.Feed"?
SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'HtmlSharp.HtmlParser.Feed'
[ "What", "is", "the", "solution", "'s", "path", "of", "method", "\"", "HtmlSharp", ".", "HtmlParser", ".", "Feed", "\"", "?" ]
[ { "id": 4, "type": "value", "value": "HtmlSharp.HtmlParser.Feed" }, { "id": 6, "type": "column", "value": "solutionid" }, { "id": 1, "type": "table", "value": "solution" }, { "id": 2, "type": "table", "value": "method" }, { "id": 0, "type": "co...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 9, 10, 11, ...
[ "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
10,666
store_product
spider:train_spider.json:4911
What is the name of the district with the smallest area?
SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1
[ "What", "is", "the", "name", "of", "the", "district", "with", "the", "smallest", "area", "?" ]
[ { "id": 1, "type": "column", "value": "district_name" }, { "id": 2, "type": "column", "value": "city_area" }, { "id": 0, "type": "table", "value": "district" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O" ]
10,667
synthea
bird:train.json:1539
List 5 patients' name that need medication due to streptococcal sore throat disorder.
SELECT DISTINCT T2.first, T2.last FROM medications AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)' LIMIT 5
[ "List", "5", "patients", "'", "name", "that", "need", "medication", "due", "to", "streptococcal", "sore", "throat", "disorder", "." ]
[ { "id": 5, "type": "value", "value": "Streptococcal sore throat (disorder)" }, { "id": 4, "type": "column", "value": "reasondescription" }, { "id": 2, "type": "table", "value": "medications" }, { "id": 3, "type": "table", "value": "patients" }, { "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 0 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O" ]
10,668
movie_3
bird:train.json:9121
Please give the title of the film starring PENELOPE GUINESS and has the highest replacement cost.
SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'PENELOPE' AND T1.last_name = 'GUINESS' ORDER BY T3.replacement_cost DESC LIMIT 1
[ "Please", "give", "the", "title", "of", "the", "film", "starring", "PENELOPE", "GUINESS", "and", "has", "the", "highest", "replacement", "cost", "." ]
[ { "id": 2, "type": "column", "value": "replacement_cost" }, { "id": 4, "type": "table", "value": "film_actor" }, { "id": 6, "type": "column", "value": "first_name" }, { "id": 8, "type": "column", "value": "last_name" }, { "id": 7, "type": "valu...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 14, 15 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
10,669
talkingdata
bird:train.json:1211
Which gender logged in the most to an event in the first 10 days of May 2016?
SELECT T.gender FROM ( SELECT T1.gender, COUNT(T1.device_id) AS num FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE date(T2.timestamp) BETWEEN '2016-05-01' AND '2016-05-10' GROUP BY T1.gender ) AS T ORDER BY T.num DESC LIMIT 1
[ "Which", "gender", "logged", "in", "the", "most", "to", "an", "event", "in", "the", "first", "10", "days", "of", "May", "2016", "?" ]
[ { "id": 3, "type": "table", "value": "events_relevant" }, { "id": 2, "type": "table", "value": "gender_age" }, { "id": 4, "type": "value", "value": "2016-05-01" }, { "id": 5, "type": "value", "value": "2016-05-10" }, { "id": 6, "type": "column"...
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
10,670
e_government
spider:train_spider.json:6334
Find the payment method code used by more than 3 parties.
SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*) > 3
[ "Find", "the", "payment", "method", "code", "used", "by", "more", "than", "3", "parties", "." ]
[ { "id": 1, "type": "column", "value": "payment_method_code" }, { "id": 0, "type": "table", "value": "parties" }, { "id": 2, "type": "value", "value": "3" } ]
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 2, 3, 4 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "e...
[ "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O" ]
10,671
app_store
bird:train.json:2560
What genre does Honkai Impact 3rd belong to?
SELECT DISTINCT Genres FROM playstore WHERE App = 'Honkai Impact 3rd'
[ "What", "genre", "does", "Honkai", "Impact", "3rd", "belong", "to", "?" ]
[ { "id": 3, "type": "value", "value": "Honkai Impact 3rd" }, { "id": 0, "type": "table", "value": "playstore" }, { "id": 1, "type": "column", "value": "genres" }, { "id": 2, "type": "column", "value": "app" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 3, 4, 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O" ]
10,672
cookbook
bird:train.json:8864
Please list the titles of all the recipes that are salt/sodium-free.
SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.sodium < 5
[ "Please", "list", "the", "titles", "of", "all", "the", "recipes", "that", "are", "salt", "/", "sodium", "-", "free", "." ]
[ { "id": 2, "type": "table", "value": "nutrition" }, { "id": 5, "type": "column", "value": "recipe_id" }, { "id": 1, "type": "table", "value": "recipe" }, { "id": 3, "type": "column", "value": "sodium" }, { "id": 0, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O" ]
10,673
local_govt_in_alabama
spider:train_spider.json:2145
How many events had participants whose details had the substring 'Dr.'
SELECT count(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'
[ "How", "many", "events", "had", "participants", "whose", "details", "had", "the", "substring", "'", "Dr.", "'" ]
[ { "id": 1, "type": "table", "value": "participants_in_events" }, { "id": 2, "type": "column", "value": "participant_details" }, { "id": 4, "type": "column", "value": "participant_id" }, { "id": 0, "type": "table", "value": "participants" }, { "id":...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 5, 6 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "O" ]
10,674
books
bird:train.json:6106
Write down the author's name of the book most recently published.
SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id ORDER BY T1.publication_date DESC LIMIT 1
[ "Write", "down", "the", "author", "'s", "name", "of", "the", "book", "most", "recently", "published", "." ]
[ { "id": 2, "type": "column", "value": "publication_date" }, { "id": 0, "type": "column", "value": "author_name" }, { "id": 4, "type": "table", "value": "book_author" }, { "id": 5, "type": "column", "value": "author_id" }, { "id": 6, "type": "co...
[ { "entity_id": 0, "token_idxs": [ 4, 5 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O" ]
10,675
party_people
spider:train_spider.json:2067
Show member names that are not in the Progress Party.
SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name != "Progress Party"
[ "Show", "member", "names", "that", "are", "not", "in", "the", "Progress", "Party", "." ]
[ { "id": 4, "type": "column", "value": "Progress Party" }, { "id": 0, "type": "column", "value": "member_name" }, { "id": 3, "type": "column", "value": "party_name" }, { "id": 5, "type": "column", "value": "party_id" }, { "id": 1, "type": "table...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 1 ] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_...
[ "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O" ]
10,676
store_1
spider:train_spider.json:607
How many orders does Lucas Mancini has?
SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini";
[ "How", "many", "orders", "does", "Lucas", "Mancini", "has", "?" ]
[ { "id": 3, "type": "column", "value": "customer_id" }, { "id": 4, "type": "column", "value": "first_name" }, { "id": 0, "type": "table", "value": "customers" }, { "id": 6, "type": "column", "value": "last_name" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 4 ] }, { ...
[ "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O" ]
10,677
epinions_1
spider:train_spider.json:1706
Find the name of the user who gives the most reviews.
SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1
[ "Find", "the", "name", "of", "the", "user", "who", "gives", "the", "most", "reviews", "." ]
[ { "id": 2, "type": "table", "value": "useracct" }, { "id": 3, "type": "table", "value": "review" }, { "id": 0, "type": "column", "value": "u_id" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O" ]
10,679
retail_complains
bird:train.json:390
Please list all clients' phone numbers and complaint IDs which are still in progress.
SELECT T1.phone, T2.`Complaint ID` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Company response to consumer` = 'In progress'
[ "Please", "list", "all", "clients", "'", "phone", "numbers", "and", "complaint", "IDs", "which", "are", "still", "in", "progress", "." ]
[ { "id": 4, "type": "column", "value": "Company response to consumer" }, { "id": 1, "type": "column", "value": "Complaint ID" }, { "id": 5, "type": "value", "value": "In progress" }, { "id": 6, "type": "column", "value": "client_id" }, { "id": 2, ...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 8, 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 3 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id":...
[ "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "O" ]
10,680
synthea
bird:train.json:1464
Please provide the dates on which Elly Koss was immunized with the influenza seasonal injectable preservative-free vaccine.
SELECT T2.DATE FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Influenza seasonal injectable preservative free' AND T1.first = 'Elly' AND T1.last = 'Koss'
[ "Please", "provide", "the", "dates", "on", "which", "Elly", "Koss", "was", "immunized", "with", "the", "influenza", "seasonal", "injectable", "preservative", "-", "free", "vaccine", "." ]
[ { "id": 5, "type": "value", "value": "Influenza seasonal injectable preservative free" }, { "id": 2, "type": "table", "value": "immunizations" }, { "id": 4, "type": "column", "value": "description" }, { "id": 1, "type": "table", "value": "patients" },...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "B-VALUE", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
10,681
products_for_hire
spider:train_spider.json:1975
What are the coupon amount of the coupons owned by both good and bad customers?
SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad'
[ "What", "are", "the", "coupon", "amount", "of", "the", "coupons", "owned", "by", "both", "good", "and", "bad", "customers", "?" ]
[ { "id": 3, "type": "column", "value": "good_or_bad_customer" }, { "id": 1, "type": "table", "value": "discount_coupons" }, { "id": 0, "type": "column", "value": "coupon_amount" }, { "id": 2, "type": "table", "value": "customers" }, { "id": 6, "...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, ...
[ "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "B-COLUMN", "B-VALUE", "B-TABLE", "O" ]
10,682
theme_gallery
spider:train_spider.json:1655
Show all artist names and the year joined who are not from United States.
SELECT name , year_join FROM artist WHERE country != 'United States'
[ "Show", "all", "artist", "names", "and", "the", "year", "joined", "who", "are", "not", "from", "United", "States", "." ]
[ { "id": 4, "type": "value", "value": "United States" }, { "id": 2, "type": "column", "value": "year_join" }, { "id": 3, "type": "column", "value": "country" }, { "id": 0, "type": "table", "value": "artist" }, { "id": 1, "type": "column", "v...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 6, 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 12, 13 ] ...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O" ]
10,683
talkingdata
bird:train.json:1192
Mention the group of age of users who use phone brand of LG.
SELECT T1.`group` FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'LG'
[ "Mention", "the", "group", "of", "age", "of", "users", "who", "use", "phone", "brand", "of", "LG", "." ]
[ { "id": 2, "type": "table", "value": "phone_brand_device_model2" }, { "id": 3, "type": "column", "value": "phone_brand" }, { "id": 1, "type": "table", "value": "gender_age" }, { "id": 5, "type": "column", "value": "device_id" }, { "id": 0, "typ...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9, 10 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, { "entity_id...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O" ]
10,685
codebase_community
bird:dev.json:636
How many negative comments did Neil McGuigan get in his posts?
SELECT COUNT(T3.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId INNER JOIN comments AS T3 ON T2.Id = T3.PostId WHERE T1.DisplayName = 'Neil McGuigan' AND T3.Score < 60
[ "How", "many", "negative", "comments", "did", "Neil", "McGuigan", "get", "in", "his", "posts", "?" ]
[ { "id": 6, "type": "value", "value": "Neil McGuigan" }, { "id": 5, "type": "column", "value": "displayname" }, { "id": 9, "type": "column", "value": "owneruserid" }, { "id": 0, "type": "table", "value": "comments" }, { "id": 4, "type": "column"...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "I-VALUE", "O", "O", "O", "B-TABLE", "O" ]
10,686
authors
bird:train.json:3590
What is the full name of the conference where paper number 5 was published?
SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Id = 5
[ "What", "is", "the", "full", "name", "of", "the", "conference", "where", "paper", "number", "5", "was", "published", "?" ]
[ { "id": 5, "type": "column", "value": "conferenceid" }, { "id": 2, "type": "table", "value": "conference" }, { "id": 0, "type": "column", "value": "fullname" }, { "id": 1, "type": "table", "value": "paper" }, { "id": 3, "type": "column", "v...
[ { "entity_id": 0, "token_idxs": [ 3, 4 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O" ]
10,687
device
spider:train_spider.json:5081
What is the software platform that is most common amongst all devices?
SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1
[ "What", "is", "the", "software", "platform", "that", "is", "most", "common", "amongst", "all", "devices", "?" ]
[ { "id": 1, "type": "column", "value": "software_platform" }, { "id": 0, "type": "table", "value": "device" } ]
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "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, "tok...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
10,688
retail_world
bird:train.json:6360
Which product have the highest user satisfaction?
SELECT ProductName FROM Products WHERE ReorderLevel = ( SELECT MAX(ReorderLevel) FROM Products )
[ "Which", "product", "have", "the", "highest", "user", "satisfaction", "?" ]
[ { "id": 2, "type": "column", "value": "reorderlevel" }, { "id": 1, "type": "column", "value": "productname" }, { "id": 0, "type": "table", "value": "products" } ]
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O" ]
10,689
flight_1
spider:train_spider.json:388
What are the origins of all flights that are headed to Honolulu?
SELECT origin FROM Flight WHERE destination = "Honolulu"
[ "What", "are", "the", "origins", "of", "all", "flights", "that", "are", "headed", "to", "Honolulu", "?" ]
[ { "id": 2, "type": "column", "value": "destination" }, { "id": 3, "type": "column", "value": "Honolulu" }, { "id": 0, "type": "table", "value": "flight" }, { "id": 1, "type": "column", "value": "origin" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O" ]
10,690
gymnast
spider:train_spider.json:1747
Return the names of the gymnasts.
SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
[ "Return", "the", "names", "of", "the", "gymnasts", "." ]
[ { "id": 3, "type": "column", "value": "gymnast_id" }, { "id": 4, "type": "column", "value": "people_id" }, { "id": 1, "type": "table", "value": "gymnast" }, { "id": 2, "type": "table", "value": "people" }, { "id": 0, "type": "column", "valu...
[ { "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-COLUMN", "O", "O", "B-TABLE", "O" ]
10,691
chicago_crime
bird:train.json:8697
How many weapons violation crimes have occurred in the Calumet district?
SELECT SUM(CASE WHEN T3.district_name = 'Calumet' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.primary_description = 'WEAPONS VIOLATION'
[ "How", "many", "weapons", "violation", "crimes", "have", "occurred", "in", "the", "Calumet", "district", "?" ]
[ { "id": 1, "type": "column", "value": "primary_description" }, { "id": 2, "type": "value", "value": "WEAPONS VIOLATION" }, { "id": 9, "type": "column", "value": "district_name" }, { "id": 5, "type": "column", "value": "district_no" }, { "id": 0, ...
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2, 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id"...
[ "O", "O", "B-VALUE", "I-VALUE", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O" ]
10,692
mondial_geo
bird:train.json:8435
Which lake is the largest in terms of both surface area and depth?
SELECT Name FROM lake ORDER BY Area * Depth DESC LIMIT 1
[ "Which", "lake", "is", "the", "largest", "in", "terms", "of", "both", "surface", "area", "and", "depth", "?" ]
[ { "id": 3, "type": "column", "value": "depth" }, { "id": 0, "type": "table", "value": "lake" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "column", "value": "area" } ]
[ { "entity_id": 0, "token_idxs": [ 1 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]