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 |
|---|---|---|---|---|---|---|---|---|
13,055 | driving_school | spider:train_spider.json:6626 | Show the detail of vehicle with id 1. | SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1; | [
"Show",
"the",
"detail",
"of",
"vehicle",
"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": [
4
]
},
{
"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": ... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
13,056 | university_basketball | spider:train_spider.json:988 | Return the highest acc percent across all basketball matches. | SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1 | [
"Return",
"the",
"highest",
"acc",
"percent",
"across",
"all",
"basketball",
"matches",
"."
] | [
{
"id": 0,
"type": "table",
"value": "basketball_match"
},
{
"id": 1,
"type": "column",
"value": "acc_percent"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7,
8
]
},
{
"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,
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
13,057 | customers_and_orders | bird:test.json:233 | How many addresses do we have? | SELECT count(*) FROM Addresses | [
"How",
"many",
"addresses",
"do",
"we",
"have",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "addresses"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
13,058 | simpson_episodes | bird:train.json:4214 | In "Sex, Pies and Idiot Scrapes", how many percentage of votes did the 9 star score has? | SELECT T2.percent FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Sex, Pies and Idiot Scrapes' AND T2.stars = 9; | [
"In",
"\"",
"Sex",
",",
"Pies",
"and",
"Idiot",
"Scrapes",
"\"",
",",
"how",
"many",
"percentage",
"of",
"votes",
"did",
"the",
"9",
"star",
"score",
"has",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Sex, Pies and Idiot Scrapes"
},
{
"id": 3,
"type": "column",
"value": "episode_id"
},
{
"id": 0,
"type": "column",
"value": "percent"
},
{
"id": 1,
"type": "table",
"value": "episode"
},
{
"id": 4,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O"
] |
13,059 | climbing | spider:train_spider.json:1134 | Show the distinct names of mountains climbed by climbers from country "West Germany". | SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = "West Germany" | [
"Show",
"the",
"distinct",
"names",
"of",
"mountains",
"climbed",
"by",
"climbers",
"from",
"country",
"\"",
"West",
"Germany",
"\"",
"."
] | [
{
"id": 4,
"type": "column",
"value": "West Germany"
},
{
"id": 5,
"type": "column",
"value": "mountain_id"
},
{
"id": 2,
"type": "table",
"value": "mountain"
},
{
"id": 1,
"type": "table",
"value": "climber"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
12,
13
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
13,060 | cre_Doc_Tracking_DB | spider:train_spider.json:4231 | What are the codes of the locations with at least three documents? | SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3 | [
"What",
"are",
"the",
"codes",
"of",
"the",
"locations",
"with",
"at",
"least",
"three",
"documents",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "document_locations"
},
{
"id": 1,
"type": "column",
"value": "location_code"
},
{
"id": 2,
"type": "value",
"value": "3"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,061 | synthea | bird:train.json:1401 | List the ids of all the patients with condition that has a prevalence percentage of 18.8%. | SELECT DISTINCT T1.PATIENT FROM conditions AS T1 INNER JOIN all_prevalences AS T2 ON lower(T2.ITEM) = lower(T1.DESCRIPTION) WHERE T2."PREVALENCE PERCENTAGE" = CAST(18.8 AS float) | [
"List",
"the",
"ids",
"of",
"all",
"the",
"patients",
"with",
"condition",
"that",
"has",
"a",
"prevalence",
"percentage",
"of",
"18.8",
"%",
"."
] | [
{
"id": 3,
"type": "column",
"value": "PREVALENCE PERCENTAGE"
},
{
"id": 2,
"type": "table",
"value": "all_prevalences"
},
{
"id": 6,
"type": "column",
"value": "description"
},
{
"id": 1,
"type": "table",
"value": "conditions"
},
{
"id": 0,
"t... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
11,
12
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
15
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
13,062 | wrestler | spider:train_spider.json:1866 | Show teams that have suffered more than three eliminations. | SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3 | [
"Show",
"teams",
"that",
"have",
"suffered",
"more",
"than",
"three",
"eliminations",
"."
] | [
{
"id": 0,
"type": "table",
"value": "elimination"
},
{
"id": 1,
"type": "column",
"value": "team"
},
{
"id": 2,
"type": "value",
"value": "3"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"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",
"B-TABLE",
"O"
] |
13,063 | donor | bird:train.json:3253 | What payment method was used for Needed Resource Materials For My Students? | SELECT T3.payment_method FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T1.title = 'Needed Resource Materials For My Students' | [
"What",
"payment",
"method",
"was",
"used",
"for",
"Needed",
"Resource",
"Materials",
"For",
"My",
"Students",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Needed Resource Materials For My Students"
},
{
"id": 0,
"type": "column",
"value": "payment_method"
},
{
"id": 1,
"type": "table",
"value": "donations"
},
{
"id": 6,
"type": "column",
"value": "projectid"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
1,
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6,
7,
8,
9,
10,
11
]
},
{
"entity_id": 4,
"token_i... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
13,064 | address_1 | bird:test.json:778 | How many cities are in each state? | SELECT state , count(*) FROM City GROUP BY state | [
"How",
"many",
"cities",
"are",
"in",
"each",
"state",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "state"
},
{
"id": 0,
"type": "table",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,065 | world_development_indicators | bird:train.json:2158 | List out the table name and currency unit of countries using series code as FP.CPI.TOTL | SELECT T1.TableName, T1.CurrencyUnit FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.SeriesCode = 'FP.CPI.TOTL' | [
"List",
"out",
"the",
"table",
"name",
"and",
"currency",
"unit",
"of",
"countries",
"using",
"series",
"code",
"as",
"FP.CPI.TOTL"
] | [
{
"id": 1,
"type": "column",
"value": "currencyunit"
},
{
"id": 3,
"type": "table",
"value": "countrynotes"
},
{
"id": 5,
"type": "value",
"value": "FP.CPI.TOTL"
},
{
"id": 6,
"type": "column",
"value": "countrycode"
},
{
"id": 4,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
6,
7
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11,
1... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE"
] |
13,066 | software_company | bird:train.json:8578 | What is the geographic ID and total income per year when the average income is above 3300 dollar. | SELECT GEOID, INHABITANTS_K * INCOME_K * 12 FROM Demog WHERE INCOME_K > 3300 | [
"What",
"is",
"the",
"geographic",
"ID",
"and",
"total",
"income",
"per",
"year",
"when",
"the",
"average",
"income",
"is",
"above",
"3300",
"dollar",
"."
] | [
{
"id": 5,
"type": "column",
"value": "inhabitants_k"
},
{
"id": 2,
"type": "column",
"value": "income_k"
},
{
"id": 0,
"type": "table",
"value": "demog"
},
{
"id": 1,
"type": "column",
"value": "geoid"
},
{
"id": 3,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
13,067 | customers_and_addresses | spider:train_spider.json:6096 | Which contact channel codes were used less than 5 times? | SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count(customer_id) < 5 | [
"Which",
"contact",
"channel",
"codes",
"were",
"used",
"less",
"than",
"5",
"times",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "customer_contact_channels"
},
{
"id": 1,
"type": "column",
"value": "channel_code"
},
{
"id": 3,
"type": "column",
"value": "customer_id"
},
{
"id": 2,
"type": "value",
"value": "5"
}
] | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
13,068 | driving_school | spider:train_spider.json:6630 | What is the birthday of the staff member with first name as Janessa and last name as Sawayn? | SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"; | [
"What",
"is",
"the",
"birthday",
"of",
"the",
"staff",
"member",
"with",
"first",
"name",
"as",
"Janessa",
"and",
"last",
"name",
"as",
"Sawayn",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "date_of_birth"
},
{
"id": 2,
"type": "column",
"value": "first_name"
},
{
"id": 4,
"type": "column",
"value": "last_name"
},
{
"id": 3,
"type": "column",
"value": "Janessa"
},
{
"id": 5,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
14,
15
]... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O"
] |
13,069 | works_cycles | bird:train.json:7011 | Provide details of review from reviewer whose name begin with letter 'J'. State the product ID, rating and comments. | SELECT ProductID, Rating, Comments FROM ProductReview WHERE ReviewerName LIKE 'J%' | [
"Provide",
"details",
"of",
"review",
"from",
"reviewer",
"whose",
"name",
"begin",
"with",
"letter",
"'",
"J",
"'",
".",
"State",
"the",
"product",
"ID",
",",
"rating",
"and",
"comments",
"."
] | [
{
"id": 0,
"type": "table",
"value": "productreview"
},
{
"id": 4,
"type": "column",
"value": "reviewername"
},
{
"id": 1,
"type": "column",
"value": "productid"
},
{
"id": 3,
"type": "column",
"value": "comments"
},
{
"id": 2,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
17,
18
]
},
{
"entity_id": 2,
"token_idxs": [
20
]
},
{
"entity_id": 3,
"token_idxs": [
22
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
13,070 | e_government | spider:train_spider.json:6311 | What are the different types of forms? | SELECT DISTINCT form_type_code FROM forms | [
"What",
"are",
"the",
"different",
"types",
"of",
"forms",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "form_type_code"
},
{
"id": 0,
"type": "table",
"value": "forms"
}
] | [
{
"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"
] |
13,071 | superhero | bird:dev.json:769 | Which superhero has the most durability published by Dark Horse Comics? | SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T3.id = T2.attribute_id INNER JOIN publisher AS T4 ON T4.id = T1.publisher_id WHERE T4.publisher_name = 'Dark Horse Comics' AND T3.attribute_name = 'Durability' ORDER BY T2.attribute_value D... | [
"Which",
"superhero",
"has",
"the",
"most",
"durability",
"published",
"by",
"Dark",
"Horse",
"Comics",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "Dark Horse Comics"
},
{
"id": 2,
"type": "column",
"value": "attribute_value"
},
{
"id": 0,
"type": "column",
"value": "superhero_name"
},
{
"id": 6,
"type": "column",
"value": "publisher_name"
},
{
"id": 8,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
13,072 | public_review_platform | bird:train.json:3841 | How many Yelp_Businesses in Scottsdale have received positive comments in the Elitestar rating? | SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Scottsdale' AND stars > 3 | [
"How",
"many",
"Yelp_Businesses",
"in",
"Scottsdale",
"have",
"received",
"positive",
"comments",
"in",
"the",
"Elitestar",
"rating",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "business_id"
},
{
"id": 3,
"type": "value",
"value": "Scottsdale"
},
{
"id": 0,
"type": "table",
"value": "business"
},
{
"id": 4,
"type": "column",
"value": "stars"
},
{
"id": 2,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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,
"... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,073 | chinook_1 | spider:train_spider.json:887 | How many artists do not have any album? | SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM) | [
"How",
"many",
"artists",
"do",
"not",
"have",
"any",
"album",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "artistid"
},
{
"id": 0,
"type": "table",
"value": "artist"
},
{
"id": 2,
"type": "table",
"value": "album"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,074 | world_development_indicators | bird:train.json:2100 | On which years did Aruba got a footnote on the series code AG.LND.FRST.K2? | SELECT T2.Year FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'AG.LND.FRST.K2' | [
"On",
"which",
"years",
"did",
"Aruba",
"got",
"a",
"footnote",
"on",
"the",
"series",
"code",
"AG.LND.FRST.K2",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "AG.LND.FRST.K2"
},
{
"id": 3,
"type": "column",
"value": "countrycode"
},
{
"id": 6,
"type": "column",
"value": "seriescode"
},
{
"id": 2,
"type": "table",
"value": "footnotes"
},
{
"id": 4,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
13,075 | restaurant | bird:train.json:1673 | List all the cities in Sonoma County. | SELECT city FROM geographic WHERE county = 'sonoma county' | [
"List",
"all",
"the",
"cities",
"in",
"Sonoma",
"County",
"."
] | [
{
"id": 3,
"type": "value",
"value": "sonoma county"
},
{
"id": 0,
"type": "table",
"value": "geographic"
},
{
"id": 2,
"type": "column",
"value": "county"
},
{
"id": 1,
"type": "column",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
13,077 | simpson_episodes | bird:train.json:4213 | What was the first award won by the cast or crew member of the show? Give the name of the person who won the said award. | SELECT T2.award, T1.name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.result = 'Winner' ORDER BY T2.year LIMIT 1; | [
"What",
"was",
"the",
"first",
"award",
"won",
"by",
"the",
"cast",
"or",
"crew",
"member",
"of",
"the",
"show",
"?",
"Give",
"the",
"name",
"of",
"the",
"person",
"who",
"won",
"the",
"said",
"award",
"."
] | [
{
"id": 2,
"type": "table",
"value": "person"
},
{
"id": 4,
"type": "column",
"value": "result"
},
{
"id": 5,
"type": "value",
"value": "Winner"
},
{
"id": 7,
"type": "column",
"value": "person"
},
{
"id": 0,
"type": "column",
"value": "awa... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,078 | image_and_language | bird:train.json:7480 | How many images have at least one object sample in the class of "man"? | SELECT COUNT(T.IMG_ID) FROM ( SELECT T2.IMG_ID FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.OBJ_CLASS = 'man' GROUP BY T2.IMG_ID ) T | [
"How",
"many",
"images",
"have",
"at",
"least",
"one",
"object",
"sample",
"in",
"the",
"class",
"of",
"\"",
"man",
"\"",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "obj_class_id"
},
{
"id": 1,
"type": "table",
"value": "obj_classes"
},
{
"id": 3,
"type": "column",
"value": "obj_class"
},
{
"id": 2,
"type": "table",
"value": "img_obj"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
13,079 | music_1 | spider:train_spider.json:3600 | What is the maximum and minimum resolution of all songs that are approximately 3 minutes long? | SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "3:%" | [
"What",
"is",
"the",
"maximum",
"and",
"minimum",
"resolution",
"of",
"all",
"songs",
"that",
"are",
"approximately",
"3",
"minutes",
"long",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "resolution"
},
{
"id": 2,
"type": "column",
"value": "duration"
},
{
"id": 0,
"type": "table",
"value": "files"
},
{
"id": 1,
"type": "table",
"value": "song"
},
{
"id": 5,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,080 | music_4 | spider:train_spider.json:6175 | What are the famous title of the artists associated with volumes with more than 2 weeks on top? | SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 | [
"What",
"are",
"the",
"famous",
"title",
"of",
"the",
"artists",
"associated",
"with",
"volumes",
"with",
"more",
"than",
"2",
"weeks",
"on",
"top",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "famous_title"
},
{
"id": 3,
"type": "column",
"value": "weeks_on_top"
},
{
"id": 5,
"type": "column",
"value": "artist_id"
},
{
"id": 1,
"type": "table",
"value": "artist"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
15,
16,
17
]
},
{
"entity_id": 4,
"token_... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
13,081 | store_1 | spider:train_spider.json:553 | List every album ordered by album title in ascending order. | SELECT title FROM albums ORDER BY title; | [
"List",
"every",
"album",
"ordered",
"by",
"album",
"title",
"in",
"ascending",
"order",
"."
] | [
{
"id": 0,
"type": "table",
"value": "albums"
},
{
"id": 1,
"type": "column",
"value": "title"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
13,082 | software_company | bird:train.json:8547 | In female customers ages from 50 to 60, how many of them has an number of inhabitants ranges from 19 to 24? | SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Female' AND T1.age >= 50 AND T1.age <= 60 AND T2.INHABITANTS_K >= 19 AND T2.INHABITANTS_K <= 24 | [
"In",
"female",
"customers",
"ages",
"from",
"50",
"to",
"60",
",",
"how",
"many",
"of",
"them",
"has",
"an",
"number",
"of",
"inhabitants",
"ranges",
"from",
"19",
"to",
"24",
"?"
] | [
{
"id": 9,
"type": "column",
"value": "inhabitants_k"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 5,
"type": "value",
"value": "Female"
},
{
"id": 1,
"type": "table",
"value": "demog"
},
{
"id": 3,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
1
... | [
"O",
"B-VALUE",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
13,083 | insurance_policies | spider:train_spider.json:3861 | Give me the claim date, settlement date for all the claims whose claimed amount is larger than the average. | SELECT Date_Claim_Made , Date_Claim_Settled FROM Claims WHERE Amount_Claimed > ( SELECT avg(Amount_Claimed) FROM Claims ) | [
"Give",
"me",
"the",
"claim",
"date",
",",
"settlement",
"date",
"for",
"all",
"the",
"claims",
"whose",
"claimed",
"amount",
"is",
"larger",
"than",
"the",
"average",
"."
] | [
{
"id": 2,
"type": "column",
"value": "date_claim_settled"
},
{
"id": 1,
"type": "column",
"value": "date_claim_made"
},
{
"id": 3,
"type": "column",
"value": "amount_claimed"
},
{
"id": 0,
"type": "table",
"value": "claims"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_id... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,084 | cre_Theme_park | spider:train_spider.json:5961 | What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction? | SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "254 Ottilie Junction" OR T2.How_to_Get_There = "bus" | [
"What",
"are",
"the",
"names",
"of",
"tourist",
"attractions",
"that",
"can",
"be",
"reached",
"by",
"bus",
"or",
"is",
"at",
"address",
"254",
"Ottilie",
"Junction",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "254 Ottilie Junction"
},
{
"id": 2,
"type": "table",
"value": "tourist_attractions"
},
{
"id": 6,
"type": "column",
"value": "how_to_get_there"
},
{
"id": 3,
"type": "column",
"value": "location_id"
},
{
"id":... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
13,085 | shop_membership | spider:train_spider.json:5401 | What is the number of branches that have more than the average number of memberships? | SELECT count(*) FROM branch WHERE membership_amount > (SELECT avg(membership_amount) FROM branch) | [
"What",
"is",
"the",
"number",
"of",
"branches",
"that",
"have",
"more",
"than",
"the",
"average",
"number",
"of",
"memberships",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "membership_amount"
},
{
"id": 0,
"type": "table",
"value": "branch"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"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",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,086 | baseball_1 | spider:train_spider.json:3647 | Which 3 players won the most player awards? List their full name and id. | SELECT T1.name_first , T1.name_last , T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3; | [
"Which",
"3",
"players",
"won",
"the",
"most",
"player",
"awards",
"?",
"List",
"their",
"full",
"name",
"and",
"i",
"d."
] | [
{
"id": 4,
"type": "table",
"value": "player_award"
},
{
"id": 1,
"type": "column",
"value": "name_first"
},
{
"id": 0,
"type": "column",
"value": "player_id"
},
{
"id": 2,
"type": "column",
"value": "name_last"
},
{
"id": 3,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
13,087 | movie_3 | bird:train.json:9388 | List all the films that are rated as PG-13. | SELECT title FROM film WHERE rating = 'PG-13' | [
"List",
"all",
"the",
"films",
"that",
"are",
"rated",
"as",
"PG-13",
"."
] | [
{
"id": 2,
"type": "column",
"value": "rating"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 3,
"type": "value",
"value": "PG-13"
},
{
"id": 0,
"type": "table",
"value": "film"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"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": ... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
13,088 | codebase_community | bird:dev.json:642 | How many posts were created on 21st July, 2010? | SELECT COUNT(id) FROM postHistory WHERE date(CreationDate) = '2010-07-21' | [
"How",
"many",
"posts",
"were",
"created",
"on",
"21st",
"July",
",",
"2010",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "creationdate"
},
{
"id": 0,
"type": "table",
"value": "posthistory"
},
{
"id": 1,
"type": "value",
"value": "2010-07-21"
},
{
"id": 2,
"type": "column",
"value": "id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4,
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
13,089 | student_club | bird:dev.json:1432 | Among the members with t-shirt size of medium, what is the percentage of the amount 50 received by the Student_Club? | SELECT CAST(SUM(CASE WHEN T2.amount = 50 THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(T2.income_id) FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Member' AND T1.t_shirt_size = 'Medium' | [
"Among",
"the",
"members",
"with",
"t",
"-",
"shirt",
"size",
"of",
"medium",
",",
"what",
"is",
"the",
"percentage",
"of",
"the",
"amount",
"50",
"received",
"by",
"the",
"Student_Club",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "link_to_member"
},
{
"id": 6,
"type": "column",
"value": "t_shirt_size"
},
{
"id": 2,
"type": "column",
"value": "member_id"
},
{
"id": 9,
"type": "column",
"value": "income_id"
},
{
"id": 4,
"type": "colu... | [
{
"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": [
2
]
},
{
... | [
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
13,090 | soccer_2016 | bird:train.json:2005 | How many victory matches were there in 2008? | SELECT COUNT(Match_Id) FROM Match WHERE Match_Date LIKE '2008%' AND Match_Winner IS NOT NULL | [
"How",
"many",
"victory",
"matches",
"were",
"there",
"in",
"2008",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "match_winner"
},
{
"id": 2,
"type": "column",
"value": "match_date"
},
{
"id": 1,
"type": "column",
"value": "match_id"
},
{
"id": 0,
"type": "table",
"value": "match"
},
{
"id": 3,
"type": "value",
"v... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
13,091 | store_product | spider:train_spider.json:4925 | What is the city with the most number of flagship stores? | SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"city",
"with",
"the",
"most",
"number",
"of",
"flagship",
"stores",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "headquartered_city"
},
{
"id": 3,
"type": "table",
"value": "store_district"
},
{
"id": 4,
"type": "column",
"value": "district_id"
},
{
"id": 1,
"type": "table",
"value": "district"
},
{
"id": 5,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,092 | club_1 | spider:train_spider.json:4271 | Give me the first name and last name for all the female members of the club "Bootup Baltimore". | SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.sex = "F" | [
"Give",
"me",
"the",
"first",
"name",
"and",
"last",
"name",
"for",
"all",
"the",
"female",
"members",
"of",
"the",
"club",
"\"",
"Bootup",
"Baltimore",
"\"",
"."
] | [
{
"id": 7,
"type": "column",
"value": "Bootup Baltimore"
},
{
"id": 4,
"type": "table",
"value": "member_of_club"
},
{
"id": 6,
"type": "column",
"value": "clubname"
},
{
"id": 2,
"type": "table",
"value": "student"
},
{
"id": 10,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
12,
14
]
},
{
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-TABLE",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
13,093 | movie_1 | spider:train_spider.json:2449 | How many movie ratings have more than 3 stars? | SELECT count(*) FROM Rating WHERE stars > 3 | [
"How",
"many",
"movie",
"ratings",
"have",
"more",
"than",
"3",
"stars",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "rating"
},
{
"id": 1,
"type": "column",
"value": "stars"
},
{
"id": 2,
"type": "value",
"value": "3"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
13,094 | movielens | bird:train.json:2257 | What is the average rating of the newest movies from France? | SELECT AVG(T1.rating) FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'france' AND T2.year = 4 | [
"What",
"is",
"the",
"average",
"rating",
"of",
"the",
"newest",
"movies",
"from",
"France",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "movieid"
},
{
"id": 4,
"type": "column",
"value": "country"
},
{
"id": 0,
"type": "table",
"value": "u2base"
},
{
"id": 1,
"type": "table",
"value": "movies"
},
{
"id": 2,
"type": "column",
"value": "r... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
13,095 | ship_1 | spider:train_spider.json:6250 | Which flag is most widely used among all ships? | SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1 | [
"Which",
"flag",
"is",
"most",
"widely",
"used",
"among",
"all",
"ships",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "ship"
},
{
"id": 1,
"type": "column",
"value": "flag"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"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",
"B-TABLE",
"O"
] |
13,096 | menu | bird:train.json:5574 | Among the menu pages on which the dish "Paysanne Soup" had appeared, how many of them had a stable price for the dish? | SELECT SUM(CASE WHEN T1.name = 'Paysanne Soup' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.highest_price IS NULL | [
"Among",
"the",
"menu",
"pages",
"on",
"which",
"the",
"dish",
"\"",
"Paysanne",
"Soup",
"\"",
"had",
"appeared",
",",
"how",
"many",
"of",
"them",
"had",
"a",
"stable",
"price",
"for",
"the",
"dish",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "highest_price"
},
{
"id": 8,
"type": "value",
"value": "Paysanne Soup"
},
{
"id": 1,
"type": "table",
"value": "menuitem"
},
{
"id": 4,
"type": "column",
"value": "dish_id"
},
{
"id": 0,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
25
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,097 | bike_share_1 | bird:train.json:9083 | Is there any intercity trip were made during 2014? If yes, list out the city name for the start and end station. | SELECT T1.start_station_name, T1.end_station_name FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.start_date LIKE '%/%/2014%' AND T1.start_station_name != T1.end_station_name | [
"Is",
"there",
"any",
"intercity",
"trip",
"were",
"made",
"during",
"2014",
"?",
"If",
"yes",
",",
"list",
"out",
"the",
"city",
"name",
"for",
"the",
"start",
"and",
"end",
"station",
"."
] | [
{
"id": 0,
"type": "column",
"value": "start_station_name"
},
{
"id": 1,
"type": "column",
"value": "end_station_name"
},
{
"id": 5,
"type": "column",
"value": "start_date"
},
{
"id": 6,
"type": "value",
"value": "%/%/2014%"
},
{
"id": 3,
"type... | [
{
"entity_id": 0,
"token_idxs": [
21
]
},
{
"entity_id": 1,
"token_idxs": [
22
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
23
]
},
{
"entity_id": 4,
"token_idxs": [
17
]
},... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-COLUMN",
"B-TABLE",
"O"
] |
13,098 | beer_factory | bird:train.json:5355 | How many purchases were made at Sac State American River Courtyard using Master Card? | SELECT COUNT(T1.TransactionID) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.LocationName = 'Sac State American River Courtyard' AND T1.CreditCardType = 'MasterCard' | [
"How",
"many",
"purchases",
"were",
"made",
"at",
"Sac",
"State",
"American",
"River",
"Courtyard",
"using",
"Master",
"Card",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Sac State American River Courtyard"
},
{
"id": 6,
"type": "column",
"value": "creditcardtype"
},
{
"id": 2,
"type": "column",
"value": "transactionid"
},
{
"id": 4,
"type": "column",
"value": "locationname"
},
{
... | [
{
"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": [
6,
7,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
13,099 | books | bird:train.json:6093 | Provide the publisher name of the book with ISBN 76092025986. | SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.isbn13 = 76092025986 | [
"Provide",
"the",
"publisher",
"name",
"of",
"the",
"book",
"with",
"ISBN",
"76092025986",
"."
] | [
{
"id": 0,
"type": "column",
"value": "publisher_name"
},
{
"id": 5,
"type": "column",
"value": "publisher_id"
},
{
"id": 4,
"type": "value",
"value": "76092025986"
},
{
"id": 2,
"type": "table",
"value": "publisher"
},
{
"id": 3,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
13,100 | music_platform_2 | bird:train.json:7935 | Which category does the podcast titled 'SciFi Tech Talk' belong to? | SELECT T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'SciFi Tech Talk' | [
"Which",
"category",
"does",
"the",
"podcast",
"titled",
"'",
"SciFi",
"Tech",
"Talk",
"'",
"belong",
"to",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "SciFi Tech Talk"
},
{
"id": 1,
"type": "table",
"value": "categories"
},
{
"id": 5,
"type": "column",
"value": "podcast_id"
},
{
"id": 0,
"type": "column",
"value": "category"
},
{
"id": 2,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
7,
8,
... | [
"O",
"B-COLUMN",
"B-TABLE",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O"
] |
13,101 | synthea | bird:train.json:1519 | Among the patients with viral sinusitis condition, which patient's gender is most affected? Provide the number for each respectively. | SELECT SUM(CASE WHEN T1.gender = 'F' THEN 1 ELSE 0 END), SUM(CASE WHEN T1.gender = 'M' THEN 1 ELSE 0 END) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Viral sinusitis (disorder)' | [
"Among",
"the",
"patients",
"with",
"viral",
"sinusitis",
"condition",
",",
"which",
"patient",
"'s",
"gender",
"is",
"most",
"affected",
"?",
"Provide",
"the",
"number",
"for",
"each",
"respectively",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Viral sinusitis (disorder)"
},
{
"id": 2,
"type": "column",
"value": "description"
},
{
"id": 1,
"type": "table",
"value": "conditions"
},
{
"id": 0,
"type": "table",
"value": "patients"
},
{
"id": 4,
"type... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4,
5
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,102 | synthea | bird:train.json:1378 | Give the procedure description of Ms. Jacquelyn Shanahan on 2009/8/9. | SELECT DISTINCT T2.description FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Ms.' AND T1.first = 'Jacquelyn' AND T1.last = 'Shanahan' AND T2.DATE = '2009-08-09' | [
"Give",
"the",
"procedure",
"description",
"of",
"Ms.",
"Jacquelyn",
"Shanahan",
"on",
"2009/8/9",
"."
] | [
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "procedures"
},
{
"id": 11,
"type": "value",
"value": "2009-08-09"
},
{
"id": 7,
"type": "value",
"value": "Jacquelyn"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"B-VALUE",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
13,103 | cre_Doc_Tracking_DB | spider:train_spider.json:4244 | Show the ids of all employees who have destroyed a document. | SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed | [
"Show",
"the",
"ids",
"of",
"all",
"employees",
"who",
"have",
"destroyed",
"a",
"document",
"."
] | [
{
"id": 0,
"type": "table",
"value": "documents_to_be_destroyed"
},
{
"id": 1,
"type": "column",
"value": "destroyed_by_employee_id"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,104 | machine_repair | spider:train_spider.json:2238 | What is the team and starting year for each technician? | SELECT Team , Starting_Year FROM technician | [
"What",
"is",
"the",
"team",
"and",
"starting",
"year",
"for",
"each",
"technician",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "starting_year"
},
{
"id": 0,
"type": "table",
"value": "technician"
},
{
"id": 1,
"type": "column",
"value": "team"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
13,106 | airline | bird:train.json:5842 | Tell the number of fights landed earlier on Miami Airport on 2018/8/12. | SELECT COUNT(*) FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T2.FL_DATE = '2018/8/12' AND T2.DEST = 'MIA' AND T2.ARR_DELAY < 0 | [
"Tell",
"the",
"number",
"of",
"fights",
"landed",
"earlier",
"on",
"Miami",
"Airport",
"on",
"2018/8/12",
"."
] | [
{
"id": 5,
"type": "value",
"value": "2018/8/12"
},
{
"id": 7,
"type": "column",
"value": "arr_delay"
},
{
"id": 0,
"type": "table",
"value": "airports"
},
{
"id": 1,
"type": "table",
"value": "airlines"
},
{
"id": 4,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
13,107 | works_cycles | bird:train.json:7122 | Please list 3 businesses along with their IDs that use cellphones. | SELECT T2.BusinessEntityID FROM PhoneNumberType AS T1 INNER JOIN PersonPhone AS T2 ON T1.PhoneNumberTypeID = T2.PhoneNumberTypeID WHERE T1.Name = 'Cell' LIMIT 3 | [
"Please",
"list",
"3",
"businesses",
"along",
"with",
"their",
"IDs",
"that",
"use",
"cellphones",
"."
] | [
{
"id": 5,
"type": "column",
"value": "phonenumbertypeid"
},
{
"id": 0,
"type": "column",
"value": "businessentityid"
},
{
"id": 1,
"type": "table",
"value": "phonenumbertype"
},
{
"id": 2,
"type": "table",
"value": "personphone"
},
{
"id": 3,
... | [
{
"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": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,108 | music_2 | spider:train_spider.json:5249 | How many vocal types are used in the song "Le Pop"? | SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | [
"How",
"many",
"vocal",
"types",
"are",
"used",
"in",
"the",
"song",
"\"",
"Le",
"Pop",
"\"",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "vocals"
},
{
"id": 3,
"type": "column",
"value": "Le Pop"
},
{
"id": 4,
"type": "column",
"value": "songid"
},
{
"id": 1,
"type": "table",
"value": "songs"
},
{
"id": 2,
"type": "column",
"value": "titl... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10,
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
13,109 | wrestler | spider:train_spider.json:1858 | List the names of wrestlers and the teams in elimination in descending order of days held. | SELECT T2.Name , T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC | [
"List",
"the",
"names",
"of",
"wrestlers",
"and",
"the",
"teams",
"in",
"elimination",
"in",
"descending",
"order",
"of",
"days",
"held",
"."
] | [
{
"id": 2,
"type": "table",
"value": "elimination"
},
{
"id": 5,
"type": "column",
"value": "wrestler_id"
},
{
"id": 4,
"type": "column",
"value": "days_held"
},
{
"id": 3,
"type": "table",
"value": "wrestler"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
14,
15
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
13,110 | airline | bird:train.json:5832 | What is the flight number of the flight operated by American Airlines Inc. that had the longest delay in departure? | SELECT T1.OP_CARRIER_FL_NUM FROM Airlines AS T1 INNER JOIN Airports AS T2 ON T2.Code = T1.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T1.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T3.Description = 'American Airlines Inc.: AA' ORDER BY T1.DEP_TIME DESC LIMIT 1 | [
"What",
"is",
"the",
"flight",
"number",
"of",
"the",
"flight",
"operated",
"by",
"American",
"Airlines",
"Inc.",
"that",
"had",
"the",
"longest",
"delay",
"in",
"departure",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "American Airlines Inc.: AA"
},
{
"id": 7,
"type": "column",
"value": "op_carrier_airline_id"
},
{
"id": 0,
"type": "column",
"value": "op_carrier_fl_num"
},
{
"id": 1,
"type": "table",
"value": "Air Carriers"
},
{
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10,
12
]
},
{
"entity_id": 4,
"token_idxs": [
19
]
},
{
"entity_id": 5,
"t... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,111 | card_games | bird:dev.json:393 | On how many cards designed by John Avon is its foil non-powerful? | SELECT COUNT(id) FROM cards WHERE (cardKingdomId IS NULL OR cardKingdomFoilId IS NULL) AND artist = 'John Avon' | [
"On",
"how",
"many",
"cards",
"designed",
"by",
"John",
"Avon",
"is",
"its",
"foil",
"non",
"-",
"powerful",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "cardkingdomfoilid"
},
{
"id": 4,
"type": "column",
"value": "cardkingdomid"
},
{
"id": 3,
"type": "value",
"value": "John Avon"
},
{
"id": 2,
"type": "column",
"value": "artist"
},
{
"id": 0,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"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",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,112 | gymnast | spider:train_spider.json:1756 | What is the average age of all gymnasts? | SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID | [
"What",
"is",
"the",
"average",
"age",
"of",
"all",
"gymnasts",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "gymnast_id"
},
{
"id": 4,
"type": "column",
"value": "people_id"
},
{
"id": 0,
"type": "table",
"value": "gymnast"
},
{
"id": 1,
"type": "table",
"value": "people"
},
{
"id": 2,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"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",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
13,113 | movies_4 | bird:train.json:522 | Provide the overview for the movie "The Pacifier". | SELECT overview FROM movie WHERE title = 'The Pacifier' | [
"Provide",
"the",
"overview",
"for",
"the",
"movie",
"\"",
"The",
"Pacifier",
"\"",
"."
] | [
{
"id": 3,
"type": "value",
"value": "The Pacifier"
},
{
"id": 1,
"type": "column",
"value": "overview"
},
{
"id": 0,
"type": "table",
"value": "movie"
},
{
"id": 2,
"type": "column",
"value": "title"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
13,114 | network_2 | spider:train_spider.json:4410 | Who is the oldest person whose job is student? | SELECT name FROM Person WHERE job = 'student' AND age = (SELECT max(age) FROM person WHERE job = 'student' ) | [
"Who",
"is",
"the",
"oldest",
"person",
"whose",
"job",
"is",
"student",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "student"
},
{
"id": 0,
"type": "table",
"value": "person"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "job"
},
{
"id": 4,
"type": "column",
"value": "age"
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
13,115 | book_publishing_company | bird:train.json:234 | In the books published by US publishers, which book has the highest royalty? List these books in the descending order of royalty. | SELECT T1.title FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id INNER JOIN roysched AS T3 ON T1.title_id = T3.title_id WHERE T2.country = 'USA' ORDER BY T1.royalty DESC | [
"In",
"the",
"books",
"published",
"by",
"US",
"publishers",
",",
"which",
"book",
"has",
"the",
"highest",
"royalty",
"?",
"List",
"these",
"books",
"in",
"the",
"descending",
"order",
"of",
"royalty",
"."
] | [
{
"id": 6,
"type": "table",
"value": "publishers"
},
{
"id": 1,
"type": "table",
"value": "roysched"
},
{
"id": 7,
"type": "column",
"value": "title_id"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 4,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
23
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,117 | retail_world | bird:train.json:6318 | What is the total production of the product that is ordered in the highest quantity in order no. 10248? | SELECT T1.UnitsInStock + T1.UnitsOnOrder FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10248 ORDER BY T2.Quantity DESC LIMIT 1 | [
"What",
"is",
"the",
"total",
"production",
"of",
"the",
"product",
"that",
"is",
"ordered",
"in",
"the",
"highest",
"quantity",
"in",
"order",
"no",
".",
"10248",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "Order Details"
},
{
"id": 5,
"type": "column",
"value": "unitsinstock"
},
{
"id": 6,
"type": "column",
"value": "unitsonorder"
},
{
"id": 7,
"type": "column",
"value": "productid"
},
{
"id": 0,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
19
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
13,118 | phone_1 | spider:train_spider.json:1030 | Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name. | SELECT Hardware_Model_name , Company_name FROM phone WHERE Accreditation_type LIKE 'Full'; | [
"Find",
"all",
"phones",
"that",
"have",
"word",
"'",
"Full",
"'",
"in",
"their",
"accreditation",
"types",
".",
"List",
"the",
"Hardware",
"Model",
"name",
"and",
"Company",
"name",
"."
] | [
{
"id": 1,
"type": "column",
"value": "hardware_model_name"
},
{
"id": 3,
"type": "column",
"value": "accreditation_type"
},
{
"id": 2,
"type": "column",
"value": "company_name"
},
{
"id": 0,
"type": "table",
"value": "phone"
},
{
"id": 4,
"typ... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
16,
17,
18
]
},
{
"entity_id": 2,
"token_idxs": [
20,
21
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
13,119 | cre_Doc_and_collections | bird:test.json:689 | What is the name of the parent collection of the collection named Nice? | SELECT T2.Collection_Name FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = "Nice"; | [
"What",
"is",
"the",
"name",
"of",
"the",
"parent",
"collection",
"of",
"the",
"collection",
"named",
"Nice",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "parent_collection_id"
},
{
"id": 0,
"type": "column",
"value": "collection_name"
},
{
"id": 4,
"type": "column",
"value": "collection_id"
},
{
"id": 1,
"type": "table",
"value": "collections"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"O"
] |
13,120 | soccer_2016 | bird:train.json:1948 | What is the id of the team with the highest number of matches won? | SELECT Match_Id FROM `Match` ORDER BY Match_Winner DESC LIMIT 1 | [
"What",
"is",
"the",
"i",
"d",
"of",
"the",
"team",
"with",
"the",
"highest",
"number",
"of",
"matches",
"won",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "match_winner"
},
{
"id": 1,
"type": "column",
"value": "match_id"
},
{
"id": 0,
"type": "table",
"value": "Match"
}
] | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
13,121 | retail_world | bird:train.json:6361 | What is the full name of the employee with the highest salary? | SELECT FirstName, LastName FROM Employees WHERE Salary = ( SELECT MAX(Salary) FROM Employees ) | [
"What",
"is",
"the",
"full",
"name",
"of",
"the",
"employee",
"with",
"the",
"highest",
"salary",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "employees"
},
{
"id": 1,
"type": "column",
"value": "firstname"
},
{
"id": 2,
"type": "column",
"value": "lastname"
},
{
"id": 3,
"type": "column",
"value": "salary"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,122 | bakery_1 | bird:test.json:1574 | Give the ids of goods that are more than twice as expensive as the average good. | SELECT id FROM goods WHERE price > (SELECT avg(price) FROM goods) | [
"Give",
"the",
"ids",
"of",
"goods",
"that",
"are",
"more",
"than",
"twice",
"as",
"expensive",
"as",
"the",
"average",
"good",
"."
] | [
{
"id": 0,
"type": "table",
"value": "goods"
},
{
"id": 2,
"type": "column",
"value": "price"
},
{
"id": 1,
"type": "column",
"value": "id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,123 | cre_Doc_and_collections | bird:test.json:662 | What are the collection susbset names? | SELECT Collection_Subset_Name FROM Collection_Subsets; | [
"What",
"are",
"the",
"collection",
"susbset",
"names",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "collection_subset_name"
},
{
"id": 0,
"type": "table",
"value": "collection_subsets"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O"
] |
13,124 | customers_card_transactions | spider:train_spider.json:722 | Return the code of the card type that is most common. | SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count(*) DESC LIMIT 1 | [
"Return",
"the",
"code",
"of",
"the",
"card",
"type",
"that",
"is",
"most",
"common",
"."
] | [
{
"id": 0,
"type": "table",
"value": "customers_cards"
},
{
"id": 1,
"type": "column",
"value": "card_type_code"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
13,125 | soccer_2 | spider:train_spider.json:4965 | What is the number of students playing as a goalie? | SELECT count(*) FROM tryout WHERE pPos = 'goalie' | [
"What",
"is",
"the",
"number",
"of",
"students",
"playing",
"as",
"a",
"goalie",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "tryout"
},
{
"id": 2,
"type": "value",
"value": "goalie"
},
{
"id": 1,
"type": "column",
"value": "ppos"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
13,126 | art_1 | bird:test.json:1296 | Find the death year of the artist who made the least number of sculptures? | SELECT T1.deathYear FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID GROUP BY T2.sculptorID ORDER BY count(*) LIMIT 1 | [
"Find",
"the",
"death",
"year",
"of",
"the",
"artist",
"who",
"made",
"the",
"least",
"number",
"of",
"sculptures",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "sculptorid"
},
{
"id": 3,
"type": "table",
"value": "sculptures"
},
{
"id": 1,
"type": "column",
"value": "deathyear"
},
{
"id": 4,
"type": "column",
"value": "artistid"
},
{
"id": 2,
"type": "table",
... | [
{
"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"
] |
13,127 | world_development_indicators | bird:train.json:2224 | Among the countries who uses the 1968 System of National Accounts methodology, how many are in the Middle East & North Africa? Name the country with the highest CO2 emissions from solid fuel consumption in kiloton. | SELECT COUNT(DISTINCT T1.CountryCode) FROM indicators AS T1 INNER JOIN country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Middle East & North Africa' AND T2.SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.' AND T1.IndicatorName = 'CO2 emissions FROM solid fuel ... | [
"Among",
"the",
"countries",
"who",
"uses",
"the",
"1968",
"System",
"of",
"National",
"Accounts",
"methodology",
",",
"how",
"many",
"are",
"in",
"the",
"Middle",
"East",
"&",
"North",
"Africa",
"?",
"Name",
"the",
"country",
"with",
"the",
"highest",
"CO... | [
{
"id": 6,
"type": "value",
"value": "Country uses the 1968 System of National Accounts methodology."
},
{
"id": 8,
"type": "value",
"value": "CO2 emissions FROM solid fuel consumption (kt)"
},
{
"id": 4,
"type": "value",
"value": "Middle East & North Africa"
},
{
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
26
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15,
16
]
},
{
"entity_id": 4,
"token_idxs": [
18,
19,
20,
... | [
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
... |
13,128 | district_spokesman | bird:test.json:1197 | Find the number of districts which have no spokesmen. | SELECT count(*) FROM district WHERE district_id NOT IN (SELECT district_id FROM spokesman_district) | [
"Find",
"the",
"number",
"of",
"districts",
"which",
"have",
"no",
"spokesmen",
"."
] | [
{
"id": 2,
"type": "table",
"value": "spokesman_district"
},
{
"id": 1,
"type": "column",
"value": "district_id"
},
{
"id": 0,
"type": "table",
"value": "district"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
13,129 | club_1 | spider:train_spider.json:4284 | What is the location of the club named "Tennis Club"? | SELECT clublocation FROM club WHERE clubname = "Tennis Club" | [
"What",
"is",
"the",
"location",
"of",
"the",
"club",
"named",
"\"",
"Tennis",
"Club",
"\"",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "clublocation"
},
{
"id": 3,
"type": "column",
"value": "Tennis Club"
},
{
"id": 2,
"type": "column",
"value": "clubname"
},
{
"id": 0,
"type": "table",
"value": "club"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
13,131 | menu | bird:train.json:5571 | Please list the page numbers of all the menu pages on which the dish "Chicken gumbo" had appeared. | SELECT T1.page_number FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Chicken gumbo' | [
"Please",
"list",
"the",
"page",
"numbers",
"of",
"all",
"the",
"menu",
"pages",
"on",
"which",
"the",
"dish",
"\"",
"Chicken",
"gumbo",
"\"",
"had",
"appeared",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Chicken gumbo"
},
{
"id": 8,
"type": "column",
"value": "menu_page_id"
},
{
"id": 0,
"type": "column",
"value": "page_number"
},
{
"id": 4,
"type": "table",
"value": "menupage"
},
{
"id": 5,
"type": "table"... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15,
16
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O"
] |
13,132 | student_loan | bird:train.json:4523 | State name of students who have the longest duration of absense from school and do not have payment due. | SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'neg' ORDER BY T1.month DESC LIMIT 1 | [
"State",
"name",
"of",
"students",
"who",
"have",
"the",
"longest",
"duration",
"of",
"absense",
"from",
"school",
"and",
"do",
"not",
"have",
"payment",
"due",
"."
] | [
{
"id": 1,
"type": "table",
"value": "longest_absense_from_school"
},
{
"id": 2,
"type": "table",
"value": "no_payment_due"
},
{
"id": 5,
"type": "column",
"value": "month"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
10,
11
]
},
{
"entity_id": 2,
"token_idxs": [
17,
18
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
13,133 | language_corpus | bird:train.json:5793 | Which word has the time of occurrences as 340691? | SELECT word FROM words WHERE occurrences = 340691 | [
"Which",
"word",
"has",
"the",
"time",
"of",
"occurrences",
"as",
"340691",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "occurrences"
},
{
"id": 3,
"type": "value",
"value": "340691"
},
{
"id": 0,
"type": "table",
"value": "words"
},
{
"id": 1,
"type": "column",
"value": "word"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
13,134 | language_corpus | bird:train.json:5738 | Please list the top three most frequently occurring words and their ids. | SELECT word, wid FROM words ORDER BY occurrences DESC LIMIT 3 | [
"Please",
"list",
"the",
"top",
"three",
"most",
"frequently",
"occurring",
"words",
"and",
"their",
"ids",
"."
] | [
{
"id": 3,
"type": "column",
"value": "occurrences"
},
{
"id": 0,
"type": "table",
"value": "words"
},
{
"id": 1,
"type": "column",
"value": "word"
},
{
"id": 2,
"type": "column",
"value": "wid"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
13,135 | disney | bird:train.json:4728 | Determine the average gross for Disney's PG-13-rated action movies. | SELECT SUM(CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL)) / COUNT(movie_title) FROM movies_total_gross WHERE MPAA_rating = 'PG-13' | [
"Determine",
"the",
"average",
"gross",
"for",
"Disney",
"'s",
"PG-13",
"-",
"rated",
"action",
"movies",
"."
] | [
{
"id": 0,
"type": "table",
"value": "movies_total_gross"
},
{
"id": 1,
"type": "column",
"value": "mpaa_rating"
},
{
"id": 3,
"type": "column",
"value": "movie_title"
},
{
"id": 5,
"type": "column",
"value": "total_gross"
},
{
"id": 2,
"type":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
13,136 | hockey | bird:train.json:7818 | In 1998, How many wins were made by team 'CAR' per game played? Who contributed the most goals? State the player ID. | SELECT CAST(T1.W AS REAL) / T1.G, T2.playerID FROM Teams AS T1 INNER JOIN Scoring AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.tmID = 'CAR' AND T1.year = 1998 GROUP BY T1.W / T1.G, T2.playerID ORDER BY SUM(T2.G) DESC LIMIT 1 | [
"In",
"1998",
",",
"How",
"many",
"wins",
"were",
"made",
"by",
"team",
"'",
"CAR",
"'",
"per",
"game",
"played",
"?",
"Who",
"contributed",
"the",
"most",
"goals",
"?",
"State",
"the",
"player",
"ID",
"."
] | [
{
"id": 0,
"type": "column",
"value": "playerid"
},
{
"id": 2,
"type": "table",
"value": "scoring"
},
{
"id": 1,
"type": "table",
"value": "teams"
},
{
"id": 5,
"type": "column",
"value": "tmid"
},
{
"id": 7,
"type": "column",
"value": "yea... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
26
... | [
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
13,137 | craftbeer | bird:train.json:8859 | Of all the beer styles produced by Stevens Point Brewery, how many percent do they allot for American Adjunct Lager? | SELECT CAST(SUM(IIF(T1.style = 'American Adjunct Lager', 1, 0)) AS REAL) * 100 / COUNT(T1.brewery_id) FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T2.name = 'Stevens Point Brewery' | [
"Of",
"all",
"the",
"beer",
"styles",
"produced",
"by",
"Stevens",
"Point",
"Brewery",
",",
"how",
"many",
"percent",
"do",
"they",
"allot",
"for",
"American",
"Adjunct",
"Lager",
"?"
] | [
{
"id": 10,
"type": "value",
"value": "American Adjunct Lager"
},
{
"id": 3,
"type": "value",
"value": "Stevens Point Brewery"
},
{
"id": 4,
"type": "column",
"value": "brewery_id"
},
{
"id": 1,
"type": "table",
"value": "breweries"
},
{
"id": 0,
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
13,138 | advertising_agencies | bird:test.json:2071 | Show agency details for client with detail 'Mac'. | SELECT T2.agency_details FROM Clients AS T1 JOIN Agencies AS T2 ON T1.agency_id = T2.agency_id WHERE T1.client_details = 'Mac' | [
"Show",
"agency",
"details",
"for",
"client",
"with",
"detail",
"'",
"Mac",
"'",
"."
] | [
{
"id": 0,
"type": "column",
"value": "agency_details"
},
{
"id": 3,
"type": "column",
"value": "client_details"
},
{
"id": 5,
"type": "column",
"value": "agency_id"
},
{
"id": 2,
"type": "table",
"value": "agencies"
},
{
"id": 1,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
5,
6
]
},
{
"entity_id": 4,
"token_idxs": [
8
]... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
13,139 | club_1 | spider:train_spider.json:4313 | Which clubs have one or more members whose advisor is "1121"? | SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121 | [
"Which",
"clubs",
"have",
"one",
"or",
"more",
"members",
"whose",
"advisor",
"is",
"\"",
"1121",
"\"",
"?"
] | [
{
"id": 5,
"type": "table",
"value": "member_of_club"
},
{
"id": 0,
"type": "column",
"value": "clubname"
},
{
"id": 1,
"type": "table",
"value": "student"
},
{
"id": 2,
"type": "column",
"value": "advisor"
},
{
"id": 7,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
1
]
},
{
"entity... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
13,140 | superstore | bird:train.json:2437 | What is the name of the product that Aimee Bixby bought? | SELECT DISTINCT T3.`Product Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Aimee Bixby' | [
"What",
"is",
"the",
"name",
"of",
"the",
"product",
"that",
"Aimee",
"Bixby",
"bought",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "east_superstore"
},
{
"id": 2,
"type": "column",
"value": "Customer Name"
},
{
"id": 0,
"type": "column",
"value": "Product Name"
},
{
"id": 3,
"type": "value",
"value": "Aimee Bixby"
},
{
"id": 7,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
1,
2,
3
]
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs... | [
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
13,141 | behavior_monitoring | spider:train_spider.json:3125 | What are the line 1 of addresses shared by some students and some teachers? | SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id | [
"What",
"are",
"the",
"line",
"1",
"of",
"addresses",
"shared",
"by",
"some",
"students",
"and",
"some",
"teachers",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "address_id"
},
{
"id": 1,
"type": "table",
"value": "addresses"
},
{
"id": 2,
"type": "table",
"value": "students"
},
{
"id": 3,
"type": "table",
"value": "teachers"
},
{
"id": 0,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O"
] |
13,142 | phone_1 | spider:train_spider.json:1027 | What is maximum and minimum RAM size of phone produced by company named "Nokia Corporation"? | SELECT max(T1.RAM_MiB) , min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = "Nokia Corporation"; | [
"What",
"is",
"maximum",
"and",
"minimum",
"RAM",
"size",
"of",
"phone",
"produced",
"by",
"company",
"named",
"\"",
"Nokia",
"Corporation",
"\"",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "Nokia Corporation"
},
{
"id": 2,
"type": "column",
"value": "company_name"
},
{
"id": 0,
"type": "table",
"value": "chip_model"
},
{
"id": 5,
"type": "column",
"value": "model_name"
},
{
"id": 6,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
11,
12
]
},
{
"entity_id": 3,
"token_idxs": [
14,
15
]
},
{
"entity_id": 4,
"token_idxs": [
5
]... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
13,144 | election | spider:train_spider.json:2790 | Show the name of the party that has the most delegates. | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1 | [
"Show",
"the",
"name",
"of",
"the",
"party",
"that",
"has",
"the",
"most",
"delegates",
"."
] | [
{
"id": 1,
"type": "table",
"value": "election"
},
{
"id": 3,
"type": "column",
"value": "party_id"
},
{
"id": 0,
"type": "column",
"value": "party"
},
{
"id": 2,
"type": "table",
"value": "party"
}
] | [
{
"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",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
13,145 | soccer_2 | spider:train_spider.json:4958 | How many different colleges do attend the tryout test? | SELECT count(DISTINCT cName) FROM tryout | [
"How",
"many",
"different",
"colleges",
"do",
"attend",
"the",
"tryout",
"test",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "tryout"
},
{
"id": 1,
"type": "column",
"value": "cname"
}
] | [
{
"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",
"O"
] |
13,146 | loan_1 | spider:train_spider.json:3065 | What are the names and account balances for customers who have taken a total amount of more than 5000 in loans? | SELECT T1.cust_name , T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount) > 5000 | [
"What",
"are",
"the",
"names",
"and",
"account",
"balances",
"for",
"customers",
"who",
"have",
"taken",
"a",
"total",
"amount",
"of",
"more",
"than",
"5000",
"in",
"loans",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "cust_name"
},
{
"id": 1,
"type": "column",
"value": "acc_type"
},
{
"id": 2,
"type": "table",
"value": "customer"
},
{
"id": 5,
"type": "column",
"value": "cust_id"
},
{
"id": 6,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
20
]
},
{
"entity_id": 4,
"token_idxs": [
18
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O"
] |
13,147 | works_cycles | bird:train.json:7016 | List the purchase order whereby all received quantity were rejected? Name those product. | SELECT T1.Name FROM Product AS T1 INNER JOIN PurchaseOrderDetail AS T2 ON T1.ProductID = T2.ProductID WHERE T2.RejectedQty = T2.ReceivedQty AND T2.RejectedQty <> 0 | [
"List",
"the",
"purchase",
"order",
"whereby",
"all",
"received",
"quantity",
"were",
"rejected",
"?",
"Name",
"those",
"product",
"."
] | [
{
"id": 2,
"type": "table",
"value": "purchaseorderdetail"
},
{
"id": 4,
"type": "column",
"value": "rejectedqty"
},
{
"id": 5,
"type": "column",
"value": "receivedqty"
},
{
"id": 3,
"type": "column",
"value": "productid"
},
{
"id": 1,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
2,
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
... | [
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
13,148 | candidate_poll | spider:train_spider.json:2424 | how many people are there whose weight is higher than 85 for each gender? | SELECT count(*) , sex FROM people WHERE weight > 85 GROUP BY sex | [
"how",
"many",
"people",
"are",
"there",
"whose",
"weight",
"is",
"higher",
"than",
"85",
"for",
"each",
"gender",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "people"
},
{
"id": 2,
"type": "column",
"value": "weight"
},
{
"id": 1,
"type": "column",
"value": "sex"
},
{
"id": 3,
"type": "value",
"value": "85"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O"
] |
13,149 | soccer_2 | spider:train_spider.json:5036 | How many states that have some college students playing in the mid position but not in the goalie position. | SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie') | [
"How",
"many",
"states",
"that",
"have",
"some",
"college",
"students",
"playing",
"in",
"the",
"mid",
"position",
"but",
"not",
"in",
"the",
"goalie",
"position",
"."
] | [
{
"id": 1,
"type": "table",
"value": "college"
},
{
"id": 2,
"type": "table",
"value": "tryout"
},
{
"id": 5,
"type": "value",
"value": "goalie"
},
{
"id": 0,
"type": "column",
"value": "state"
},
{
"id": 6,
"type": "column",
"value": "cnam... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
13,150 | theme_gallery | spider:train_spider.json:1679 | What is the theme, date, and attendance for the exhibition in year 2004? | SELECT T2.theme , T1.date , T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004 | [
"What",
"is",
"the",
"theme",
",",
"date",
",",
"and",
"attendance",
"for",
"the",
"exhibition",
"in",
"year",
"2004",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "exhibition_record"
},
{
"id": 7,
"type": "column",
"value": "exhibition_id"
},
{
"id": 2,
"type": "column",
"value": "attendance"
},
{
"id": 4,
"type": "table",
"value": "exhibition"
},
{
"id": 0,
"type": "... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
13,151 | flight_4 | spider:train_spider.json:6842 | What is the name of the country with the most number of home airlines? | SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"country",
"with",
"the",
"most",
"number",
"of",
"home",
"airlines",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "airlines"
},
{
"id": 1,
"type": "column",
"value": "country"
}
] | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
13,152 | olympics | bird:train.json:4945 | What is the name of the event where competitors received the most gold medals? | SELECT T2.event_name FROM competitor_event AS T1 INNER JOIN event AS T2 ON T1.event_id = T2.id INNER JOIN medal AS T3 ON T1.medal_id = T3.id WHERE T3.medal_name = 'Gold' GROUP BY T2.id ORDER BY COUNT(T1.event_id) DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"event",
"where",
"competitors",
"received",
"the",
"most",
"gold",
"medals",
"?"
] | [
{
"id": 5,
"type": "table",
"value": "competitor_event"
},
{
"id": 1,
"type": "column",
"value": "event_name"
},
{
"id": 3,
"type": "column",
"value": "medal_name"
},
{
"id": 7,
"type": "column",
"value": "medal_id"
},
{
"id": 8,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
13,153 | college_3 | spider:train_spider.json:4687 | Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE. | SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = "INTRODUCTION TO COMPUTER SCIENCE" | [
"Find",
"the",
"department",
"name",
"and",
"room",
"of",
"the",
"course",
"INTRODUCTION",
"TO",
"COMPUTER",
"SCIENCE",
"."
] | [
{
"id": 5,
"type": "column",
"value": "INTRODUCTION TO COMPUTER SCIENCE"
},
{
"id": 3,
"type": "table",
"value": "department"
},
{
"id": 2,
"type": "table",
"value": "course"
},
{
"id": 0,
"type": "column",
"value": "dname"
},
{
"id": 4,
"type"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
13,154 | game_injury | spider:train_spider.json:1275 | List the dates of games by the home team name in descending order. | SELECT Date FROM game ORDER BY home_team DESC | [
"List",
"the",
"dates",
"of",
"games",
"by",
"the",
"home",
"team",
"name",
"in",
"descending",
"order",
"."
] | [
{
"id": 2,
"type": "column",
"value": "home_team"
},
{
"id": 0,
"type": "table",
"value": "game"
},
{
"id": 1,
"type": "column",
"value": "date"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
13,155 | books | bird:train.json:6046 | List every book that Ursola Purdy has ordered. | SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Ursola' AND T4.last_name = 'Purdy' | [
"List",
"every",
"book",
"that",
"Ursola",
"Purdy",
"has",
"ordered",
"."
] | [
{
"id": 3,
"type": "column",
"value": "customer_id"
},
{
"id": 2,
"type": "table",
"value": "cust_order"
},
{
"id": 4,
"type": "column",
"value": "first_name"
},
{
"id": 9,
"type": "table",
"value": "order_line"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"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",
"B-TABLE",
"O",
"B-VALUE",
"B-VALUE",
"O",
"B-COLUMN",
"O"
] |
13,156 | movie_3 | bird:train.json:9227 | How many films have a rental rate of 0.99? | SELECT COUNT(film_id) FROM film WHERE rental_rate = 0.99 | [
"How",
"many",
"films",
"have",
"a",
"rental",
"rate",
"of",
"0.99",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "rental_rate"
},
{
"id": 3,
"type": "column",
"value": "film_id"
},
{
"id": 0,
"type": "table",
"value": "film"
},
{
"id": 2,
"type": "value",
"value": "0.99"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
13,157 | shipping | bird:train.json:5585 | What is the full name of the driver that has done the most shipments in 2017? | SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE STRFTIME('%Y', T1.ship_date) = '2017' GROUP BY T2.first_name, T2.last_name ORDER BY COUNT(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"full",
"name",
"of",
"the",
"driver",
"that",
"has",
"done",
"the",
"most",
"shipments",
"in",
"2017",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 1,
"type": "column",
"value": "last_name"
},
{
"id": 5,
"type": "column",
"value": "driver_id"
},
{
"id": 7,
"type": "column",
"value": "ship_date"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
13,158 | shipping | bird:train.json:5590 | What is the average weight of the goods being transported on a single shipment ordered by S K L Enterprises Inc? | SELECT AVG(T2.weight) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'S K L Enterprises Inc' | [
"What",
"is",
"the",
"average",
"weight",
"of",
"the",
"goods",
"being",
"transported",
"on",
"a",
"single",
"shipment",
"ordered",
"by",
"S",
"K",
"L",
"Enterprises",
"Inc",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "S K L Enterprises Inc"
},
{
"id": 2,
"type": "column",
"value": "cust_name"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 1,
"type": "table",
"value": "shipment"
},
{
"id": 5,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
16,
17,
18,
19,
20
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
13,159 | talkingdata | bird:train.json:1228 | What is the age and gender of the person who uses the device number 29182687948017100 on event number 1? | SELECT T1.age, T1.gender FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE T1.device_id = 29182687948017100 AND T2.event_id = 1 | [
"What",
"is",
"the",
"age",
"and",
"gender",
"of",
"the",
"person",
"who",
"uses",
"the",
"device",
"number",
"29182687948017100",
"on",
"event",
"number",
"1",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "29182687948017100"
},
{
"id": 3,
"type": "table",
"value": "events_relevant"
},
{
"id": 2,
"type": "table",
"value": "gender_age"
},
{
"id": 4,
"type": "column",
"value": "device_id"
},
{
"id": 6,
"type": "... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.