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 |
|---|---|---|---|---|---|---|---|---|
14,989 | cre_Drama_Workshop_Groups | spider:train_spider.json:5124 | What is the name of the marketing region that the store Rob Dinning belongs to? | SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = "Rob Dinning" | [
"What",
"is",
"the",
"name",
"of",
"the",
"marketing",
"region",
"that",
"the",
"store",
"Rob",
"Dinning",
"belongs",
"to",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "marketing_region_name"
},
{
"id": 5,
"type": "column",
"value": "marketing_region_code"
},
{
"id": 1,
"type": "table",
"value": "marketing_regions"
},
{
"id": 4,
"type": "column",
"value": "Rob Dinning"
},
{
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6,
7
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
2,
3
]
},
{
"entity_id": 4,
"token_idxs": [
11,
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
14,990 | world_development_indicators | bird:train.json:2106 | List the East Asia & Pacific countries which are under the High income: nonOECD group. Please include their alpha code. | SELECT CountryCode, Alpha2Code FROM Country WHERE Region = 'East Asia & Pacific' AND IncomeGroup = 'High income: nonOECD' | [
"List",
"the",
"East",
"Asia",
"&",
"Pacific",
"countries",
"which",
"are",
"under",
"the",
"High",
"income",
":",
"nonOECD",
"group",
".",
"Please",
"include",
"their",
"alpha",
"code",
"."
] | [
{
"id": 6,
"type": "value",
"value": "High income: nonOECD"
},
{
"id": 4,
"type": "value",
"value": "East Asia & Pacific"
},
{
"id": 1,
"type": "column",
"value": "countrycode"
},
{
"id": 5,
"type": "column",
"value": "incomegroup"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
20,
21
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
2,
3,
4,
5
... | [
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
14,991 | company_office | spider:train_spider.json:4555 | How many different industries are the companies in? | SELECT count(DISTINCT Industry) FROM Companies | [
"How",
"many",
"different",
"industries",
"are",
"the",
"companies",
"in",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "companies"
},
{
"id": 1,
"type": "column",
"value": "industry"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
14,992 | protein_institute | spider:train_spider.json:1918 | Show the institution type with the largest number of institutions. | SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1 | [
"Show",
"the",
"institution",
"type",
"with",
"the",
"largest",
"number",
"of",
"institutions",
"."
] | [
{
"id": 0,
"type": "table",
"value": "institution"
},
{
"id": 1,
"type": "column",
"value": "type"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,993 | flight_4 | spider:train_spider.json:6809 | How many airlines does Russia has? | SELECT count(*) FROM airlines WHERE country = 'Russia' | [
"How",
"many",
"airlines",
"does",
"Russia",
"has",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "airlines"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 2,
"type": "value",
"value": "Russia"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O"
] |
14,994 | movie_2 | bird:test.json:1834 | What is the name of the theater playing the most movies? | SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"theater",
"playing",
"the",
"most",
"movies",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "movietheaters"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
14,995 | works_cycles | bird:train.json:7083 | What percentage of people named Mary who wants Receive Email promotions of AdventureWorks and selected partners are store contacts? | SELECT CAST(SUM(CASE WHEN EmailPromotion = 2 THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN PersonType = 'SC' THEN 1 ELSE 0 END) FROM Person WHERE FirstName = 'Mary' | [
"What",
"percentage",
"of",
"people",
"named",
"Mary",
"who",
"wants",
"Receive",
"Email",
"promotions",
"of",
"AdventureWorks",
"and",
"selected",
"partners",
"are",
"store",
"contacts",
"?"
] | [
{
"id": 8,
"type": "column",
"value": "emailpromotion"
},
{
"id": 6,
"type": "column",
"value": "persontype"
},
{
"id": 1,
"type": "column",
"value": "firstname"
},
{
"id": 0,
"type": "table",
"value": "person"
},
{
"id": 2,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"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",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,996 | formula_1 | spider:train_spider.json:2230 | For each id of a driver who participated in at most 30 races, how many races did they participate in? | SELECT T1.driverid , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) <= 30 | [
"For",
"each",
"i",
"d",
"of",
"a",
"driver",
"who",
"participated",
"in",
"at",
"most",
"30",
"races",
",",
"how",
"many",
"races",
"did",
"they",
"participate",
"in",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "driverid"
},
{
"id": 3,
"type": "table",
"value": "drivers"
},
{
"id": 4,
"type": "table",
"value": "results"
},
{
"id": 5,
"type": "column",
"value": "raceid"
},
{
"id": 1,
"type": "table",
"value": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O"
] |
14,997 | law_episode | bird:train.json:1279 | What is the percentage of people who gave the "True North" episode a 1-star rating? | SELECT CAST(SUM(CASE WHEN T2.stars = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'True North' AND T1.episode_id = 'tt0629477' | [
"What",
"is",
"the",
"percentage",
"of",
"people",
"who",
"gave",
"the",
"\"",
"True",
"North",
"\"",
"episode",
"a",
"1",
"-",
"star",
"rating",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "episode_id"
},
{
"id": 4,
"type": "value",
"value": "True North"
},
{
"id": 5,
"type": "value",
"value": "tt0629477"
},
{
"id": 0,
"type": "table",
"value": "episode"
},
{
"id": 3,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10,
11
]
},
{
"entity_id": 5,
"t... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O"
] |
14,998 | machine_repair | spider:train_spider.json:2259 | List the names of technicians who have not been assigned to repair machines. | SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment) | [
"List",
"the",
"names",
"of",
"technicians",
"who",
"have",
"not",
"been",
"assigned",
"to",
"repair",
"machines",
"."
] | [
{
"id": 3,
"type": "table",
"value": "repair_assignment"
},
{
"id": 2,
"type": "column",
"value": "technician_id"
},
{
"id": 0,
"type": "table",
"value": "technician"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
14,999 | social_media | bird:train.json:804 | How many female Twitter users are there from Wisconsin? | SELECT COUNT(T1.Likes) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID INNER JOIN user AS T3 ON T3.UserID = T1.UserID WHERE T2.State = 'Wisconsin' AND T3.Gender = 'Female' | [
"How",
"many",
"female",
"Twitter",
"users",
"are",
"there",
"from",
"Wisconsin",
"?"
] | [
{
"id": 8,
"type": "column",
"value": "locationid"
},
{
"id": 5,
"type": "value",
"value": "Wisconsin"
},
{
"id": 2,
"type": "table",
"value": "location"
},
{
"id": 1,
"type": "table",
"value": "twitter"
},
{
"id": 3,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-VALUE",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
15,000 | baseball_1 | spider:train_spider.json:3634 | List the first and last name for players who participated in all star game in 1998. | SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998 | [
"List",
"the",
"first",
"and",
"last",
"name",
"for",
"players",
"who",
"participated",
"in",
"all",
"star",
"game",
"in",
"1998",
"."
] | [
{
"id": 0,
"type": "column",
"value": "name_first"
},
{
"id": 1,
"type": "column",
"value": "name_last"
},
{
"id": 6,
"type": "column",
"value": "player_id"
},
{
"id": 3,
"type": "table",
"value": "all_star"
},
{
"id": 2,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
15,001 | culture_company | spider:train_spider.json:6977 | What categories have two or more corresponding books that were made after 1989? | SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING count(*) >= 2 | [
"What",
"categories",
"have",
"two",
"or",
"more",
"corresponding",
"books",
"that",
"were",
"made",
"after",
"1989",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "book_club"
},
{
"id": 1,
"type": "column",
"value": "category"
},
{
"id": 2,
"type": "column",
"value": "year"
},
{
"id": 3,
"type": "value",
"value": "1989"
},
{
"id": 4,
"type": "value",
"value": "2"
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
15,002 | flight_1 | spider:train_spider.json:420 | What is the count of distinct employees with certificates? | SELECT count(DISTINCT eid) FROM Certificate | [
"What",
"is",
"the",
"count",
"of",
"distinct",
"employees",
"with",
"certificates",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "certificate"
},
{
"id": 1,
"type": "column",
"value": "eid"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
15,003 | student_loan | bird:train.json:4566 | Among the students who filed for bankruptcy, how many students are disabled? | SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name | [
"Among",
"the",
"students",
"who",
"filed",
"for",
"bankruptcy",
",",
"how",
"many",
"students",
"are",
"disabled",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "filed_for_bankrupcy"
},
{
"id": 0,
"type": "table",
"value": "disabled"
},
{
"id": 2,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
15,004 | movie_2 | bird:test.json:1829 | List in alphabetical order the titles of all movies. | SELECT title FROM movies ORDER BY title | [
"List",
"in",
"alphabetical",
"order",
"the",
"titles",
"of",
"all",
"movies",
"."
] | [
{
"id": 0,
"type": "table",
"value": "movies"
},
{
"id": 1,
"type": "column",
"value": "title"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
15,005 | tracking_grants_for_research | spider:train_spider.json:4396 | Which role is most common for the staff? | SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY count(*) DESC LIMIT 1 | [
"Which",
"role",
"is",
"most",
"common",
"for",
"the",
"staff",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "project_staff"
},
{
"id": 1,
"type": "column",
"value": "role_code"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
15,006 | legislator | bird:train.json:4841 | Give the state and type of term of the legislator with the google entity ID of kg:/m/02pyzk. | SELECT T2.state, T2.type FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.google_entity_id_id = 'kg:/m/02pyzk' | [
"Give",
"the",
"state",
"and",
"type",
"of",
"term",
"of",
"the",
"legislator",
"with",
"the",
"google",
"entity",
"ID",
"of",
"kg:/m/02pyzk",
"."
] | [
{
"id": 4,
"type": "column",
"value": "google_entity_id_id"
},
{
"id": 3,
"type": "table",
"value": "historical-terms"
},
{
"id": 5,
"type": "value",
"value": "kg:/m/02pyzk"
},
{
"id": 6,
"type": "column",
"value": "bioguide_id"
},
{
"id": 2,
"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12,
13,
14
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
15,007 | codebase_community | bird:dev.json:684 | Identify the percentage of teenage users. | SELECT CAST(SUM(IIF(Age BETWEEN 13 AND 18, 1, 0)) AS REAL) * 100 / COUNT(Id) FROM users | [
"Identify",
"the",
"percentage",
"of",
"teenage",
"users",
"."
] | [
{
"id": 0,
"type": "table",
"value": "users"
},
{
"id": 1,
"type": "value",
"value": "100"
},
{
"id": 5,
"type": "column",
"value": "age"
},
{
"id": 2,
"type": "column",
"value": "id"
},
{
"id": 6,
"type": "value",
"value": "13"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
4
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
15,008 | chicago_crime | bird:train.json:8705 | What types of domestic crimes have occurred the most in the North Lawndale community? | SELECT T2.domestic FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'North Lawndale' AND T2.domestic = 'TRUE' GROUP BY T2.domestic ORDER BY COUNT(T2.domestic) DESC LIMIT 1 | [
"What",
"types",
"of",
"domestic",
"crimes",
"have",
"occurred",
"the",
"most",
"in",
"the",
"North",
"Lawndale",
"community",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "community_area_name"
},
{
"id": 3,
"type": "column",
"value": "community_area_no"
},
{
"id": 1,
"type": "table",
"value": "community_area"
},
{
"id": 5,
"type": "value",
"value": "North Lawndale"
},
{
"id": 0,... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"O"
] |
15,009 | activity_1 | spider:train_spider.json:6730 | What are the phone, room, and building of the faculty member called Jerry Prince? | SELECT phone , room , building FROM Faculty WHERE Fname = "Jerry" AND Lname = "Prince" | [
"What",
"are",
"the",
"phone",
",",
"room",
",",
"and",
"building",
"of",
"the",
"faculty",
"member",
"called",
"Jerry",
"Prince",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "building"
},
{
"id": 0,
"type": "table",
"value": "faculty"
},
{
"id": 7,
"type": "column",
"value": "Prince"
},
{
"id": 1,
"type": "column",
"value": "phone"
},
{
"id": 4,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
15,010 | icfp_1 | spider:train_spider.json:2897 | Which papers' first author is affiliated with an institution in the country "Japan" and has last name "Ohori"? Give me the titles of the papers. | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "Japan" AND t2.authorder = 1 AND t1.lname = "Ohori" | [
"Which",
"papers",
"'",
"first",
"author",
"is",
"affiliated",
"with",
"an",
"institution",
"in",
"the",
"country",
"\"",
"Japan",
"\"",
"and",
"has",
"last",
"name",
"\"",
"Ohori",
"\"",
"?",
"Give",
"me",
"the",
"titles",
"of",
"the",
"papers",
"."
] | [
{
"id": 11,
"type": "table",
"value": "authorship"
},
{
"id": 6,
"type": "column",
"value": "authorder"
},
{
"id": 4,
"type": "column",
"value": "country"
},
{
"id": 10,
"type": "table",
"value": "authors"
},
{
"id": 12,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": [
27
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
... | [
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
15,011 | movie_3 | bird:train.json:9106 | Which film has the longest duration of film screening? Please give its title. | SELECT title FROM film ORDER BY length DESC LIMIT 1 | [
"Which",
"film",
"has",
"the",
"longest",
"duration",
"of",
"film",
"screening",
"?",
"Please",
"give",
"its",
"title",
"."
] | [
{
"id": 2,
"type": "column",
"value": "length"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 0,
"type": "table",
"value": "film"
}
] | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
15,012 | video_games | bird:train.json:3452 | What genre is the game 2010 FIFA World Cup South Africa? | SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '2010 FIFA World Cup South Africa' | [
"What",
"genre",
"is",
"the",
"game",
"2010",
"FIFA",
"World",
"Cup",
"South",
"Africa",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "2010 FIFA World Cup South Africa"
},
{
"id": 0,
"type": "column",
"value": "genre_name"
},
{
"id": 3,
"type": "column",
"value": "game_name"
},
{
"id": 5,
"type": "column",
"value": "genre_id"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5,
6,
7,
8,
9,
... | [
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
15,013 | world_development_indicators | bird:train.json:2198 | Please provide full name of any two countries using special trade system. | SELECT LongName FROM Country WHERE SystemOfTrade = 'Special trade system' LIMIT 2 | [
"Please",
"provide",
"full",
"name",
"of",
"any",
"two",
"countries",
"using",
"special",
"trade",
"system",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Special trade system"
},
{
"id": 2,
"type": "column",
"value": "systemoftrade"
},
{
"id": 1,
"type": "column",
"value": "longname"
},
{
"id": 0,
"type": "table",
"value": "country"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"O"
] |
15,014 | device | spider:train_spider.json:5070 | Show names of shops that have more than one kind of device in stock. | SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*) > 1 | [
"Show",
"names",
"of",
"shops",
"that",
"have",
"more",
"than",
"one",
"kind",
"of",
"device",
"in",
"stock",
"."
] | [
{
"id": 1,
"type": "column",
"value": "shop_name"
},
{
"id": 0,
"type": "column",
"value": "shop_id"
},
{
"id": 2,
"type": "table",
"value": "stock"
},
{
"id": 3,
"type": "table",
"value": "shop"
},
{
"id": 4,
"type": "value",
"value": "1"
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
0,
1
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
15,015 | student_loan | bird:train.json:4425 | How many students have been absent above 2 months? | SELECT COUNT(name) FROM longest_absense_from_school WHERE month > 2 | [
"How",
"many",
"students",
"have",
"been",
"absent",
"above",
"2",
"months",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "longest_absense_from_school"
},
{
"id": 1,
"type": "column",
"value": "month"
},
{
"id": 3,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
15,016 | food_inspection_2 | bird:train.json:6150 | How much is the salary of the employee who has the highest number of inspections done of all time? | SELECT T1.salary FROM employee AS T1 INNER JOIN ( SELECT employee_id, COUNT(inspection_id) FROM inspection GROUP BY employee_id ORDER BY COUNT(inspection_id) DESC LIMIT 1 ) AS T2 ON T1.employee_id = T2.employee_id | [
"How",
"much",
"is",
"the",
"salary",
"of",
"the",
"employee",
"who",
"has",
"the",
"highest",
"number",
"of",
"inspections",
"done",
"of",
"all",
"time",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "inspection_id"
},
{
"id": 2,
"type": "column",
"value": "employee_id"
},
{
"id": 3,
"type": "table",
"value": "inspection"
},
{
"id": 1,
"type": "table",
"value": "employee"
},
{
"id": 0,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
15,017 | college_1 | spider:train_spider.json:3327 | Find the first name and office of history professor who did not get a Ph.D. degree. | SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree != 'Ph.D.' | [
"Find",
"the",
"first",
"name",
"and",
"office",
"of",
"history",
"professor",
"who",
"did",
"not",
"get",
"a",
"Ph.D.",
"degree",
"."
] | [
{
"id": 8,
"type": "column",
"value": "prof_high_degree"
},
{
"id": 1,
"type": "column",
"value": "prof_office"
},
{
"id": 2,
"type": "table",
"value": "department"
},
{
"id": 0,
"type": "column",
"value": "emp_fname"
},
{
"id": 3,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
15,018 | school_bus | spider:train_spider.json:6365 | find the name of driver who is driving the school bus with the longest working history. | SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id = t2.driver_id ORDER BY years_working DESC LIMIT 1 | [
"find",
"the",
"name",
"of",
"driver",
"who",
"is",
"driving",
"the",
"school",
"bus",
"with",
"the",
"longest",
"working",
"history",
"."
] | [
{
"id": 3,
"type": "column",
"value": "years_working"
},
{
"id": 2,
"type": "table",
"value": "school_bus"
},
{
"id": 4,
"type": "column",
"value": "driver_id"
},
{
"id": 1,
"type": "table",
"value": "driver"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
15,019 | social_media | bird:train.json:822 | Calculate the total number of male tweet IDs. | SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Male' | [
"Calculate",
"the",
"total",
"number",
"of",
"male",
"tweet",
"IDs",
"."
] | [
{
"id": 0,
"type": "table",
"value": "twitter"
},
{
"id": 3,
"type": "column",
"value": "tweetid"
},
{
"id": 1,
"type": "column",
"value": "gender"
},
{
"id": 4,
"type": "column",
"value": "userid"
},
{
"id": 2,
"type": "value",
"value": "M... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
6,
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O"
] |
15,020 | company_employee | spider:train_spider.json:4108 | Show the names of employees that work for companies with sales bigger than 200. | SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200 | [
"Show",
"the",
"names",
"of",
"employees",
"that",
"work",
"for",
"companies",
"with",
"sales",
"bigger",
"than",
"200",
"."
] | [
{
"id": 2,
"type": "column",
"value": "sales_in_billion"
},
{
"id": 4,
"type": "table",
"value": "employment"
},
{
"id": 6,
"type": "column",
"value": "company_id"
},
{
"id": 7,
"type": "column",
"value": "people_id"
},
{
"id": 1,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
15,021 | mondial_geo | bird:train.json:8356 | How many people in Montenegro speaks Serbian? | SELECT T1.Percentage * T2.Population FROM language AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'Serbian' AND T2.Name = 'Montenegro' | [
"How",
"many",
"people",
"in",
"Montenegro",
"speaks",
"Serbian",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "percentage"
},
{
"id": 3,
"type": "column",
"value": "population"
},
{
"id": 8,
"type": "value",
"value": "Montenegro"
},
{
"id": 0,
"type": "table",
"value": "language"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2,
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
15,022 | apartment_rentals | spider:train_spider.json:1213 | Find the average room count of the apartments that have the "Studio" type code. | SELECT avg(room_count) FROM Apartments WHERE apt_type_code = "Studio" | [
"Find",
"the",
"average",
"room",
"count",
"of",
"the",
"apartments",
"that",
"have",
"the",
"\"",
"Studio",
"\"",
"type",
"code",
"."
] | [
{
"id": 1,
"type": "column",
"value": "apt_type_code"
},
{
"id": 0,
"type": "table",
"value": "apartments"
},
{
"id": 3,
"type": "column",
"value": "room_count"
},
{
"id": 2,
"type": "column",
"value": "Studio"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
14,
15
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
3,
4
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
15,023 | headphone_store | bird:test.json:960 | Find the total quantity of headphones stored in the Woodman store. | SELECT sum(t2.quantity) FROM store AS t1 JOIN stock AS t2 ON t1.store_id = t2.store_id WHERE t1.name = 'Woodman' | [
"Find",
"the",
"total",
"quantity",
"of",
"headphones",
"stored",
"in",
"the",
"Woodman",
"store",
"."
] | [
{
"id": 4,
"type": "column",
"value": "quantity"
},
{
"id": 5,
"type": "column",
"value": "store_id"
},
{
"id": 3,
"type": "value",
"value": "Woodman"
},
{
"id": 0,
"type": "table",
"value": "store"
},
{
"id": 1,
"type": "table",
"value": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
15,024 | cre_Doc_Tracking_DB | spider:train_spider.json:4187 | Show the location code of the country "Canada". | SELECT location_code FROM Ref_locations WHERE location_name = "Canada" | [
"Show",
"the",
"location",
"code",
"of",
"the",
"country",
"\"",
"Canada",
"\"",
"."
] | [
{
"id": 0,
"type": "table",
"value": "ref_locations"
},
{
"id": 1,
"type": "column",
"value": "location_code"
},
{
"id": 2,
"type": "column",
"value": "location_name"
},
{
"id": 3,
"type": "column",
"value": "Canada"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
15,025 | california_schools | bird:dev.json:75 | What is the educational level name for the schools with Breakfast Provision 2 in county code 37? Indicate the name of the school. | SELECT T2.EILName, T2.School FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`NSLP Provision Status` = 'Breakfast Provision 2' AND T1.`County Code` = 37 | [
"What",
"is",
"the",
"educational",
"level",
"name",
"for",
"the",
"schools",
"with",
"Breakfast",
"Provision",
"2",
"in",
"county",
"code",
"37",
"?",
"Indicate",
"the",
"name",
"of",
"the",
"school",
"."
] | [
{
"id": 5,
"type": "column",
"value": "NSLP Provision Status"
},
{
"id": 6,
"type": "value",
"value": "Breakfast Provision 2"
},
{
"id": 7,
"type": "column",
"value": "County Code"
},
{
"id": 0,
"type": "column",
"value": "eilname"
},
{
"id": 3,
... | [
{
"entity_id": 0,
"token_idxs": [
20
]
},
{
"entity_id": 1,
"token_idxs": [
23
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"enti... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
15,026 | institution_sports | bird:test.json:1678 | What are the provinces that have not only institutions founded before 1920, but also institutions founded after 1950? | SELECT Province FROM institution WHERE Founded < 1920 INTERSECT SELECT Province FROM institution WHERE Founded > 1950 | [
"What",
"are",
"the",
"provinces",
"that",
"have",
"not",
"only",
"institutions",
"founded",
"before",
"1920",
",",
"but",
"also",
"institutions",
"founded",
"after",
"1950",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "institution"
},
{
"id": 1,
"type": "column",
"value": "province"
},
{
"id": 2,
"type": "column",
"value": "founded"
},
{
"id": 3,
"type": "value",
"value": "1920"
},
{
"id": 4,
"type": "value",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
15
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
18
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
15,027 | country_language | bird:test.json:1363 | Return the names of langauges that contain the substring "ish". | SELECT name FROM languages WHERE name LIKE "%ish%" | [
"Return",
"the",
"names",
"of",
"langauges",
"that",
"contain",
"the",
"substring",
"\"",
"ish",
"\"",
"."
] | [
{
"id": 0,
"type": "table",
"value": "languages"
},
{
"id": 2,
"type": "column",
"value": "%ish%"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
15,028 | inn_1 | spider:train_spider.json:2613 | What is the name of the room that can accommodate the most people? | SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1; | [
"What",
"is",
"the",
"name",
"of",
"the",
"room",
"that",
"can",
"accommodate",
"the",
"most",
"people",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "maxoccupancy"
},
{
"id": 1,
"type": "column",
"value": "roomname"
},
{
"id": 0,
"type": "table",
"value": "rooms"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
15,029 | shakespeare | bird:train.json:3054 | In Shakespeare's works between 1600 to 1610, how many of these have a character as a "Third Servingman"? | SELECT COUNT(DISTINCT T2.work_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 T1.DATE BETWEEN 1600 AND 1610 AND T4.CharName = 'Third Servingman' | [
"In",
"Shakespeare",
"'s",
"works",
"between",
"1600",
"to",
"1610",
",",
"how",
"many",
"of",
"these",
"have",
"a",
"character",
"as",
"a",
"\"",
"Third",
"Servingman",
"\"",
"?"
] | [
{
"id": 9,
"type": "value",
"value": "Third Servingman"
},
{
"id": 3,
"type": "column",
"value": "character_id"
},
{
"id": 0,
"type": "table",
"value": "characters"
},
{
"id": 2,
"type": "table",
"value": "paragraphs"
},
{
"id": 12,
"type": "co... | [
{
"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",
"B-TABLE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
15,030 | works_cycles | bird:train.json:7218 | Is the phone number "114-555-0100" a work number or a home number? | SELECT T2.Name FROM PersonPhone AS T1 INNER JOIN PhoneNumberType AS T2 ON T1.PhoneNumberTypeID = T2.PhoneNumberTypeID WHERE T1.PhoneNumber = '114-555-0100' | [
"Is",
"the",
"phone",
"number",
"\"",
"114",
"-",
"555",
"-",
"0100",
"\"",
"a",
"work",
"number",
"or",
"a",
"home",
"number",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "phonenumbertypeid"
},
{
"id": 2,
"type": "table",
"value": "phonenumbertype"
},
{
"id": 4,
"type": "value",
"value": "114-555-0100"
},
{
"id": 1,
"type": "table",
"value": "personphone"
},
{
"id": 3,
"type... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2,
3
]
},
{
"entity_id": 4,
"token_idxs": [
5,
6,
7,
8,
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
15,032 | donor | bird:train.json:3300 | What are the coordinates of the school with the project "Wiping Away Bad Grades"? | SELECT T1.school_longitude, T1.school_latitude FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'Wiping Away Bad Grades' | [
"What",
"are",
"the",
"coordinates",
"of",
"the",
"school",
"with",
"the",
"project",
"\"",
"Wiping",
"Away",
"Bad",
"Grades",
"\"",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Wiping Away Bad Grades"
},
{
"id": 0,
"type": "column",
"value": "school_longitude"
},
{
"id": 1,
"type": "column",
"value": "school_latitude"
},
{
"id": 6,
"type": "column",
"value": "projectid"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6,
7
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
15,033 | software_company | bird:train.json:8519 | How many customers are from the place with the highest average income per month? | SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID ORDER BY T2.INCOME_K DESC LIMIT 1 | [
"How",
"many",
"customers",
"are",
"from",
"the",
"place",
"with",
"the",
"highest",
"average",
"income",
"per",
"month",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 2,
"type": "column",
"value": "income_k"
},
{
"id": 1,
"type": "table",
"value": "demog"
},
{
"id": 4,
"type": "column",
"value": "geoid"
},
{
"id": 3,
"type": "column",
"value": "... | [
{
"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": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
15,034 | shop_membership | spider:train_spider.json:5418 | Show the membership level with most number of members. | SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1 | [
"Show",
"the",
"membership",
"level",
"with",
"most",
"number",
"of",
"members",
"."
] | [
{
"id": 0,
"type": "table",
"value": "member"
},
{
"id": 1,
"type": "column",
"value": "level"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
15,035 | thrombosis_prediction | bird:dev.json:1254 | How many patients with a normal Ig A level came to the hospital after 1990/1/1? | SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.IGA BETWEEN 80 AND 500 AND strftime('%Y', T1.`First Date`) > '1990' | [
"How",
"many",
"patients",
"with",
"a",
"normal",
"Ig",
"A",
"level",
"came",
"to",
"the",
"hospital",
"after",
"1990/1/1",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "laboratory"
},
{
"id": 8,
"type": "column",
"value": "First Date"
},
{
"id": 0,
"type": "table",
"value": "patient"
},
{
"id": 6,
"type": "value",
"value": "1990"
},
{
"id": 3,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6,
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
15,036 | college_1 | spider:train_spider.json:3333 | Find the name of department that offers the class whose description has the word "Statistics". | SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%' | [
"Find",
"the",
"name",
"of",
"department",
"that",
"offers",
"the",
"class",
"whose",
"description",
"has",
"the",
"word",
"\"",
"Statistics",
"\"",
"."
] | [
{
"id": 3,
"type": "column",
"value": "crs_description"
},
{
"id": 4,
"type": "value",
"value": "%Statistics%"
},
{
"id": 2,
"type": "table",
"value": "department"
},
{
"id": 0,
"type": "column",
"value": "dept_name"
},
{
"id": 5,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
15,037 | farm | spider:train_spider.json:36 | Show the official names of the cities that have hosted more than one competition. | SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1 | [
"Show",
"the",
"official",
"names",
"of",
"the",
"cities",
"that",
"have",
"hosted",
"more",
"than",
"one",
"competition",
"."
] | [
{
"id": 3,
"type": "table",
"value": "farm_competition"
},
{
"id": 1,
"type": "column",
"value": "official_name"
},
{
"id": 0,
"type": "column",
"value": "host_city_id"
},
{
"id": 5,
"type": "column",
"value": "city_id"
},
{
"id": 2,
"type": "t... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
15,038 | wedding | spider:train_spider.json:1638 | Show the minimum, maximum, and average age for all people. | SELECT min(age) , max(age) , avg(age) FROM people | [
"Show",
"the",
"minimum",
",",
"maximum",
",",
"and",
"average",
"age",
"for",
"all",
"people",
"."
] | [
{
"id": 0,
"type": "table",
"value": "people"
},
{
"id": 1,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
15,039 | ship_1 | spider:train_spider.json:6254 | Find the ship type that are used by both ships with Panama and Malta flags. | SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta' | [
"Find",
"the",
"ship",
"type",
"that",
"are",
"used",
"by",
"both",
"ships",
"with",
"Panama",
"and",
"Malta",
"flags",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Panama"
},
{
"id": 4,
"type": "value",
"value": "Malta"
},
{
"id": 0,
"type": "table",
"value": "ship"
},
{
"id": 1,
"type": "column",
"value": "type"
},
{
"id": 2,
"type": "column",
"value": "flag"
}... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
15,040 | product_catalog | spider:train_spider.json:309 | Find all the catalog publishers whose name contains "Murray" | SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "%Murray%" | [
"Find",
"all",
"the",
"catalog",
"publishers",
"whose",
"name",
"contains",
"\"",
"Murray",
"\""
] | [
{
"id": 1,
"type": "column",
"value": "catalog_publisher"
},
{
"id": 0,
"type": "table",
"value": "catalogs"
},
{
"id": 2,
"type": "column",
"value": "%Murray%"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
15,041 | video_game | bird:test.json:1959 | List the name of each franchise and the number of games belonging to that franchise. | SELECT Franchise , COUNT(*) FROM game GROUP BY Franchise | [
"List",
"the",
"name",
"of",
"each",
"franchise",
"and",
"the",
"number",
"of",
"games",
"belonging",
"to",
"that",
"franchise",
"."
] | [
{
"id": 1,
"type": "column",
"value": "franchise"
},
{
"id": 0,
"type": "table",
"value": "game"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
15,042 | hockey | bird:train.json:7643 | For all the goalies born in year 1987, who are good in both right hand and left hand? Calculate his percentage of winning for every season he played. | SELECT T1.firstName, T1.lastName, T2.year, CAST(T2.W AS REAL) / T2.GP FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T1.birthYear = 1987 AND T1.shootCatch IS NULL | [
"For",
"all",
"the",
"goalies",
"born",
"in",
"year",
"1987",
",",
"who",
"are",
"good",
"in",
"both",
"right",
"hand",
"and",
"left",
"hand",
"?",
"Calculate",
"his",
"percentage",
"of",
"winning",
"for",
"every",
"season",
"he",
"played",
"."
] | [
{
"id": 9,
"type": "column",
"value": "shootcatch"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 7,
"type": "column",
"value": "birthyear"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
15,043 | voter_2 | spider:train_spider.json:5476 | Find the distinct ages of students who have secretary votes in the fall election cycle. | SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = "Fall" | [
"Find",
"the",
"distinct",
"ages",
"of",
"students",
"who",
"have",
"secretary",
"votes",
"in",
"the",
"fall",
"election",
"cycle",
"."
] | [
{
"id": 3,
"type": "column",
"value": "election_cycle"
},
{
"id": 6,
"type": "column",
"value": "secretary_vote"
},
{
"id": 2,
"type": "table",
"value": "voting_record"
},
{
"id": 1,
"type": "table",
"value": "student"
},
{
"id": 5,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13,
14
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_i... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O"
] |
15,044 | hr_1 | spider:train_spider.json:3460 | What are the employee ids for employees who have held two or more jobs? | SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2 | [
"What",
"are",
"the",
"employee",
"ids",
"for",
"employees",
"who",
"have",
"held",
"two",
"or",
"more",
"jobs",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "job_history"
},
{
"id": 1,
"type": "column",
"value": "employee_id"
},
{
"id": 2,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
15,045 | codebase_community | bird:dev.json:665 | What is the average monthly number of links created in 2010 for posts that have no more than 2 answers? | SELECT CAST(COUNT(T1.Id) AS REAL) / 12 FROM postLinks AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.AnswerCount <= 2 AND STRFTIME('%Y', T1.CreationDate) = '2010' | [
"What",
"is",
"the",
"average",
"monthly",
"number",
"of",
"links",
"created",
"in",
"2010",
"for",
"posts",
"that",
"have",
"no",
"more",
"than",
"2",
"answers",
"?"
] | [
{
"id": 9,
"type": "column",
"value": "creationdate"
},
{
"id": 5,
"type": "column",
"value": "answercount"
},
{
"id": 0,
"type": "table",
"value": "postlinks"
},
{
"id": 3,
"type": "column",
"value": "postid"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
6,
7
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
15,046 | synthea | bird:train.json:1481 | What is the care plan, procedure, medication and the patient's full name for encounter 6f2e3935-b203-493e-a9c0-f23e847b9798? | SELECT DISTINCT T3.DESCRIPTION, T4.DESCRIPTION, T5.DESCRIPTION, T1.first, T1.last FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT INNER JOIN careplans AS T3 ON T1.patient = T3.PATIENT INNER JOIN procedures AS T4 ON T1.patient = T4.PATIENT INNER JOIN medications AS T5 ON T1.patient = T5.PATIEN... | [
"What",
"is",
"the",
"care",
"plan",
",",
"procedure",
",",
"medication",
"and",
"the",
"patient",
"'s",
"full",
"name",
"for",
"encounter",
"6f2e3935",
"-",
"b203",
"-",
"493e",
"-",
"a9c0",
"-",
"f23e847b9798",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "6f2e3935-b203-493e-a9c0-f23e847b9798"
},
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 3,
"type": "table",
"value": "medications"
},
{
"id": 6,
"type": "table",
"value": "procedures"
},
{
"id":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
17,
... | [
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
15,049 | soccer_2 | spider:train_spider.json:5040 | Find names of colleges with enrollment greater than that of some (at least one) college in the FL state. | SELECT DISTINCT cName FROM college WHERE enr > (SELECT min(enr) FROM college WHERE state = 'FL') | [
"Find",
"names",
"of",
"colleges",
"with",
"enrollment",
"greater",
"than",
"that",
"of",
"some",
"(",
"at",
"least",
"one",
")",
"college",
"in",
"the",
"FL",
"state",
"."
] | [
{
"id": 0,
"type": "table",
"value": "college"
},
{
"id": 1,
"type": "column",
"value": "cname"
},
{
"id": 3,
"type": "column",
"value": "state"
},
{
"id": 2,
"type": "column",
"value": "enr"
},
{
"id": 4,
"type": "value",
"value": "FL"
}... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
20
]
},
{
"entity_id": 4,
"token_idxs": [
19
]
},
{
"enti... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
15,050 | university | bird:train.json:8038 | In which nation is Harvard University located? | SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'Harvard University' | [
"In",
"which",
"nation",
"is",
"Harvard",
"University",
"located",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Harvard University"
},
{
"id": 3,
"type": "column",
"value": "university_name"
},
{
"id": 0,
"type": "column",
"value": "country_name"
},
{
"id": 1,
"type": "table",
"value": "university"
},
{
"id": 5,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O"
] |
15,051 | college_2 | spider:train_spider.json:1380 | Who is the instructor with the highest salary? | SELECT name FROM instructor ORDER BY salary DESC LIMIT 1 | [
"Who",
"is",
"the",
"instructor",
"with",
"the",
"highest",
"salary",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "instructor"
},
{
"id": 2,
"type": "column",
"value": "salary"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
15,052 | language_corpus | bird:train.json:5797 | Which word has the most appearances in the Wikipedia page with the title of "Agricultura"? Give the word ID. | SELECT T2.wid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Agricultura' ORDER BY T2.occurrences DESC LIMIT 1 | [
"Which",
"word",
"has",
"the",
"most",
"appearances",
"in",
"the",
"Wikipedia",
"page",
"with",
"the",
"title",
"of",
"\"",
"Agricultura",
"\"",
"?",
"Give",
"the",
"word",
"ID",
"."
] | [
{
"id": 2,
"type": "table",
"value": "pages_words"
},
{
"id": 4,
"type": "value",
"value": "Agricultura"
},
{
"id": 5,
"type": "column",
"value": "occurrences"
},
{
"id": 1,
"type": "table",
"value": "pages"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
15,053 | allergy_1 | spider:train_spider.json:523 | Find the first name and gender of the student who has allergy to milk but not cat. | SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat") | [
"Find",
"the",
"first",
"name",
"and",
"gender",
"of",
"the",
"student",
"who",
"has",
"allergy",
"to",
"milk",
"but",
"not",
"cat",
"."
] | [
{
"id": 4,
"type": "table",
"value": "has_allergy"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 5,
"type": "column",
"value": "allergy"
},
{
"id": 1,
"type": "column",
"value": "fname"
},
{
"id": 3,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
15,054 | beer_factory | bird:train.json:5232 | What is the name of the root beer brand that has the longest history? | SELECT BrandName FROM rootbeerbrand WHERE FirstBrewedYear = ( SELECT MIN(FirstBrewedYear) FROM rootbeerbrand ) | [
"What",
"is",
"the",
"name",
"of",
"the",
"root",
"beer",
"brand",
"that",
"has",
"the",
"longest",
"history",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "firstbrewedyear"
},
{
"id": 0,
"type": "table",
"value": "rootbeerbrand"
},
{
"id": 1,
"type": "column",
"value": "brandname"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6,
7
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
15,055 | retail_world | bird:train.json:6645 | What is the ratio number of territories in Northern region and number territories in Western region? | SELECT CAST(( SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Northern' ) AS REAL) * 100 / ( SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Weste... | [
"What",
"is",
"the",
"ratio",
"number",
"of",
"territories",
"in",
"Northern",
"region",
"and",
"number",
"territories",
"in",
"Western",
"region",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "regiondescription"
},
{
"id": 1,
"type": "table",
"value": "territories"
},
{
"id": 5,
"type": "column",
"value": "territoryid"
},
{
"id": 4,
"type": "value",
"value": "Westerns"
},
{
"id": 6,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
15,056 | company_office | spider:train_spider.json:4572 | Sort all the industries in descending order of the count of companies in each industry | SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC | [
"Sort",
"all",
"the",
"industries",
"in",
"descending",
"order",
"of",
"the",
"count",
"of",
"companies",
"in",
"each",
"industry"
] | [
{
"id": 0,
"type": "table",
"value": "companies"
},
{
"id": 1,
"type": "column",
"value": "industry"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN"
] |
15,057 | menu | bird:train.json:5490 | How many menus were used in Dutcher House? | SELECT COUNT(*) FROM Menu WHERE location = 'Dutcher House' | [
"How",
"many",
"menus",
"were",
"used",
"in",
"Dutcher",
"House",
"?"
] | [
{
"id": 2,
"type": "value",
"value": "Dutcher House"
},
{
"id": 1,
"type": "column",
"value": "location"
},
{
"id": 0,
"type": "table",
"value": "menu"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
15,058 | movie | bird:train.json:768 | What is the MPAA rating and title of the movie starred by Leonardo DiCaprio with highest budget? | SELECT T1.`MPAA Rating`, T1.Title FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Name = 'Leonardo DiCaprio' ORDER BY T1.Budget DESC LIMIT 1 | [
"What",
"is",
"the",
"MPAA",
"rating",
"and",
"title",
"of",
"the",
"movie",
"starred",
"by",
"Leonardo",
"DiCaprio",
"with",
"highest",
"budget",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Leonardo DiCaprio"
},
{
"id": 0,
"type": "column",
"value": "MPAA Rating"
},
{
"id": 7,
"type": "table",
"value": "characters"
},
{
"id": 8,
"type": "column",
"value": "actorid"
},
{
"id": 9,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12,
13
]
},
{
"... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"O"
] |
15,059 | cre_Students_Information_Systems | bird:test.json:487 | Which students take 2 courses? List student id and details. | SELECT T1.student_id , T1.student_details FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2 | [
"Which",
"students",
"take",
"2",
"courses",
"?",
"List",
"student",
"i",
"d",
"and",
"details",
"."
] | [
{
"id": 1,
"type": "column",
"value": "student_details"
},
{
"id": 0,
"type": "column",
"value": "student_id"
},
{
"id": 2,
"type": "table",
"value": "students"
},
{
"id": 3,
"type": "table",
"value": "classes"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 1,
"token_idxs": [
10,
11
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O"
] |
15,060 | works_cycles | bird:train.json:7311 | Name all salaried employee who are hired in 2007 and later. | SELECT T1.FirstName, T1.LastName FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T2.HireDate) >= '2007' AND T2.SalariedFlag = 1 | [
"Name",
"all",
"salaried",
"employee",
"who",
"are",
"hired",
"in",
"2007",
"and",
"later",
"."
] | [
{
"id": 4,
"type": "column",
"value": "businessentityid"
},
{
"id": 6,
"type": "column",
"value": "salariedflag"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 3,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
0
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"B-COLUMN",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
15,061 | advertising_agencies | bird:test.json:2088 | How many invoices are there for each client id? | SELECT client_id , count(*) FROM Invoices GROUP BY client_id | [
"How",
"many",
"invoices",
"are",
"there",
"for",
"each",
"client",
"i",
"d",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "client_id"
},
{
"id": 0,
"type": "table",
"value": "invoices"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
15,062 | regional_sales | bird:train.json:2717 | What is the type of store located in the city with the highest amount of water area? | SELECT CASE WHEN MAX(`Water Area`) THEN Type END FROM `Store Locations` | [
"What",
"is",
"the",
"type",
"of",
"store",
"located",
"in",
"the",
"city",
"with",
"the",
"highest",
"amount",
"of",
"water",
"area",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "Store Locations"
},
{
"id": 2,
"type": "column",
"value": "Water Area"
},
{
"id": 1,
"type": "column",
"value": "type"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5,
6,
7
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
15,
16
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
15,064 | cs_semester | bird:train.json:951 | Give the full name and capability of students who failed in any courses. | SELECT T2.f_name, T2.l_name, T1.capability FROM RA AS T1 INNER JOIN student AS T2 ON T2.student_id = T1.student_id INNER JOIN registration AS T3 ON T2.student_id = T3.student_id WHERE T3.grade IS NULL OR T3.grade = '' | [
"Give",
"the",
"full",
"name",
"and",
"capability",
"of",
"students",
"who",
"failed",
"in",
"any",
"courses",
"."
] | [
{
"id": 3,
"type": "table",
"value": "registration"
},
{
"id": 2,
"type": "column",
"value": "capability"
},
{
"id": 6,
"type": "column",
"value": "student_id"
},
{
"id": 5,
"type": "table",
"value": "student"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
15,066 | movie_3 | bird:train.json:9181 | What are the names of the movies which Laura Brody starred in? | SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Laura' AND T1.last_name = 'Brody' | [
"What",
"are",
"the",
"names",
"of",
"the",
"movies",
"which",
"Laura",
"Brody",
"starred",
"in",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "film_actor"
},
{
"id": 5,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "column",
"value": "last_name"
},
{
"id": 9,
"type": "column",
"value": "actor_id"
},
{
"id": 4,
"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",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O"
] |
15,067 | restaurant | bird:train.json:1759 | Among the listed winery, what is the street number of the winery named "Tulocay Winery"? | SELECT T1.street_num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.label = 'Tulocay winery' AND T2.food_type = 'winery' | [
"Among",
"the",
"listed",
"winery",
",",
"what",
"is",
"the",
"street",
"number",
"of",
"the",
"winery",
"named",
"\"",
"Tulocay",
"Winery",
"\"",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Tulocay winery"
},
{
"id": 3,
"type": "column",
"value": "id_restaurant"
},
{
"id": 2,
"type": "table",
"value": "generalinfo"
},
{
"id": 0,
"type": "column",
"value": "street_num"
},
{
"id": 6,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": [
8,
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",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O"
] |
15,068 | codebase_community | bird:dev.json:556 | What is the average number of badges obtained by a user with over 200 views? | SELECT CAST(COUNT(T1.Id) AS REAL) / COUNT(DISTINCT T2.DisplayName) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.Views > 200 | [
"What",
"is",
"the",
"average",
"number",
"of",
"badges",
"obtained",
"by",
"a",
"user",
"with",
"over",
"200",
"views",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "displayname"
},
{
"id": 0,
"type": "table",
"value": "badges"
},
{
"id": 4,
"type": "column",
"value": "userid"
},
{
"id": 1,
"type": "table",
"value": "users"
},
{
"id": 2,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"enti... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
15,069 | card_games | bird:dev.json:488 | What's the code for the set which was released on 2017/7/14? | SELECT code FROM sets WHERE releaseDate = '2017-07-14' GROUP BY releaseDate, code | [
"What",
"'s",
"the",
"code",
"for",
"the",
"set",
"which",
"was",
"released",
"on",
"2017/7/14",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "releasedate"
},
{
"id": 3,
"type": "value",
"value": "2017-07-14"
},
{
"id": 0,
"type": "table",
"value": "sets"
},
{
"id": 2,
"type": "column",
"value": "code"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
15,070 | simpson_episodes | bird:train.json:4243 | List the categories for which Bonita Pietila was given credit and her role in creating the episodes. | SELECT DISTINCT category, role FROM Credit WHERE person = 'Bonita Pietila'; | [
"List",
"the",
"categories",
"for",
"which",
"Bonita",
"Pietila",
"was",
"given",
"credit",
"and",
"her",
"role",
"in",
"creating",
"the",
"episodes",
"."
] | [
{
"id": 4,
"type": "value",
"value": "Bonita Pietila"
},
{
"id": 1,
"type": "column",
"value": "category"
},
{
"id": 0,
"type": "table",
"value": "credit"
},
{
"id": 3,
"type": "column",
"value": "person"
},
{
"id": 2,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5,
6
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
15,071 | customers_and_addresses | spider:train_spider.json:6110 | Give me the name of the customer who ordered the most items in total. | SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) DESC LIMIT 1 | [
"Give",
"me",
"the",
"name",
"of",
"the",
"customer",
"who",
"ordered",
"the",
"most",
"items",
"in",
"total",
"."
] | [
{
"id": 3,
"type": "table",
"value": "customer_orders"
},
{
"id": 5,
"type": "column",
"value": "order_quantity"
},
{
"id": 0,
"type": "column",
"value": "customer_name"
},
{
"id": 1,
"type": "table",
"value": "order_items"
},
{
"id": 6,
"type"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9,
10
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"B-COLUMN",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O"
] |
15,072 | candidate_poll | spider:train_spider.json:2433 | What is all the information about all people? | SELECT * FROM people | [
"What",
"is",
"all",
"the",
"information",
"about",
"all",
"people",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "people"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"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",
"B-TABLE",
"O"
] |
15,073 | olympics | bird:train.json:4944 | How many gold medals does Henk Jan Zwolle have? | SELECT COUNT(T1.id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN medal AS T4 ON T3.medal_id = T4.id WHERE T1.full_name = 'Henk Jan Zwolle' AND T4.medal_name = 'Gold' | [
"How",
"many",
"gold",
"medals",
"does",
"Henk",
"Jan",
"Zwolle",
"have",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "competitor_event"
},
{
"id": 9,
"type": "table",
"value": "games_competitor"
},
{
"id": 5,
"type": "value",
"value": "Henk Jan Zwolle"
},
{
"id": 10,
"type": "column",
"value": "competitor_id"
},
{
"id": 6,
... | [
{
"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": [
5,
... | [
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
15,074 | cre_Docs_and_Epenses | spider:train_spider.json:6388 | What are the ids and details of all accounts? | SELECT account_id , account_details FROM Accounts | [
"What",
"are",
"the",
"ids",
"and",
"details",
"of",
"all",
"accounts",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "account_details"
},
{
"id": 1,
"type": "column",
"value": "account_id"
},
{
"id": 0,
"type": "table",
"value": "accounts"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
15,075 | shipping | bird:train.json:5588 | How much more pounds in total were transported to New York than to Chicago? | SELECT SUM(CASE WHEN T2.city_name = 'New York' THEN T1.weight ELSE 0 END) - SUM(CASE WHEN T2.city_name = 'Chicago' THEN T1.weight ELSE 0 END) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id | [
"How",
"much",
"more",
"pounds",
"in",
"total",
"were",
"transported",
"to",
"New",
"York",
"than",
"to",
"Chicago",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "city_name"
},
{
"id": 0,
"type": "table",
"value": "shipment"
},
{
"id": 6,
"type": "value",
"value": "New York"
},
{
"id": 2,
"type": "column",
"value": "city_id"
},
{
"id": 7,
"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",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
15,076 | manufactory_1 | spider:train_spider.json:5279 | Return the average, maximum, and total revenues across all manufacturers. | SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers | [
"Return",
"the",
"average",
",",
"maximum",
",",
"and",
"total",
"revenues",
"across",
"all",
"manufacturers",
"."
] | [
{
"id": 0,
"type": "table",
"value": "manufacturers"
},
{
"id": 1,
"type": "column",
"value": "revenue"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
15,077 | formula_1 | bird:dev.json:967 | State code numbers of top 3 yougest drivers. How many Netherlandic drivers among them? | SELECT COUNT(*) FROM ( SELECT T1.nationality FROM drivers AS T1 ORDER BY JULIANDAY(T1.dob) DESC LIMIT 3) AS T3 WHERE T3.nationality = 'Dutch' | [
"State",
"code",
"numbers",
"of",
"top",
"3",
"yougest",
"drivers",
".",
"How",
"many",
"Netherlandic",
"drivers",
"among",
"them",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "nationality"
},
{
"id": 2,
"type": "table",
"value": "drivers"
},
{
"id": 1,
"type": "value",
"value": "Dutch"
},
{
"id": 3,
"type": "column",
"value": "dob"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
15,078 | pilot_1 | bird:test.json:1135 | Find all locations of planes sorted by the plane name. | SELECT LOCATION FROM hangar ORDER BY plane_name | [
"Find",
"all",
"locations",
"of",
"planes",
"sorted",
"by",
"the",
"plane",
"name",
"."
] | [
{
"id": 2,
"type": "column",
"value": "plane_name"
},
{
"id": 1,
"type": "column",
"value": "location"
},
{
"id": 0,
"type": "table",
"value": "hangar"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
8,
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
15,079 | legislator | bird:train.json:4757 | How many current legislators chose Republican as their political party? | SELECT COUNT(*) FROM `current-terms` WHERE party = 'Republican' | [
"How",
"many",
"current",
"legislators",
"chose",
"Republican",
"as",
"their",
"political",
"party",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "current-terms"
},
{
"id": 2,
"type": "value",
"value": "Republican"
},
{
"id": 1,
"type": "column",
"value": "party"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"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",
"O",
"O",
"B-COLUMN",
"O"
] |
15,080 | student_loan | bird:train.json:4380 | Please list the departments the students are absent from school for 9 months are in. | SELECT T2.organ FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T1.`month` = 9 | [
"Please",
"list",
"the",
"departments",
"the",
"students",
"are",
"absent",
"from",
"school",
"for",
"9",
"months",
"are",
"in",
"."
] | [
{
"id": 1,
"type": "table",
"value": "longest_absense_from_school"
},
{
"id": 2,
"type": "table",
"value": "enlist"
},
{
"id": 0,
"type": "column",
"value": "organ"
},
{
"id": 3,
"type": "column",
"value": "month"
},
{
"id": 5,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O"
] |
15,081 | movie_1 | spider:train_spider.json:2510 | What are the titles of all movies that have rating star is between 3 and 5? | SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5 | [
"What",
"are",
"the",
"titles",
"of",
"all",
"movies",
"that",
"have",
"rating",
"star",
"is",
"between",
"3",
"and",
"5",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "rating"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "table",
"value": "movie"
},
{
"id": 3,
"type": "column",
"value": "stars"
},
{
"id": 6,
"type": "column",
"value": "mid"
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
15,082 | gas_company | spider:train_spider.json:2035 | find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion. | SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion | [
"find",
"the",
"rank",
",",
"company",
"names",
",",
"market",
"values",
"of",
"the",
"companies",
"in",
"the",
"banking",
"industry",
"order",
"by",
"their",
"sales",
"and",
"profits",
"in",
"billion",
"."
] | [
{
"id": 7,
"type": "column",
"value": "profits_billion"
},
{
"id": 4,
"type": "column",
"value": "main_industry"
},
{
"id": 6,
"type": "column",
"value": "sales_billion"
},
{
"id": 3,
"type": "column",
"value": "market_value"
},
{
"id": 0,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O"
] |
15,083 | beer_factory | bird:train.json:5299 | In the female customers, how many bought root beer that contains artificial sweetener? | SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeer AS T3 ON T2.RootBeerID = T3.RootBeerID INNER JOIN rootbeerbrand AS T4 ON T3.BrandID = T4.BrandID WHERE T1.Gender = 'F' AND T4.ArtificialSweetener = 'TRUE' | [
"In",
"the",
"female",
"customers",
",",
"how",
"many",
"bought",
"root",
"beer",
"that",
"contains",
"artificial",
"sweetener",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "artificialsweetener"
},
{
"id": 0,
"type": "table",
"value": "rootbeerbrand"
},
{
"id": 9,
"type": "table",
"value": "transaction"
},
{
"id": 1,
"type": "column",
"value": "customerid"
},
{
"id": 10,
"type... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
15,084 | soccer_2016 | bird:train.json:1990 | How many venues are located at Centurion, South Africa? | SELECT COUNT(T1.Venue_name) FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id INNER JOIN Country AS T3 ON T2.Country_Id = T3.Country_Id WHERE T3.country_name = 'South Africa' AND T2.city_name = 'Centurion' | [
"How",
"many",
"venues",
"are",
"located",
"at",
"Centurion",
",",
"South",
"Africa",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "country_name"
},
{
"id": 6,
"type": "value",
"value": "South Africa"
},
{
"id": 1,
"type": "column",
"value": "venue_name"
},
{
"id": 4,
"type": "column",
"value": "country_id"
},
{
"id": 7,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
15,086 | phone_market | spider:train_spider.json:1989 | Show the names of phones that are on market with number of shops greater than 50. | SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID WHERE T2.Num_of_shops > 50 | [
"Show",
"the",
"names",
"of",
"phones",
"that",
"are",
"on",
"market",
"with",
"number",
"of",
"shops",
"greater",
"than",
"50",
"."
] | [
{
"id": 2,
"type": "column",
"value": "num_of_shops"
},
{
"id": 4,
"type": "table",
"value": "phone_market"
},
{
"id": 7,
"type": "column",
"value": "market_id"
},
{
"id": 6,
"type": "column",
"value": "phone_id"
},
{
"id": 5,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
15,087 | driving_school | spider:train_spider.json:6627 | What are the details of the car with id 1? | SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1; | [
"What",
"are",
"the",
"details",
"of",
"the",
"car",
"with",
"i",
"d",
"1",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "vehicle_details"
},
{
"id": 2,
"type": "column",
"value": "vehicle_id"
},
{
"id": 0,
"type": "table",
"value": "vehicles"
},
{
"id": 3,
"type": "value",
"value": "1"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
15,088 | movie_1 | spider:train_spider.json:2528 | What are the names of reviewers who had rated 3 star and 4 star? | SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4 | [
"What",
"are",
"the",
"names",
"of",
"reviewers",
"who",
"had",
"rated",
"3",
"star",
"and",
"4",
"star",
"?"
] | [
{
"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": 6,
"type": "column",
"value": "rid"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
15,089 | olympics | bird:train.json:4971 | List out years that only have summer games. | SELECT games_year FROM games WHERE season != 'Winter' GROUP BY games_year HAVING COUNT(season) = 1 | [
"List",
"out",
"years",
"that",
"only",
"have",
"summer",
"games",
"."
] | [
{
"id": 1,
"type": "column",
"value": "games_year"
},
{
"id": 2,
"type": "column",
"value": "season"
},
{
"id": 3,
"type": "value",
"value": "Winter"
},
{
"id": 0,
"type": "table",
"value": "games"
},
{
"id": 4,
"type": "value",
"value": "1... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"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",
"B-TABLE",
"O"
] |
15,090 | planet_1 | bird:test.json:1891 | List all shipment id under Phillip J. Fry's management. | SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = "Phillip J. Fry"; | [
"List",
"all",
"shipment",
"i",
"d",
"under",
"Phillip",
"J.",
"Fry",
"'s",
"management",
"."
] | [
{
"id": 4,
"type": "column",
"value": "Phillip J. Fry"
},
{
"id": 0,
"type": "column",
"value": "shipmentid"
},
{
"id": 6,
"type": "column",
"value": "employeeid"
},
{
"id": 1,
"type": "table",
"value": "shipment"
},
{
"id": 2,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6,
7,
8
]
},
... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O"
] |
15,091 | entrepreneur | spider:train_spider.json:2264 | Count the number of entrepreneurs. | SELECT count(*) FROM entrepreneur | [
"Count",
"the",
"number",
"of",
"entrepreneurs",
"."
] | [
{
"id": 0,
"type": "table",
"value": "entrepreneur"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
15,092 | retails | bird:train.json:6783 | What is the total price charged for orders shipped by air without shipping instructions? | SELECT l_extendedprice * (1 - l_discount) * (1 + l_tax) AS totalprice FROM lineitem WHERE l_shipmode = 'AIR' AND l_shipinstruct = 'NONE' | [
"What",
"is",
"the",
"total",
"price",
"charged",
"for",
"orders",
"shipped",
"by",
"air",
"without",
"shipping",
"instructions",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "l_extendedprice"
},
{
"id": 3,
"type": "column",
"value": "l_shipinstruct"
},
{
"id": 1,
"type": "column",
"value": "l_shipmode"
},
{
"id": 8,
"type": "column",
"value": "l_discount"
},
{
"id": 0,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_i... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
15,093 | authors | bird:train.json:3600 | Find the names of papers which are published in the year 1996. | SELECT Title FROM Paper WHERE year = 1996 | [
"Find",
"the",
"names",
"of",
"papers",
"which",
"are",
"published",
"in",
"the",
"year",
"1996",
"."
] | [
{
"id": 0,
"type": "table",
"value": "paper"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "column",
"value": "year"
},
{
"id": 3,
"type": "value",
"value": "1996"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
15,094 | advertising_agencies | bird:test.json:2125 | List the client ids and the number of meeting for each client. | SELECT client_id , count(*) FROM Meetings GROUP BY client_id | [
"List",
"the",
"client",
"ids",
"and",
"the",
"number",
"of",
"meeting",
"for",
"each",
"client",
"."
] | [
{
"id": 1,
"type": "column",
"value": "client_id"
},
{
"id": 0,
"type": "table",
"value": "meetings"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.