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 |
|---|---|---|---|---|---|---|---|---|
5,689 | movie_3 | bird:train.json:9274 | What is the full name of the actor who has acted the most times in comedy films? | SELECT T.first_name, T.last_name FROM ( SELECT T4.first_name, T4.last_name, COUNT(T2.actor_id) AS num FROM film_category AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T1.category_id = T3.category_id INNER JOIN actor AS T4 ON T2.actor_id = T4.actor_id WHERE T3.name = 'Comedy' ... | [
"What",
"is",
"the",
"full",
"name",
"of",
"the",
"actor",
"who",
"has",
"acted",
"the",
"most",
"times",
"in",
"comedy",
"films",
"?"
] | [
{
"id": 8,
"type": "table",
"value": "film_category"
},
{
"id": 10,
"type": "column",
"value": "category_id"
},
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 9,
"type": "table",
"value": "film_actor"
},
{
"id": 1,
"type": "colum... | [
{
"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": [
4
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
5,690 | restaurant | bird:train.json:1671 | What types of food are served at the 4 top-reviewed restaurants? | SELECT food_type FROM generalinfo WHERE review = ( SELECT MAX(review) FROM generalinfo ) LIMIT 4 | [
"What",
"types",
"of",
"food",
"are",
"served",
"at",
"the",
"4",
"top",
"-",
"reviewed",
"restaurants",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "generalinfo"
},
{
"id": 1,
"type": "column",
"value": "food_type"
},
{
"id": 2,
"type": "column",
"value": "review"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"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",
"O",
"B-COLUMN",
"O",
"O"
] |
5,691 | formula_1 | spider:train_spider.json:2179 | Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix? | SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Australian Grand Prix" INTERSECT SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.drive... | [
"Find",
"the",
"i",
"d",
"and",
"forenames",
"of",
"drivers",
"who",
"participated",
"both",
"the",
"races",
"with",
"name",
"Australian",
"Grand",
"Prix",
"and",
"the",
"races",
"with",
"name",
"Chinese",
"Grand",
"Prix",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "Australian Grand Prix"
},
{
"id": 5,
"type": "column",
"value": "Chinese Grand Prix"
},
{
"id": 0,
"type": "column",
"value": "driverid"
},
{
"id": 1,
"type": "column",
"value": "forename"
},
{
"id": 2,
"t... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
22
]
},
{
"entity_id": 4,
"token_idxs": [
15,
16,
17
]... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
5,692 | culture_company | spider:train_spider.json:6998 | Show all company names with a movie directed in year 1999. | SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.year = 1999 | [
"Show",
"all",
"company",
"names",
"with",
"a",
"movie",
"directed",
"in",
"year",
"1999",
"."
] | [
{
"id": 2,
"type": "table",
"value": "culture_company"
},
{
"id": 0,
"type": "column",
"value": "company_name"
},
{
"id": 5,
"type": "column",
"value": "movie_id"
},
{
"id": 1,
"type": "table",
"value": "movie"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
5,693 | inn_1 | spider:train_spider.json:2608 | Find the number of rooms with a king bed. | SELECT count(*) FROM Rooms WHERE bedType = "King"; | [
"Find",
"the",
"number",
"of",
"rooms",
"with",
"a",
"king",
"bed",
"."
] | [
{
"id": 1,
"type": "column",
"value": "bedtype"
},
{
"id": 0,
"type": "table",
"value": "rooms"
},
{
"id": 2,
"type": "column",
"value": "King"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
5,694 | toxicology | bird:dev.json:267 | List down the bond type for molecules from molecule id TR000 to TR050. | SELECT T2.molecule_id, T2.bond_type FROM molecule AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.molecule_id BETWEEN 'TR000' AND 'TR050' | [
"List",
"down",
"the",
"bond",
"type",
"for",
"molecules",
"from",
"molecule",
"i",
"d",
"TR000",
"to",
"TR050",
"."
] | [
{
"id": 0,
"type": "column",
"value": "molecule_id"
},
{
"id": 1,
"type": "column",
"value": "bond_type"
},
{
"id": 2,
"type": "table",
"value": "molecule"
},
{
"id": 4,
"type": "value",
"value": "TR000"
},
{
"id": 5,
"type": "value",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
9,
10
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": [
11
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
5,695 | soccer_2016 | bird:train.json:1971 | Provide the players' names in both teams of the match that was held in June 2014. | SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id WHERE SUBSTR(T3.Match_Date, 1, 4) = '2014' AND SUBSTR(T3.Match_Date, 7, 1) = '6' LIMIT 2 | [
"Provide",
"the",
"players",
"'",
"names",
"in",
"both",
"teams",
"of",
"the",
"match",
"that",
"was",
"held",
"in",
"June",
"2014",
"."
] | [
{
"id": 3,
"type": "table",
"value": "player_match"
},
{
"id": 0,
"type": "column",
"value": "player_name"
},
{
"id": 8,
"type": "column",
"value": "match_date"
},
{
"id": 7,
"type": "column",
"value": "player_id"
},
{
"id": 4,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,696 | wine_1 | spider:train_spider.json:6597 | Find the county where produces the most number of wines with score higher than 90. | SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1 | [
"Find",
"the",
"county",
"where",
"produces",
"the",
"most",
"number",
"of",
"wines",
"with",
"score",
"higher",
"than",
"90",
"."
] | [
{
"id": 1,
"type": "table",
"value": "appellations"
},
{
"id": 5,
"type": "column",
"value": "appelation"
},
{
"id": 0,
"type": "column",
"value": "county"
},
{
"id": 3,
"type": "column",
"value": "score"
},
{
"id": 2,
"type": "table",
"val... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"entit... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
5,697 | cre_Doc_Control_Systems | spider:train_spider.json:2130 | For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees. | SELECT document_id , count(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id; | [
"For",
"each",
"document",
",",
"list",
"the",
"number",
"of",
"employees",
"who",
"have",
"showed",
"up",
"in",
"the",
"circulation",
"history",
"of",
"that",
"document",
".",
"List",
"the",
"document",
"ids",
"and",
"number",
"of",
"employees",
"."
] | [
{
"id": 0,
"type": "table",
"value": "circulation_history"
},
{
"id": 1,
"type": "column",
"value": "document_id"
},
{
"id": 2,
"type": "column",
"value": "employee_id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
15,
16
]
},
{
"entity_id": 1,
"token_idxs": [
23,
24
]
},
{
"entity_id": 2,
"token_idxs": [
28
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,698 | sakila_1 | spider:train_spider.json:2940 | How many cities are in Australia? | SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia' | [
"How",
"many",
"cities",
"are",
"in",
"Australia",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "country_id"
},
{
"id": 3,
"type": "value",
"value": "Australia"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 0,
"type": "table",
"valu... | [
{
"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-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
5,699 | hockey | bird:train.json:7807 | What is the height and weight for coaches who have won awards in 1930? | SELECT T1.height, T1.weight FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year = '1930' | [
"What",
"is",
"the",
"height",
"and",
"weight",
"for",
"coaches",
"who",
"have",
"won",
"awards",
"in",
"1930",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "awardscoaches"
},
{
"id": 6,
"type": "column",
"value": "coachid"
},
{
"id": 0,
"type": "column",
"value": "height"
},
{
"id": 1,
"type": "column",
"value": "weight"
},
{
"id": 2,
"type": "table",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,700 | trains | bird:train.json:694 | How many cars on train no.1 have the roof open? | SELECT COUNT(id) FROM cars WHERE train_id = 1 AND roof = 'none' | [
"How",
"many",
"cars",
"on",
"train",
"no.1",
"have",
"the",
"roof",
"open",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "train_id"
},
{
"id": 0,
"type": "table",
"value": "cars"
},
{
"id": 4,
"type": "column",
"value": "roof"
},
{
"id": 5,
"type": "value",
"value": "none"
},
{
"id": 1,
"type": "column",
"value": "id"
}... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
5,701 | language_corpus | bird:train.json:5729 | Calculate the percentage of times that the same word appears in a pair. | SELECT CAST(COUNT(CASE WHEN w1st = w2nd THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(w1st) FROM biwords | [
"Calculate",
"the",
"percentage",
"of",
"times",
"that",
"the",
"same",
"word",
"appears",
"in",
"a",
"pair",
"."
] | [
{
"id": 0,
"type": "table",
"value": "biwords"
},
{
"id": 2,
"type": "column",
"value": "w1st"
},
{
"id": 4,
"type": "column",
"value": "w2nd"
},
{
"id": 1,
"type": "value",
"value": "100"
},
{
"id": 3,
"type": "value",
"value": "1"
}
] | [
{
"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",
"O",
"O",
"O",
"O"
] |
5,702 | wine_1 | spider:train_spider.json:6539 | How many appelations are in Napa Country? | SELECT count(*) FROM APPELLATIONS WHERE County = "Napa" | [
"How",
"many",
"appelations",
"are",
"in",
"Napa",
"Country",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "appellations"
},
{
"id": 1,
"type": "column",
"value": "county"
},
{
"id": 2,
"type": "column",
"value": "Napa"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
5,703 | culture_company | spider:train_spider.json:6995 | What are all the company names that have a book published by Alyson? | SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson' | [
"What",
"are",
"all",
"the",
"company",
"names",
"that",
"have",
"a",
"book",
"published",
"by",
"Alyson",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "culture_company"
},
{
"id": 0,
"type": "column",
"value": "company_name"
},
{
"id": 5,
"type": "column",
"value": "book_club_id"
},
{
"id": 2,
"type": "table",
"value": "book_club"
},
{
"id": 3,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
12
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
5,704 | debit_card_specializing | bird:dev.json:1491 | Which country has more "value for money" gas stations? Please give a total number of "value for money" gas stations in each country. | SELECT Country , ( SELECT COUNT(GasStationID) FROM gasstations WHERE Segment = 'Value for money' ) FROM gasstations WHERE Segment = 'Value for money' GROUP BY Country ORDER BY COUNT(GasStationID) DESC LIMIT 1 | [
"Which",
"country",
"has",
"more",
"\"",
"value",
"for",
"money",
"\"",
"gas",
"stations",
"?",
"Please",
"give",
"a",
"total",
"number",
"of",
"\"",
"value",
"for",
"money",
"\"",
"gas",
"stations",
"in",
"each",
"country",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Value for money"
},
{
"id": 4,
"type": "column",
"value": "gasstationid"
},
{
"id": 0,
"type": "table",
"value": "gasstations"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 2,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": [
23,
24
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
19,
20,
21
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O"
] |
5,705 | ship_1 | spider:train_spider.json:6230 | Which rank is the most common among captains? | SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1 | [
"Which",
"rank",
"is",
"the",
"most",
"common",
"among",
"captains",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "captain"
},
{
"id": 1,
"type": "column",
"value": "rank"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"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",
"B-TABLE",
"O"
] |
5,706 | student_club | bird:dev.json:1407 | Among the budgets for Advertising, list out top three which have the most budgeted amount? | SELECT budget_id FROM budget WHERE category = 'Advertisement' ORDER BY amount DESC LIMIT 3 | [
"Among",
"the",
"budgets",
"for",
"Advertising",
",",
"list",
"out",
"top",
"three",
"which",
"have",
"the",
"most",
"budgeted",
"amount",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Advertisement"
},
{
"id": 1,
"type": "column",
"value": "budget_id"
},
{
"id": 2,
"type": "column",
"value": "category"
},
{
"id": 0,
"type": "table",
"value": "budget"
},
{
"id": 4,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entit... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
5,707 | warehouse_1 | bird:test.json:1716 | What are the distinct warehouses that have boxes with Rocks or Scissors as contents? | SELECT DISTINCT warehouse FROM boxes WHERE CONTENTS = 'Rocks' OR CONTENTS = 'Scissors' | [
"What",
"are",
"the",
"distinct",
"warehouses",
"that",
"have",
"boxes",
"with",
"Rocks",
"or",
"Scissors",
"as",
"contents",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "warehouse"
},
{
"id": 2,
"type": "column",
"value": "contents"
},
{
"id": 4,
"type": "value",
"value": "Scissors"
},
{
"id": 0,
"type": "table",
"value": "boxes"
},
{
"id": 3,
"type": "value",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O"
] |
5,708 | network_2 | spider:train_spider.json:4467 | Whare the names, friends, and ages of all people who are older than the average age of a person? | SELECT DISTINCT T2.name , T2.friend , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT avg(age) FROM person) | [
"Whare",
"the",
"names",
",",
"friends",
",",
"and",
"ages",
"of",
"all",
"people",
"who",
"are",
"older",
"than",
"the",
"average",
"age",
"of",
"a",
"person",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "personfriend"
},
{
"id": 1,
"type": "column",
"value": "friend"
},
{
"id": 3,
"type": "table",
"value": "person"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
17
]
},
{
"entity_id": 3,
"token_idxs": [
20
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
5,709 | e_commerce | bird:test.json:82 | How many different payment methods are there? | SELECT count(DISTINCT Payment_method_code) FROM Customer_Payment_Methods | [
"How",
"many",
"different",
"payment",
"methods",
"are",
"there",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "customer_payment_methods"
},
{
"id": 1,
"type": "column",
"value": "payment_method_code"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"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,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
5,710 | race_track | spider:train_spider.json:755 | What is the minimum, maximum, and average seating for all tracks. | SELECT min(seating) , max(seating) , avg(seating) FROM track | [
"What",
"is",
"the",
"minimum",
",",
"maximum",
",",
"and",
"average",
"seating",
"for",
"all",
"tracks",
"."
] | [
{
"id": 1,
"type": "column",
"value": "seating"
},
{
"id": 0,
"type": "table",
"value": "track"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
5,711 | cars | bird:train.json:3094 | What is the fastest car made by Japan? | SELECT T1.car_name FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'Japan' ORDER BY T1.horsepower DESC LIMIT 1 | [
"What",
"is",
"the",
"fastest",
"car",
"made",
"by",
"Japan",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "horsepower"
},
{
"id": 6,
"type": "table",
"value": "production"
},
{
"id": 0,
"type": "column",
"value": "car_name"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 2,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
5,712 | college_1 | spider:train_spider.json:3316 | What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach? | SELECT T2.emp_fname , T4.prof_office , T3.crs_description , T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code | [
"What",
"are",
"the",
"first",
"names",
",",
"office",
"locations",
",",
"and",
"departments",
"of",
"all",
"instructors",
",",
"and",
"also",
"what",
"are",
"the",
"descriptions",
"of",
"the",
"courses",
"they",
"teach",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "crs_description"
},
{
"id": 1,
"type": "column",
"value": "prof_office"
},
{
"id": 4,
"type": "table",
"value": "department"
},
{
"id": 0,
"type": "column",
"value": "emp_fname"
},
{
"id": 3,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
20
]
},
{
"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-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
5,713 | works_cycles | bird:train.json:7364 | What is the name of the state that Racine belongs to? | SELECT T2.Name FROM Address AS T1 INNER JOIN StateProvince AS T2 ON T1.StateProvinceID = T2.StateProvinceID WHERE T1.City = 'Racine' | [
"What",
"is",
"the",
"name",
"of",
"the",
"state",
"that",
"Racine",
"belongs",
"to",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "stateprovinceid"
},
{
"id": 2,
"type": "table",
"value": "stateprovince"
},
{
"id": 1,
"type": "table",
"value": "address"
},
{
"id": 4,
"type": "value",
"value": "Racine"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-VALUE",
"O",
"O",
"O"
] |
5,714 | world_development_indicators | bird:train.json:2114 | Please write down the footnote descriptions of Albania in 1981. | SELECT DISTINCT T1.Description FROM FootNotes AS T1 INNER JOIN Country AS T2 ON T1.Countrycode = T2.CountryCode WHERE T1.Year = 'YR1981' AND T2.ShortName = 'Albania' | [
"Please",
"write",
"down",
"the",
"footnote",
"descriptions",
"of",
"Albania",
"in",
"1981",
"."
] | [
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 3,
"type": "column",
"value": "countrycode"
},
{
"id": 1,
"type": "table",
"value": "footnotes"
},
{
"id": 6,
"type": "column",
"value": "shortname"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"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-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
5,715 | soccer_2 | spider:train_spider.json:4989 | For each position, what is the minimum time students spent practicing? | SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos | [
"For",
"each",
"position",
",",
"what",
"is",
"the",
"minimum",
"time",
"students",
"spent",
"practicing",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "tryout"
},
{
"id": 2,
"type": "table",
"value": "player"
},
{
"id": 0,
"type": "column",
"value": "ppos"
},
{
"id": 4,
"type": "column",
"value": "pid"
},
{
"id": 3,
"type": "column",
"value": "hs"
}
... | [
{
"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",
"O",
"O",
"O",
"O",
"O"
] |
5,716 | movielens | bird:train.json:2273 | List down 5 non English adventure movies from UK? | SELECT T1.movieid FROM movies2directors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'UK' AND T1.genre = 'Adventure' AND T2.isEnglish = 'F' LIMIT 5 | [
"List",
"down",
"5",
"non",
"English",
"adventure",
"movies",
"from",
"UK",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "movies2directors"
},
{
"id": 6,
"type": "value",
"value": "Adventure"
},
{
"id": 7,
"type": "column",
"value": "isenglish"
},
{
"id": 0,
"type": "column",
"value": "movieid"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"B-TABLE",
"B-TABLE",
"B-VALUE",
"O"
] |
5,717 | cre_Doc_Control_Systems | spider:train_spider.json:2107 | What is the role of the employee named Koby? | SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = "Koby"; | [
"What",
"is",
"the",
"role",
"of",
"the",
"employee",
"named",
"Koby",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "role_description"
},
{
"id": 3,
"type": "column",
"value": "employee_name"
},
{
"id": 2,
"type": "table",
"value": "employees"
},
{
"id": 5,
"type": "column",
"value": "role_code"
},
{
"id": 1,
"type": "ta... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"O"
] |
5,719 | voter_2 | spider:train_spider.json:5502 | Report all advisors that advise more than 2 students. | SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2 | [
"Report",
"all",
"advisors",
"that",
"advise",
"more",
"than",
"2",
"students",
"."
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "advisor"
},
{
"id": 2,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
5,720 | food_inspection_2 | bird:train.json:6182 | Provide the categories and fines for the inspections done by Lisa Tillman in January 2014. | SELECT DISTINCT T4.category, T3.fine FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id INNER JOIN violation AS T3 ON T1.inspection_id = T3.inspection_id INNER JOIN inspection_point AS T4 ON T3.point_id = T4.point_id WHERE T2.first_name = 'Lisa' AND T2.last_name = 'Tillman' AND strftime(... | [
"Provide",
"the",
"categories",
"and",
"fines",
"for",
"the",
"inspections",
"done",
"by",
"Lisa",
"Tillman",
"in",
"January",
"2014",
"."
] | [
{
"id": 2,
"type": "table",
"value": "inspection_point"
},
{
"id": 14,
"type": "column",
"value": "inspection_date"
},
{
"id": 12,
"type": "column",
"value": "inspection_id"
},
{
"id": 15,
"type": "column",
"value": "employee_id"
},
{
"id": 5,
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
5,721 | olympics | bird:train.json:5041 | What is the average age of the people who participated in the winter season? | SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Winter' | [
"What",
"is",
"the",
"average",
"age",
"of",
"the",
"people",
"who",
"participated",
"in",
"the",
"winter",
"season",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "games_competitor"
},
{
"id": 6,
"type": "column",
"value": "games_id"
},
{
"id": 2,
"type": "column",
"value": "season"
},
{
"id": 3,
"type": "value",
"value": "Winter"
},
{
"id": 0,
"type": "table",
"v... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
5,722 | legislator | bird:train.json:4817 | What is the twitter name of the legislator whose birthday was on 5/27/1946? | SELECT T2.twitter FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.birthday_bio = '1946-05-27' | [
"What",
"is",
"the",
"twitter",
"name",
"of",
"the",
"legislator",
"whose",
"birthday",
"was",
"on",
"5/27/1946",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "social-media"
},
{
"id": 3,
"type": "column",
"value": "birthday_bio"
},
{
"id": 6,
"type": "column",
"value": "bioguide_id"
},
{
"id": 4,
"type": "value",
"value": "1946-05-27"
},
{
"id": 5,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
5,723 | machine_repair | spider:train_spider.json:2257 | Show names of technicians and the number of machines they are assigned to repair. | SELECT T2.Name , COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name | [
"Show",
"names",
"of",
"technicians",
"and",
"the",
"number",
"of",
"machines",
"they",
"are",
"assigned",
"to",
"repair",
"."
] | [
{
"id": 1,
"type": "table",
"value": "repair_assignment"
},
{
"id": 3,
"type": "column",
"value": "technician_id"
},
{
"id": 2,
"type": "table",
"value": "technician"
},
{
"id": 0,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"O",
"O"
] |
5,724 | authors | bird:train.json:3563 | Among papers that were published in 2005, provide the author name of paper with key words of "LOAD; IDE; SNP; haplotype; asso- ciation studies". | SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Year = 2005 AND T1.Keyword = 'KEY WORDS: LOAD IDE SNP haplotype asso- ciation studies' | [
"Among",
"papers",
"that",
"were",
"published",
"in",
"2005",
",",
"provide",
"the",
"author",
"name",
"of",
"paper",
"with",
"key",
"words",
"of",
"\"",
"LOAD",
";",
"IDE",
";",
"SNP",
";",
"haplotype",
";",
"asso-",
"ciation",
"studies",
"\"",
"."
] | [
{
"id": 8,
"type": "value",
"value": "KEY WORDS: LOAD IDE SNP haplotype asso- ciation studies"
},
{
"id": 2,
"type": "table",
"value": "paperauthor"
},
{
"id": 4,
"type": "column",
"value": "paperid"
},
{
"id": 7,
"type": "column",
"value": "keyword"
},
... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
21
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"ent... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"... |
5,725 | chinook_1 | spider:train_spider.json:855 | Find all invoice dates corresponding to customers with first name Astrid and last name Gruber. | SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber" | [
"Find",
"all",
"invoice",
"dates",
"corresponding",
"to",
"customers",
"with",
"first",
"name",
"Astrid",
"and",
"last",
"name",
"Gruber",
"."
] | [
{
"id": 0,
"type": "column",
"value": "invoicedate"
},
{
"id": 3,
"type": "column",
"value": "customerid"
},
{
"id": 4,
"type": "column",
"value": "firstname"
},
{
"id": 1,
"type": "table",
"value": "customer"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8,
9
]
},
{
... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O"
] |
5,726 | journal_committee | spider:train_spider.json:650 | List the names of editors in ascending order of age. | SELECT Name FROM editor ORDER BY Age ASC | [
"List",
"the",
"names",
"of",
"editors",
"in",
"ascending",
"order",
"of",
"age",
"."
] | [
{
"id": 0,
"type": "table",
"value": "editor"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,727 | food_inspection_2 | bird:train.json:6176 | Calculate the percentage of inspections with the fine for a minor food safety problem. | SELECT CAST(COUNT(CASE WHEN fine = 100 THEN inspection_id END) AS REAL) * 100 / COUNT(inspection_id) FROM violation | [
"Calculate",
"the",
"percentage",
"of",
"inspections",
"with",
"the",
"fine",
"for",
"a",
"minor",
"food",
"safety",
"problem",
"."
] | [
{
"id": 2,
"type": "column",
"value": "inspection_id"
},
{
"id": 0,
"type": "table",
"value": "violation"
},
{
"id": 3,
"type": "column",
"value": "fine"
},
{
"id": 1,
"type": "value",
"value": "100"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,729 | retail_world | bird:train.json:6312 | How many employees in total are in charge of the sales in the Eastern Region? | SELECT COUNT(T.EmployeeID) FROM ( SELECT T3.EmployeeID FROM Region AS T1 INNER JOIN Territories AS T2 ON T1.RegionID = T2.RegionID INNER JOIN EmployeeTerritories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.RegionDescription = 'Eastern' GROUP BY T3.EmployeeID ) T | [
"How",
"many",
"employees",
"in",
"total",
"are",
"in",
"charge",
"of",
"the",
"sales",
"in",
"the",
"Eastern",
"Region",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "employeeterritories"
},
{
"id": 2,
"type": "column",
"value": "regiondescription"
},
{
"id": 5,
"type": "table",
"value": "territories"
},
{
"id": 6,
"type": "column",
"value": "territoryid"
},
{
"id": 0,
"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
5,730 | pilot_1 | bird:test.json:1100 | Return the names of pilots who are younger than average, ordered by age ascending. | SELECT pilot_name FROM PilotSkills WHERE age < (SELECT avg(age) FROM PilotSkills) ORDER BY age | [
"Return",
"the",
"names",
"of",
"pilots",
"who",
"are",
"younger",
"than",
"average",
",",
"ordered",
"by",
"age",
"ascending",
"."
] | [
{
"id": 0,
"type": "table",
"value": "pilotskills"
},
{
"id": 1,
"type": "column",
"value": "pilot_name"
},
{
"id": 2,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
5,731 | customers_and_invoices | spider:train_spider.json:1593 | Show the account id and name with at least 4 transactions. | SELECT T1.account_id , T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING count(*) >= 4 | [
"Show",
"the",
"account",
"i",
"d",
"and",
"name",
"with",
"at",
"least",
"4",
"transactions",
"."
] | [
{
"id": 2,
"type": "table",
"value": "financial_transactions"
},
{
"id": 1,
"type": "column",
"value": "account_name"
},
{
"id": 0,
"type": "column",
"value": "account_id"
},
{
"id": 3,
"type": "table",
"value": "accounts"
},
{
"id": 4,
"type":... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
5,732 | codebase_comments | bird:train.json:656 | Among the english methods,please list the tokenized names of methods whose solutions need to be compiled. | SELECT NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE Lang = 'en' AND WasCompiled = 0 | [
"Among",
"the",
"english",
"methods",
",",
"please",
"list",
"the",
"tokenized",
"names",
"of",
"methods",
"whose",
"solutions",
"need",
"to",
"be",
"compiled",
"."
] | [
{
"id": 0,
"type": "column",
"value": "nametokenized"
},
{
"id": 7,
"type": "column",
"value": "wascompiled"
},
{
"id": 4,
"type": "column",
"value": "solutionid"
},
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 2,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,734 | codebase_community | bird:dev.json:682 | Which is the most valuable post in 2010? Please give its id and the owner's display name. | SELECT T2.OwnerUserId, T1.DisplayName FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T1.CreationDate) = '2010' ORDER BY T2.FavoriteCount DESC LIMIT 1 | [
"Which",
"is",
"the",
"most",
"valuable",
"post",
"in",
"2010",
"?",
"Please",
"give",
"its",
"i",
"d",
"and",
"the",
"owner",
"'s",
"display",
"name",
"."
] | [
{
"id": 5,
"type": "column",
"value": "favoritecount"
},
{
"id": 8,
"type": "column",
"value": "creationdate"
},
{
"id": 0,
"type": "column",
"value": "owneruserid"
},
{
"id": 1,
"type": "column",
"value": "displayname"
},
{
"id": 2,
"type": "t... | [
{
"entity_id": 0,
"token_idxs": [
16,
17
]
},
{
"entity_id": 1,
"token_idxs": [
18,
19
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
7
]... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,735 | conference | bird:test.json:1061 | show all years and the number of conferences in each year. | SELECT YEAR , count(*) FROM conference GROUP BY YEAR | [
"show",
"all",
"years",
"and",
"the",
"number",
"of",
"conferences",
"in",
"each",
"year",
"."
] | [
{
"id": 0,
"type": "table",
"value": "conference"
},
{
"id": 1,
"type": "column",
"value": "year"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"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",
"O",
"O",
"B-COLUMN",
"O"
] |
5,736 | customers_and_invoices | spider:train_spider.json:1591 | Show the account id with most number of transactions. | SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY count(*) DESC LIMIT 1 | [
"Show",
"the",
"account",
"i",
"d",
"with",
"most",
"number",
"of",
"transactions",
"."
] | [
{
"id": 0,
"type": "table",
"value": "financial_transactions"
},
{
"id": 1,
"type": "column",
"value": "account_id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,737 | bakery_1 | bird:test.json:1502 | Give the last names of customers who have been to the bakery more than 10 times? | SELECT T2.LastName FROM receipts AS T1 JOIN customers AS T2 ON T1.CustomerId = T2.id GROUP BY T2.id HAVING count(*) > 10 | [
"Give",
"the",
"last",
"names",
"of",
"customers",
"who",
"have",
"been",
"to",
"the",
"bakery",
"more",
"than",
"10",
"times",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "customerid"
},
{
"id": 3,
"type": "table",
"value": "customers"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 2,
"type": "table",
"value": "receipts"
},
{
"id": 0,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"entity_id"... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
5,738 | superhero | bird:dev.json:818 | Among the bad superheroes, what is the percentage of female superheroes? | SELECT CAST(COUNT(CASE WHEN T3.gender = 'Female' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN alignment AS T2 ON T1.alignment_id = T2.id INNER JOIN gender AS T3 ON T1.gender_id = T3.id WHERE T2.alignment = 'Bad' | [
"Among",
"the",
"bad",
"superheroes",
",",
"what",
"is",
"the",
"percentage",
"of",
"female",
"superheroes",
"?"
] | [
{
"id": 8,
"type": "column",
"value": "alignment_id"
},
{
"id": 1,
"type": "column",
"value": "alignment"
},
{
"id": 3,
"type": "table",
"value": "superhero"
},
{
"id": 4,
"type": "table",
"value": "alignment"
},
{
"id": 5,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
5,739 | donor | bird:train.json:3231 | What is the total number of projects that was created by the teachers that teach 3-5 grades in Boston Public School District? | SELECT COUNT(projectid) FROM projects WHERE school_district = 'Boston Public School District' AND grade_level = 'Grades 3-5' | [
"What",
"is",
"the",
"total",
"number",
"of",
"projects",
"that",
"was",
"created",
"by",
"the",
"teachers",
"that",
"teach",
"3",
"-",
"5",
"grades",
"in",
"Boston",
"Public",
"School",
"District",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Boston Public School District"
},
{
"id": 2,
"type": "column",
"value": "school_district"
},
{
"id": 4,
"type": "column",
"value": "grade_level"
},
{
"id": 5,
"type": "value",
"value": "Grades 3-5"
},
{
"id": 1... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
22,
23
]
},
{
"entity_id": 3,
"token_idxs": [
20,
21
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,740 | activity_1 | spider:train_spider.json:6796 | Which faculty members are playing either Canoeing or Kayaking? Tell me their first names. | SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking' | [
"Which",
"faculty",
"members",
"are",
"playing",
"either",
"Canoeing",
"or",
"Kayaking",
"?",
"Tell",
"me",
"their",
"first",
"names",
"."
] | [
{
"id": 3,
"type": "table",
"value": "faculty_participates_in"
},
{
"id": 5,
"type": "column",
"value": "activity_name"
},
{
"id": 1,
"type": "table",
"value": "activity"
},
{
"id": 6,
"type": "value",
"value": "Canoeing"
},
{
"id": 7,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"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",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,741 | shooting | bird:train.json:2484 | How many more black female victims than white female victims were discovered? | SELECT SUM(race = 'B') - SUM(race = 'W') FROM subjects WHERE gender = 'F' | [
"How",
"many",
"more",
"black",
"female",
"victims",
"than",
"white",
"female",
"victims",
"were",
"discovered",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "subjects"
},
{
"id": 1,
"type": "column",
"value": "gender"
},
{
"id": 3,
"type": "column",
"value": "race"
},
{
"id": 2,
"type": "value",
"value": "F"
},
{
"id": 4,
"type": "value",
"value": "B"
},
... | [
{
"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",
"O",
"O",
"O",
"O",
"O"
] |
5,742 | works_cycles | bird:train.json:7205 | How many times is married non sales employees against single non-sales employees? | SELECT CAST(SUM(CASE WHEN T1.MaritalStatus = 'M' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T1.MaritalStatus = 'S' THEN 1 ELSE 0 END) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.PersonType = 'EM' | [
"How",
"many",
"times",
"is",
"married",
"non",
"sales",
"employees",
"against",
"single",
"non",
"-",
"sales",
"employees",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "businessentityid"
},
{
"id": 8,
"type": "column",
"value": "maritalstatus"
},
{
"id": 2,
"type": "column",
"value": "persontype"
},
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 1,
"type": "ta... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,743 | books | bird:train.json:5967 | List the title of the books purchased by the customer named Zia Roizin. | SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Zia' AND T4.last_name = 'Roizin' | [
"List",
"the",
"title",
"of",
"the",
"books",
"purchased",
"by",
"the",
"customer",
"named",
"Zia",
"Roizin",
"."
] | [
{
"id": 3,
"type": "column",
"value": "customer_id"
},
{
"id": 2,
"type": "table",
"value": "cust_order"
},
{
"id": 4,
"type": "column",
"value": "first_name"
},
{
"id": 9,
"type": "table",
"value": "order_line"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-VALUE",
"O"
] |
5,744 | e_government | spider:train_spider.json:6318 | List all the name of organizations in order of the date formed. | SELECT organization_name FROM organizations ORDER BY date_formed ASC | [
"List",
"all",
"the",
"name",
"of",
"organizations",
"in",
"order",
"of",
"the",
"date",
"formed",
"."
] | [
{
"id": 1,
"type": "column",
"value": "organization_name"
},
{
"id": 0,
"type": "table",
"value": "organizations"
},
{
"id": 2,
"type": "column",
"value": "date_formed"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10,
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,745 | cs_semester | bird:train.json:952 | Of the students with high salaries, how many took the computer vision course? | SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN registration AS T2 ON T2.student_id = T1.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.salary = 'high' AND T3.name = 'Computer Vision' | [
"Of",
"the",
"students",
"with",
"high",
"salaries",
",",
"how",
"many",
"took",
"the",
"computer",
"vision",
"course",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "Computer Vision"
},
{
"id": 3,
"type": "table",
"value": "registration"
},
{
"id": 1,
"type": "column",
"value": "student_id"
},
{
"id": 4,
"type": "column",
"value": "course_id"
},
{
"id": 0,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"O"
] |
5,746 | movie_3 | bird:train.json:9361 | Among the adult films, how many of them have a rental duration of fewer than 4 days? | SELECT COUNT(film_id) FROM film WHERE rating = 'NC-17' AND rental_duration < 4 | [
"Among",
"the",
"adult",
"films",
",",
"how",
"many",
"of",
"them",
"have",
"a",
"rental",
"duration",
"of",
"fewer",
"than",
"4",
"days",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "rental_duration"
},
{
"id": 1,
"type": "column",
"value": "film_id"
},
{
"id": 2,
"type": "column",
"value": "rating"
},
{
"id": 3,
"type": "value",
"value": "NC-17"
},
{
"id": 0,
"type": "table",
"val... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
5,747 | city_record | spider:train_spider.json:6274 | Which city has 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 | [
"Which",
"city",
"has",
"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": [
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"
] |
5,748 | shipping | bird:train.json:5664 | What is the ship ID of shipments shipped to the city with the largest area? | SELECT T1.ship_id FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id ORDER BY T2.area DESC LIMIT 1 | [
"What",
"is",
"the",
"ship",
"ID",
"of",
"shipments",
"shipped",
"to",
"the",
"city",
"with",
"the",
"largest",
"area",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "shipment"
},
{
"id": 0,
"type": "column",
"value": "ship_id"
},
{
"id": 4,
"type": "column",
"value": "city_id"
},
{
"id": 2,
"type": "table",
"value": "city"
},
{
"id": 3,
"type": "column",
"value": "a... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,749 | book_press | bird:test.json:1988 | How many authors are of age above 30 for each gender? | SELECT count(*) , gender FROM author WHERE age > 30 GROUP BY gender | [
"How",
"many",
"authors",
"are",
"of",
"age",
"above",
"30",
"for",
"each",
"gender",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "author"
},
{
"id": 1,
"type": "column",
"value": "gender"
},
{
"id": 2,
"type": "column",
"value": "age"
},
{
"id": 3,
"type": "value",
"value": "30"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O"
] |
5,750 | works_cycles | bird:train.json:7028 | What is the full name of the Document Control Manager who is in charge of all Level 1 approved documents? | SELECT T1.FirstName, T1.MiddleName, T1.LastName FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Document AS T3 ON T3.Owner = T2.BusinessEntityID WHERE T2.JobTitle = 'Document Control Manager' AND T3.DocumentLevel = 1 AND T3.Status = 2 GROUP BY T1.FirstName, T1.MiddleN... | [
"What",
"is",
"the",
"full",
"name",
"of",
"the",
"Document",
"Control",
"Manager",
"who",
"is",
"in",
"charge",
"of",
"all",
"Level",
"1",
"approved",
"documents",
"?"
] | [
{
"id": 9,
"type": "value",
"value": "Document Control Manager"
},
{
"id": 7,
"type": "column",
"value": "businessentityid"
},
{
"id": 10,
"type": "column",
"value": "documentlevel"
},
{
"id": 1,
"type": "column",
"value": "middlename"
},
{
"id": 0... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
5,751 | shop_membership | spider:train_spider.json:5422 | Show all branch names with the number of members in each branch registered after 2015. | SELECT T2.name , count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id | [
"Show",
"all",
"branch",
"names",
"with",
"the",
"number",
"of",
"members",
"in",
"each",
"branch",
"registered",
"after",
"2015",
"."
] | [
{
"id": 2,
"type": "table",
"value": "membership_register_branch"
},
{
"id": 4,
"type": "column",
"value": "register_year"
},
{
"id": 0,
"type": "column",
"value": "branch_id"
},
{
"id": 3,
"type": "table",
"value": "branch"
},
{
"id": 1,
"type... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
8,
9,
10,
11
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
5,752 | video_games | bird:train.json:3409 | List the games from the publisher "Activision". | SELECT T3.game_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.publisher_name = 'Activision' | [
"List",
"the",
"games",
"from",
"the",
"publisher",
"\"",
"Activision",
"\"",
"."
] | [
{
"id": 2,
"type": "column",
"value": "publisher_name"
},
{
"id": 5,
"type": "table",
"value": "game_publisher"
},
{
"id": 8,
"type": "column",
"value": "publisher_id"
},
{
"id": 3,
"type": "value",
"value": "Activision"
},
{
"id": 0,
"type": "... | [
{
"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": [
5
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O"
] |
5,754 | video_game | bird:test.json:1956 | What are the titles and platform names of all games? | SELECT T1.Title , T2.Platform_name FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID = T2.Platform_ID | [
"What",
"are",
"the",
"titles",
"and",
"platform",
"names",
"of",
"all",
"games",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "platform_name"
},
{
"id": 4,
"type": "column",
"value": "platform_id"
},
{
"id": 3,
"type": "table",
"value": "platform"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
5,755 | cre_Doc_Control_Systems | spider:train_spider.json:2121 | List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS. | SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"; | [
"List",
"the",
"document",
"ids",
"of",
"documents",
"with",
"the",
"status",
"done",
"and",
"type",
"Paper",
",",
"which",
"not",
"shipped",
"by",
"the",
"shipping",
"agent",
"named",
"USPS",
"."
] | [
{
"id": 5,
"type": "column",
"value": "document_status_code"
},
{
"id": 2,
"type": "table",
"value": "ref_shipping_agents"
},
{
"id": 3,
"type": "column",
"value": "shipping_agent_name"
},
{
"id": 9,
"type": "column",
"value": "shipping_agent_code"
},
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
21
]
},
{
"entity_id": 4,
"token_idxs": [
22
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"B-COLUMN",
"O"
] |
5,756 | flight_1 | spider:train_spider.json:362 | What is the number of employees? | SELECT count(*) FROM Employee | [
"What",
"is",
"the",
"number",
"of",
"employees",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "employee"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,757 | synthea | bird:train.json:1461 | How long did Isadora Moen's allergy last? Tell me what kind of allergy she has. | SELECT CASE WHEN SUBSTR(T1.STOP, -2, 1) != '9' THEN SUBSTR(T1.STOP, LENGTH(T1.STOP) - 1) + 2000 END - CASE WHEN SUBSTR(T1.START, -2, 1) = '9' THEN SUBSTR(T1.START, LENGTH(T1.START) - 1) + 1900 ELSE SUBSTR(T1.START, LENGTH(T1.START) - 1) + 2000 END AS years , T1.DESCRIPTION FROM allergies AS T1 INNER JOIN patients AS T2... | [
"How",
"long",
"did",
"Isadora",
"Moen",
"'s",
"allergy",
"last",
"?",
"Tell",
"me",
"what",
"kind",
"of",
"allergy",
"she",
"has",
"."
] | [
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 1,
"type": "table",
"value": "allergies"
},
{
"id": 2,
"type": "table",
"value": "patients"
},
{
"id": 3,
"type": "column",
"value": "patient"
},
{
"id": 7,
"type": "value",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
5,758 | bike_share_1 | bird:train.json:9024 | On 8/29/2013 at 6:14:01 PM, how many bikes were borrowed from San Jose Diridon Caltrain Station? | SELECT SUM(T1.dock_count - T2.bikes_available) FROM station AS T1 INNER JOIN status AS T2 ON T1.id = T2.station_id WHERE T1.name = 'San Jose Diridon Caltrain Station' AND T2.time = '2013/08/29 06:14:01' | [
"On",
"8/29/2013",
"at",
"6:14:01",
"PM",
",",
"how",
"many",
"bikes",
"were",
"borrowed",
"from",
"San",
"Jose",
"Diridon",
"Caltrain",
"Station",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "San Jose Diridon Caltrain Station"
},
{
"id": 7,
"type": "value",
"value": "2013/08/29 06:14:01"
},
{
"id": 9,
"type": "column",
"value": "bikes_available"
},
{
"id": 3,
"type": "column",
"value": "station_id"
},
{... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
16
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
12,
... | [
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"B-TABLE",
"O"
] |
5,759 | european_football_2 | bird:dev.json:1028 | In Scotland Premier League, which away team won the most during the 2010 season? | SELECT teamInfo.team_long_name FROM League AS leagueData INNER JOIN Match AS matchData ON leagueData.id = matchData.league_id INNER JOIN Team AS teamInfo ON matchData.away_team_api_id = teamInfo.team_api_id WHERE leagueData.name = 'Scotland Premier League' AND matchData.season = '2009/2010' AND matchData.away_team_goal... | [
"In",
"Scotland",
"Premier",
"League",
",",
"which",
"away",
"team",
"won",
"the",
"most",
"during",
"the",
"2010",
"season",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "Scotland Premier League"
},
{
"id": 0,
"type": "column",
"value": "away_team_api_id"
},
{
"id": 1,
"type": "column",
"value": "team_long_name"
},
{
"id": 13,
"type": "column",
"value": "away_team_goal"
},
{
"id... | [
{
"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",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
5,760 | music_platform_2 | bird:train.json:7953 | Indicate the slug and the itunes url of the podcast whose review content was written Can't stop listening. | SELECT slug, itunes_url FROM podcasts WHERE podcast_id IN ( SELECT podcast_id FROM reviews WHERE content = 'Can''t stop listening' ) | [
"Indicate",
"the",
"slug",
"and",
"the",
"itunes",
"url",
"of",
"the",
"podcast",
"whose",
"review",
"content",
"was",
"written",
"Ca",
"n't",
"stop",
"listening",
"."
] | [
{
"id": 6,
"type": "value",
"value": "Can't stop listening"
},
{
"id": 2,
"type": "column",
"value": "itunes_url"
},
{
"id": 3,
"type": "column",
"value": "podcast_id"
},
{
"id": 0,
"type": "table",
"value": "podcasts"
},
{
"id": 4,
"type": "ta... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
5,761 | sakila_1 | spider:train_spider.json:2942 | Which countries have at least 3 cities? | SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING count(*) >= 3 | [
"Which",
"countries",
"have",
"at",
"least",
"3",
"cities",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "country_id"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 3,
"type": "table",
"value": "country"
},
{
"id": 2,
"type": "table",
"value": "city"
},
{
"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": [
1
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
5,762 | movie_1 | spider:train_spider.json:2468 | What is the names of movies whose created year is after all movies directed by Steven Spielberg? | SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = "Steven Spielberg") | [
"What",
"is",
"the",
"names",
"of",
"movies",
"whose",
"created",
"year",
"is",
"after",
"all",
"movies",
"directed",
"by",
"Steven",
"Spielberg",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "Steven Spielberg"
},
{
"id": 3,
"type": "column",
"value": "director"
},
{
"id": 0,
"type": "table",
"value": "movie"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
15,
16
]
},
{... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,764 | flight_company | spider:train_spider.json:6379 | List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities. | SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services' | [
"List",
"the",
"name",
"of",
"the",
"pilots",
"who",
"have",
"flied",
"for",
"both",
"a",
"company",
"that",
"mainly",
"provide",
"'",
"Cargo",
"'",
"services",
"and",
"a",
"company",
"that",
"runs",
"'",
"Catering",
"services",
"'",
"activities",
"."
] | [
{
"id": 3,
"type": "column",
"value": "principal_activities"
},
{
"id": 5,
"type": "value",
"value": "Catering services"
},
{
"id": 1,
"type": "table",
"value": "operate_company"
},
{
"id": 7,
"type": "column",
"value": "company_id"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
21
]
},
{
"entity_id": 2,
"token_idxs": [
0
]
},
{
"entity_id": 3,
"token_idxs": [
29
]
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
... | [
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"O"
] |
5,765 | address | bird:train.json:5152 | Provide the alias and elevation of the city with zip code 1028. | SELECT T1.alias, T2.elevation FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.zip_code = 1028 | [
"Provide",
"the",
"alias",
"and",
"elevation",
"of",
"the",
"city",
"with",
"zip",
"code",
"1028",
"."
] | [
{
"id": 1,
"type": "column",
"value": "elevation"
},
{
"id": 3,
"type": "table",
"value": "zip_data"
},
{
"id": 4,
"type": "column",
"value": "zip_code"
},
{
"id": 0,
"type": "column",
"value": "alias"
},
{
"id": 2,
"type": "table",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9,
10
]
},
{
"entity_id"... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
5,766 | talkingdata | bird:train.json:1146 | Please list the location coordinates of all the Galaxy Note 2 devices when an event happened. | SELECT T1.longitude, T1.latitude FROM events AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'Galaxy Note 2' | [
"Please",
"list",
"the",
"location",
"coordinates",
"of",
"all",
"the",
"Galaxy",
"Note",
"2",
"devices",
"when",
"an",
"event",
"happened",
"."
] | [
{
"id": 3,
"type": "table",
"value": "phone_brand_device_model2"
},
{
"id": 5,
"type": "value",
"value": "Galaxy Note 2"
},
{
"id": 4,
"type": "column",
"value": "device_model"
},
{
"id": 0,
"type": "column",
"value": "longitude"
},
{
"id": 6,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
8,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
5,767 | soccer_2016 | bird:train.json:1937 | Which team wins the toss during the match ID 336011, and can you tell me whether they decided to bat or field? | SELECT T2.Toss_Name, T1.Toss_Decide, T1.Toss_Winner FROM `Match` AS T1 INNER JOIN Toss_Decision AS T2 ON T1.Toss_Decide = T2.Toss_Id WHERE T1.Match_Id = '336011' | [
"Which",
"team",
"wins",
"the",
"toss",
"during",
"the",
"match",
"ID",
"336011",
",",
"and",
"can",
"you",
"tell",
"me",
"whether",
"they",
"decided",
"to",
"bat",
"or",
"field",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "toss_decision"
},
{
"id": 1,
"type": "column",
"value": "toss_decide"
},
{
"id": 2,
"type": "column",
"value": "toss_winner"
},
{
"id": 0,
"type": "column",
"value": "toss_name"
},
{
"id": 5,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
5,768 | movie_1 | spider:train_spider.json:2464 | What is the name of the most recent movie? | SELECT title FROM Movie WHERE YEAR = (SELECT max(YEAR) FROM Movie) | [
"What",
"is",
"the",
"name",
"of",
"the",
"most",
"recent",
"movie",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "movie"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "column",
"value": "year"
}
] | [
{
"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"
] |
5,769 | e_commerce | bird:test.json:93 | How many customers do not have a listed payment method? | SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payment_Methods ) | [
"How",
"many",
"customers",
"do",
"not",
"have",
"a",
"listed",
"payment",
"method",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "customer_payment_methods"
},
{
"id": 1,
"type": "column",
"value": "customer_id"
},
{
"id": 0,
"type": "table",
"value": "customers"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"O"
] |
5,770 | driving_school | spider:train_spider.json:6642 | Which city does staff with first name as Janessa and last name as Sawayn live? | SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"; | [
"Which",
"city",
"does",
"staff",
"with",
"first",
"name",
"as",
"Janessa",
"and",
"last",
"name",
"as",
"Sawayn",
"live",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "staff_address_id"
},
{
"id": 3,
"type": "column",
"value": "address_id"
},
{
"id": 5,
"type": "column",
"value": "first_name"
},
{
"id": 1,
"type": "table",
"value": "addresses"
},
{
"id": 7,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"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",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
5,771 | soccer_2 | spider:train_spider.json:4994 | Find the states where have some college students in tryout. | SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName | [
"Find",
"the",
"states",
"where",
"have",
"some",
"college",
"students",
"in",
"tryout",
"."
] | [
{
"id": 1,
"type": "table",
"value": "college"
},
{
"id": 2,
"type": "table",
"value": "tryout"
},
{
"id": 0,
"type": "column",
"value": "state"
},
{
"id": 3,
"type": "column",
"value": "cname"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O"
] |
5,772 | books | bird:train.json:5914 | What is the name of the publisher of the book "The Illuminati"? | SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.title = 'The Illuminati' | [
"What",
"is",
"the",
"name",
"of",
"the",
"publisher",
"of",
"the",
"book",
"\"",
"The",
"Illuminati",
"\"",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "publisher_name"
},
{
"id": 4,
"type": "value",
"value": "The Illuminati"
},
{
"id": 5,
"type": "column",
"value": "publisher_id"
},
{
"id": 2,
"type": "table",
"value": "publisher"
},
{
"id": 3,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11,
12
]
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
5,773 | movies_4 | bird:train.json:456 | How many animators does Movie No. 129 have? | SELECT COUNT(movie_id) FROM movie_crew WHERE movie_id = 129 AND job = 'Animation' | [
"How",
"many",
"animators",
"does",
"Movie",
"No",
".",
"129",
"have",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "movie_crew"
},
{
"id": 4,
"type": "value",
"value": "Animation"
},
{
"id": 1,
"type": "column",
"value": "movie_id"
},
{
"id": 2,
"type": "value",
"value": "129"
},
{
"id": 3,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
5,774 | european_football_2 | bird:dev.json:1069 | Which football player has the shortest height? | SELECT player_name FROM player ORDER BY height ASC LIMIT 1 | [
"Which",
"football",
"player",
"has",
"the",
"shortest",
"height",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "player_name"
},
{
"id": 0,
"type": "table",
"value": "player"
},
{
"id": 2,
"type": "column",
"value": "height"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,775 | sales | bird:train.json:5397 | What is the best selling colour for HL Mountain Frame, 42? | SELECT IIF(SUM(IIF(T1.Name = 'HL Mountain Frame - Silver, 42', T2.SalesID, 0)) - SUM(IIF(T1.Name = 'HL Mountain Frame - Black, 42', T2.SalesID, 0)) > 0, 'Silver', 'Black') FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID | [
"What",
"is",
"the",
"best",
"selling",
"colour",
"for",
"HL",
"Mountain",
"Frame",
",",
"42",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "HL Mountain Frame - Silver, 42"
},
{
"id": 9,
"type": "value",
"value": "HL Mountain Frame - Black, 42"
},
{
"id": 4,
"type": "column",
"value": "productid"
},
{
"id": 0,
"type": "table",
"value": "products"
},
{
... | [
{
"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",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O"
] |
5,776 | inn_1 | spider:train_spider.json:2631 | Find the number of distinct bed types available in this inn. | SELECT count(DISTINCT bedType) FROM Rooms; | [
"Find",
"the",
"number",
"of",
"distinct",
"bed",
"types",
"available",
"in",
"this",
"inn",
"."
] | [
{
"id": 1,
"type": "column",
"value": "bedtype"
},
{
"id": 0,
"type": "table",
"value": "rooms"
}
] | [
{
"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,777 | public_review_platform | bird:train.json:3858 | Please list the business ID of the Yelp_Business with the highest Elitestar rating under the category "Food". | SELECT T2.business_id FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name LIKE 'Food' ORDER BY T3.stars DESC LIMIT 1 | [
"Please",
"list",
"the",
"business",
"ID",
"of",
"the",
"Yelp_Business",
"with",
"the",
"highest",
"Elitestar",
"rating",
"under",
"the",
"category",
"\"",
"Food",
"\"",
"."
] | [
{
"id": 6,
"type": "table",
"value": "business_categories"
},
{
"id": 2,
"type": "column",
"value": "category_name"
},
{
"id": 0,
"type": "column",
"value": "business_id"
},
{
"id": 7,
"type": "column",
"value": "category_id"
},
{
"id": 5,
"typ... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O"
] |
5,778 | movie_platform | bird:train.json:96 | How many users in Mubi give the movie "White Night Wedding for 5"? | SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5 AND T2.movie_title = 'White Night Wedding' | [
"How",
"many",
"users",
"in",
"Mubi",
"give",
"the",
"movie",
"\"",
"White",
"Night",
"Wedding",
"for",
"5",
"\"",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "White Night Wedding"
},
{
"id": 4,
"type": "column",
"value": "rating_score"
},
{
"id": 6,
"type": "column",
"value": "movie_title"
},
{
"id": 3,
"type": "column",
"value": "movie_id"
},
{
"id": 0,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
2,
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O",
"O"
] |
5,779 | cars | bird:train.json:3130 | How many models of Ford Maverick were produced? | SELECT COUNT(DISTINCT T2.model_year) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'ford maverick' | [
"How",
"many",
"models",
"of",
"Ford",
"Maverick",
"were",
"produced",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "ford maverick"
},
{
"id": 1,
"type": "table",
"value": "production"
},
{
"id": 4,
"type": "column",
"value": "model_year"
},
{
"id": 2,
"type": "column",
"value": "car_name"
},
{
"id": 0,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4,
5
]
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-TABLE",
"O"
] |
5,780 | university | bird:train.json:8015 | Give the location of the university ID 112. | SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.id = 112 | [
"Give",
"the",
"location",
"of",
"the",
"university",
"ID",
"112",
"."
] | [
{
"id": 0,
"type": "column",
"value": "country_name"
},
{
"id": 1,
"type": "table",
"value": "university"
},
{
"id": 5,
"type": "column",
"value": "country_id"
},
{
"id": 2,
"type": "table",
"value": "country"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O"
] |
5,781 | retails | bird:train.json:6780 | List by their id all customers who have a debit balance in their accounts. | SELECT c_custkey FROM customer WHERE c_acctbal < 0 | [
"List",
"by",
"their",
"i",
"d",
"all",
"customers",
"who",
"have",
"a",
"debit",
"balance",
"in",
"their",
"accounts",
"."
] | [
{
"id": 1,
"type": "column",
"value": "c_custkey"
},
{
"id": 2,
"type": "column",
"value": "c_acctbal"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 3,
"type": "value",
"value": "0"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,782 | retail_world | bird:train.json:6618 | List the cities where the product 'Mishi Kobe Niku' were shipped to. | SELECT T1.ShipCity FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T3.ProductName = 'Mishi Kobe Niku' | [
"List",
"the",
"cities",
"where",
"the",
"product",
"'",
"Mishi",
"Kobe",
"Niku",
"'",
"were",
"shipped",
"to",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Mishi Kobe Niku"
},
{
"id": 5,
"type": "table",
"value": "Order Details"
},
{
"id": 2,
"type": "column",
"value": "productname"
},
{
"id": 6,
"type": "column",
"value": "productid"
},
{
"id": 0,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
5,783 | regional_sales | bird:train.json:2627 | Please give the order number and product name of the order which has the lowest unit price. | SELECT T1.OrderNumber, T2.`Product Name` FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE REPLACE(T1.`Unit Price`, ',', '') = ( SELECT REPLACE(T1.`Unit Price`, ',', '') FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID ORDER BY REPLACE(T1.`Unit ... | [
"Please",
"give",
"the",
"order",
"number",
"and",
"product",
"name",
"of",
"the",
"order",
"which",
"has",
"the",
"lowest",
"unit",
"price",
"."
] | [
{
"id": 1,
"type": "column",
"value": "Product Name"
},
{
"id": 2,
"type": "table",
"value": "Sales Orders"
},
{
"id": 0,
"type": "column",
"value": "ordernumber"
},
{
"id": 5,
"type": "column",
"value": "_productid"
},
{
"id": 6,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,784 | public_review_platform | bird:train.json:3773 | There was only one tip that user No. 69722 gave to the Yelp business, what was the ratings of that business? | SELECT T2.stars FROM Tips AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T1.user_id = 69722 | [
"There",
"was",
"only",
"one",
"tip",
"that",
"user",
"No",
".",
"69722",
"gave",
"to",
"the",
"Yelp",
"business",
",",
"what",
"was",
"the",
"ratings",
"of",
"that",
"business",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "business_id"
},
{
"id": 2,
"type": "table",
"value": "business"
},
{
"id": 3,
"type": "column",
"value": "user_id"
},
{
"id": 0,
"type": "column",
"value": "stars"
},
{
"id": 4,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
22
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,785 | world_development_indicators | bird:train.json:2239 | Please list the notes for Aruba on the indicators under the topic of Environment: Energy production & use. | SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode INNER JOIN Series AS T3 ON T2.Seriescode = T3.SeriesCode WHERE T1.ShortName = 'Aruba' AND T3.Topic = 'Environment: Energy production & use' | [
"Please",
"list",
"the",
"notes",
"for",
"Aruba",
"on",
"the",
"indicators",
"under",
"the",
"topic",
"of",
"Environment",
":",
"Energy",
"production",
"&",
"use",
"."
] | [
{
"id": 8,
"type": "value",
"value": "Environment: Energy production & use"
},
{
"id": 3,
"type": "table",
"value": "countrynotes"
},
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 9,
"type": "column",
"value": "countrycode"
},
{
"i... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
5,786 | authors | bird:train.json:3663 | How many papers were published in International Workshop on Inductive Logic Programming from 2001 to 2009? | SELECT COUNT(T1.Id) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.FullName = 'International Workshop on Inductive Logic Programming' AND T1.Year BETWEEN 2001 AND 2009 | [
"How",
"many",
"papers",
"were",
"published",
"in",
"International",
"Workshop",
"on",
"Inductive",
"Logic",
"Programming",
"from",
"2001",
"to",
"2009",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "International Workshop on Inductive Logic Programming"
},
{
"id": 3,
"type": "column",
"value": "conferenceid"
},
{
"id": 1,
"type": "table",
"value": "conference"
},
{
"id": 4,
"type": "column",
"value": "fullname"
... | [
{
"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": [
6,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
5,787 | formula_1 | spider:train_spider.json:2168 | What is the id and last name of the driver with the longest laptime? | SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1 | [
"What",
"is",
"the",
"i",
"d",
"and",
"last",
"name",
"of",
"the",
"driver",
"with",
"the",
"longest",
"laptime",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "milliseconds"
},
{
"id": 0,
"type": "column",
"value": "driverid"
},
{
"id": 3,
"type": "table",
"value": "laptimes"
},
{
"id": 1,
"type": "column",
"value": "surname"
},
{
"id": 2,
"type": "table",
"v... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,788 | behavior_monitoring | spider:train_spider.json:3096 | What is the gender of the teacher with last name "Medhurst"? | SELECT gender FROM TEACHERS WHERE last_name = "Medhurst" | [
"What",
"is",
"the",
"gender",
"of",
"the",
"teacher",
"with",
"last",
"name",
"\"",
"Medhurst",
"\"",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "last_name"
},
{
"id": 0,
"type": "table",
"value": "teachers"
},
{
"id": 3,
"type": "column",
"value": "Medhurst"
},
{
"id": 1,
"type": "column",
"value": "gender"
}
] | [
{
"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
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
5,789 | address | bird:train.json:5138 | State the male population for all zip code which were under the Berlin, NH CBSA. | SELECT T2.male_population FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Berlin, NH' GROUP BY T2.male_population | [
"State",
"the",
"male",
"population",
"for",
"all",
"zip",
"code",
"which",
"were",
"under",
"the",
"Berlin",
",",
"NH",
"CBSA",
"."
] | [
{
"id": 0,
"type": "column",
"value": "male_population"
},
{
"id": 4,
"type": "value",
"value": "Berlin, NH"
},
{
"id": 3,
"type": "column",
"value": "cbsa_name"
},
{
"id": 2,
"type": "table",
"value": "zip_data"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12,
13,
14
]
},
{
"ent... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"O"
] |
5,790 | college_1 | spider:train_spider.json:3289 | How many professors who are from either Accounting or Biology department? | SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology' | [
"How",
"many",
"professors",
"who",
"are",
"from",
"either",
"Accounting",
"or",
"Biology",
"department",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "department"
},
{
"id": 4,
"type": "value",
"value": "Accounting"
},
{
"id": 0,
"type": "table",
"value": "professor"
},
{
"id": 2,
"type": "column",
"value": "dept_code"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
5,791 | superstore | bird:train.json:2389 | Among the products under the office supplies category, what is the product that made the highest sales in the Central region? | SELECT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Category = 'Office Supplies' AND T2.Region = 'Central' ORDER BY T1.Sales DESC LIMIT 1 | [
"Among",
"the",
"products",
"under",
"the",
"office",
"supplies",
"category",
",",
"what",
"is",
"the",
"product",
"that",
"made",
"the",
"highest",
"sales",
"in",
"the",
"Central",
"region",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "central_superstore"
},
{
"id": 6,
"type": "value",
"value": "Office Supplies"
},
{
"id": 0,
"type": "column",
"value": "Product Name"
},
{
"id": 4,
"type": "column",
"value": "Product ID"
},
{
"id": 5,
"typ... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
5,792 | customers_and_addresses | spider:train_spider.json:6127 | Who made the latest order? | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1 | [
"Who",
"made",
"the",
"latest",
"order",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "customer_orders"
},
{
"id": 0,
"type": "column",
"value": "customer_name"
},
{
"id": 4,
"type": "column",
"value": "customer_id"
},
{
"id": 3,
"type": "column",
"value": "order_date"
},
{
"id": 1,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"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",
"O",
"O",
"B-COLUMN",
"O"
] |
5,793 | customers_and_addresses | spider:train_spider.json:6062 | Which customers use "Cash" for payment method? Return the customer names. | SELECT customer_name FROM customers WHERE payment_method = "Cash" | [
"Which",
"customers",
"use",
"\"",
"Cash",
"\"",
"for",
"payment",
"method",
"?",
"Return",
"the",
"customer",
"names",
"."
] | [
{
"id": 2,
"type": "column",
"value": "payment_method"
},
{
"id": 1,
"type": "column",
"value": "customer_name"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 3,
"type": "column",
"value": "Cash"
}
] | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
12,
13
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.