question_id
int64
0
16.1k
db_id
stringclasses
259 values
dber_id
stringlengths
15
29
question
stringlengths
16
325
SQL
stringlengths
18
1.25k
tokens
listlengths
4
62
entities
listlengths
0
21
entity_to_token
listlengths
20
20
dber_tags
listlengths
4
62
4,944
language_corpus
bird:train.json:5775
Which of these pages have more words, the page titled "Afluent" or "Asclepi"?
SELECT CASE WHEN ( SELECT words FROM pages WHERE title = 'Asclepi' ) > ( SELECT words FROM pages WHERE title = 'Afluent' ) THEN 'Asclepi' ELSE 'Afluent' END
[ "Which", "of", "these", "pages", "have", "more", "words", ",", "the", "page", "titled", "\"", "Afluent", "\"", "or", "\"", "Asclepi", "\"", "?" ]
[ { "id": 0, "type": "value", "value": "Afluent" }, { "id": 1, "type": "value", "value": "Asclepi" }, { "id": 2, "type": "table", "value": "pages" }, { "id": 3, "type": "column", "value": "words" }, { "id": 4, "type": "column", "value": "titl...
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 16 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, ...
[ "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "O", "O" ]
4,945
address_1
bird:test.json:769
What is the latitude and longitude for Baltimore?
SELECT latitude , longitude FROM City WHERE city_name = "Baltimore"
[ "What", "is", "the", "latitude", "and", "longitude", "for", "Baltimore", "?" ]
[ { "id": 2, "type": "column", "value": "longitude" }, { "id": 3, "type": "column", "value": "city_name" }, { "id": 4, "type": "column", "value": "Baltimore" }, { "id": 1, "type": "column", "value": "latitude" }, { "id": 0, "type": "table", "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 7 ] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O" ]
4,946
cre_Students_Information_Systems
bird:test.json:476
What are the type code, details, and date of each achievement?
SELECT achievement_type_code , achievement_details , date_achievement FROM Achievements
[ "What", "are", "the", "type", "code", ",", "details", ",", "and", "date", "of", "each", "achievement", "?" ]
[ { "id": 1, "type": "column", "value": "achievement_type_code" }, { "id": 2, "type": "column", "value": "achievement_details" }, { "id": 3, "type": "column", "value": "date_achievement" }, { "id": 0, "type": "table", "value": "achievements" } ]
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
4,947
architecture
spider:train_spider.json:6956
What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?
SELECT LOCATION FROM bridge WHERE name = 'Kolob Arch' OR name = 'Rainbow Bridge'
[ "What", "is", "the", "location", "of", "the", "bridge", "named", "'", "Kolob", "Arch", "'", "or", "'", "Rainbow", "Bridge", "'", "?" ]
[ { "id": 4, "type": "value", "value": "Rainbow Bridge" }, { "id": 3, "type": "value", "value": "Kolob Arch" }, { "id": 1, "type": "column", "value": "location" }, { "id": 0, "type": "table", "value": "bridge" }, { "id": 2, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [ 9, 10 ] }, { "entity_id": 4, "token_idxs": [ 14, ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O" ]
4,948
works_cycles
bird:train.json:7073
Among the married employees with the highest pay frequency, how many of them have an eastern name style?
SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmployeePayHistory AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.MaritalStatus = 'M' AND T2.NameStyle = 1 AND T3.Rate = ( SELECT Rate FROM EmployeePayHistory ORDER BY Rate ...
[ "Among", "the", "married", "employees", "with", "the", "highest", "pay", "frequency", ",", "how", "many", "of", "them", "have", "an", "eastern", "name", "style", "?" ]
[ { "id": 0, "type": "table", "value": "employeepayhistory" }, { "id": 1, "type": "column", "value": "businessentityid" }, { "id": 4, "type": "column", "value": "maritalstatus" }, { "id": 6, "type": "column", "value": "namestyle" }, { "id": 2, "t...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
4,949
school_player
spider:train_spider.json:4876
List the teams of the players with the top 5 largest ages.
SELECT Team FROM player ORDER BY Age DESC LIMIT 5
[ "List", "the", "teams", "of", "the", "players", "with", "the", "top", "5", "largest", "ages", "." ]
[ { "id": 0, "type": "table", "value": "player" }, { "id": 1, "type": "column", "value": "team" }, { "id": 2, "type": "column", "value": "age" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
4,950
movie_2
bird:test.json:1827
Find the name of all movies that are not played in 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'
[ "Find", "the", "name", "of", "all", "movies", "that", "are", "not", "played", "in", "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": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O" ]
4,951
boat_1
bird:test.json:899
Find the number of reservations by sailors with id greater than 1 for each boat.
SELECT bid , count(*) FROM Reserves WHERE sid > 1 GROUP BY bid
[ "Find", "the", "number", "of", "reservations", "by", "sailors", "with", "i", "d", "greater", "than", "1", "for", "each", "boat", "." ]
[ { "id": 0, "type": "table", "value": "reserves" }, { "id": 1, "type": "column", "value": "bid" }, { "id": 2, "type": "column", "value": "sid" }, { "id": 3, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 8, 9 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O" ]
4,952
restaurant
bird:train.json:1746
Give the review of the restaurant at 430, Broadway.
SELECT T1.review FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'Broadway' AND T2.street_num = 430
[ "Give", "the", "review", "of", "the", "restaurant", "at", "430", ",", "Broadway", "." ]
[ { "id": 3, "type": "column", "value": "id_restaurant" }, { "id": 1, "type": "table", "value": "generalinfo" }, { "id": 4, "type": "column", "value": "street_name" }, { "id": 6, "type": "column", "value": "street_num" }, { "id": 2, "type": "tabl...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O" ]
4,953
candidate_poll
spider:train_spider.json:2410
find the names of people who are taller than 200 or lower than 190.
SELECT name FROM people WHERE height > 200 OR height < 190
[ "find", "the", "names", "of", "people", "who", "are", "taller", "than", "200", "or", "lower", "than", "190", "." ]
[ { "id": 0, "type": "table", "value": "people" }, { "id": 2, "type": "column", "value": "height" }, { "id": 1, "type": "column", "value": "name" }, { "id": 3, "type": "value", "value": "200" }, { "id": 4, "type": "value", "value": "190" } ...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "O" ]
4,954
gymnast
spider:train_spider.json:1768
List the distinct hometowns that are not associated with any gymnast.
SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
[ "List", "the", "distinct", "hometowns", "that", "are", "not", "associated", "with", "any", "gymnast", "." ]
[ { "id": 3, "type": "column", "value": "gymnast_id" }, { "id": 4, "type": "column", "value": "people_id" }, { "id": 1, "type": "column", "value": "hometown" }, { "id": 2, "type": "table", "value": "gymnast" }, { "id": 0, "type": "table", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
4,955
county_public_safety
spider:train_spider.json:2568
Show the names of cities in counties that have a crime rate less than 100.
SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate < 100)
[ "Show", "the", "names", "of", "cities", "in", "counties", "that", "have", "a", "crime", "rate", "less", "than", "100", "." ]
[ { "id": 3, "type": "table", "value": "county_public_safety" }, { "id": 4, "type": "column", "value": "crime_rate" }, { "id": 2, "type": "column", "value": "county_id" }, { "id": 0, "type": "table", "value": "city" }, { "id": 1, "type": "column"...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10, 11 ] }, { ...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O" ]
4,957
cre_Theme_park
spider:train_spider.json:5909
What are the names of the tourist attractions that can be accessed by bus?
SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus"
[ "What", "are", "the", "names", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "?" ]
[ { "id": 0, "type": "table", "value": "tourist_attractions" }, { "id": 2, "type": "column", "value": "how_to_get_there" }, { "id": 1, "type": "column", "value": "name" }, { "id": 3, "type": "column", "value": "bus" } ]
[ { "entity_id": 0, "token_idxs": [ 6, 7 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O" ]
4,958
public_review_platform
bird:train.json:4038
Which business ID have the shortest business operating hours?
SELECT business_id FROM Business_Hours ORDER BY closing_time - opening_time LIMIT 1
[ "Which", "business", "ID", "have", "the", "shortest", "business", "operating", "hours", "?" ]
[ { "id": 0, "type": "table", "value": "business_hours" }, { "id": 2, "type": "column", "value": "closing_time" }, { "id": 3, "type": "column", "value": "opening_time" }, { "id": 1, "type": "column", "value": "business_id" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 1, 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] ...
[ "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O" ]
4,959
college_completion
bird:train.json:3705
How many students for both genders graduated from a 2-year institute in Alabama in 2011?
SELECT SUM(T2.grad_cohort) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.cohort = '2y all' AND T2.year = 2011 AND T1.state = 'Alabama'
[ "How", "many", "students", "for", "both", "genders", "graduated", "from", "a", "2", "-", "year", "institute", "in", "Alabama", "in", "2011", "?" ]
[ { "id": 0, "type": "table", "value": "institution_details" }, { "id": 1, "type": "table", "value": "institution_grads" }, { "id": 2, "type": "column", "value": "grad_cohort" }, { "id": 9, "type": "value", "value": "Alabama" }, { "id": 3, "type"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 12, 13 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": []...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "I-TABLE", "B-VALUE", "O", "B-VALUE", "O" ]
4,960
public_review_platform
bird:train.json:3955
Provide the number of Yelp businesses in "Gilbert" which got a" high" review count.
SELECT COUNT(business_id) FROM Business WHERE review_count = 'High' AND city = 'Gilbert'
[ "Provide", "the", "number", "of", "Yelp", "businesses", "in", "\"", "Gilbert", "\"", "which", "got", "a", "\"", "high", "\"", "review", "count", "." ]
[ { "id": 2, "type": "column", "value": "review_count" }, { "id": 1, "type": "column", "value": "business_id" }, { "id": 0, "type": "table", "value": "business" }, { "id": 5, "type": "value", "value": "Gilbert" }, { "id": 3, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 16, 17 ] }, { "entity_id": 3, "token_idxs": [ 14 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_i...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-COLUMN", "I-COLUMN", "O" ]
4,961
car_racing
bird:test.json:1619
What are the countries that have drivers with points larger than 150?
SELECT T1.Country FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T2.Points > 150
[ "What", "are", "the", "countries", "that", "have", "drivers", "with", "points", "larger", "than", "150", "?" ]
[ { "id": 5, "type": "column", "value": "country_id" }, { "id": 0, "type": "column", "value": "country" }, { "id": 1, "type": "table", "value": "country" }, { "id": 2, "type": "table", "value": "driver" }, { "id": 3, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity...
[ "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
4,962
video_games
bird:train.json:3428
How many games were released in the year 2001?
SELECT COUNT(id) FROM game_platform AS T WHERE T.release_year = 2001
[ "How", "many", "games", "were", "released", "in", "the", "year", "2001", "?" ]
[ { "id": 0, "type": "table", "value": "game_platform" }, { "id": 1, "type": "column", "value": "release_year" }, { "id": 2, "type": "value", "value": "2001" }, { "id": 3, "type": "column", "value": "id" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "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, "token_idxs": ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O" ]
4,963
loan_1
spider:train_spider.json:3010
Find the number of customers in the banks at New York City.
SELECT sum(no_of_customers) FROM bank WHERE city = 'New York City'
[ "Find", "the", "number", "of", "customers", "in", "the", "banks", "at", "New", "York", "City", "." ]
[ { "id": 3, "type": "column", "value": "no_of_customers" }, { "id": 2, "type": "value", "value": "New York City" }, { "id": 0, "type": "table", "value": "bank" }, { "id": 1, "type": "column", "value": "city" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [ 9, 10 ] }, { "entity_id": 3, "token_idxs": [ 3, 4 ] }, { "entity_id": 4, "token_idxs": [] ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O" ]
4,964
genes
bird:train.json:2507
List all genes whose interaction is with genes located in the nucleus in which it is positively correlated.
SELECT T1.GeneID FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Expression_Corr > 0 AND T1.Localization = 'nucleus'
[ "List", "all", "genes", "whose", "interaction", "is", "with", "genes", "located", "in", "the", "nucleus", "in", "which", "it", "is", "positively", "correlated", "." ]
[ { "id": 4, "type": "column", "value": "expression_corr" }, { "id": 2, "type": "table", "value": "interactions" }, { "id": 6, "type": "column", "value": "localization" }, { "id": 3, "type": "column", "value": "geneid1" }, { "id": 7, "type": "val...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O" ]
4,965
disney
bird:train.json:4681
Who is the villain in Little Mermaid?
SELECT villian FROM characters WHERE movie_title = 'Little Mermaid'
[ "Who", "is", "the", "villain", "in", "Little", "Mermaid", "?" ]
[ { "id": 3, "type": "value", "value": "Little Mermaid" }, { "id": 2, "type": "column", "value": "movie_title" }, { "id": 0, "type": "table", "value": "characters" }, { "id": 1, "type": "column", "value": "villian" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 6 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-VALUE", "O" ]
4,966
mondial_geo
bird:train.json:8402
What is the GDP per capita in Switzerland?
SELECT T2.GDP / T1.Population FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Switzerland'
[ "What", "is", "the", "GDP", "per", "capita", "in", "Switzerland", "?" ]
[ { "id": 3, "type": "value", "value": "Switzerland" }, { "id": 5, "type": "column", "value": "population" }, { "id": 0, "type": "table", "value": "country" }, { "id": 1, "type": "table", "value": "economy" }, { "id": 7, "type": "column", "va...
[ { "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": [ 3 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O" ]
4,967
legislator
bird:train.json:4747
Among the current legislators who do not have accounts on OpenSecrets.org., how many of them do not have instagram accounts either?
SELECT SUM(CASE WHEN T1.instagram IS NULL THEN 1 ELSE 0 END) AS count FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.opensecrets_id IS NULL OR T2.opensecrets_id = ''
[ "Among", "the", "current", "legislators", "who", "do", "not", "have", "accounts", "on", "OpenSecrets.org", ".", ",", "how", "many", "of", "them", "do", "not", "have", "instagram", "accounts", "either", "?" ]
[ { "id": 4, "type": "column", "value": "opensecrets_id" }, { "id": 0, "type": "table", "value": "social-media" }, { "id": 3, "type": "column", "value": "bioguide_id" }, { "id": 7, "type": "column", "value": "instagram" }, { "id": 2, "type": "col...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O" ]
4,968
online_exams
bird:test.json:232
What is al the available information of each student?
SELECT * FROM Students
[ "What", "is", "al", "the", "available", "information", "of", "each", "student", "?" ]
[ { "id": 0, "type": "table", "value": "students" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
4,969
cre_Drama_Workshop_Groups
spider:train_spider.json:5132
What are the phones and emails of workshop groups in which services are performed?
SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID
[ "What", "are", "the", "phones", "and", "emails", "of", "workshop", "groups", "in", "which", "services", "are", "performed", "?" ]
[ { "id": 2, "type": "table", "value": "drama_workshop_groups" }, { "id": 1, "type": "column", "value": "store_email_address" }, { "id": 4, "type": "column", "value": "workshop_group_id" }, { "id": 0, "type": "column", "value": "store_phone" }, { "id...
[ { "entity_id": 0, "token_idxs": [ 2, 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 7, 8 ] }, { "e...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O" ]
4,970
protein_institute
spider:train_spider.json:1916
Show the names and locations of institutions that are founded after 1990 and have the type "Private".
SELECT institution , LOCATION FROM institution WHERE founded > 1990 AND TYPE = 'Private'
[ "Show", "the", "names", "and", "locations", "of", "institutions", "that", "are", "founded", "after", "1990", "and", "have", "the", "type", "\"", "Private", "\"", "." ]
[ { "id": 0, "type": "table", "value": "institution" }, { "id": 1, "type": "column", "value": "institution" }, { "id": 2, "type": "column", "value": "location" }, { "id": 3, "type": "column", "value": "founded" }, { "id": 6, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 11 ] }, { "entity...
[ "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O" ]
4,971
tracking_share_transactions
spider:train_spider.json:5849
What is the total share of transactions?
SELECT sum(share_count) FROM TRANSACTIONS
[ "What", "is", "the", "total", "share", "of", "transactions", "?" ]
[ { "id": 0, "type": "table", "value": "transactions" }, { "id": 1, "type": "column", "value": "share_count" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 4, 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "O" ]
4,972
movie_1
spider:train_spider.json:2522
Find the ids of reviewers who didn't only give 4 star.
SELECT rID FROM Rating WHERE stars != 4
[ "Find", "the", "ids", "of", "reviewers", "who", "did", "n't", "only", "give", "4", "star", "." ]
[ { "id": 0, "type": "table", "value": "rating" }, { "id": 2, "type": "column", "value": "stars" }, { "id": 1, "type": "column", "value": "rid" }, { "id": 3, "type": "value", "value": "4" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
4,973
toxicology
bird:dev.json:257
List down atom id2 for atoms with element sulfur.
SELECT DISTINCT T2.atom_id2 FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T1.element = 's'
[ "List", "down", "atom", "id2", "for", "atoms", "with", "element", "sulfur", "." ]
[ { "id": 2, "type": "table", "value": "connected" }, { "id": 0, "type": "column", "value": "atom_id2" }, { "id": 3, "type": "column", "value": "element" }, { "id": 5, "type": "column", "value": "atom_id" }, { "id": 1, "type": "table", "value...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O" ]
4,974
soccer_2016
bird:train.json:1809
For the game on 2008/5/12, who was the man of the match?
SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match WHERE T2.Match_Date = '2008-05-12'
[ "For", "the", "game", "on", "2008/5/12", ",", "who", "was", "the", "man", "of", "the", "match", "?" ]
[ { "id": 6, "type": "column", "value": "man_of_the_match" }, { "id": 0, "type": "column", "value": "player_name" }, { "id": 3, "type": "column", "value": "match_date" }, { "id": 4, "type": "value", "value": "2008-05-12" }, { "id": 5, "type": "co...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-TABLE", "O" ]
4,975
game_1
spider:train_spider.json:6041
Show all student ids and the number of hours played.
SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid
[ "Show", "all", "student", "ids", "and", "the", "number", "of", "hours", "played", "." ]
[ { "id": 2, "type": "column", "value": "hours_played" }, { "id": 0, "type": "table", "value": "plays_games" }, { "id": 1, "type": "column", "value": "stuid" } ]
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O" ]
4,976
college_1
spider:train_spider.json:3199
How many sections does each course has?
SELECT count(*) , crs_code FROM CLASS GROUP BY crs_code
[ "How", "many", "sections", "does", "each", "course", "has", "?" ]
[ { "id": 1, "type": "column", "value": "crs_code" }, { "id": 0, "type": "table", "value": "class" } ]
[ { "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" ]
4,977
card_games
bird:dev.json:498
What's the French name of the set of cards with "Tendo Ice Bridge" is in?
SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Tendo Ice Bridge' AND T2.language = 'French' AND T2.translation IS NOT NULL
[ "What", "'s", "the", "French", "name", "of", "the", "set", "of", "cards", "with", "\"", "Tendo", "Ice", "Bridge", "\"", "is", "in", "?" ]
[ { "id": 2, "type": "table", "value": "set_translations" }, { "id": 5, "type": "value", "value": "Tendo Ice Bridge" }, { "id": 0, "type": "column", "value": "translation" }, { "id": 6, "type": "column", "value": "language" }, { "id": 3, "type": ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 7, 8 ] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id":...
[ "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O" ]
4,979
restaurant
bird:train.json:1715
What is the county and region of Plearn-Thai Cuisine restaurant?
SELECT T1.county, T1.region, T2.label FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.label = 'plearn-thai cuisine'
[ "What", "is", "the", "county", "and", "region", "of", "Plearn", "-", "Thai", "Cuisine", "restaurant", "?" ]
[ { "id": 5, "type": "value", "value": "plearn-thai cuisine" }, { "id": 4, "type": "table", "value": "generalinfo" }, { "id": 3, "type": "table", "value": "geographic" }, { "id": 0, "type": "column", "value": "county" }, { "id": 1, "type": "colum...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 7, ...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O" ]
4,980
bike_share_1
bird:train.json:8994
Which is the station where no bike could not be borrowed form on the 2013/11/03 02:01:01? State the location of the station.
SELECT T1.name, T1.long FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T2.time = '2013/11/03 02:01:01' AND T2.bikes_available = 0
[ "Which", "is", "the", "station", "where", "no", "bike", "could", "not", "be", "borrowed", "form", "on", "the", "2013/11/03", "02:01:01", "?", "State", "the", "location", "of", "the", "station", "." ]
[ { "id": 7, "type": "value", "value": "2013/11/03 02:01:01" }, { "id": 8, "type": "column", "value": "bikes_available" }, { "id": 4, "type": "column", "value": "station_id" }, { "id": 2, "type": "table", "value": "station" }, { "id": 3, "type": ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [ 17 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "O", "O", "O", "O", "O", "O" ]
4,981
hockey
bird:train.json:7614
Who are the players who were not in the Hall of Fame list.
SELECT firstName, lastName FROM Master WHERE hofID IS NULL
[ "Who", "are", "the", "players", "who", "were", "not", "in", "the", "Hall", "of", "Fame", "list", "." ]
[ { "id": 1, "type": "column", "value": "firstname" }, { "id": 2, "type": "column", "value": "lastname" }, { "id": 0, "type": "table", "value": "master" }, { "id": 3, "type": "column", "value": "hofid" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O" ]
4,982
chicago_crime
bird:train.json:8676
Give the coordinate of the alleys where a crime was reported and an arrest was made.
SELECT latitude, longitude FROM Crime WHERE location_description = 'ALLEY' AND arrest = 'TRUE' GROUP BY latitude, longitude
[ "Give", "the", "coordinate", "of", "the", "alleys", "where", "a", "crime", "was", "reported", "and", "an", "arrest", "was", "made", "." ]
[ { "id": 3, "type": "column", "value": "location_description" }, { "id": 2, "type": "column", "value": "longitude" }, { "id": 1, "type": "column", "value": "latitude" }, { "id": 5, "type": "column", "value": "arrest" }, { "id": 0, "type": "table...
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O" ]
4,983
retail_world
bird:train.json:6436
Please name any two products that have the highest satisfaction levels among users of Heli Swaren GmbH & Co. KG.
SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Heli Swaren GmbH & Co. KG' ORDER BY T1.ReorderLevel DESC LIMIT 2
[ "Please", "name", "any", "two", "products", "that", "have", "the", "highest", "satisfaction", "levels", "among", "users", "of", "Heli", "Swaren", "GmbH", "&", "Co.", "KG", "." ]
[ { "id": 4, "type": "value", "value": "Heli Swaren GmbH & Co. KG" }, { "id": 5, "type": "column", "value": "reorderlevel" }, { "id": 0, "type": "column", "value": "productname" }, { "id": 3, "type": "column", "value": "companyname" }, { "id": 6, ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 14, 15, 16, 17, 18, 19 ...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O" ]
4,984
movie_1
spider:train_spider.json:2500
What are the names and years of the movies that has the top 3 highest rating star?
SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3
[ "What", "are", "the", "names", "and", "years", "of", "the", "movies", "that", "has", "the", "top", "3", "highest", "rating", "star", "?" ]
[ { "id": 2, "type": "table", "value": "rating" }, { "id": 0, "type": "column", "value": "title" }, { "id": 3, "type": "table", "value": "movie" }, { "id": 4, "type": "column", "value": "stars" }, { "id": 1, "type": "column", "value": "year" ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 16 ] }, { "entit...
[ "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
4,985
airline
bird:train.json:5828
Among all the flights scheduled to depart from John F. Kennedy International on 2018/8/1, when was the earliest one scheduled to depart?
SELECT T2.DEP_TIME FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE = '2018/8/1' AND T1.Description = 'New York, NY: John F. Kennedy International' AND T2.DEP_TIME IS NOT NULL ORDER BY T2.DEP_TIME ASC LIMIT 1
[ "Among", "all", "the", "flights", "scheduled", "to", "depart", "from", "John", "F.", "Kennedy", "International", "on", "2018/8/1", ",", "when", "was", "the", "earliest", "one", "scheduled", "to", "depart", "?" ]
[ { "id": 8, "type": "value", "value": "New York, NY: John F. Kennedy International" }, { "id": 7, "type": "column", "value": "description" }, { "id": 0, "type": "column", "value": "dep_time" }, { "id": 1, "type": "table", "value": "airports" }, { "i...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 18 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O" ]
4,986
machine_repair
spider:train_spider.json:2247
Please show the team that has the most number of technicians.
SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1
[ "Please", "show", "the", "team", "that", "has", "the", "most", "number", "of", "technicians", "." ]
[ { "id": 0, "type": "table", "value": "technician" }, { "id": 1, "type": "column", "value": "team" } ]
[ { "entity_id": 0, "token_idxs": [ 10 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
4,987
hr_1
spider:train_spider.json:3469
What is the full name ( first name and last name ) for those employees who gets more salary than the employee whose id is 163?
SELECT first_name , last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163 )
[ "What", "is", "the", "full", "name", "(", "first", "name", "and", "last", "name", ")", "for", "those", "employees", "who", "gets", "more", "salary", "than", "the", "employee", "whose", "i", "d", "is", "163", "?" ]
[ { "id": 4, "type": "column", "value": "employee_id" }, { "id": 1, "type": "column", "value": "first_name" }, { "id": 0, "type": "table", "value": "employees" }, { "id": 2, "type": "column", "value": "last_name" }, { "id": 3, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 14 ] }, { "entity_id": 1, "token_idxs": [ 6, 7 ] }, { "entity_id": 2, "token_idxs": [ 9, 10 ] }, { "entity_id": 3, "token_idxs": [ 18 ] }, { "entity_id": 4, "token_idxs": [ ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O" ]
4,988
works_cycles
bird:train.json:7351
Which department, altogether, has the most personnel who work the evening shift?
SELECT T3.Name FROM EmployeeDepartmentHistory AS T1 INNER JOIN Shift AS T2 ON T1.ShiftId = T2.ShiftId INNER JOIN Department AS T3 ON T1.DepartmentID = T3.DepartmentID WHERE T2.Name = 'Night' GROUP BY T3.Name ORDER BY COUNT(T1.BusinessEntityID) DESC LIMIT 1
[ "Which", "department", ",", "altogether", ",", "has", "the", "most", "personnel", "who", "work", "the", "evening", "shift", "?" ]
[ { "id": 3, "type": "table", "value": "employeedepartmenthistory" }, { "id": 6, "type": "column", "value": "businessentityid" }, { "id": 5, "type": "column", "value": "departmentid" }, { "id": 1, "type": "table", "value": "department" }, { "id": 7, ...
[ { "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": [ 13 ] }, { "entity_id": 5, "token_idxs":...
[ "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
4,989
epinions_1
spider:train_spider.json:1713
Find each target user's name and average trust score.
SELECT T1.name , avg(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id
[ "Find", "each", "target", "user", "'s", "name", "and", "average", "trust", "score", "." ]
[ { "id": 0, "type": "column", "value": "target_u_id" }, { "id": 2, "type": "table", "value": "useracct" }, { "id": 3, "type": "table", "value": "trust" }, { "id": 4, "type": "column", "value": "trust" }, { "id": 1, "type": "column", "value":...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 8 ] }, { "entity_...
[ "O", "O", "B-COLUMN", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O" ]
4,990
small_bank_1
spider:train_spider.json:1778
How many accounts are there in total?
SELECT count(*) FROM accounts
[ "How", "many", "accounts", "are", "there", "in", "total", "?" ]
[ { "id": 0, "type": "table", "value": "accounts" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "O" ]
4,991
law_episode
bird:train.json:1250
How many votes did the episode titled "Cherished" get in total?
SELECT SUM(T2.votes) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Cherished'
[ "How", "many", "votes", "did", "the", "episode", "titled", "\"", "Cherished", "\"", "get", "in", "total", "?" ]
[ { "id": 5, "type": "column", "value": "episode_id" }, { "id": 3, "type": "value", "value": "Cherished" }, { "id": 0, "type": "table", "value": "episode" }, { "id": 2, "type": "column", "value": "title" }, { "id": 4, "type": "column", "value...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_...
[ "O", "O", "B-TABLE", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O" ]
4,992
ice_hockey_draft
bird:train.json:6929
What is the weight in pounds of the heaviest player?
SELECT MAX(T2.weight_in_lbs) FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id
[ "What", "is", "the", "weight", "in", "pounds", "of", "the", "heaviest", "player", "?" ]
[ { "id": 2, "type": "column", "value": "weight_in_lbs" }, { "id": 1, "type": "table", "value": "weight_info" }, { "id": 0, "type": "table", "value": "playerinfo" }, { "id": 4, "type": "column", "value": "weight_id" }, { "id": 3, "type": "column"...
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [ 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 3 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O" ]
4,993
aircraft
spider:train_spider.json:4836
What is all the information on the airport with the largest number of international passengers?
SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1
[ "What", "is", "all", "the", "information", "on", "the", "airport", "with", "the", "largest", "number", "of", "international", "passengers", "?" ]
[ { "id": 1, "type": "column", "value": "international_passengers" }, { "id": 0, "type": "table", "value": "airport" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 13, 14 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "to...
[ "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
4,994
soccer_2
spider:train_spider.json:4953
What is the number of colleges with a student population greater than 15000?
SELECT count(*) FROM College WHERE enr > 15000
[ "What", "is", "the", "number", "of", "colleges", "with", "a", "student", "population", "greater", "than", "15000", "?" ]
[ { "id": 0, "type": "table", "value": "college" }, { "id": 2, "type": "value", "value": "15000" }, { "id": 1, "type": "column", "value": "enr" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 12 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
4,995
cre_Doc_Control_Systems
spider:train_spider.json:2102
What are the shipping agent names?
SELECT shipping_agent_name FROM Ref_Shipping_Agents;
[ "What", "are", "the", "shipping", "agent", "names", "?" ]
[ { "id": 0, "type": "table", "value": "ref_shipping_agents" }, { "id": 1, "type": "column", "value": "shipping_agent_name" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 3, 4, 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_id...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O" ]
4,996
country_language
bird:test.json:1371
Count the number of different official languages.
SELECT count(DISTINCT language_id) FROM official_languages
[ "Count", "the", "number", "of", "different", "official", "languages", "." ]
[ { "id": 0, "type": "table", "value": "official_languages" }, { "id": 1, "type": "column", "value": "language_id" } ]
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
4,997
bike_share_1
bird:train.json:8991
What is the percentage of the trip were done by a subscriber?
SELECT CAST(COUNT(subscription_type) AS REAL) * 100 / ( SELECT COUNT(subscription_type) FROM trip ) FROM trip WHERE subscription_type = 'Subscriber'
[ "What", "is", "the", "percentage", "of", "the", "trip", "were", "done", "by", "a", "subscriber", "?" ]
[ { "id": 1, "type": "column", "value": "subscription_type" }, { "id": 2, "type": "value", "value": "Subscriber" }, { "id": 0, "type": "table", "value": "trip" }, { "id": 3, "type": "value", "value": "100" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O" ]
4,998
cre_Doc_Control_Systems
spider:train_spider.json:2113
List the document type code for the document with the id 2.
SELECT document_type_code FROM Documents WHERE document_id = 2;
[ "List", "the", "document", "type", "code", "for", "the", "document", "with", "the", "i", "d", "2", "." ]
[ { "id": 1, "type": "column", "value": "document_type_code" }, { "id": 2, "type": "column", "value": "document_id" }, { "id": 0, "type": "table", "value": "documents" }, { "id": 3, "type": "value", "value": "2" } ]
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
4,999
legislator
bird:train.json:4861
Which historical female legislator that have their term ended on the 3rd of March 1791?
SELECT T1.first_name, T1.last_name FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.end = '1791-03-03' AND T1.gender_bio = 'F'
[ "Which", "historical", "female", "legislator", "that", "have", "their", "term", "ended", "on", "the", "3rd", "of", "March", "1791", "?" ]
[ { "id": 3, "type": "table", "value": "historical-terms" }, { "id": 4, "type": "column", "value": "bioguide_id" }, { "id": 0, "type": "column", "value": "first_name" }, { "id": 2, "type": "table", "value": "historical" }, { "id": 7, "type": "val...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 1 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "O" ]
5,001
retails
bird:train.json:6908
What are the names of the parts that have a part supply cost of at least 1,000?
SELECT T1.p_name FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T2.ps_supplycost > 1000
[ "What", "are", "the", "names", "of", "the", "parts", "that", "have", "a", "part", "supply", "cost", "of", "at", "least", "1,000", "?" ]
[ { "id": 3, "type": "column", "value": "ps_supplycost" }, { "id": 6, "type": "column", "value": "ps_partkey" }, { "id": 5, "type": "column", "value": "p_partkey" }, { "id": 2, "type": "table", "value": "partsupp" }, { "id": 0, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 10 ] }, { "entity_id": 2, "token_idxs": [ 11 ] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 16 ] },...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-VALUE", "O" ]
5,002
phone_1
spider:train_spider.json:1042
Find the number of phones for each accreditation type.
SELECT Accreditation_type , count(*) FROM phone GROUP BY Accreditation_type
[ "Find", "the", "number", "of", "phones", "for", "each", "accreditation", "type", "." ]
[ { "id": 1, "type": "column", "value": "accreditation_type" }, { "id": 0, "type": "table", "value": "phone" } ]
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 7, 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O" ]
5,003
movie_3
bird:train.json:9240
In films with rental rate of 4.99, list down the inventory ID of the films starred by Lucille Dee.
SELECT T4.inventory_id 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 INNER JOIN inventory AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'Lucille' AND T1.last_name = 'Dee' AND T3.rental_rate = 4.99
[ "In", "films", "with", "rental", "rate", "of", "4.99", ",", "list", "down", "the", "inventory", "ID", "of", "the", "films", "starred", "by", "Lucille", "Dee", "." ]
[ { "id": 0, "type": "column", "value": "inventory_id" }, { "id": 8, "type": "column", "value": "rental_rate" }, { "id": 4, "type": "column", "value": "first_name" }, { "id": 11, "type": "table", "value": "film_actor" }, { "id": 1, "type": "table...
[ { "entity_id": 0, "token_idxs": [ 12 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [ 15 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, ...
[ "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-VALUE", "O" ]
5,004
cookbook
bird:train.json:8910
Describe the ingredients in the recipe with the highest vitamin that helps vision in dim light.
SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id INNER JOIN Nutrition AS T3 ON T3.recipe_id = T2.recipe_id ORDER BY T3.vitamin_a DESC LIMIT 1
[ "Describe", "the", "ingredients", "in", "the", "recipe", "with", "the", "highest", "vitamin", "that", "helps", "vision", "in", "dim", "light", "." ]
[ { "id": 6, "type": "column", "value": "ingredient_id" }, { "id": 3, "type": "table", "value": "ingredient" }, { "id": 1, "type": "table", "value": "nutrition" }, { "id": 2, "type": "column", "value": "vitamin_a" }, { "id": 5, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 9 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O" ]
5,005
software_company
bird:train.json:8581
Among the geographic ID which has 33.658K of inhabitants, describe the education, occupation and age of female widow.
SELECT T1.EDUCATIONNUM, T1.OCCUPATION, T1.age FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T2.INHABITANTS_K = 33.658 AND T1.SEX = 'Female' AND T1.MARITAL_STATUS = 'Widowed'
[ "Among", "the", "geographic", "ID", "which", "has", "33.658", "K", "of", "inhabitants", ",", "describe", "the", "education", ",", "occupation", "and", "age", "of", "female", "widow", "." ]
[ { "id": 10, "type": "column", "value": "marital_status" }, { "id": 6, "type": "column", "value": "inhabitants_k" }, { "id": 0, "type": "column", "value": "educationnum" }, { "id": 1, "type": "column", "value": "occupation" }, { "id": 3, "type":...
[ { "entity_id": 0, "token_idxs": [ 13 ] }, { "entity_id": 1, "token_idxs": [ 15 ] }, { "entity_id": 2, "token_idxs": [ 17 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 0 ] }, { "enti...
[ "B-TABLE", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-VALUE", "B-VALUE", "O" ]
5,006
car_racing
bird:test.json:1603
What are the makes of the teams with car owner "Buddy Arrington"?
SELECT Make FROM team WHERE Car_Owner = "Buddy Arrington"
[ "What", "are", "the", "makes", "of", "the", "teams", "with", "car", "owner", "\"", "Buddy", "Arrington", "\"", "?" ]
[ { "id": 3, "type": "column", "value": "Buddy Arrington" }, { "id": 2, "type": "column", "value": "car_owner" }, { "id": 0, "type": "table", "value": "team" }, { "id": 1, "type": "column", "value": "make" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 8, 9 ] }, { "entity_id": 3, "token_idxs": [ 11, 12 ] }, { "entity_id": 4, "token_idxs": [] ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O" ]
5,007
cre_Students_Information_Systems
bird:test.json:486
Which student is taking the most courses? Give me the id of the student and the number of courses he or she is taking.
SELECT count(*) , student_id FROM Classes GROUP BY student_id ORDER BY count(*) DESC LIMIT 1
[ "Which", "student", "is", "taking", "the", "most", "courses", "?", "Give", "me", "the", "i", "d", "of", "the", "student", "and", "the", "number", "of", "courses", "he", "or", "she", "is", "taking", "." ]
[ { "id": 1, "type": "column", "value": "student_id" }, { "id": 0, "type": "table", "value": "classes" } ]
[ { "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": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
5,008
mondial_geo
bird:train.json:8250
How many cities have a salt lake located in it?
SELECT COUNT(T1.City) FROM located AS T1 INNER JOIN lake AS T2 ON T1.Lake = T2.Name WHERE T2.Type = 'salt'
[ "How", "many", "cities", "have", "a", "salt", "lake", "located", "in", "it", "?" ]
[ { "id": 0, "type": "table", "value": "located" }, { "id": 1, "type": "table", "value": "lake" }, { "id": 2, "type": "column", "value": "type" }, { "id": 3, "type": "value", "value": "salt" }, { "id": 4, "type": "column", "value": "city" }...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [ 9 ] }, { "entity_id": 5, "...
[ "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "B-TABLE", "O", "B-COLUMN", "O" ]
5,009
music_2
spider:train_spider.json:5193
What are the unique labels for the albums?
SELECT count(DISTINCT label) FROM albums
[ "What", "are", "the", "unique", "labels", "for", "the", "albums", "?" ]
[ { "id": 0, "type": "table", "value": "albums" }, { "id": 1, "type": "column", "value": "label" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "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", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
5,010
retails
bird:train.json:6680
Among the orders made by customers in the household segment, how many of them are urgent?
SELECT COUNT(T1.o_orderpriority) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_mktsegment = 'HOUSEHOLD' AND T1.o_orderpriority = '1-URGENT'
[ "Among", "the", "orders", "made", "by", "customers", "in", "the", "household", "segment", ",", "how", "many", "of", "them", "are", "urgent", "?" ]
[ { "id": 2, "type": "column", "value": "o_orderpriority" }, { "id": 5, "type": "column", "value": "c_mktsegment" }, { "id": 3, "type": "column", "value": "o_custkey" }, { "id": 4, "type": "column", "value": "c_custkey" }, { "id": 6, "type": "val...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
5,011
cookbook
bird:train.json:8930
Among all recipes containing cheese, what is the percentage of recipes with calories greater than 200?
SELECT CAST(SUM(CASE WHEN T4.calories > 200 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id INNER JOIN Nutrition AS T4 ON T4.recipe_id = T1.recipe_id WHERE T3.category = 'cheese'
[ "Among", "all", "recipes", "containing", "cheese", ",", "what", "is", "the", "percentage", "of", "recipes", "with", "calories", "greater", "than", "200", "?" ]
[ { "id": 8, "type": "column", "value": "ingredient_id" }, { "id": 3, "type": "table", "value": "ingredient" }, { "id": 0, "type": "table", "value": "nutrition" }, { "id": 4, "type": "column", "value": "recipe_id" }, { "id": 1, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] }, { ...
[ "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O" ]
5,012
codebase_community
bird:dev.json:605
How many users obtained the "Announcer" badge?
SELECT COUNT(id) FROM badges WHERE Name = 'Announcer'
[ "How", "many", "users", "obtained", "the", "\"", "Announcer", "\"", "badge", "?" ]
[ { "id": 2, "type": "value", "value": "Announcer" }, { "id": 0, "type": "table", "value": "badges" }, { "id": 1, "type": "column", "value": "name" }, { "id": 3, "type": "column", "value": "id" } ]
[ { "entity_id": 0, "token_idxs": [ 8 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-TABLE", "O" ]
5,013
insurance_fnol
spider:train_spider.json:931
Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana"
SELECT t2.date_opened , t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE "%Diana%"
[ "Retrieve", "the", "open", "and", "close", "dates", "of", "all", "the", "policies", "associated", "with", "the", "customer", "whose", "name", "contains", "\"", "Diana", "\"" ]
[ { "id": 3, "type": "table", "value": "customers_policies" }, { "id": 4, "type": "column", "value": "customer_name" }, { "id": 0, "type": "column", "value": "date_opened" }, { "id": 1, "type": "column", "value": "date_closed" }, { "id": 6, "type...
[ { "entity_id": 0, "token_idxs": [ 1, 2 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [ 13 ] }, { "entity_id": 3, "token_idxs": [ 8, 9 ] }, { "entity_id": 4, "token_idxs": [] ...
[ "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O" ]
5,014
formula_1
bird:dev.json:901
Name the races along with its circuit name and location for f1 races hosted in September 2005.
SELECT DISTINCT T2.name, T1.name, T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2005 AND STRFTIME('%m', T2.date) = '09'
[ "Name", "the", "races", "along", "with", "its", "circuit", "name", "and", "location", "for", "f1", "races", "hosted", "in", "September", "2005", "." ]
[ { "id": 4, "type": "column", "value": "circuitid" }, { "id": 1, "type": "column", "value": "location" }, { "id": 2, "type": "table", "value": "circuits" }, { "id": 3, "type": "table", "value": "races" }, { "id": 0, "type": "column", "value"...
[ { "entity_id": 0, "token_idxs": [ 0 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 2 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_...
[ "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "O" ]
5,015
professional_basketball
bird:train.json:2822
What is the name of the coach during whose period of coaching, a team has the most numbers of games won in the post-season games?
SELECT coachID FROM coaches ORDER BY post_wins DESC LIMIT 1
[ "What", "is", "the", "name", "of", "the", "coach", "during", "whose", "period", "of", "coaching", ",", "a", "team", "has", "the", "most", "numbers", "of", "games", "won", "in", "the", "post", "-", "season", "games", "?" ]
[ { "id": 2, "type": "column", "value": "post_wins" }, { "id": 0, "type": "table", "value": "coaches" }, { "id": 1, "type": "column", "value": "coachid" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 6 ] }, { "entity_id": 2, "token_idxs": [ 24 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O" ]
5,016
address_1
bird:test.json:776
What are all the city names for cities in the USA, ordered by latitude?
SELECT city_name FROM City WHERE country = "USA" ORDER BY latitude
[ "What", "are", "all", "the", "city", "names", "for", "cities", "in", "the", "USA", ",", "ordered", "by", "latitude", "?" ]
[ { "id": 1, "type": "column", "value": "city_name" }, { "id": 4, "type": "column", "value": "latitude" }, { "id": 2, "type": "column", "value": "country" }, { "id": 0, "type": "table", "value": "city" }, { "id": 3, "type": "column", "value":...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 5 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 10 ] }, { "entity_id": 4, "token_idxs": [ 14 ] }, { "entit...
[ "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O" ]
5,017
soccer_2016
bird:train.json:1973
Among the players from South Africa, provide the players' names who were born in 1984.
SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id WHERE T2.Country_Name = 'South Africa' AND T1.DOB LIKE '1984%'
[ "Among", "the", "players", "from", "South", "Africa", ",", "provide", "the", "players", "'", "names", "who", "were", "born", "in", "1984", "." ]
[ { "id": 3, "type": "column", "value": "country_name" }, { "id": 5, "type": "value", "value": "South Africa" }, { "id": 0, "type": "column", "value": "player_name" }, { "id": 4, "type": "column", "value": "country_id" }, { "id": 2, "type": "tabl...
[ { "entity_id": 0, "token_idxs": [ 9, 10, 11 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5...
[ "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "O" ]
5,018
movie_2
bird:test.json:1842
What are the names of every theater with at least one movie playing?
SELECT name FROM movietheaters GROUP BY name HAVING count(*) >= 1
[ "What", "are", "the", "names", "of", "every", "theater", "with", "at", "least", "one", "movie", "playing", "?" ]
[ { "id": 0, "type": "table", "value": "movietheaters" }, { "id": 1, "type": "column", "value": "name" }, { "id": 2, "type": "value", "value": "1" } ]
[ { "entity_id": 0, "token_idxs": [ 6 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O" ]
5,019
retail_complains
bird:train.json:267
How many stars did "Eagle Capital" received from Little Rock on 2013/4/4?
SELECT COUNT(T1.Stars) FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Product = 'Eagle Capital' AND T2.city = 'Little Rock' AND T1.Date = '2013-04-04'
[ "How", "many", "stars", "did", "\"", "Eagle", "Capital", "\"", "received", "from", "Little", "Rock", "on", "2013/4/4", "?" ]
[ { "id": 5, "type": "value", "value": "Eagle Capital" }, { "id": 3, "type": "column", "value": "district_id" }, { "id": 7, "type": "value", "value": "Little Rock" }, { "id": 9, "type": "value", "value": "2013-04-04" }, { "id": 1, "type": "table"...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 2 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 5, ...
[ "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-VALUE", "O" ]
5,020
student_assessment
spider:train_spider.json:85
Find the cell mobile number of the candidates whose assessment code is "Fail"?
SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = "Fail"
[ "Find", "the", "cell", "mobile", "number", "of", "the", "candidates", "whose", "assessment", "code", "is", "\"", "Fail", "\"", "?" ]
[ { "id": 2, "type": "column", "value": "asessment_outcome_code" }, { "id": 5, "type": "table", "value": "candidate_assessments" }, { "id": 0, "type": "column", "value": "cell_mobile_number" }, { "id": 6, "type": "column", "value": "candidate_id" }, { ...
[ { "entity_id": 0, "token_idxs": [ 2, 3, 4 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 13 ] }, { "entity_id": 4, "token_idxs": [ 7 ] ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O" ]
5,022
european_football_1
bird:train.json:2770
For the Ligue 2 game that made the most goals, who is the winner of that game?
SELECT CASE WHEN T1.FTR = 'H' THEN T1.HomeTeam ELSE T1.AwayTeam END WINNER FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Ligue 2' ORDER BY T1.FTAG + T1.FTHG DESC LIMIT 1
[ "For", "the", "Ligue", "2", "game", "that", "made", "the", "most", "goals", ",", "who", "is", "the", "winner", "of", "that", "game", "?" ]
[ { "id": 1, "type": "table", "value": "divisions" }, { "id": 4, "type": "column", "value": "awayteam" }, { "id": 6, "type": "column", "value": "division" }, { "id": 9, "type": "column", "value": "hometeam" }, { "id": 3, "type": "value", "val...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 4 ] }, { "entity_id": 3, "token_idxs": [ 2, 3 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "toke...
[ "B-COLUMN", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
5,023
movielens
bird:train.json:2329
How many users have rated 1 each for the UK's second newest movies with a running time of 2?
SELECT COUNT(T2.userid) FROM movies AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'UK' AND T1.runningtime = 2 AND T2.rating = 1 AND T1.year = 2
[ "How", "many", "users", "have", "rated", "1", "each", "for", "the", "UK", "'s", "second", "newest", "movies", "with", "a", "running", "time", "of", "2", "?" ]
[ { "id": 6, "type": "column", "value": "runningtime" }, { "id": 3, "type": "column", "value": "movieid" }, { "id": 4, "type": "column", "value": "country" }, { "id": 0, "type": "table", "value": "movies" }, { "id": 1, "type": "table", "value...
[ { "entity_id": 0, "token_idxs": [ 13 ] }, { "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-VALUE", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "O" ]
5,024
warehouse_1
bird:test.json:1756
What are the codes of warehouses that have more boxes than their capacity?
SELECT T2.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code GROUP BY T2.code HAVING count(*) > T2.capacity
[ "What", "are", "the", "codes", "of", "warehouses", "that", "have", "more", "boxes", "than", "their", "capacity", "?" ]
[ { "id": 2, "type": "table", "value": "warehouses" }, { "id": 4, "type": "column", "value": "warehouse" }, { "id": 3, "type": "column", "value": "capacity" }, { "id": 1, "type": "table", "value": "boxes" }, { "id": 0, "type": "column", "valu...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 5 ] }, { "entity...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O" ]
5,025
csu_1
spider:train_spider.json:2343
How many universities have a campus fee greater than the average?
SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)
[ "How", "many", "universities", "have", "a", "campus", "fee", "greater", "than", "the", "average", "?" ]
[ { "id": 1, "type": "column", "value": "campusfee" }, { "id": 0, "type": "table", "value": "csu_fees" } ]
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [] ...
[ "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O" ]
5,026
chinook_1
spider:train_spider.json:865
How many tracks are in the AAC audio file media type?
SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = "AAC audio file"
[ "How", "many", "tracks", "are", "in", "the", "AAC", "audio", "file", "media", "type", "?" ]
[ { "id": 3, "type": "column", "value": "AAC audio file" }, { "id": 4, "type": "column", "value": "mediatypeid" }, { "id": 0, "type": "table", "value": "mediatype" }, { "id": 1, "type": "table", "value": "track" }, { "id": 2, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [ 9, 10 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 6, 7, 8 ] }, { "entity_id": 4, "token_idxs": [] }, ...
[ "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-TABLE", "I-TABLE", "O" ]
5,027
university
bird:train.json:7991
How many criteria belong to ranking system ID 3?
SELECT COUNT(id) FROM ranking_criteria WHERE ranking_system_id = 3
[ "How", "many", "criteria", "belong", "to", "ranking", "system", "ID", "3", "?" ]
[ { "id": 1, "type": "column", "value": "ranking_system_id" }, { "id": 0, "type": "table", "value": "ranking_criteria" }, { "id": 3, "type": "column", "value": "id" }, { "id": 2, "type": "value", "value": "3" } ]
[ { "entity_id": 0, "token_idxs": [ 1, 2 ] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [ 8 ] }, { "entity_id": 3, "token_idxs": [ 7 ] }, { "entity_id": 4, "token_idxs": [] }...
[ "O", "B-TABLE", "I-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "B-VALUE", "O" ]
5,028
behavior_monitoring
spider:train_spider.json:3095
How many distinct students have been in detention?
SELECT count(DISTINCT student_id) FROM Students_in_Detention
[ "How", "many", "distinct", "students", "have", "been", "in", "detention", "?" ]
[ { "id": 0, "type": "table", "value": "students_in_detention" }, { "id": 1, "type": "column", "value": "student_id" } ]
[ { "entity_id": 0, "token_idxs": [ 4, 5, 6, 7 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity...
[ "O", "O", "O", "B-COLUMN", "B-TABLE", "I-TABLE", "I-TABLE", "I-TABLE", "O" ]
5,029
twitter_1
spider:train_spider.json:282
Find the names of users whose emails contain ‘superstar’ or ‘edu’.
SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'
[ "Find", "the", "names", "of", "users", "whose", "emails", "contain", "‘", "superstar", "’", "or", "‘", "edu", "’", "." ]
[ { "id": 0, "type": "table", "value": "user_profiles" }, { "id": 3, "type": "value", "value": "%superstar%" }, { "id": 2, "type": "column", "value": "email" }, { "id": 4, "type": "value", "value": "%edu%" }, { "id": 1, "type": "column", "val...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 9 ] }, { "entity_id": 4, "token_idxs": [ 13 ] }, { "entity...
[ "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "O", "O" ]
5,030
retail_complains
bird:train.json:318
Which region does Noah Thompson live in?
SELECT T2.division FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.first = 'Noah' AND T1.last = 'Thompson'
[ "Which", "region", "does", "Noah", "Thompson", "live", "in", "?" ]
[ { "id": 3, "type": "column", "value": "district_id" }, { "id": 0, "type": "column", "value": "division" }, { "id": 2, "type": "table", "value": "district" }, { "id": 7, "type": "value", "value": "Thompson" }, { "id": 1, "type": "table", "va...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 5, 6 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ ...
[ "O", "O", "O", "B-VALUE", "B-VALUE", "B-TABLE", "I-TABLE", "O" ]
5,031
synthea
bird:train.json:1536
What is the care plan description of the prevalent disease with the highest prevalence percentage?
SELECT T4.DESCRIPTION FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON T2.DESCRIPTION = T1.ITEM INNER JOIN encounters AS T3 ON T2.ENCOUNTER = T3.ID INNER JOIN careplans AS T4 ON T4.ENCOUNTER = T3.ID ORDER BY T1."PREVALENCE PERCENTAGE" DESC LIMIT 1
[ "What", "is", "the", "care", "plan", "description", "of", "the", "prevalent", "disease", "with", "the", "highest", "prevalence", "percentage", "?" ]
[ { "id": 2, "type": "column", "value": "PREVALENCE PERCENTAGE" }, { "id": 6, "type": "table", "value": "all_prevalences" }, { "id": 0, "type": "column", "value": "description" }, { "id": 3, "type": "table", "value": "encounters" }, { "id": 7, "t...
[ { "entity_id": 0, "token_idxs": [ 5 ] }, { "entity_id": 1, "token_idxs": [ 3, 4 ] }, { "entity_id": 2, "token_idxs": [ 14 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id"...
[ "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O" ]
5,032
synthea
bird:train.json:1471
What is the social security number and address of the patient who encountered viral sinusitis symptoms on 6/13/2008?
SELECT T1.ssn, T1.address FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T2.DATE = '2008-06-13' AND T2.REASONDESCRIPTION = 'Viral sinusitis (disorder)' AND T2.DESCRIPTION = 'Encounter for symptom'
[ "What", "is", "the", "social", "security", "number", "and", "address", "of", "the", "patient", "who", "encountered", "viral", "sinusitis", "symptoms", "on", "6/13/2008", "?" ]
[ { "id": 8, "type": "value", "value": "Viral sinusitis (disorder)" }, { "id": 10, "type": "value", "value": "Encounter for symptom" }, { "id": 7, "type": "column", "value": "reasondescription" }, { "id": 9, "type": "column", "value": "description" }, { ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 10 ] }, { "entity_id": 5, ...
[ "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-TABLE", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O" ]
5,033
gas_company
spider:train_spider.json:2001
Show minimum, maximum, and average market value for all companies.
SELECT min(market_value) , max(market_value) , avg(market_value) FROM company
[ "Show", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "all", "companies", "." ]
[ { "id": 1, "type": "column", "value": "market_value" }, { "id": 0, "type": "table", "value": "company" } ]
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [ 7, 8 ] }, { "entity_id": 2, "token_idxs": [] }, { "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" ]
5,034
synthea
bird:train.json:1369
What was the condition of Elly Koss on 2009/1/8?
SELECT T2.description FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.START = '2009-01-08'
[ "What", "was", "the", "condition", "of", "Elly", "Koss", "on", "2009/1/8", "?" ]
[ { "id": 0, "type": "column", "value": "description" }, { "id": 2, "type": "table", "value": "conditions" }, { "id": 9, "type": "value", "value": "2009-01-08" }, { "id": 1, "type": "table", "value": "patients" }, { "id": 3, "type": "column", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 3 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": [ 5 ...
[ "O", "O", "O", "B-TABLE", "O", "B-VALUE", "B-VALUE", "O", "B-VALUE", "O" ]
5,035
movie
bird:train.json:740
Among the actors who starred in the movie Batman, which one of them is the tallest?
SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Batman' ORDER BY T3.`Height (Inches)` DESC LIMIT 1
[ "Among", "the", "actors", "who", "starred", "in", "the", "movie", "Batman", ",", "which", "one", "of", "them", "is", "the", "tallest", "?" ]
[ { "id": 4, "type": "column", "value": "Height (Inches)" }, { "id": 6, "type": "table", "value": "characters" }, { "id": 7, "type": "column", "value": "actorid" }, { "id": 8, "type": "column", "value": "movieid" }, { "id": 3, "type": "value", ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
5,036
superhero
bird:dev.json:721
How many superheroes have blue eyes?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Blue'
[ "How", "many", "superheroes", "have", "blue", "eyes", "?" ]
[ { "id": 5, "type": "column", "value": "eye_colour_id" }, { "id": 0, "type": "table", "value": "superhero" }, { "id": 1, "type": "table", "value": "colour" }, { "id": 2, "type": "column", "value": "colour" }, { "id": 3, "type": "value", "val...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O" ]
5,037
talkingdata
bird:train.json:1188
How many users who are under 30 years old use device model of Galaxy Note 2?
SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'Galaxy Note 2' AND T1.age < 30
[ "How", "many", "users", "who", "are", "under", "30", "years", "old", "use", "device", "model", "of", "Galaxy", "Note", "2", "?" ]
[ { "id": 1, "type": "table", "value": "phone_brand_device_model2" }, { "id": 4, "type": "value", "value": "Galaxy Note 2" }, { "id": 3, "type": "column", "value": "device_model" }, { "id": 0, "type": "table", "value": "gender_age" }, { "id": 2, ...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 9 ] }, { "entity_id": 2, "token_idxs": [ 10 ] }, { "entity_id": 3, "token_idxs": [ 11 ] }, { "entity_id": 4, "token_idxs": [ 13, 14, 15 ...
[ "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "B-TABLE", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O" ]
5,039
entertainment_awards
spider:train_spider.json:4618
What are the total number of the audiences who visited any of the festivals?
SELECT sum(Num_of_Audience) FROM festival_detail
[ "What", "are", "the", "total", "number", "of", "the", "audiences", "who", "visited", "any", "of", "the", "festivals", "?" ]
[ { "id": 0, "type": "table", "value": "festival_detail" }, { "id": 1, "type": "column", "value": "num_of_audience" } ]
[ { "entity_id": 0, "token_idxs": [ 13 ] }, { "entity_id": 1, "token_idxs": [ 4, 5, 6, 7 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entit...
[ "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O" ]
5,040
superhero
bird:dev.json:735
How many superheroes with blonde hair are there?
SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.hair_colour_id = T2.id WHERE T2.colour = 'Blond'
[ "How", "many", "superheroes", "with", "blonde", "hair", "are", "there", "?" ]
[ { "id": 5, "type": "column", "value": "hair_colour_id" }, { "id": 0, "type": "table", "value": "superhero" }, { "id": 1, "type": "table", "value": "colour" }, { "id": 2, "type": "column", "value": "colour" }, { "id": 3, "type": "value", "va...
[ { "entity_id": 0, "token_idxs": [ 2 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 4 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O" ]
5,041
vehicle_driver
bird:test.json:164
Give the build year, model, and builder of each vehicle.
SELECT build_year , model , builder FROM vehicle
[ "Give", "the", "build", "year", ",", "model", ",", "and", "builder", "of", "each", "vehicle", "." ]
[ { "id": 1, "type": "column", "value": "build_year" }, { "id": 0, "type": "table", "value": "vehicle" }, { "id": 3, "type": "column", "value": "builder" }, { "id": 2, "type": "column", "value": "model" } ]
[ { "entity_id": 0, "token_idxs": [ 11 ] }, { "entity_id": 1, "token_idxs": [ 2, 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [] }, { ...
[ "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O" ]
5,042
works_cycles
bird:train.json:7383
Among the vendors with an average credit rating, what is the overall total due amount of purchases made by the company to the vendor that isn't preferrerd if another vendor is available?
SELECT SUM(T2.TotalDue) FROM Vendor AS T1 INNER JOIN PurchaseOrderHeader AS T2 ON T1.BusinessEntityID = T2.VendorID WHERE T1.CreditRating = 4 AND T1.PreferredVendorStatus = 0
[ "Among", "the", "vendors", "with", "an", "average", "credit", "rating", ",", "what", "is", "the", "overall", "total", "due", "amount", "of", "purchases", "made", "by", "the", "company", "to", "the", "vendor", "that", "is", "n't", "preferrerd", "if", "anoth...
[ { "id": 7, "type": "column", "value": "preferredvendorstatus" }, { "id": 1, "type": "table", "value": "purchaseorderheader" }, { "id": 3, "type": "column", "value": "businessentityid" }, { "id": 5, "type": "column", "value": "creditrating" }, { "id...
[ { "entity_id": 0, "token_idxs": [ 24 ] }, { "entity_id": 1, "token_idxs": [ 17, 18 ] }, { "entity_id": 2, "token_idxs": [ 13, 14 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 31 ...
[ "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-COLUMN", "B-COLUMN", "O",...
5,043
video_games
bird:train.json:3487
List the games available on Wii.
SELECT T4.game_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T1.platform_name = 'Wii'
[ "List", "the", "games", "available", "on", "Wii", "." ]
[ { "id": 9, "type": "column", "value": "game_publisher_id" }, { "id": 4, "type": "table", "value": "game_publisher" }, { "id": 2, "type": "column", "value": "platform_name" }, { "id": 8, "type": "table", "value": "game_platform" }, { "id": 10, "...
[ { "entity_id": 0, "token_idxs": [] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 5 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs": ...
[ "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O" ]
5,044
books
bird:train.json:6044
What percentage of the orders placed by Kaleena were shipped by the international method?
SELECT CAST(SUM(CASE WHEN T3.method_name = 'International' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id INNER JOIN shipping_method AS T3 ON T3.method_id = T2.shipping_method_id WHERE T1.first_name = 'Kaleena'
[ "What", "percentage", "of", "the", "orders", "placed", "by", "Kaleena", "were", "shipped", "by", "the", "international", "method", "?" ]
[ { "id": 6, "type": "column", "value": "shipping_method_id" }, { "id": 0, "type": "table", "value": "shipping_method" }, { "id": 12, "type": "value", "value": "International" }, { "id": 8, "type": "column", "value": "customer_id" }, { "id": 11, ...
[ { "entity_id": 0, "token_idxs": [ 9 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [ 7 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entity_id": 5, "...
[ "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "O" ]
5,045
election_representative
spider:train_spider.json:1178
What are the names and parties of representatives?
SELECT Name , Party FROM representative
[ "What", "are", "the", "names", "and", "parties", "of", "representatives", "?" ]
[ { "id": 0, "type": "table", "value": "representative" }, { "id": 2, "type": "column", "value": "party" }, { "id": 1, "type": "column", "value": "name" } ]
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 3 ] }, { "entity_id": 2, "token_idxs": [ 5 ] }, { "entity_id": 3, "token_idxs": [] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "...
[ "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O" ]
5,046
restaurant_bills
bird:test.json:620
Show the names of customers with nationality "England" or "Australia".
SELECT Name FROM customer WHERE Nationality = "England" OR Nationality = "Australia"
[ "Show", "the", "names", "of", "customers", "with", "nationality", "\"", "England", "\"", "or", "\"", "Australia", "\"", "." ]
[ { "id": 2, "type": "column", "value": "nationality" }, { "id": 4, "type": "column", "value": "Australia" }, { "id": 0, "type": "table", "value": "customer" }, { "id": 3, "type": "column", "value": "England" }, { "id": 1, "type": "column", "...
[ { "entity_id": 0, "token_idxs": [ 4 ] }, { "entity_id": 1, "token_idxs": [ 2 ] }, { "entity_id": 2, "token_idxs": [ 6 ] }, { "entity_id": 3, "token_idxs": [ 8 ] }, { "entity_id": 4, "token_idxs": [ 12 ] }, ...
[ "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O" ]
5,047
talkingdata
bird:train.json:1233
Please provide the gender of at least one user who owns an HTC Desire 826 device.
SELECT T1.gender FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'Desire 826' AND T2.phone_brand = 'HTC'
[ "Please", "provide", "the", "gender", "of", "at", "least", "one", "user", "who", "owns", "an", "HTC", "Desire", "826", "device", "." ]
[ { "id": 2, "type": "table", "value": "phone_brand_device_model2" }, { "id": 4, "type": "column", "value": "device_model" }, { "id": 6, "type": "column", "value": "phone_brand" }, { "id": 1, "type": "table", "value": "gender_age" }, { "id": 5, "...
[ { "entity_id": 0, "token_idxs": [ 3 ] }, { "entity_id": 1, "token_idxs": [] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 15 ] }, { "entity_id": 4, "token_idxs": [] }, { "entity_id": 5, "token_idxs":...
[ "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-VALUE", "I-VALUE", "B-COLUMN", "O" ]
5,048
codebase_community
bird:dev.json:555
What is the average score of the posts owned by the user csgillespie?
SELECT AVG(T1.Score) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
[ "What", "is", "the", "average", "score", "of", "the", "posts", "owned", "by", "the", "user", "csgillespie", "?" ]
[ { "id": 2, "type": "column", "value": "displayname" }, { "id": 3, "type": "value", "value": "csgillespie" }, { "id": 5, "type": "column", "value": "owneruserid" }, { "id": 0, "type": "table", "value": "posts" }, { "id": 1, "type": "table", ...
[ { "entity_id": 0, "token_idxs": [ 7 ] }, { "entity_id": 1, "token_idxs": [ 11 ] }, { "entity_id": 2, "token_idxs": [] }, { "entity_id": 3, "token_idxs": [ 12 ] }, { "entity_id": 4, "token_idxs": [ 4 ] }, { "entit...
[ "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "B-VALUE", "O" ]