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 |
|---|---|---|---|---|---|---|---|---|
3,101 | cars | bird:train.json:3098 | What is the name of the most expensive car that was produced by the USA? | SELECT T4.car_name FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'USA' ORDER BY T1.price DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"most",
"expensive",
"car",
"that",
"was",
"produced",
"by",
"the",
"USA",
"?"
] | [
{
"id": 8,
"type": "table",
"value": "production"
},
{
"id": 0,
"type": "column",
"value": "car_name"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 5,
"type": "table",
"value": "country"
},
{
"id": 9,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
3,102 | planet_1 | bird:test.json:1867 | List Package Number of all package sent by Leo Wong? | SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = "Leo Wong"; | [
"List",
"Package",
"Number",
"of",
"all",
"package",
"sent",
"by",
"Leo",
"Wong",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "packagenumber"
},
{
"id": 6,
"type": "column",
"value": "accountnumber"
},
{
"id": 4,
"type": "column",
"value": "Leo Wong"
},
{
"id": 1,
"type": "table",
"value": "package"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
0
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
8,
9
]... | [
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
3,103 | voter_2 | spider:train_spider.json:5474 | Find the distinct first names of the students who have class senator votes. | SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE | [
"Find",
"the",
"distinct",
"first",
"names",
"of",
"the",
"students",
"who",
"have",
"class",
"senator",
"votes",
"."
] | [
{
"id": 4,
"type": "column",
"value": "class_senator_vote"
},
{
"id": 2,
"type": "table",
"value": "voting_record"
},
{
"id": 1,
"type": "table",
"value": "student"
},
{
"id": 0,
"type": "column",
"value": "fname"
},
{
"id": 3,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
10,
11,
12
]
},
{
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
3,104 | financial | bird:dev.json:98 | Among the accounts who have approved loan date in 1997, list out the accounts that have the lowest approved amount and choose weekly issuance statement. | SELECT T2.account_id FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1997' AND T2.frequency = 'POPLATEK TYDNE' ORDER BY T1.amount LIMIT 1 | [
"Among",
"the",
"accounts",
"who",
"have",
"approved",
"loan",
"date",
"in",
"1997",
",",
"list",
"out",
"the",
"accounts",
"that",
"have",
"the",
"lowest",
"approved",
"amount",
"and",
"choose",
"weekly",
"issuance",
"statement",
"."
] | [
{
"id": 6,
"type": "value",
"value": "POPLATEK TYDNE"
},
{
"id": 0,
"type": "column",
"value": "account_id"
},
{
"id": 5,
"type": "column",
"value": "frequency"
},
{
"id": 2,
"type": "table",
"value": "account"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
20
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entit... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
3,105 | region_building | bird:test.json:342 | Return the number of stories for each building in the region named "Abruzzo". | SELECT T1.Number_of_Stories FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID WHERE T2.Name = "Abruzzo" | [
"Return",
"the",
"number",
"of",
"stories",
"for",
"each",
"building",
"in",
"the",
"region",
"named",
"\"",
"Abruzzo",
"\"",
"."
] | [
{
"id": 0,
"type": "column",
"value": "number_of_stories"
},
{
"id": 5,
"type": "column",
"value": "region_id"
},
{
"id": 1,
"type": "table",
"value": "building"
},
{
"id": 4,
"type": "column",
"value": "Abruzzo"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
3,106 | chicago_crime | bird:train.json:8730 | Please list all of the contact information for the police district Near West. | SELECT phone, fax, tty, twitter FROM District WHERE district_name = 'Near West' | [
"Please",
"list",
"all",
"of",
"the",
"contact",
"information",
"for",
"the",
"police",
"district",
"Near",
"West",
"."
] | [
{
"id": 5,
"type": "column",
"value": "district_name"
},
{
"id": 6,
"type": "value",
"value": "Near West"
},
{
"id": 0,
"type": "table",
"value": "district"
},
{
"id": 4,
"type": "column",
"value": "twitter"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O"
] |
3,107 | address | bird:train.json:5164 | Among the postal points in Texas, provide the zip codes and cities of postal points which have total beneficiaries of above 10000. | SELECT T2.zip_code, T2.city FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Texas' AND T2.total_beneficiaries > 10000 | [
"Among",
"the",
"postal",
"points",
"in",
"Texas",
",",
"provide",
"the",
"zip",
"codes",
"and",
"cities",
"of",
"postal",
"points",
"which",
"have",
"total",
"beneficiaries",
"of",
"above",
"10000",
"."
] | [
{
"id": 8,
"type": "column",
"value": "total_beneficiaries"
},
{
"id": 4,
"type": "column",
"value": "abbreviation"
},
{
"id": 0,
"type": "column",
"value": "zip_code"
},
{
"id": 3,
"type": "table",
"value": "zip_data"
},
{
"id": 2,
"type": "ta... | [
{
"entity_id": 0,
"token_idxs": [
9,
10
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
3,108 | university | bird:train.json:8037 | How many female students were there at Stanford University in 2011? | SELECT CAST(T1.num_students * T1.pct_female_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T2.university_name = 'Stanford University' | [
"How",
"many",
"female",
"students",
"were",
"there",
"at",
"Stanford",
"University",
"in",
"2011",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "Stanford University"
},
{
"id": 10,
"type": "column",
"value": "pct_female_students"
},
{
"id": 0,
"type": "table",
"value": "university_year"
},
{
"id": 7,
"type": "column",
"value": "university_name"
},
{
"id... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
3,109 | wine_1 | spider:train_spider.json:6581 | Find the country of all appelations who have at most three wines. | SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3 | [
"Find",
"the",
"country",
"of",
"all",
"appelations",
"who",
"have",
"at",
"most",
"three",
"wines",
"."
] | [
{
"id": 2,
"type": "table",
"value": "appellations"
},
{
"id": 0,
"type": "column",
"value": "appelation"
},
{
"id": 1,
"type": "column",
"value": "county"
},
{
"id": 3,
"type": "table",
"value": "wine"
},
{
"id": 4,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
3,110 | cre_Doc_and_collections | bird:test.json:663 | What is detail of collection subset with name 'Top collection'? | SELECT Collecrtion_Subset_Details FROM Collection_Subsets WHERE Collection_Subset_Name = "Top collection"; | [
"What",
"is",
"detail",
"of",
"collection",
"subset",
"with",
"name",
"'",
"Top",
"collection",
"'",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "collecrtion_subset_details"
},
{
"id": 2,
"type": "column",
"value": "collection_subset_name"
},
{
"id": 0,
"type": "table",
"value": "collection_subsets"
},
{
"id": 3,
"type": "column",
"value": "Top collection"
}
... | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
3,112 | codebase_comments | bird:train.json:633 | What are the "en" methods with solutions from repository "1093" | SELECT DISTINCT T2.id FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.RepoId = 1093 AND T2.Lang = 'en' | [
"What",
"are",
"the",
"\"",
"en",
"\"",
"methods",
"with",
"solutions",
"from",
"repository",
"\"",
"1093",
"\""
] | [
{
"id": 3,
"type": "column",
"value": "solutionid"
},
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 2,
"type": "table",
"value": "method"
},
{
"id": 4,
"type": "column",
"value": "repoid"
},
{
"id": 5,
"type": "value",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
3,113 | retails | bird:train.json:6707 | How many items that were shipped via air were returned in 1994? | SELECT COUNT(l_linenumber) FROM lineitem WHERE l_returnflag = 'R' AND l_shipmode = 'AIR' AND STRFTIME('%Y', l_shipdate) = '1994' | [
"How",
"many",
"items",
"that",
"were",
"shipped",
"via",
"air",
"were",
"returned",
"in",
"1994",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "l_linenumber"
},
{
"id": 2,
"type": "column",
"value": "l_returnflag"
},
{
"id": 4,
"type": "column",
"value": "l_shipmode"
},
{
"id": 8,
"type": "column",
"value": "l_shipdate"
},
{
"id": 0,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
3,115 | inn_1 | spider:train_spider.json:2638 | Return the name and number of reservations made for each of the rooms. | SELECT T2.roomName , count(*) , T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room | [
"Return",
"the",
"name",
"and",
"number",
"of",
"reservations",
"made",
"for",
"each",
"of",
"the",
"rooms",
"."
] | [
{
"id": 2,
"type": "table",
"value": "reservations"
},
{
"id": 1,
"type": "column",
"value": "roomname"
},
{
"id": 4,
"type": "column",
"value": "roomid"
},
{
"id": 3,
"type": "table",
"value": "rooms"
},
{
"id": 0,
"type": "column",
"value... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
3,117 | student_club | bird:dev.json:1364 | Where is Amy Firth's hometown? | SELECT T2.city, T2.county, T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Amy' AND T1.last_name = 'Firth' | [
"Where",
"is",
"Amy",
"Firth",
"'s",
"hometown",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "first_name"
},
{
"id": 9,
"type": "column",
"value": "last_name"
},
{
"id": 4,
"type": "table",
"value": "zip_code"
},
{
"id": 6,
"type": "column",
"value": "zip_code"
},
{
"id": 1,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O"
] |
3,118 | school_player | spider:train_spider.json:4899 | What are the denomination more than one school have? | SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1 | [
"What",
"are",
"the",
"denomination",
"more",
"than",
"one",
"school",
"have",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "denomination"
},
{
"id": 0,
"type": "table",
"value": "school"
},
{
"id": 2,
"type": "value",
"value": "1"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
3,120 | flight_1 | spider:train_spider.json:380 | What is the id and salary of the employee named Mark Young? | SELECT eid , salary FROM Employee WHERE name = 'Mark Young' | [
"What",
"is",
"the",
"i",
"d",
"and",
"salary",
"of",
"the",
"employee",
"named",
"Mark",
"Young",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Mark Young"
},
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 2,
"type": "column",
"value": "salary"
},
{
"id": 3,
"type": "column",
"value": "name"
},
{
"id": 1,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
11,
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O"
] |
3,121 | art_1 | bird:test.json:1277 | What locations have works painted before 1885 or after 1930? | SELECT DISTINCT LOCATION FROM paintings WHERE YEAR < 1885 OR YEAR > 1930 | [
"What",
"locations",
"have",
"works",
"painted",
"before",
"1885",
"or",
"after",
"1930",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "paintings"
},
{
"id": 1,
"type": "column",
"value": "location"
},
{
"id": 2,
"type": "column",
"value": "year"
},
{
"id": 3,
"type": "value",
"value": "1885"
},
{
"id": 4,
"type": "value",
"value": "193... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_... | [
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
3,122 | county_public_safety | spider:train_spider.json:2571 | What are the case burdens of counties, ordered descending by population? | SELECT Case_burden FROM county_public_safety ORDER BY Population DESC | [
"What",
"are",
"the",
"case",
"burdens",
"of",
"counties",
",",
"ordered",
"descending",
"by",
"population",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "county_public_safety"
},
{
"id": 1,
"type": "column",
"value": "case_burden"
},
{
"id": 2,
"type": "column",
"value": "population"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
3,123 | movie_1 | spider:train_spider.json:2446 | What is the reviewer id of Daniel Lewis? | SELECT rID FROM Reviewer WHERE name = "Daniel Lewis" | [
"What",
"is",
"the",
"reviewer",
"i",
"d",
"of",
"Daniel",
"Lewis",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "Daniel Lewis"
},
{
"id": 0,
"type": "table",
"value": "reviewer"
},
{
"id": 2,
"type": "column",
"value": "name"
},
{
"id": 1,
"type": "column",
"value": "rid"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"en... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
3,124 | voter_2 | spider:train_spider.json:5488 | Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle. | SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring" | [
"Find",
"the",
"number",
"of",
"students",
"whose",
"city",
"code",
"is",
"NYC",
"and",
"who",
"have",
"class",
"senator",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"."
] | [
{
"id": 3,
"type": "column",
"value": "class_senator_vote"
},
{
"id": 6,
"type": "column",
"value": "election_cycle"
},
{
"id": 1,
"type": "table",
"value": "voting_record"
},
{
"id": 4,
"type": "column",
"value": "city_code"
},
{
"id": 0,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
13,
14,
15
]
},
{
"entity_id": 4,
"token_idxs": [
6,
7
]
},... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O"
] |
3,126 | movie_1 | spider:train_spider.json:2458 | Find the titles of all movies that have no ratings. | SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating) | [
"Find",
"the",
"titles",
"of",
"all",
"movies",
"that",
"have",
"no",
"ratings",
"."
] | [
{
"id": 3,
"type": "table",
"value": "rating"
},
{
"id": 0,
"type": "table",
"value": "movie"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "column",
"value": "mid"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
3,127 | donor | bird:train.json:3147 | What is the total amount of donations in 2012. | SELECT SUM(donation_total) FROM donations WHERE donation_timestamp LIKE '2012%' | [
"What",
"is",
"the",
"total",
"amount",
"of",
"donations",
"in",
"2012",
"."
] | [
{
"id": 1,
"type": "column",
"value": "donation_timestamp"
},
{
"id": 3,
"type": "column",
"value": "donation_total"
},
{
"id": 0,
"type": "table",
"value": "donations"
},
{
"id": 2,
"type": "value",
"value": "2012%"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
3,128 | wine_1 | spider:train_spider.json:6553 | What are the numbers of wines for different grapes? | SELECT count(*) , Grape FROM WINE GROUP BY Grape | [
"What",
"are",
"the",
"numbers",
"of",
"wines",
"for",
"different",
"grapes",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "grape"
},
{
"id": 0,
"type": "table",
"value": "wine"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O"
] |
3,129 | disney | bird:train.json:4714 | Provide the names of voice actors for the characters of films directed by Wolfgang Reitherman. | SELECT T2.hero, T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title INNER JOIN director AS T3 ON T3.name = T2.movie_title WHERE T3.director = 'Wolfgang Reitherman' | [
"Provide",
"the",
"names",
"of",
"voice",
"actors",
"for",
"the",
"characters",
"of",
"films",
"directed",
"by",
"Wolfgang",
"Reitherman",
"."
] | [
{
"id": 4,
"type": "value",
"value": "Wolfgang Reitherman"
},
{
"id": 5,
"type": "table",
"value": "voice-actors"
},
{
"id": 1,
"type": "column",
"value": "voice-actor"
},
{
"id": 8,
"type": "column",
"value": "movie_title"
},
{
"id": 6,
"type"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
13,
14
]
},
{
... | [
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
3,130 | warehouse_1 | bird:test.json:1744 | How many boxes are there with each warehouse ? | select warehouse , count(*) from boxes group by warehouse | [
"How",
"many",
"boxes",
"are",
"there",
"with",
"each",
"warehouse",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "warehouse"
},
{
"id": 0,
"type": "table",
"value": "boxes"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
3,131 | olympics | bird:train.json:5001 | Give the id of the event "Shooting Mixed Skeet". | SELECT id FROM event WHERE event_name = 'Shooting Mixed Skeet' | [
"Give",
"the",
"i",
"d",
"of",
"the",
"event",
"\"",
"Shooting",
"Mixed",
"Skeet",
"\"",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Shooting Mixed Skeet"
},
{
"id": 2,
"type": "column",
"value": "event_name"
},
{
"id": 0,
"type": "table",
"value": "event"
},
{
"id": 1,
"type": "column",
"value": "id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
3,132 | book_1 | bird:test.json:518 | What are the names and addressed of all clients? | SELECT name , address FROM Client | [
"What",
"are",
"the",
"names",
"and",
"addressed",
"of",
"all",
"clients",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "address"
},
{
"id": 0,
"type": "table",
"value": "client"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
3,133 | retails | bird:train.json:6804 | How many orders in 1998 had a total price under 950? | SELECT COUNT(o_orderkey) AS countorders FROM orders WHERE STRFTIME('%Y', o_orderdate) = '1998' AND o_totalprice < 950 | [
"How",
"many",
"orders",
"in",
"1998",
"had",
"a",
"total",
"price",
"under",
"950",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "o_totalprice"
},
{
"id": 6,
"type": "column",
"value": "o_orderdate"
},
{
"id": 1,
"type": "column",
"value": "o_orderkey"
},
{
"id": 0,
"type": "table",
"value": "orders"
},
{
"id": 2,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
3,134 | thrombosis_prediction | bird:dev.json:1248 | How many patients born after 1980/1/1 have an abnormal fibrinogen level? | SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.FG <= 150 OR T2.FG >= 450 AND T1.Birthday > '1980-01-01' | [
"How",
"many",
"patients",
"born",
"after",
"1980/1/1",
"have",
"an",
"abnormal",
"fibrinogen",
"level",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "laboratory"
},
{
"id": 7,
"type": "value",
"value": "1980-01-01"
},
{
"id": 6,
"type": "column",
"value": "birthday"
},
{
"id": 0,
"type": "table",
"value": "patient"
},
{
"id": 4,
"type": "value",
"val... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-TABLE",
"B-TABLE",
"I-TABLE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
3,135 | store_product | spider:train_spider.json:4910 | Which district has the least area? | SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1 | [
"Which",
"district",
"has",
"the",
"least",
"area",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "district_name"
},
{
"id": 2,
"type": "column",
"value": "city_area"
},
{
"id": 0,
"type": "table",
"value": "district"
}
] | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
3,136 | video_games | bird:train.json:3437 | What genres are the games published by 'Agatsuma Entertainment'? | SELECT T4.genre_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 INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T1.publisher_name = 'Agatsuma Entertainment' | [
"What",
"genres",
"are",
"the",
"games",
"published",
"by",
"'",
"Agatsuma",
"Entertainment",
"'",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Agatsuma Entertainment"
},
{
"id": 2,
"type": "column",
"value": "publisher_name"
},
{
"id": 8,
"type": "table",
"value": "game_publisher"
},
{
"id": 10,
"type": "column",
"value": "publisher_id"
},
{
"id": 0,
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
3,137 | music_1 | spider:train_spider.json:3583 | List the names of all songs that have 4 minute duration or are in English. | SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages = "english" | [
"List",
"the",
"names",
"of",
"all",
"songs",
"that",
"have",
"4",
"minute",
"duration",
"or",
"are",
"in",
"English",
"."
] | [
{
"id": 1,
"type": "column",
"value": "song_name"
},
{
"id": 5,
"type": "column",
"value": "languages"
},
{
"id": 3,
"type": "column",
"value": "duration"
},
{
"id": 6,
"type": "column",
"value": "english"
},
{
"id": 2,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
3,138 | customers_and_orders | bird:test.json:243 | Show the minimum, average, maximum price for all products. | SELECT min(product_price) , avg(product_price) , max(product_price) FROM Products | [
"Show",
"the",
"minimum",
",",
"average",
",",
"maximum",
"price",
"for",
"all",
"products",
"."
] | [
{
"id": 1,
"type": "column",
"value": "product_price"
},
{
"id": 0,
"type": "table",
"value": "products"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
3,140 | debit_card_specializing | bird:dev.json:1497 | Which SME customer consumed the least in June 2012? | SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Date = '201206' AND T1.Segment = 'SME' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) ASC LIMIT 1 | [
"Which",
"SME",
"customer",
"consumed",
"the",
"least",
"in",
"June",
"2012",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "consumption"
},
{
"id": 0,
"type": "column",
"value": "customerid"
},
{
"id": 1,
"type": "table",
"value": "customers"
},
{
"id": 2,
"type": "table",
"value": "yearmonth"
},
{
"id": 5,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"B-VALUE",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
3,141 | ship_mission | spider:train_spider.json:4004 | List the name of ships whose nationality is not "United States". | SELECT Name FROM ship WHERE Nationality != "United States" | [
"List",
"the",
"name",
"of",
"ships",
"whose",
"nationality",
"is",
"not",
"\"",
"United",
"States",
"\"",
"."
] | [
{
"id": 3,
"type": "column",
"value": "United States"
},
{
"id": 2,
"type": "column",
"value": "nationality"
},
{
"id": 0,
"type": "table",
"value": "ship"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
10,
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
3,142 | university | bird:train.json:8028 | Among all universities, how many female students were there in 2011? | SELECT SUM(CAST(num_students * pct_female_students AS REAL) / 100) FROM university_year WHERE year = 2011 | [
"Among",
"all",
"universities",
",",
"how",
"many",
"female",
"students",
"were",
"there",
"in",
"2011",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "pct_female_students"
},
{
"id": 0,
"type": "table",
"value": "university_year"
},
{
"id": 4,
"type": "column",
"value": "num_students"
},
{
"id": 1,
"type": "column",
"value": "year"
},
{
"id": 2,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
3,144 | online_exams | bird:test.json:204 | List all the distinct student answer texts to which comments "Normal" were given? | SELECT DISTINCT Student_Answer_Text FROM Student_Answers WHERE Comments = "Normal" | [
"List",
"all",
"the",
"distinct",
"student",
"answer",
"texts",
"to",
"which",
"comments",
"\"",
"Normal",
"\"",
"were",
"given",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "student_answer_text"
},
{
"id": 0,
"type": "table",
"value": "student_answers"
},
{
"id": 2,
"type": "column",
"value": "comments"
},
{
"id": 3,
"type": "column",
"value": "Normal"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
3,145 | simpson_episodes | bird:train.json:4169 | How many stars did most of the voters give in star score for the episode Lost Verizon? | SELECT T2.stars FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Lost Verizon' ORDER BY T2.votes DESC LIMIT 1; | [
"How",
"many",
"stars",
"did",
"most",
"of",
"the",
"voters",
"give",
"in",
"star",
"score",
"for",
"the",
"episode",
"Lost",
"Verizon",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Lost Verizon"
},
{
"id": 6,
"type": "column",
"value": "episode_id"
},
{
"id": 1,
"type": "table",
"value": "episode"
},
{
"id": 0,
"type": "column",
"value": "stars"
},
{
"id": 3,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
15,
16
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O"
] |
3,146 | card_games | bird:dev.json:390 | What are the colors of cards from ID 1-20? What are the format of these cards? | SELECT T1.colors, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.id BETWEEN 1 AND 20 | [
"What",
"are",
"the",
"colors",
"of",
"cards",
"from",
"ID",
"1",
"-",
"20",
"?",
"What",
"are",
"the",
"format",
"of",
"these",
"cards",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "legalities"
},
{
"id": 0,
"type": "column",
"value": "colors"
},
{
"id": 1,
"type": "column",
"value": "format"
},
{
"id": 2,
"type": "table",
"value": "cards"
},
{
"id": 7,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
3,147 | retail_complains | bird:train.json:407 | In reviews of product with 5 stars, what is the percentage of the reviews coming from the division of East North Central? | SELECT CAST(SUM(CASE WHEN T1.division = 'East North Central' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.division) FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T2.Stars = 5 | [
"In",
"reviews",
"of",
"product",
"with",
"5",
"stars",
",",
"what",
"is",
"the",
"percentage",
"of",
"the",
"reviews",
"coming",
"from",
"the",
"division",
"of",
"East",
"North",
"Central",
"?"
] | [
{
"id": 9,
"type": "value",
"value": "East North Central"
},
{
"id": 4,
"type": "column",
"value": "district_id"
},
{
"id": 0,
"type": "table",
"value": "district"
},
{
"id": 6,
"type": "column",
"value": "division"
},
{
"id": 1,
"type": "table... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
3,148 | inn_1 | spider:train_spider.json:2589 | Find the total number of king beds available. | SELECT sum(beds) FROM Rooms WHERE bedtype = 'King'; | [
"Find",
"the",
"total",
"number",
"of",
"king",
"beds",
"available",
"."
] | [
{
"id": 1,
"type": "column",
"value": "bedtype"
},
{
"id": 0,
"type": "table",
"value": "rooms"
},
{
"id": 2,
"type": "value",
"value": "King"
},
{
"id": 3,
"type": "column",
"value": "beds"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O"
] |
3,149 | music_platform_2 | bird:train.json:7976 | How many reviews does "Planet Money" have? | SELECT COUNT(T2.podcast_id) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Planet Money' | [
"How",
"many",
"reviews",
"does",
"\"",
"Planet",
"Money",
"\"",
"have",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Planet Money"
},
{
"id": 4,
"type": "column",
"value": "podcast_id"
},
{
"id": 0,
"type": "table",
"value": "podcasts"
},
{
"id": 1,
"type": "table",
"value": "reviews"
},
{
"id": 2,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5,
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
3,151 | public_review_platform | bird:train.json:4122 | List down the business ID with a star range from 3 to 5, located at Chandler. | SELECT business_id FROM Business WHERE stars >= 3 AND stars < 6 AND city = 'Chandler' | [
"List",
"down",
"the",
"business",
"ID",
"with",
"a",
"star",
"range",
"from",
"3",
"to",
"5",
",",
"located",
"at",
"Chandler",
"."
] | [
{
"id": 1,
"type": "column",
"value": "business_id"
},
{
"id": 0,
"type": "table",
"value": "business"
},
{
"id": 6,
"type": "value",
"value": "Chandler"
},
{
"id": 2,
"type": "column",
"value": "stars"
},
{
"id": 5,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
3,152 | car_retails | bird:train.json:1623 | To whom does Steve Patterson report? Please give his or her full name. | SELECT t2.firstName, t2.lastName FROM employees AS t1 INNER JOIN employees AS t2 ON t2.employeeNumber = t1.reportsTo WHERE t1.firstName = 'Steve' AND t1.lastName = 'Patterson' | [
"To",
"whom",
"does",
"Steve",
"Patterson",
"report",
"?",
"Please",
"give",
"his",
"or",
"her",
"full",
"name",
"."
] | [
{
"id": 3,
"type": "column",
"value": "employeenumber"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 2,
"type": "table",
"value": "employees"
},
{
"id": 4,
"type": "column",
"value": "reportsto"
},
{
"id": 6,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
3,153 | car_retails | bird:train.json:1595 | What is the total actual profit gained from orders made by American customers from 2003-01-06 to 2005-05-09? | SELECT SUM(T2.priceEach - T1.buyPrice) FROM products AS T1 INNER JOIN orderdetails AS T2 ON T1.productCode = T2.productCode INNER JOIN orders AS T3 ON T2.orderNumber = T3.orderNumber INNER JOIN customers AS T4 ON T3.customerNumber = T4.customerNumber WHERE T3.orderDate > '2003-01-05' AND T3.orderDate < '2005-05-10' | [
"What",
"is",
"the",
"total",
"actual",
"profit",
"gained",
"from",
"orders",
"made",
"by",
"American",
"customers",
"from",
"2003",
"-",
"01",
"-",
"06",
"to",
"2005",
"-",
"05",
"-",
"09",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "customernumber"
},
{
"id": 9,
"type": "table",
"value": "orderdetails"
},
{
"id": 10,
"type": "column",
"value": "ordernumber"
},
{
"id": 11,
"type": "column",
"value": "productcode"
},
{
"id": 4,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
14,
15,
16,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
3,154 | human_resources | bird:train.json:8932 | How many emplyees have a good job performance? | SELECT COUNT(*) FROM employee WHERE performance = 'Good' | [
"How",
"many",
"emplyees",
"have",
"a",
"good",
"job",
"performance",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "performance"
},
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 2,
"type": "value",
"value": "Good"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"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-VALUE",
"O",
"B-COLUMN",
"O"
] |
3,155 | club_1 | spider:train_spider.json:4306 | Find the names of the clubs that have at least a member from the city with city code "HOU". | SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = "HOU" | [
"Find",
"the",
"names",
"of",
"the",
"clubs",
"that",
"have",
"at",
"least",
"a",
"member",
"from",
"the",
"city",
"with",
"city",
"code",
"\"",
"HOU",
"\"",
"."
] | [
{
"id": 5,
"type": "table",
"value": "member_of_club"
},
{
"id": 2,
"type": "column",
"value": "city_code"
},
{
"id": 0,
"type": "column",
"value": "clubname"
},
{
"id": 1,
"type": "table",
"value": "student"
},
{
"id": 7,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
16,
17
]
},
{
"entity_id": 3,
"token_idxs": [
19
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_i... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
3,156 | retail_world | bird:train.json:6356 | What are the order ids of the orders with freight of over 800? | SELECT OrderID FROM Orders WHERE Freight > 800 | [
"What",
"are",
"the",
"order",
"ids",
"of",
"the",
"orders",
"with",
"freight",
"of",
"over",
"800",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "orderid"
},
{
"id": 2,
"type": "column",
"value": "freight"
},
{
"id": 0,
"type": "table",
"value": "orders"
},
{
"id": 3,
"type": "value",
"value": "800"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
3,157 | book_publishing_company | bird:train.json:170 | What is the title that have at least 10% royalty without minimum range amount. | SELECT T1.title FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.lorange = 0 AND T2.royalty >= 10 | [
"What",
"is",
"the",
"title",
"that",
"have",
"at",
"least",
"10",
"%",
"royalty",
"without",
"minimum",
"range",
"amount",
"."
] | [
{
"id": 2,
"type": "table",
"value": "roysched"
},
{
"id": 3,
"type": "column",
"value": "title_id"
},
{
"id": 4,
"type": "column",
"value": "lorange"
},
{
"id": 6,
"type": "column",
"value": "royalty"
},
{
"id": 1,
"type": "table",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
3,158 | legislator | bird:train.json:4904 | What is the total number of senators New Jersey have? | SELECT COUNT(type) FROM `historical-terms` WHERE state = 'NJ' AND type = 'rep' | [
"What",
"is",
"the",
"total",
"number",
"of",
"senators",
"New",
"Jersey",
"have",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "historical-terms"
},
{
"id": 2,
"type": "column",
"value": "state"
},
{
"id": 1,
"type": "column",
"value": "type"
},
{
"id": 4,
"type": "value",
"value": "rep"
},
{
"id": 3,
"type": "value",
"value": "... | [
{
"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"
] |
3,159 | professional_basketball | bird:train.json:2882 | In 1950, how many players whose teams have the losing rate less than 20%? | SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T3.tmID = T2.tmID WHERE CAST(T3.lost AS REAL) * 100 / (T3.lost + T3.won) < 20 | [
"In",
"1950",
",",
"how",
"many",
"players",
"whose",
"teams",
"have",
"the",
"losing",
"rate",
"less",
"than",
"20",
"%",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "players_teams"
},
{
"id": 2,
"type": "column",
"value": "playerid"
},
{
"id": 3,
"type": "table",
"value": "players"
},
{
"id": 0,
"type": "table",
"value": "teams"
},
{
"id": 5,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
3,160 | donor | bird:train.json:3205 | What is the most requested item under the resource type "Supplies" for projects whose main subject area is Literacy & Language? | SELECT T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_area = 'Literacy & Language' AND T1.project_resource_type = 'Supplies' ORDER BY T1.item_quantity DESC LIMIT 1 | [
"What",
"is",
"the",
"most",
"requested",
"item",
"under",
"the",
"resource",
"type",
"\"",
"Supplies",
"\"",
"for",
"projects",
"whose",
"main",
"subject",
"area",
"is",
"Literacy",
"&",
"Language",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "project_resource_type"
},
{
"id": 6,
"type": "value",
"value": "Literacy & Language"
},
{
"id": 5,
"type": "column",
"value": "primary_focus_area"
},
{
"id": 3,
"type": "column",
"value": "item_quantity"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
3,161 | soccer_3 | bird:test.json:14 | What is the country of the player with the highest earnings among players that have more than 2 win counts? | SELECT Country FROM player WHERE Wins_count > 2 ORDER BY Earnings DESC LIMIT 1 | [
"What",
"is",
"the",
"country",
"of",
"the",
"player",
"with",
"the",
"highest",
"earnings",
"among",
"players",
"that",
"have",
"more",
"than",
"2",
"win",
"counts",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "wins_count"
},
{
"id": 4,
"type": "column",
"value": "earnings"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 0,
"type": "table",
"value": "player"
},
{
"id": 3,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
18,
19
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": [
10
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O"
] |
3,162 | mondial_geo | bird:train.json:8468 | State all countries with border greater than 4,000. List the full country name. | SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 WHERE T2.Length > 4000 | [
"State",
"all",
"countries",
"with",
"border",
"greater",
"than",
"4,000",
".",
"List",
"the",
"full",
"country",
"name",
"."
] | [
{
"id": 6,
"type": "column",
"value": "country1"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 2,
"type": "table",
"value": "borders"
},
{
"id": 3,
"type": "column",
"value": "length"
},
{
"id": 0,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
3,163 | entertainment_awards | spider:train_spider.json:4602 | What are the names of the chairs of festivals, sorted in ascending order of the year held? | SELECT Chair_Name FROM festival_detail ORDER BY YEAR ASC | [
"What",
"are",
"the",
"names",
"of",
"the",
"chairs",
"of",
"festivals",
",",
"sorted",
"in",
"ascending",
"order",
"of",
"the",
"year",
"held",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "festival_detail"
},
{
"id": 1,
"type": "column",
"value": "chair_name"
},
{
"id": 2,
"type": "column",
"value": "year"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
16
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
3,165 | vehicle_driver | bird:test.json:177 | What are the models which have not been driven by any drivers? | SELECT model FROM vehicle EXCEPT SELECT T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id | [
"What",
"are",
"the",
"models",
"which",
"have",
"not",
"been",
"driven",
"by",
"any",
"drivers",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "vehicle_driver"
},
{
"id": 3,
"type": "column",
"value": "vehicle_id"
},
{
"id": 0,
"type": "table",
"value": "vehicle"
},
{
"id": 1,
"type": "column",
"value": "model"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
3,166 | college_1 | spider:train_spider.json:3255 | list names of all departments ordered by their names. | SELECT dept_name FROM department ORDER BY dept_name | [
"list",
"names",
"of",
"all",
"departments",
"ordered",
"by",
"their",
"names",
"."
] | [
{
"id": 0,
"type": "table",
"value": "department"
},
{
"id": 1,
"type": "column",
"value": "dept_name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
3,167 | sales | bird:train.json:5405 | How many sales transactions were given by the customer named Joe L. Lopez? | SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.FirstName = 'Joe' AND T2.MiddleInitial = 'L' AND T2.LastName = 'Lopez' | [
"How",
"many",
"sales",
"transactions",
"were",
"given",
"by",
"the",
"customer",
"named",
"Joe",
"L.",
"Lopez",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "middleinitial"
},
{
"id": 3,
"type": "column",
"value": "customerid"
},
{
"id": 1,
"type": "table",
"value": "customers"
},
{
"id": 4,
"type": "column",
"value": "firstname"
},
{
"id": 8,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"B-VALUE",
"B-VALUE",
"O"
] |
3,168 | works_cycles | bird:train.json:7321 | What is the current payrate of Rob Walters? Calculate the percentage increment from his previous payrate. | SELECT T2.Rate , (MAX(T2.Rate) - MIN(T2.Rate)) * 100 / MAX(T2.Rate) FROM Person AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'Rob' AND T1.LastName = 'Walters' | [
"What",
"is",
"the",
"current",
"payrate",
"of",
"Rob",
"Walters",
"?",
"Calculate",
"the",
"percentage",
"increment",
"from",
"his",
"previous",
"payrate",
"."
] | [
{
"id": 2,
"type": "table",
"value": "employeepayhistory"
},
{
"id": 3,
"type": "column",
"value": "businessentityid"
},
{
"id": 4,
"type": "column",
"value": "firstname"
},
{
"id": 6,
"type": "column",
"value": "lastname"
},
{
"id": 7,
"type":... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"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",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
3,169 | book_press | bird:test.json:1994 | What are the 5 best books in terms of sale amount? Give me their titles and release dates. | SELECT title , release_date FROM book ORDER BY sale_amount DESC LIMIT 5 | [
"What",
"are",
"the",
"5",
"best",
"books",
"in",
"terms",
"of",
"sale",
"amount",
"?",
"Give",
"me",
"their",
"titles",
"and",
"release",
"dates",
"."
] | [
{
"id": 2,
"type": "column",
"value": "release_date"
},
{
"id": 3,
"type": "column",
"value": "sale_amount"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 0,
"type": "table",
"value": "book"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
17,
18
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
3,170 | document_management | spider:train_spider.json:4528 | Return the name of the document that has the most sections. | SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code GROUP BY t1.document_code ORDER BY count(*) DESC LIMIT 1 | [
"Return",
"the",
"name",
"of",
"the",
"document",
"that",
"has",
"the",
"most",
"sections",
"."
] | [
{
"id": 3,
"type": "table",
"value": "document_sections"
},
{
"id": 0,
"type": "column",
"value": "document_code"
},
{
"id": 1,
"type": "column",
"value": "document_name"
},
{
"id": 2,
"type": "table",
"value": "documents"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
3,171 | synthea | bird:train.json:1385 | Calculate the average period of Mr. Wesley Lemke's care plans. | SELECT CAST(SUM(strftime('%J', T2.STOP) - strftime('%J', T2.START)) AS REAL) / COUNT(T1.patient) FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mr.' AND T1.first = 'Wesley' AND T1.last = 'Lemke' | [
"Calculate",
"the",
"average",
"period",
"of",
"Mr.",
"Wesley",
"Lemke",
"'s",
"care",
"plans",
"."
] | [
{
"id": 1,
"type": "table",
"value": "careplans"
},
{
"id": 0,
"type": "table",
"value": "patients"
},
{
"id": 2,
"type": "column",
"value": "patient"
},
{
"id": 3,
"type": "column",
"value": "prefix"
},
{
"id": 6,
"type": "value",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"B-VALUE",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
3,172 | image_and_language | bird:train.json:7585 | How many images have "keyboard" as their object class? | SELECT COUNT(T1.IMG_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'keyboard' | [
"How",
"many",
"images",
"have",
"\"",
"keyboard",
"\"",
"as",
"their",
"object",
"class",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "obj_class_id"
},
{
"id": 1,
"type": "table",
"value": "obj_classes"
},
{
"id": 2,
"type": "column",
"value": "obj_class"
},
{
"id": 3,
"type": "value",
"value": "keyboard"
},
{
"id": 0,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
3,173 | law_episode | bird:train.json:1295 | List the names of all the cast members in the series. | SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.category = 'Cast' | [
"List",
"the",
"names",
"of",
"all",
"the",
"cast",
"members",
"in",
"the",
"series",
"."
] | [
{
"id": 5,
"type": "column",
"value": "person_id"
},
{
"id": 3,
"type": "column",
"value": "category"
},
{
"id": 1,
"type": "table",
"value": "credit"
},
{
"id": 2,
"type": "table",
"value": "person"
},
{
"id": 0,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
3,174 | codebase_comments | bird:train.json:683 | List all the method name of the solution path "graffen_NLog.Targets.Syslog\src\NLog.Targets.Syslog.sln
". | SELECT DISTINCT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'graffen_NLog.Targets.SyslogsrcNLog.Targets.Syslog.sln' | [
"List",
"all",
"the",
"method",
"name",
"of",
"the",
"solution",
"path",
"\"",
"graffen_NLog",
".",
"Targets",
".",
"Syslog\\src\\NLog",
".",
"Targets",
".",
"Syslog.sln",
"\n",
"\"",
"."
] | [
{
"id": 4,
"type": "value",
"value": "graffen_NLog.Targets.SyslogsrcNLog.Targets.Syslog.sln"
},
{
"id": 6,
"type": "column",
"value": "solutionid"
},
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 2,
"type": "table",
"value": "method"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
10,
11,
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
3,175 | music_platform_2 | bird:train.json:7948 | Indicates the title of all podcasts in the fiction category. | SELECT T2.title FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'fiction' | [
"Indicates",
"the",
"title",
"of",
"all",
"podcasts",
"in",
"the",
"fiction",
"category",
"."
] | [
{
"id": 1,
"type": "table",
"value": "categories"
},
{
"id": 5,
"type": "column",
"value": "podcast_id"
},
{
"id": 2,
"type": "table",
"value": "podcasts"
},
{
"id": 3,
"type": "column",
"value": "category"
},
{
"id": 4,
"type": "value",
"v... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
3,176 | real_estate_rentals | bird:test.json:1458 | What is the detailed description of the age category code 'Over 60'? | SELECT age_category_description FROM Ref_Age_Categories WHERE age_category_code = 'Over 60'; | [
"What",
"is",
"the",
"detailed",
"description",
"of",
"the",
"age",
"category",
"code",
"'",
"Over",
"60",
"'",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "age_category_description"
},
{
"id": 0,
"type": "table",
"value": "ref_age_categories"
},
{
"id": 2,
"type": "column",
"value": "age_category_code"
},
{
"id": 3,
"type": "value",
"value": "Over 60"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
3,177 | tracking_software_problems | spider:train_spider.json:5389 | Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems. | SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte" ) | [
"Which",
"problems",
"were",
"reported",
"before",
"the",
"date",
"of",
"any",
"problem",
"reported",
"by",
"the",
"staff",
"Lysanne",
"Turcotte",
"?",
"Give",
"me",
"the",
"ids",
"of",
"the",
"problems",
"."
] | [
{
"id": 3,
"type": "column",
"value": "date_problem_reported"
},
{
"id": 4,
"type": "column",
"value": "reported_by_staff_id"
},
{
"id": 6,
"type": "column",
"value": "staff_first_name"
},
{
"id": 8,
"type": "column",
"value": "staff_last_name"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10,
11,
12
]... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
3,178 | cre_Drama_Workshop_Groups | spider:train_spider.json:5167 | Check the invoices record and compute the average quantities ordered with the payment method "MasterCard". | SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = "MasterCard" | [
"Check",
"the",
"invoices",
"record",
"and",
"compute",
"the",
"average",
"quantities",
"ordered",
"with",
"the",
"payment",
"method",
"\"",
"MasterCard",
"\"",
"."
] | [
{
"id": 1,
"type": "column",
"value": "payment_method_code"
},
{
"id": 3,
"type": "column",
"value": "order_quantity"
},
{
"id": 2,
"type": "column",
"value": "MasterCard"
},
{
"id": 0,
"type": "table",
"value": "invoices"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
12,
13
]
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
3,179 | solvency_ii | spider:train_spider.json:4596 | Show the names of products that are in at least two events in ascending alphabetical order of product name. | SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 ORDER BY T1.Product_Name | [
"Show",
"the",
"names",
"of",
"products",
"that",
"are",
"in",
"at",
"least",
"two",
"events",
"in",
"ascending",
"alphabetical",
"order",
"of",
"product",
"name",
"."
] | [
{
"id": 2,
"type": "table",
"value": "products_in_events"
},
{
"id": 0,
"type": "column",
"value": "product_name"
},
{
"id": 4,
"type": "column",
"value": "product_id"
},
{
"id": 1,
"type": "table",
"value": "products"
},
{
"id": 3,
"type": "va... | [
{
"entity_id": 0,
"token_idxs": [
18
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
3,180 | wine_1 | spider:train_spider.json:6596 | What is the average price for wines not produced in Sonoma county? | SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma') | [
"What",
"is",
"the",
"average",
"price",
"for",
"wines",
"not",
"produced",
"in",
"Sonoma",
"county",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "appellations"
},
{
"id": 2,
"type": "column",
"value": "appelation"
},
{
"id": 4,
"type": "column",
"value": "county"
},
{
"id": 5,
"type": "value",
"value": "Sonoma"
},
{
"id": 1,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
3,181 | movie_1 | spider:train_spider.json:2457 | What is the average number of stars that each reviewer awards for a movie? | SELECT T2.name , avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name | [
"What",
"is",
"the",
"average",
"number",
"of",
"stars",
"that",
"each",
"reviewer",
"awards",
"for",
"a",
"movie",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "reviewer"
},
{
"id": 1,
"type": "table",
"value": "rating"
},
{
"id": 3,
"type": "column",
"value": "stars"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "column",
"value": "rid"... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
3,182 | card_games | bird:dev.json:501 | Which card name in the set 'Journey into Nyx Hero's Path' has the highest converted mana cost. | SELECT T1.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Journey into Nyx Hero''s Path' ORDER BY T1.convertedManaCost DESC LIMIT 1 | [
"Which",
"card",
"name",
"in",
"the",
"set",
"'",
"Journey",
"into",
"Nyx",
"Hero",
"'s",
"Path",
"'",
"has",
"the",
"highest",
"converted",
"mana",
"cost",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Journey into Nyx Hero's Path"
},
{
"id": 4,
"type": "column",
"value": "convertedmanacost"
},
{
"id": 6,
"type": "column",
"value": "setcode"
},
{
"id": 1,
"type": "table",
"value": "cards"
},
{
"id": 0,
"t... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8,
9,
10,
11,
12
]
},
{
"entity_id... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
3,183 | codebase_comments | bird:train.json:679 | What are the solution path of the tokenized name "matrix multiply"? | SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'matrix multiply' | [
"What",
"are",
"the",
"solution",
"path",
"of",
"the",
"tokenized",
"name",
"\"",
"matrix",
"multiply",
"\"",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "matrix multiply"
},
{
"id": 3,
"type": "column",
"value": "nametokenized"
},
{
"id": 6,
"type": "column",
"value": "solutionid"
},
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 2,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
10,
11
]
},
{
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
3,184 | european_football_2 | bird:dev.json:1048 | What is the overall rating of the football player Gabriel Tamas in year 2011? | SELECT t2.overall_rating FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Gabriel Tamas' AND strftime('%Y', t2.date) = '2011' | [
"What",
"is",
"the",
"overall",
"rating",
"of",
"the",
"football",
"player",
"Gabriel",
"Tamas",
"in",
"year",
"2011",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "player_attributes"
},
{
"id": 0,
"type": "column",
"value": "overall_rating"
},
{
"id": 3,
"type": "column",
"value": "player_api_id"
},
{
"id": 5,
"type": "value",
"value": "Gabriel Tamas"
},
{
"id": 4,
"t... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
3,186 | formula_1 | bird:dev.json:1015 | In which Formula_1 race was the lap record for the Austrian Grand Prix Circuit set? | WITH fastest_lap_times AS ( SELECT T1.raceId, T1.FastestLapTime, (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS REAL)) + (CAST(SUBSTR(T1.Fastes... | [
"In",
"which",
"Formula_1",
"race",
"was",
"the",
"lap",
"record",
"for",
"the",
"Austrian",
"Grand",
"Prix",
"Circuit",
"set",
"?"
] | [
{
"id": 1,
"type": "value",
"value": "Austrian Grand Prix"
},
{
"id": 3,
"type": "column",
"value": "min_time_in_seconds"
},
{
"id": 11,
"type": "table",
"value": "fastest_lap_times"
},
{
"id": 10,
"type": "column",
"value": "time_in_seconds"
},
{
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": ... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-TABLE",
"O",
"O"
] |
3,187 | social_media | bird:train.json:800 | How many reshared tweets are there in Texas? | SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.State = 'Texas' AND T1.IsReshare = 'TRUE' | [
"How",
"many",
"reshared",
"tweets",
"are",
"there",
"in",
"Texas",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "locationid"
},
{
"id": 6,
"type": "column",
"value": "isreshare"
},
{
"id": 1,
"type": "table",
"value": "location"
},
{
"id": 0,
"type": "table",
"value": "twitter"
},
{
"id": 2,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
7
... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
3,188 | student_1 | spider:train_spider.json:4068 | How many students does KAWA GORDON teaches? | SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "KAWA" AND T2.lastname = "GORDON" | [
"How",
"many",
"students",
"does",
"KAWA",
"GORDON",
"teaches",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "classroom"
},
{
"id": 3,
"type": "column",
"value": "firstname"
},
{
"id": 1,
"type": "table",
"value": "teachers"
},
{
"id": 5,
"type": "column",
"value": "lastname"
},
{
"id": 6,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-TABLE",
"O"
] |
3,189 | movie | bird:train.json:747 | Who was the actor that played in the movie "Batman" with the longest screentime? | SELECT T2.Name FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID INNER JOIN movie AS T3 ON T3.MovieID = T1.MovieID WHERE T3.Title = 'Batman' ORDER BY T1.screentime DESC LIMIT 1 | [
"Who",
"was",
"the",
"actor",
"that",
"played",
"in",
"the",
"movie",
"\"",
"Batman",
"\"",
"with",
"the",
"longest",
"screentime",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "screentime"
},
{
"id": 5,
"type": "table",
"value": "characters"
},
{
"id": 7,
"type": "column",
"value": "movieid"
},
{
"id": 8,
"type": "column",
"value": "actorid"
},
{
"id": 3,
"type": "value",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
3,190 | e_commerce | bird:test.json:104 | What is the average price of the products being ordered? | SELECT avg(T1.product_price) FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id | [
"What",
"is",
"the",
"average",
"price",
"of",
"the",
"products",
"being",
"ordered",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "product_price"
},
{
"id": 1,
"type": "table",
"value": "order_items"
},
{
"id": 3,
"type": "column",
"value": "product_id"
},
{
"id": 0,
"type": "table",
"value": "products"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"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",
"B-TABLE",
"O",
"B-TABLE",
"O"
] |
3,191 | public_review_platform | bird:train.json:4029 | Calculate the percentage of medium tip length in the list. List out the time when users of medium tip length join Yelp. | SELECT CAST(SUM(CASE WHEN T1.tip_length = 'Medium' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.tip_length), T2.user_yelping_since_year FROM Tips AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id | [
"Calculate",
"the",
"percentage",
"of",
"medium",
"tip",
"length",
"in",
"the",
"list",
".",
"List",
"out",
"the",
"time",
"when",
"users",
"of",
"medium",
"tip",
"length",
"join",
"Yelp",
"."
] | [
{
"id": 0,
"type": "column",
"value": "user_yelping_since_year"
},
{
"id": 5,
"type": "column",
"value": "tip_length"
},
{
"id": 3,
"type": "column",
"value": "user_id"
},
{
"id": 8,
"type": "value",
"value": "Medium"
},
{
"id": 2,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
16
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
3,192 | books | bird:train.json:5981 | Which publisher published Barry Eisler's book? | SELECT T4.publisher_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T3.author_name = 'Barry Eisler' | [
"Which",
"publisher",
"published",
"Barry",
"Eisler",
"'s",
"book",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "publisher_name"
},
{
"id": 3,
"type": "value",
"value": "Barry Eisler"
},
{
"id": 5,
"type": "column",
"value": "publisher_id"
},
{
"id": 2,
"type": "column",
"value": "author_name"
},
{
"id": 7,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
3,
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O",
"B-TABLE",
"O"
] |
3,193 | card_games | bird:dev.json:370 | How many borderless cards are illustrated in Russian? | SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.borderColor = 'borderless' AND T2.language = 'Russian' | [
"How",
"many",
"borderless",
"cards",
"are",
"illustrated",
"in",
"Russian",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "foreign_data"
},
{
"id": 4,
"type": "column",
"value": "bordercolor"
},
{
"id": 5,
"type": "value",
"value": "borderless"
},
{
"id": 6,
"type": "column",
"value": "language"
},
{
"id": 7,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
2
... | [
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
3,194 | university | bird:train.json:8058 | Calculate the number of female students at Arizona State University in 2014. | SELECT CAST(T2.num_students * T2.pct_female_students AS REAL) / 100 FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id WHERE T1.university_name = 'Arizona State University' AND T2.year = 2014 | [
"Calculate",
"the",
"number",
"of",
"female",
"students",
"at",
"Arizona",
"State",
"University",
"in",
"2014",
"."
] | [
{
"id": 6,
"type": "value",
"value": "Arizona State University"
},
{
"id": 10,
"type": "column",
"value": "pct_female_students"
},
{
"id": 1,
"type": "table",
"value": "university_year"
},
{
"id": 5,
"type": "column",
"value": "university_name"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
3,195 | world_development_indicators | bird:train.json:2206 | What proportion of Sub-Saharan Africa's countries have lower middle incomes? | SELECT SUM(CASE WHEN IncomeGroup = 'Lower middle income' THEN 1 ELSE 0 END) * 100.0 / COUNT(CountryCode) persentage FROM Country WHERE Region = 'Sub-Saharan Africa' | [
"What",
"proportion",
"of",
"Sub",
"-",
"Saharan",
"Africa",
"'s",
"countries",
"have",
"lower",
"middle",
"incomes",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "Lower middle income"
},
{
"id": 2,
"type": "value",
"value": "Sub-Saharan Africa"
},
{
"id": 4,
"type": "column",
"value": "countrycode"
},
{
"id": 7,
"type": "column",
"value": "incomegroup"
},
{
"id": 0,
... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3,
4,
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"O"
] |
3,196 | shakespeare | bird:train.json:3056 | In Act 1 Scene 2 of the Twelfth Night, what is the total number of of lines said by Viola? | SELECT COUNT(T4.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T2.Act = 1 AND T2.Scene = 2 AND T4.id = 1238 AND T4.CharName = 'Viola' AND T1.Title = 'Twelfth Night' | [
"In",
"Act",
"1",
"Scene",
"2",
"of",
"the",
"Twelfth",
"Night",
",",
"what",
"is",
"the",
"total",
"number",
"of",
"of",
"lines",
"said",
"by",
"Viola",
"?"
] | [
{
"id": 12,
"type": "value",
"value": "Twelfth Night"
},
{
"id": 3,
"type": "column",
"value": "character_id"
},
{
"id": 0,
"type": "table",
"value": "characters"
},
{
"id": 2,
"type": "table",
"value": "paragraphs"
},
{
"id": 15,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
1
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"B-COLUMN",
"B-VALUE",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
3,197 | european_football_2 | bird:dev.json:1100 | What is the highest overall rating received by Dorlan Pabon? | SELECT MAX(t2.overall_rating) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Dorlan Pabon' | [
"What",
"is",
"the",
"highest",
"overall",
"rating",
"received",
"by",
"Dorlan",
"Pabon",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "player_attributes"
},
{
"id": 4,
"type": "column",
"value": "overall_rating"
},
{
"id": 5,
"type": "column",
"value": "player_api_id"
},
{
"id": 3,
"type": "value",
"value": "Dorlan Pabon"
},
{
"id": 2,
"ty... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": [
4,
5
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
3,198 | codebase_comments | bird:train.json:590 | How many solutions contain files found within the repository most people like? | SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = ( SELECT MAX(Stars) FROM Repo ) | [
"How",
"many",
"solutions",
"contain",
"files",
"found",
"within",
"the",
"repository",
"most",
"people",
"like",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 3,
"type": "column",
"value": "repoid"
},
{
"id": 2,
"type": "column",
"value": "stars"
},
{
"id": 0,
"type": "table",
"value": "repo"
},
{
"id": 4,
"type": "column",
"value": "id"
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
3,199 | insurance_and_eClaims | spider:train_spider.json:1515 | Find the total and average amount paid in claim headers. | SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers | [
"Find",
"the",
"total",
"and",
"average",
"amount",
"paid",
"in",
"claim",
"headers",
"."
] | [
{
"id": 0,
"type": "table",
"value": "claim_headers"
},
{
"id": 1,
"type": "column",
"value": "amount_piad"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8,
9
]
},
{
"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,
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
3,200 | university | bird:train.json:8020 | Compute the average score of the university located in Brazil. | SELECT AVG(T2.score) FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Brazil' | [
"Compute",
"the",
"average",
"score",
"of",
"the",
"university",
"located",
"in",
"Brazil",
"."
] | [
{
"id": 5,
"type": "table",
"value": "university_ranking_year"
},
{
"id": 8,
"type": "column",
"value": "university_id"
},
{
"id": 1,
"type": "column",
"value": "country_name"
},
{
"id": 4,
"type": "table",
"value": "university"
},
{
"id": 7,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
3,201 | college_completion | bird:train.json:3689 | Provide the institute name with less than 200 graduate cohort of all races and genders in 2013. Also, please state the total number of full-time equivalent undergraduates for the institute. | SELECT T1.chronname, T2.grad_cohort FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T2.year = 2013 AND T2.gender = 'B' AND T2.race = 'X' AND T2.grad_cohort < 200 | [
"Provide",
"the",
"institute",
"name",
"with",
"less",
"than",
"200",
"graduate",
"cohort",
"of",
"all",
"races",
"and",
"genders",
"in",
"2013",
".",
"Also",
",",
"please",
"state",
"the",
"total",
"number",
"of",
"full",
"-",
"time",
"equivalent",
"under... | [
{
"id": 2,
"type": "table",
"value": "institution_details"
},
{
"id": 3,
"type": "table",
"value": "institution_grads"
},
{
"id": 1,
"type": "column",
"value": "grad_cohort"
},
{
"id": 0,
"type": "column",
"value": "chronname"
},
{
"id": 4,
"ty... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
8,
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
3,202 | music_2 | spider:train_spider.json:5243 | What instruments did the musician with the last name "Heilo" play in "Badlands"? | SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands" | [
"What",
"instruments",
"did",
"the",
"musician",
"with",
"the",
"last",
"name",
"\"",
"Heilo",
"\"",
"play",
"in",
"\"",
"Badlands",
"\"",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "instruments"
},
{
"id": 7,
"type": "table",
"value": "performance"
},
{
"id": 0,
"type": "column",
"value": "instrument"
},
{
"id": 10,
"type": "column",
"value": "bandmateid"
},
{
"id": 3,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id"... | [
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
3,203 | synthea | bird:train.json:1491 | Please include the full name of the patient who received a lung transplant. | SELECT T2.first, T2.last FROM procedures AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Transplant of lung (procedure)' | [
"Please",
"include",
"the",
"full",
"name",
"of",
"the",
"patient",
"who",
"received",
"a",
"lung",
"transplant",
"."
] | [
{
"id": 5,
"type": "value",
"value": "Transplant of lung (procedure)"
},
{
"id": 4,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "procedures"
},
{
"id": 3,
"type": "table",
"value": "patients"
},
{
"id": 6,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
0
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
3,204 | image_and_language | bird:train.json:7510 | What are the id of all the objects belonging to the transportation class? | SELECT OBJ_CLASS_ID FROM OBJ_CLASSES WHERE OBJ_CLASS IN ('bus', 'train', 'aeroplane', 'car', 'etc') | [
"What",
"are",
"the",
"i",
"d",
"of",
"all",
"the",
"objects",
"belonging",
"to",
"the",
"transportation",
"class",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "obj_class_id"
},
{
"id": 0,
"type": "table",
"value": "obj_classes"
},
{
"id": 2,
"type": "column",
"value": "obj_class"
},
{
"id": 5,
"type": "value",
"value": "aeroplane"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
3,205 | customers_and_orders | bird:test.json:259 | Show all hardware type products in ascending order of price. | SELECT product_name FROM Products WHERE product_type_code = "Hardware" ORDER BY product_price ASC | [
"Show",
"all",
"hardware",
"type",
"products",
"in",
"ascending",
"order",
"of",
"price",
"."
] | [
{
"id": 2,
"type": "column",
"value": "product_type_code"
},
{
"id": 4,
"type": "column",
"value": "product_price"
},
{
"id": 1,
"type": "column",
"value": "product_name"
},
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 3,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
3,206 | boat_1 | bird:test.json:906 | How many boats are there? | SELECT count(*) FROM Boats | [
"How",
"many",
"boats",
"are",
"there",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "boats"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
3,207 | movies_4 | bird:train.json:516 | What is the average revenue made by Latin movies? | SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Latin' | [
"What",
"is",
"the",
"average",
"revenue",
"made",
"by",
"Latin",
"movies",
"?"
] | [
{
"id": 5,
"type": "table",
"value": "movie_languages"
},
{
"id": 1,
"type": "column",
"value": "language_name"
},
{
"id": 6,
"type": "column",
"value": "language_id"
},
{
"id": 0,
"type": "table",
"value": "language"
},
{
"id": 7,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
3,208 | flight_4 | spider:train_spider.json:6807 | How many airlines are there? | SELECT count(*) FROM airlines | [
"How",
"many",
"airlines",
"are",
"there",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "airlines"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
3,209 | synthea | bird:train.json:1405 | Indicate the patient's full name with the lowest body mass index in kg/m2. | SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Body Mass Index' AND T2.UNITS = 'kg/m2' ORDER BY T2.VALUE LIMIT 1 | [
"Indicate",
"the",
"patient",
"'s",
"full",
"name",
"with",
"the",
"lowest",
"body",
"mass",
"index",
"in",
"kg",
"/",
"m2",
"."
] | [
{
"id": 7,
"type": "value",
"value": "Body Mass Index"
},
{
"id": 3,
"type": "table",
"value": "observations"
},
{
"id": 6,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "patients"
},
{
"id": 5,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
3,211 | beer_factory | bird:train.json:5265 | What is the average number of reviews of all the root beer brands from "CA" State? | SELECT CAST(COUNT(*) AS REAL) / COUNT(DISTINCT T1.BrandID) AS avgreview FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.State = 'CA' | [
"What",
"is",
"the",
"average",
"number",
"of",
"reviews",
"of",
"all",
"the",
"root",
"beer",
"brands",
"from",
"\"",
"CA",
"\"",
"State",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "rootbeerreview"
},
{
"id": 0,
"type": "table",
"value": "rootbeerbrand"
},
{
"id": 4,
"type": "column",
"value": "brandid"
},
{
"id": 2,
"type": "column",
"value": "state"
},
{
"id": 3,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
10,
11
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
17
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.