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 |
|---|---|---|---|---|---|---|---|---|
10,373 | gas_company | spider:train_spider.json:2030 | What are the locations that have gas stations owned by a company with a market value greater than 100? | SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100 | [
"What",
"are",
"the",
"locations",
"that",
"have",
"gas",
"stations",
"owned",
"by",
"a",
"company",
"with",
"a",
"market",
"value",
"greater",
"than",
"100",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "station_company"
},
{
"id": 2,
"type": "column",
"value": "market_value"
},
{
"id": 1,
"type": "table",
"value": "gas_station"
},
{
"id": 6,
"type": "column",
"value": "station_id"
},
{
"id": 7,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
14,
15
]
},
{
"entity_id": 3,
"token_idxs": [
18
]
},
{
"entity_id": 4,
"token_idxs": [
10
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
10,374 | european_football_2 | bird:dev.json:1044 | List the football players with a birthyear of 1970 and a birthmonth of October. | SELECT player_name FROM Player WHERE SUBSTR(birthday, 1, 7) = '1970-10' | [
"List",
"the",
"football",
"players",
"with",
"a",
"birthyear",
"of",
"1970",
"and",
"a",
"birthmonth",
"of",
"October",
"."
] | [
{
"id": 1,
"type": "column",
"value": "player_name"
},
{
"id": 3,
"type": "column",
"value": "birthday"
},
{
"id": 2,
"type": "value",
"value": "1970-10"
},
{
"id": 0,
"type": "table",
"value": "player"
},
{
"id": 4,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
10,375 | student_1 | spider:train_spider.json:4029 | How many students are there? | SELECT count(*) FROM list | [
"How",
"many",
"students",
"are",
"there",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "list"
}
] | [
{
"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"
] |
10,376 | hr_1 | spider:train_spider.json:3523 | display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working. | SELECT T1.first_name , T1.last_name , T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id | [
"display",
"the",
"full",
"name",
"(",
"first",
"and",
"last",
"name",
")",
"of",
"employee",
"with",
"ID",
"and",
"name",
"of",
"the",
"country",
"presently",
"where",
"(",
"s)he",
"is",
"working",
"."
] | [
{
"id": 10,
"type": "column",
"value": "department_id"
},
{
"id": 3,
"type": "column",
"value": "country_name"
},
{
"id": 2,
"type": "column",
"value": "employee_id"
},
{
"id": 8,
"type": "table",
"value": "departments"
},
{
"id": 9,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
7,
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
18
]
},
{
"entity_id"... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
10,377 | epinions_1 | spider:train_spider.json:1699 | Find the names of goods that receive a rating of 10. | SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating = 10 | [
"Find",
"the",
"names",
"of",
"goods",
"that",
"receive",
"a",
"rating",
"of",
"10",
"."
] | [
{
"id": 2,
"type": "table",
"value": "review"
},
{
"id": 3,
"type": "column",
"value": "rating"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 1,
"type": "table",
"value": "item"
},
{
"id": 5,
"type": "column",
"value": "i_id"
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
10,378 | csu_1 | spider:train_spider.json:2363 | What campus started in year 1956, has more than 200 full time students, and more than 400 students enrolled? | SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200 | [
"What",
"campus",
"started",
"in",
"year",
"1956",
",",
"has",
"more",
"than",
"200",
"full",
"time",
"students",
",",
"and",
"more",
"than",
"400",
"students",
"enrolled",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "totalenrollment_ay"
},
{
"id": 2,
"type": "table",
"value": "enrollments"
},
{
"id": 1,
"type": "table",
"value": "campuses"
},
{
"id": 0,
"type": "column",
"value": "campus"
},
{
"id": 8,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
20
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
... | [
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O"
] |
10,379 | planet_1 | bird:test.json:1886 | What is the name of all clients who sent more than one package? | SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender HAVING count(*) > 1; | [
"What",
"is",
"the",
"name",
"of",
"all",
"clients",
"who",
"sent",
"more",
"than",
"one",
"package",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "accountnumber"
},
{
"id": 2,
"type": "table",
"value": "package"
},
{
"id": 0,
"type": "column",
"value": "sender"
},
{
"id": 3,
"type": "table",
"value": "client"
},
{
"id": 1,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
10,380 | retails | bird:train.json:6681 | How many customers are in Brazil? | SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'BRAZIL' | [
"How",
"many",
"customers",
"are",
"in",
"Brazil",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "c_nationkey"
},
{
"id": 6,
"type": "column",
"value": "n_nationkey"
},
{
"id": 4,
"type": "column",
"value": "c_custkey"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
10,381 | sales | bird:train.json:5428 | Among the products with product ID lower than 15, how many of them costs 10 and below? | SELECT COUNT(ProductID) FROM Products WHERE ProductID < 15 AND Price <= 10 | [
"Among",
"the",
"products",
"with",
"product",
"ID",
"lower",
"than",
"15",
",",
"how",
"many",
"of",
"them",
"costs",
"10",
"and",
"below",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "productid"
},
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 3,
"type": "column",
"value": "price"
},
{
"id": 2,
"type": "value",
"value": "15"
},
{
"id": 4,
"type": "value",
"value": "10"
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
10,382 | movie_3 | bird:train.json:9190 | What is the rental price per day of the most expensive children's film? | SELECT T1.rental_rate FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Children' ORDER BY T1.rental_rate / T1.rental_duration DESC LIMIT 1 | [
"What",
"is",
"the",
"rental",
"price",
"per",
"day",
"of",
"the",
"most",
"expensive",
"children",
"'s",
"film",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "rental_duration"
},
{
"id": 5,
"type": "table",
"value": "film_category"
},
{
"id": 0,
"type": "column",
"value": "rental_rate"
},
{
"id": 6,
"type": "column",
"value": "category_id"
},
{
"id": 1,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O"
] |
10,383 | college_2 | spider:train_spider.json:1360 | what is the name of the instructor who is in Statistics department and earns the lowest salary? | SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1 | [
"what",
"is",
"the",
"name",
"of",
"the",
"instructor",
"who",
"is",
"in",
"Statistics",
"department",
"and",
"earns",
"the",
"lowest",
"salary",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "instructor"
},
{
"id": 3,
"type": "value",
"value": "Statistics"
},
{
"id": 2,
"type": "column",
"value": "dept_name"
},
{
"id": 4,
"type": "column",
"value": "salary"
},
{
"id": 1,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
10,384 | beer_factory | bird:train.json:5266 | How many female customers permit the company to send regular emails to them? | SELECT COUNT(CustomerID) FROM customers WHERE Gender = 'F' AND SubscribedToEmailList = 'TRUE' | [
"How",
"many",
"female",
"customers",
"permit",
"the",
"company",
"to",
"send",
"regular",
"emails",
"to",
"them",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "subscribedtoemaillist"
},
{
"id": 1,
"type": "column",
"value": "customerid"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 2,
"type": "column",
"value": "gender"
},
{
"id": 5,
"type": "val... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
10,385 | public_review_platform | bird:train.json:3786 | Tell the number of "hair removal" Yelp businesses. | SELECT COUNT(T1.category_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T1.category_name LIKE 'Hair Removal' | [
"Tell",
"the",
"number",
"of",
"\"",
"hair",
"removal",
"\"",
"Yelp",
"businesses",
"."
] | [
{
"id": 1,
"type": "table",
"value": "business_categories"
},
{
"id": 2,
"type": "column",
"value": "category_name"
},
{
"id": 3,
"type": "value",
"value": "Hair Removal"
},
{
"id": 4,
"type": "column",
"value": "category_id"
},
{
"id": 0,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5,
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-TABLE",
"O"
] |
10,386 | authors | bird:train.json:3510 | Please list the titles of the papers published in the journal "Concepts in Magnetic Resonance Part A" in 2008. | SELECT T2.Title FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Concepts in Magnetic Resonance Part A' AND T2.Year = 2008 | [
"Please",
"list",
"the",
"titles",
"of",
"the",
"papers",
"published",
"in",
"the",
"journal",
"\"",
"Concepts",
"in",
"Magnetic",
"Resonance",
"Part",
"A",
"\"",
"in",
"2008",
"."
] | [
{
"id": 6,
"type": "value",
"value": "Concepts in Magnetic Resonance Part A"
},
{
"id": 4,
"type": "column",
"value": "journalid"
},
{
"id": 5,
"type": "column",
"value": "fullname"
},
{
"id": 1,
"type": "table",
"value": "journal"
},
{
"id": 0,
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
10,387 | restaurant | bird:train.json:1784 | In which counties can you find the restaurant with the highest number of branches? | SELECT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city GROUP BY T2.county ORDER BY COUNT(T1.label) DESC LIMIT 1 | [
"In",
"which",
"counties",
"can",
"you",
"find",
"the",
"restaurant",
"with",
"the",
"highest",
"number",
"of",
"branches",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "generalinfo"
},
{
"id": 2,
"type": "table",
"value": "geographic"
},
{
"id": 0,
"type": "column",
"value": "county"
},
{
"id": 4,
"type": "column",
"value": "label"
},
{
"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": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
10,388 | flight_1 | spider:train_spider.json:412 | What is the name of the aircraft that was on flight number 99? | SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99 | [
"What",
"is",
"the",
"name",
"of",
"the",
"aircraft",
"that",
"was",
"on",
"flight",
"number",
"99",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "aircraft"
},
{
"id": 1,
"type": "table",
"value": "flight"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "column",
"value": "flno"
},
{
"id": 5,
"type": "column",
"value": "aid"
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entit... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
10,389 | movie_1 | spider:train_spider.json:2463 | For the oldest movie listed, what is its average rating and title? | SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie) | [
"For",
"the",
"oldest",
"movie",
"listed",
",",
"what",
"is",
"its",
"average",
"rating",
"and",
"title",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "rating"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "table",
"value": "movie"
},
{
"id": 4,
"type": "column",
"value": "stars"
},
{
"id": 3,
"type": "column",
"value": "year"
... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O"
] |
10,390 | works_cycles | bird:train.json:7116 | What is business number 1580's net profit? | SELECT LastReceiptCost - StandardPrice FROM ProductVendor WHERE BusinessEntityID = 1580 | [
"What",
"is",
"business",
"number",
"1580",
"'s",
"net",
"profit",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "businessentityid"
},
{
"id": 3,
"type": "column",
"value": "lastreceiptcost"
},
{
"id": 0,
"type": "table",
"value": "productvendor"
},
{
"id": 4,
"type": "column",
"value": "standardprice"
},
{
"id": 2,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O"
] |
10,393 | codebase_community | bird:dev.json:618 | List out the age of users who located in Vienna, Austria obtained the badge? | SELECT T1.Age FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Location = 'Vienna, Austria' | [
"List",
"out",
"the",
"age",
"of",
"users",
"who",
"located",
"in",
"Vienna",
",",
"Austria",
"obtained",
"the",
"badge",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Vienna, Austria"
},
{
"id": 3,
"type": "column",
"value": "location"
},
{
"id": 2,
"type": "table",
"value": "badges"
},
{
"id": 6,
"type": "column",
"value": "userid"
},
{
"id": 1,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": [
9,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"B-TABLE",
"O"
] |
10,394 | bakery_1 | bird:test.json:1538 | What are the id and price for the good with "70" in its id? | SELECT id , price FROM goods WHERE id LIKE "%70%" | [
"What",
"are",
"the",
"i",
"d",
"and",
"price",
"for",
"the",
"good",
"with",
"\"",
"70",
"\"",
"in",
"its",
"i",
"d",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "goods"
},
{
"id": 2,
"type": "column",
"value": "price"
},
{
"id": 3,
"type": "column",
"value": "%70%"
},
{
"id": 1,
"type": "column",
"value": "id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
16,
17
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
10,395 | student_assessment | spider:train_spider.json:90 | What are the ids of the students who registered for course 301 most recently? | SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1 | [
"What",
"are",
"the",
"ids",
"of",
"the",
"students",
"who",
"registered",
"for",
"course",
"301",
"most",
"recently",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "student_course_attendance"
},
{
"id": 4,
"type": "column",
"value": "date_of_attendance"
},
{
"id": 1,
"type": "column",
"value": "student_id"
},
{
"id": 2,
"type": "column",
"value": "course_id"
},
{
"id": 3,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O"
] |
10,396 | soccer_2016 | bird:train.json:2038 | Who is the winning team in a match held on April 26, 2009 with a winning margin of 6 points? | SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner WHERE T2.Win_Margin = 6 AND T2.Match_Date = '2009-04-26' | [
"Who",
"is",
"the",
"winning",
"team",
"in",
"a",
"match",
"held",
"on",
"April",
"26",
",",
"2009",
"with",
"a",
"winning",
"margin",
"of",
"6",
"points",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "match_winner"
},
{
"id": 5,
"type": "column",
"value": "win_margin"
},
{
"id": 7,
"type": "column",
"value": "match_date"
},
{
"id": 8,
"type": "value",
"value": "2009-04-26"
},
{
"id": 0,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
10,397 | public_review_platform | bird:train.json:4041 | How many users manage to get uber votes for all of the review category? Find out what are the user average star. | SELECT COUNT(T2.user_id) AS USER_IDS, T2.user_average_stars FROM Reviews AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id WHERE T1.review_votes_funny = 'Uber' AND T1.review_votes_useful = 'Uber' AND T1.review_votes_cool = 'Uber' | [
"How",
"many",
"users",
"manage",
"to",
"get",
"uber",
"votes",
"for",
"all",
"of",
"the",
"review",
"category",
"?",
"Find",
"out",
"what",
"are",
"the",
"user",
"average",
"star",
"."
] | [
{
"id": 6,
"type": "column",
"value": "review_votes_useful"
},
{
"id": 0,
"type": "column",
"value": "user_average_stars"
},
{
"id": 4,
"type": "column",
"value": "review_votes_funny"
},
{
"id": 7,
"type": "column",
"value": "review_votes_cool"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
21,
22
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
20
]
},
{
"entity_id": 4,
"token_idxs": []
},
{... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O"
] |
10,398 | movie_3 | bird:train.json:9281 | In which country is the store where Hector Poinexter rents equipment located? | SELECT T5.country FROM customer AS T1 INNER JOIN store AS T2 ON T1.store_id = T2.store_id INNER JOIN address AS T3 ON T2.address_id = T3.address_id INNER JOIN city AS T4 ON T3.city_id = T4.city_id INNER JOIN country AS T5 ON T4.country_id = T5.country_id WHERE T1.first_name = 'HECTOR' AND T1.last_name = 'POINDEXTER' | [
"In",
"which",
"country",
"is",
"the",
"store",
"where",
"Hector",
"Poinexter",
"rents",
"equipment",
"located",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "country_id"
},
{
"id": 4,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "value",
"value": "POINDEXTER"
},
{
"id": 12,
"type": "column",
"value": "address_id"
},
{
"id": 6,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
7
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O"
] |
10,399 | professional_basketball | bird:train.json:2897 | List the year, team and coach that with winning rate of above 75%. | SELECT DISTINCT T1.year, T2.name, T1.coachID FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID WHERE CAST(T1.won AS REAL) / CAST((T1.won + T1.lost) AS REAL) > 0.75 | [
"List",
"the",
"year",
",",
"team",
"and",
"coach",
"that",
"with",
"winning",
"rate",
"of",
"above",
"75",
"%",
"."
] | [
{
"id": 2,
"type": "column",
"value": "coachid"
},
{
"id": 3,
"type": "table",
"value": "coaches"
},
{
"id": 4,
"type": "table",
"value": "teams"
},
{
"id": 0,
"type": "column",
"value": "year"
},
{
"id": 1,
"type": "column",
"value": "name... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"... | [
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
10,400 | software_company | bird:train.json:8558 | How many of the customer's reference ID that has a TRUE response? | SELECT COUNT(REFID) FROM Mailings1_2 WHERE RESPONSE = 'true' | [
"How",
"many",
"of",
"the",
"customer",
"'s",
"reference",
"ID",
"that",
"has",
"a",
"TRUE",
"response",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "mailings1_2"
},
{
"id": 1,
"type": "column",
"value": "response"
},
{
"id": 3,
"type": "column",
"value": "refid"
},
{
"id": 2,
"type": "value",
"value": "true"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
6,
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
10,401 | bike_share_1 | bird:train.json:9041 | In 2006, how many trips ended at stations in Mountain View? | SELECT COUNT(T2.city) FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.end_station_name WHERE T2.city = 'Mountain View' AND T1.start_date LIKE '%2006%' | [
"In",
"2006",
",",
"how",
"many",
"trips",
"ended",
"at",
"stations",
"in",
"Mountain",
"View",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "end_station_name"
},
{
"id": 5,
"type": "value",
"value": "Mountain View"
},
{
"id": 6,
"type": "column",
"value": "start_date"
},
{
"id": 1,
"type": "table",
"value": "station"
},
{
"id": 7,
"type": "valu... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6,
7
]
},
{
"entity_id":... | [
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
10,402 | music_2 | spider:train_spider.json:5251 | How many different songs have shared vocals? | SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared" | [
"How",
"many",
"different",
"songs",
"have",
"shared",
"vocals",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "vocals"
},
{
"id": 3,
"type": "column",
"value": "shared"
},
{
"id": 5,
"type": "column",
"value": "songid"
},
{
"id": 1,
"type": "table",
"value": "songs"
},
{
"id": 4,
"type": "column",
"value": "titl... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
10,404 | activity_1 | spider:train_spider.json:6779 | Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in. | SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID | [
"Show",
"the",
"first",
"and",
"last",
"name",
"of",
"all",
"the",
"faculty",
"members",
"who",
"participated",
"in",
"some",
"activity",
",",
"together",
"with",
"the",
"number",
"of",
"activities",
"they",
"participated",
"in",
"."
] | [
{
"id": 4,
"type": "table",
"value": "faculty_participates_in"
},
{
"id": 3,
"type": "table",
"value": "faculty"
},
{
"id": 0,
"type": "column",
"value": "facid"
},
{
"id": 1,
"type": "column",
"value": "fname"
},
{
"id": 2,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
23,
24,
25
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"O"
] |
10,405 | video_games | bird:train.json:3340 | Show the name of the earliest platform in the database. | SELECT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id ORDER BY T1.release_year ASC LIMIT 1 | [
"Show",
"the",
"name",
"of",
"the",
"earliest",
"platform",
"in",
"the",
"database",
"."
] | [
{
"id": 0,
"type": "column",
"value": "platform_name"
},
{
"id": 1,
"type": "table",
"value": "game_platform"
},
{
"id": 3,
"type": "column",
"value": "release_year"
},
{
"id": 4,
"type": "column",
"value": "platform_id"
},
{
"id": 2,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
10,406 | e_learning | spider:train_spider.json:3785 | Which tests have "Pass" results? Return the dates when the tests were taken. | SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result = "Pass" | [
"Which",
"tests",
"have",
"\"",
"Pass",
"\"",
"results",
"?",
"Return",
"the",
"dates",
"when",
"the",
"tests",
"were",
"taken",
"."
] | [
{
"id": 0,
"type": "table",
"value": "student_tests_taken"
},
{
"id": 1,
"type": "column",
"value": "date_test_taken"
},
{
"id": 2,
"type": "column",
"value": "test_result"
},
{
"id": 3,
"type": "column",
"value": "Pass"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
12,
13,
14,
15
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
}... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
10,407 | regional_sales | bird:train.json:2653 | State the order number where Qualitest ordered the highest product quantity. | SELECT T1.OrderNumber FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID WHERE T2.`Customer Names` = 'Qualitest ' ORDER BY T1.`Order Quantity` DESC LIMIT 1 | [
"State",
"the",
"order",
"number",
"where",
"Qualitest",
"ordered",
"the",
"highest",
"product",
"quantity",
"."
] | [
{
"id": 3,
"type": "column",
"value": "Customer Names"
},
{
"id": 5,
"type": "column",
"value": "Order Quantity"
},
{
"id": 1,
"type": "table",
"value": "Sales Orders"
},
{
"id": 0,
"type": "column",
"value": "ordernumber"
},
{
"id": 7,
"type":... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
10,408 | sing_contest | bird:test.json:760 | Find the original artists who sing songs with rhythm tempo above 5 , and list results in descending order of voice sound quality . | select t2.original_artist from performance_score as t1 join songs as t2 on t2.id = t1.songs_id where t1.rhythm_tempo > 5 order by t1.voice_sound_quality desc | [
"Find",
"the",
"original",
"artists",
"who",
"sing",
"songs",
"with",
"rhythm",
"tempo",
"above",
"5",
",",
"and",
"list",
"results",
"in",
"descending",
"order",
"of",
"voice",
"sound",
"quality",
"."
] | [
{
"id": 5,
"type": "column",
"value": "voice_sound_quality"
},
{
"id": 1,
"type": "table",
"value": "performance_score"
},
{
"id": 0,
"type": "column",
"value": "original_artist"
},
{
"id": 3,
"type": "column",
"value": "rhythm_tempo"
},
{
"id": 7,... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
... | [
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
10,409 | airline | bird:train.json:5911 | Among the flights of the air carrier described as American Airlines, what is the percentage of the flights with earlier departure? | SELECT CAST(SUM(CASE WHEN T2.DEP_DELAY < 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description LIKE '%American Airlines%' | [
"Among",
"the",
"flights",
"of",
"the",
"air",
"carrier",
"described",
"as",
"American",
"Airlines",
",",
"what",
"is",
"the",
"percentage",
"of",
"the",
"flights",
"with",
"earlier",
"departure",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "op_carrier_airline_id"
},
{
"id": 3,
"type": "value",
"value": "%American Airlines%"
},
{
"id": 0,
"type": "table",
"value": "Air Carriers"
},
{
"id": 2,
"type": "column",
"value": "description"
},
{
"id": 9,
... | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
10,410 | cre_Students_Information_Systems | bird:test.json:445 | List the biographical data of the students who never had a detention or student loan . | select bio_data from students where student_id not in (select t1.student_id from students as t1 join detention as t2 on t1.student_id = t2.student_id union select t1.student_id from students as t1 join student_loans as t2 on t1.student_id = t2.student_id) | [
"List",
"the",
"biographical",
"data",
"of",
"the",
"students",
"who",
"never",
"had",
"a",
"detention",
"or",
"student",
"loan",
"."
] | [
{
"id": 4,
"type": "table",
"value": "student_loans"
},
{
"id": 2,
"type": "column",
"value": "student_id"
},
{
"id": 3,
"type": "table",
"value": "detention"
},
{
"id": 0,
"type": "table",
"value": "students"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
10,411 | toxicology | bird:dev.json:305 | Name all bonds with single bond types and what atoms are connected to the molecules. | SELECT T1.bond_id, T2.atom_id, T2.atom_id2 FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T1.bond_type = '-' | [
"Name",
"all",
"bonds",
"with",
"single",
"bond",
"types",
"and",
"what",
"atoms",
"are",
"connected",
"to",
"the",
"molecules",
"."
] | [
{
"id": 4,
"type": "table",
"value": "connected"
},
{
"id": 5,
"type": "column",
"value": "bond_type"
},
{
"id": 2,
"type": "column",
"value": "atom_id2"
},
{
"id": 0,
"type": "column",
"value": "bond_id"
},
{
"id": 1,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
10,412 | music_1 | spider:train_spider.json:3555 | Find the id of songs that are available in mp4 format and have resolution lower than 1000. | SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000 | [
"Find",
"the",
"i",
"d",
"of",
"songs",
"that",
"are",
"available",
"in",
"mp4",
"format",
"and",
"have",
"resolution",
"lower",
"than",
"1000",
"."
] | [
{
"id": 5,
"type": "column",
"value": "resolution"
},
{
"id": 3,
"type": "column",
"value": "formats"
},
{
"id": 0,
"type": "table",
"value": "files"
},
{
"id": 1,
"type": "table",
"value": "song"
},
{
"id": 2,
"type": "column",
"value": "f... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
0
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entit... | [
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
10,413 | bike_1 | spider:train_spider.json:199 | What are the dates in which the mean sea level pressure was between 30.3 and 31? | SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 | [
"What",
"are",
"the",
"dates",
"in",
"which",
"the",
"mean",
"sea",
"level",
"pressure",
"was",
"between",
"30.3",
"and",
"31",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "mean_sea_level_pressure_inches"
},
{
"id": 0,
"type": "table",
"value": "weather"
},
{
"id": 1,
"type": "column",
"value": "date"
},
{
"id": 3,
"type": "value",
"value": "30.3"
},
{
"id": 4,
"type": "value... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8,
9,
10
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_id... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
10,414 | software_company | bird:train.json:8514 | Among the customers over 30, how many of them are Machine-op-inspcts? | SELECT COUNT(ID) FROM Customers WHERE OCCUPATION = 'Machine-op-inspct' AND age > 30 | [
"Among",
"the",
"customers",
"over",
"30",
",",
"how",
"many",
"of",
"them",
"are",
"Machine",
"-",
"op",
"-",
"inspcts",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Machine-op-inspct"
},
{
"id": 2,
"type": "column",
"value": "occupation"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 4,
"type": "column",
"value": "age"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11,
12,
13,
14,
15
]
},
{
"entity_id": 4,
"token_idxs": [
1... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
10,416 | address | bird:train.json:5089 | Please list the zip_codes of all the residential areas in Huntingdon county with over 30 employees. | SELECT DISTINCT T1.zip_code FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'HUNTINGDON' AND T1.employees > 30 | [
"Please",
"list",
"the",
"zip_codes",
"of",
"all",
"the",
"residential",
"areas",
"in",
"Huntingdon",
"county",
"with",
"over",
"30",
"employees",
"."
] | [
{
"id": 4,
"type": "value",
"value": "HUNTINGDON"
},
{
"id": 5,
"type": "column",
"value": "employees"
},
{
"id": 0,
"type": "column",
"value": "zip_code"
},
{
"id": 1,
"type": "table",
"value": "zip_data"
},
{
"id": 2,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
10,417 | inn_1 | spider:train_spider.json:2598 | What is the total number of people who could stay in the modern rooms in this inn? | SELECT sum(maxOccupancy) FROM Rooms WHERE decor = 'modern'; | [
"What",
"is",
"the",
"total",
"number",
"of",
"people",
"who",
"could",
"stay",
"in",
"the",
"modern",
"rooms",
"in",
"this",
"inn",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "maxoccupancy"
},
{
"id": 2,
"type": "value",
"value": "modern"
},
{
"id": 0,
"type": "table",
"value": "rooms"
},
{
"id": 1,
"type": "column",
"value": "decor"
}
] | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
10,418 | social_media | bird:train.json:813 | What is the percentage of the tweets from California are positive? | SELECT SUM(CASE WHEN T1.Sentiment > 0 THEN 1.0 ELSE 0 END) / COUNT(T1.TweetID) AS percentage FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE State = 'California' | [
"What",
"is",
"the",
"percentage",
"of",
"the",
"tweets",
"from",
"California",
"are",
"positive",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "California"
},
{
"id": 4,
"type": "column",
"value": "locationid"
},
{
"id": 8,
"type": "column",
"value": "sentiment"
},
{
"id": 1,
"type": "table",
"value": "location"
},
{
"id": 0,
"type": "table",
"... | [
{
"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": [
8
]
},
{
"entity_id": 5,
"token_idxs": [
6
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
10,419 | works_cycles | bird:train.json:7235 | What is the person's business ID with a vista credit card number "11113366963373"? | SELECT T2.BusinessEntityID FROM CreditCard AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.CreditCardID = T2.CreditCardID WHERE T1.CardNumber = 11113366963373 | [
"What",
"is",
"the",
"person",
"'s",
"business",
"ID",
"with",
"a",
"vista",
"credit",
"card",
"number",
"\"",
"11113366963373",
"\"",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "businessentityid"
},
{
"id": 2,
"type": "table",
"value": "personcreditcard"
},
{
"id": 4,
"type": "value",
"value": "11113366963373"
},
{
"id": 5,
"type": "column",
"value": "creditcardid"
},
{
"id": 1,
"... | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": [
14
]... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
10,420 | tracking_orders | spider:train_spider.json:6923 | Find the id of the order which is shipped most recently. | SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments) | [
"Find",
"the",
"i",
"d",
"of",
"the",
"order",
"which",
"is",
"shipped",
"most",
"recently",
"."
] | [
{
"id": 2,
"type": "column",
"value": "shipment_date"
},
{
"id": 0,
"type": "table",
"value": "shipments"
},
{
"id": 1,
"type": "column",
"value": "order_id"
}
] | [
{
"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-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
10,421 | department_management | spider:train_spider.json:9 | Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'? | SELECT T1.name , T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes' | [
"Show",
"the",
"name",
"and",
"number",
"of",
"employees",
"for",
"the",
"departments",
"managed",
"by",
"heads",
"whose",
"temporary",
"acting",
"value",
"is",
"'",
"Yes",
"'",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "temporary_acting"
},
{
"id": 1,
"type": "column",
"value": "num_employees"
},
{
"id": 6,
"type": "column",
"value": "department_id"
},
{
"id": 2,
"type": "table",
"value": "department"
},
{
"id": 3,
"type"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
14,
15
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
10,422 | small_bank_1 | spider:train_spider.json:1793 | What are the names of accounts with checking balances greater than the average checking balance and savings balances below the average savings balance? | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM savings) | [
"What",
"are",
"the",
"names",
"of",
"accounts",
"with",
"checking",
"balances",
"greater",
"than",
"the",
"average",
"checking",
"balance",
"and",
"savings",
"balances",
"below",
"the",
"average",
"savings",
"balance",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "accounts"
},
{
"id": 2,
"type": "table",
"value": "checking"
},
{
"id": 3,
"type": "column",
"value": "balance"
},
{
"id": 4,
"type": "table",
"value": "savings"
},
{
"id": 5,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
22
]
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
10,423 | coinmarketcap | bird:train.json:6280 | List the names and symbols of the coins that were added on June 14, 2013. | SELECT name, symbol FROM coins WHERE date_added LIKE '2013-06-14%' | [
"List",
"the",
"names",
"and",
"symbols",
"of",
"the",
"coins",
"that",
"were",
"added",
"on",
"June",
"14",
",",
"2013",
"."
] | [
{
"id": 4,
"type": "value",
"value": "2013-06-14%"
},
{
"id": 3,
"type": "column",
"value": "date_added"
},
{
"id": 2,
"type": "column",
"value": "symbol"
},
{
"id": 0,
"type": "table",
"value": "coins"
},
{
"id": 1,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
10,424 | simpson_episodes | bird:train.json:4206 | What character did Dan Castellaneta play that won him an award for Outstanding Voice-Over Performance in 2009 in the Primetime Emmy Awards? | SELECT DISTINCT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.person = 'Dan Castellaneta' AND T1.award = 'Outstanding Voice-Over Performance' AND T1.organization = 'Primetime Emmy Awards' AND T1.year = 2009; | [
"What",
"character",
"did",
"Dan",
"Castellaneta",
"play",
"that",
"won",
"him",
"an",
"award",
"for",
"Outstanding",
"Voice",
"-",
"Over",
"Performance",
"in",
"2009",
"in",
"the",
"Primetime",
"Emmy",
"Awards",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "Outstanding Voice-Over Performance"
},
{
"id": 9,
"type": "value",
"value": "Primetime Emmy Awards"
},
{
"id": 5,
"type": "value",
"value": "Dan Castellaneta"
},
{
"id": 2,
"type": "table",
"value": "character_award"
... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
10,425 | loan_1 | spider:train_spider.json:3021 | What are the names of all customers, ordered by account balance? | SELECT cust_name FROM customer ORDER BY acc_bal | [
"What",
"are",
"the",
"names",
"of",
"all",
"customers",
",",
"ordered",
"by",
"account",
"balance",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "cust_name"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 2,
"type": "column",
"value": "acc_bal"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
10,426 | movie_1 | spider:train_spider.json:2504 | Find the title and star rating of the movie that got the least rating star for each reviewer. | SELECT T2.title , T1.rID , T1.stars , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID | [
"Find",
"the",
"title",
"and",
"star",
"rating",
"of",
"the",
"movie",
"that",
"got",
"the",
"least",
"rating",
"star",
"for",
"each",
"reviewer",
"."
] | [
{
"id": 3,
"type": "table",
"value": "rating"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "column",
"value": "stars"
},
{
"id": 4,
"type": "table",
"value": "movie"
},
{
"id": 0,
"type": "column",
"value": "rid"
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
10,427 | talkingdata | bird:train.json:1079 | What is the age of the oldest device user? | SELECT MAX(age) FROM gender_age | [
"What",
"is",
"the",
"age",
"of",
"the",
"oldest",
"device",
"user",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "gender_age"
},
{
"id": 1,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
10,428 | world_development_indicators | bird:train.json:2226 | What is the lending category of the country with a cereal production of 6140000 metric tons for the year 1966? | SELECT T1.LendingCategory FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Cereal production (metric tons)' AND T2.Value = 6140000 AND T2.Year = 1966 | [
"What",
"is",
"the",
"lending",
"category",
"of",
"the",
"country",
"with",
"a",
"cereal",
"production",
"of",
"6140000",
"metric",
"tons",
"for",
"the",
"year",
"1966",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Cereal production (metric tons)"
},
{
"id": 0,
"type": "column",
"value": "lendingcategory"
},
{
"id": 4,
"type": "column",
"value": "indicatorname"
},
{
"id": 3,
"type": "column",
"value": "countrycode"
},
{
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
3,
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-VALUE",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
10,429 | flight_4 | spider:train_spider.json:6849 | How many airports are there per city in the United States? Order the cities by decreasing number of airports. | SELECT count(*) , city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY count(*) DESC | [
"How",
"many",
"airports",
"are",
"there",
"per",
"city",
"in",
"the",
"United",
"States",
"?",
"Order",
"the",
"cities",
"by",
"decreasing",
"number",
"of",
"airports",
"."
] | [
{
"id": 3,
"type": "value",
"value": "United States"
},
{
"id": 0,
"type": "table",
"value": "airports"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 1,
"type": "column",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": [
19
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
10,430 | art_1 | bird:test.json:1299 | Tell me the height and id number of the widest painting in gallery 240. | SELECT paintingID , height_mm FROM paintings WHERE LOCATION = 'Gallery 240' ORDER BY width_mm DESC LIMIT 1 | [
"Tell",
"me",
"the",
"height",
"and",
"i",
"d",
"number",
"of",
"the",
"widest",
"painting",
"in",
"gallery",
"240",
"."
] | [
{
"id": 4,
"type": "value",
"value": "Gallery 240"
},
{
"id": 1,
"type": "column",
"value": "paintingid"
},
{
"id": 0,
"type": "table",
"value": "paintings"
},
{
"id": 2,
"type": "column",
"value": "height_mm"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
13,
14
]
},
{
"entity_i... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
10,431 | railway | spider:train_spider.json:5645 | Show the most common builder of railways. | SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT(*) DESC LIMIT 1 | [
"Show",
"the",
"most",
"common",
"builder",
"of",
"railways",
"."
] | [
{
"id": 0,
"type": "table",
"value": "railway"
},
{
"id": 1,
"type": "column",
"value": "builder"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
10,432 | student_club | bird:dev.json:1469 | Which student has the hometown of Lincolnton, North Carolina with the zip code of 28092? List their full name and position. | SELECT T1.first_name, T1.last_name, T1.position FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip WHERE T2.city = 'Lincolnton' AND T2.state = 'North Carolina' AND T2.zip_code = 28092 | [
"Which",
"student",
"has",
"the",
"hometown",
"of",
"Lincolnton",
",",
"North",
"Carolina",
"with",
"the",
"zip",
"code",
"of",
"28092",
"?",
"List",
"their",
"full",
"name",
"and",
"position",
"."
] | [
{
"id": 10,
"type": "value",
"value": "North Carolina"
},
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 8,
"type": "value",
"value": "Lincolnton"
},
{
"id": 1,
"type": "column",
"value": "last_name"
},
{
"id": 2,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
20
]
},
{
"entity_id": 2,
"token_idxs": [
22
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
10,433 | cre_Docs_and_Epenses | spider:train_spider.json:6461 | What are the ids of documents with letter 's' in the name with any expense budgets. | SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%' | [
"What",
"are",
"the",
"ids",
"of",
"documents",
"with",
"letter",
"'s",
"'",
"in",
"the",
"name",
"with",
"any",
"expense",
"budgets",
"."
] | [
{
"id": 2,
"type": "table",
"value": "documents_with_expenses"
},
{
"id": 3,
"type": "column",
"value": "document_name"
},
{
"id": 0,
"type": "column",
"value": "document_id"
},
{
"id": 1,
"type": "table",
"value": "documents"
},
{
"id": 4,
"ty... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
10,434 | baseball_1 | spider:train_spider.json:3704 | Which states have more than 2 parks? | SELECT state FROM park GROUP BY state HAVING count(*) > 2; | [
"Which",
"states",
"have",
"more",
"than",
"2",
"parks",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "state"
},
{
"id": 0,
"type": "table",
"value": "park"
},
{
"id": 2,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
10,435 | movie_3 | bird:train.json:9356 | List down all film titles starred by Jane Jackman. | SELECT T1.title FROM film AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id INNER JOIN actor AS T3 ON T2.actor_id = T3.actor_id WHERE T3.first_name = 'JANE' AND T3.last_name = 'JACKMAN' | [
"List",
"down",
"all",
"film",
"titles",
"starred",
"by",
"Jane",
"Jackman",
"."
] | [
{
"id": 3,
"type": "table",
"value": "film_actor"
},
{
"id": 5,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "column",
"value": "last_name"
},
{
"id": 4,
"type": "column",
"value": "actor_id"
},
{
"id": 8,
"type": "value",
... | [
{
"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-COLUMN",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O"
] |
10,436 | donor | bird:train.json:3261 | Write the message of the donor of the project with the title of Lets Share Ideas who paid with a credit card. | SELECT T3.donation_message 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 = 'Lets Share Ideas' AND T3.payment_method = 'creditcard' | [
"Write",
"the",
"message",
"of",
"the",
"donor",
"of",
"the",
"project",
"with",
"the",
"title",
"of",
"Lets",
"Share",
"Ideas",
"who",
"paid",
"with",
"a",
"credit",
"card",
"."
] | [
{
"id": 0,
"type": "column",
"value": "donation_message"
},
{
"id": 6,
"type": "value",
"value": "Lets Share Ideas"
},
{
"id": 7,
"type": "column",
"value": "payment_method"
},
{
"id": 8,
"type": "value",
"value": "creditcard"
},
{
"id": 1,
"ty... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
10,437 | shipping | bird:train.json:5649 | What is the annual revenue of Klett & Sons Repair? | SELECT annual_revenue FROM customer WHERE cust_name = 'Klett & Sons Repair' | [
"What",
"is",
"the",
"annual",
"revenue",
"of",
"Klett",
"&",
"Sons",
"Repair",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Klett & Sons Repair"
},
{
"id": 1,
"type": "column",
"value": "annual_revenue"
},
{
"id": 2,
"type": "column",
"value": "cust_name"
},
{
"id": 0,
"type": "table",
"value": "customer"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6,
7,
8,
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
10,439 | toxicology | bird:dev.json:214 | What type of label is not on molecules with atoms with tin? | SELECT DISTINCT T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element != 'sn' | [
"What",
"type",
"of",
"label",
"is",
"not",
"on",
"molecules",
"with",
"atoms",
"with",
"tin",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "molecule_id"
},
{
"id": 2,
"type": "table",
"value": "molecule"
},
{
"id": 3,
"type": "column",
"value": "element"
},
{
"id": 0,
"type": "column",
"value": "label"
},
{
"id": 1,
"type": "table",
"value... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
10,440 | products_gen_characteristics | spider:train_spider.json:5600 | How many colors are never used by any product? | SELECT count(*) FROM Ref_colors WHERE color_code NOT IN ( SELECT color_code FROM products ) | [
"How",
"many",
"colors",
"are",
"never",
"used",
"by",
"any",
"product",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "ref_colors"
},
{
"id": 1,
"type": "column",
"value": "color_code"
},
{
"id": 2,
"type": "table",
"value": "products"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
10,441 | college_2 | spider:train_spider.json:1459 | What are the names and salaries for instructors who earn less than the average salary of instructors in the Physics department? | SELECT name , salary FROM instructor WHERE salary < (SELECT avg(salary) FROM instructor WHERE dept_name = 'Physics') | [
"What",
"are",
"the",
"names",
"and",
"salaries",
"for",
"instructors",
"who",
"earn",
"less",
"than",
"the",
"average",
"salary",
"of",
"instructors",
"in",
"the",
"Physics",
"department",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "instructor"
},
{
"id": 3,
"type": "column",
"value": "dept_name"
},
{
"id": 4,
"type": "value",
"value": "Physics"
},
{
"id": 2,
"type": "column",
"value": "salary"
},
{
"id": 1,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
20
]
},
{
"entity_id": 4,
"token_idxs": [
19
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
10,442 | public_review_platform | bird:train.json:3862 | How long does Yelp_Business no.1 open on Tuesdays? | SELECT T1.closing_time - T1.opening_time AS "opening hours" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week LIKE 'Tuesday' AND T1.business_id = 1 | [
"How",
"long",
"does",
"Yelp_Business",
"no.1",
"open",
"on",
"Tuesdays",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "business_hours"
},
{
"id": 2,
"type": "column",
"value": "closing_time"
},
{
"id": 3,
"type": "column",
"value": "opening_time"
},
{
"id": 5,
"type": "column",
"value": "day_of_week"
},
{
"id": 7,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
10,443 | professional_basketball | bird:train.json:2936 | What's the full name of the team that won the most games in 2001 but didn't make the playoffs? | SELECT T2.tmID FROM players_teams AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.PostGP = 0 ORDER BY T2.won DESC LIMIT 1 | [
"What",
"'s",
"the",
"full",
"name",
"of",
"the",
"team",
"that",
"won",
"the",
"most",
"games",
"in",
"2001",
"but",
"did",
"n't",
"make",
"the",
"playoffs",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "players_teams"
},
{
"id": 3,
"type": "column",
"value": "postgp"
},
{
"id": 2,
"type": "table",
"value": "teams"
},
{
"id": 0,
"type": "column",
"value": "tmid"
},
{
"id": 6,
"type": "column",
"value": ... | [
{
"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",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
10,444 | chicago_crime | bird:train.json:8611 | Which district had the most number of first degree murders? Give the district number. | SELECT T2.district_no FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.secondary_description = 'FIRST DEGREE MURDER' GROUP BY T2.district_no ORDER BY COUNT(*) DESC LIMIT 1 | [
"Which",
"district",
"had",
"the",
"most",
"number",
"of",
"first",
"degree",
"murders",
"?",
"Give",
"the",
"district",
"number",
"."
] | [
{
"id": 3,
"type": "column",
"value": "secondary_description"
},
{
"id": 4,
"type": "value",
"value": "FIRST DEGREE MURDER"
},
{
"id": 0,
"type": "column",
"value": "district_no"
},
{
"id": 5,
"type": "column",
"value": "iucr_no"
},
{
"id": 2,
... | [
{
"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": [
7,
8,
9
]
},
{
"entity_id": 5,... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
10,445 | works_cycles | bird:train.json:7080 | Average of the last receipt cost of the products whose average lead time is 60 days. | SELECT SUM(LastReceiptCost) / COUNT(ProductID) FROM ProductVendor WHERE AverageLeadTime = 60 | [
"Average",
"of",
"the",
"last",
"receipt",
"cost",
"of",
"the",
"products",
"whose",
"average",
"lead",
"time",
"is",
"60",
"days",
"."
] | [
{
"id": 1,
"type": "column",
"value": "averageleadtime"
},
{
"id": 3,
"type": "column",
"value": "lastreceiptcost"
},
{
"id": 0,
"type": "table",
"value": "productvendor"
},
{
"id": 4,
"type": "column",
"value": "productid"
},
{
"id": 2,
"type"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 4,
"token_idxs... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
10,446 | public_review_platform | bird:train.json:3917 | What is the total number of active business in AZ with a high review count? | SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND review_count LIKE 'High' AND active LIKE 'True' | [
"What",
"is",
"the",
"total",
"number",
"of",
"active",
"business",
"in",
"AZ",
"with",
"a",
"high",
"review",
"count",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "review_count"
},
{
"id": 1,
"type": "column",
"value": "business_id"
},
{
"id": 0,
"type": "table",
"value": "business"
},
{
"id": 6,
"type": "column",
"value": "active"
},
{
"id": 2,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
13,
14
]
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O"
] |
10,448 | toxicology | bird:dev.json:281 | Tally the toxicology element of the 4th atom of each molecule that was carcinogenic. | SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' AND SUBSTR(T1.atom_id, -1) = '4' AND LENGTH(T1.atom_id) = 7 | [
"Tally",
"the",
"toxicology",
"element",
"of",
"the",
"4th",
"atom",
"of",
"each",
"molecule",
"that",
"was",
"carcinogenic",
"."
] | [
{
"id": 3,
"type": "column",
"value": "molecule_id"
},
{
"id": 2,
"type": "table",
"value": "molecule"
},
{
"id": 0,
"type": "column",
"value": "element"
},
{
"id": 8,
"type": "column",
"value": "atom_id"
},
{
"id": 4,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
10,449 | restaurant | bird:train.json:1689 | Identify all the restaurants in Yolo County by their label. | SELECT T1.id_restaurant, T1.label FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'yolo county' | [
"Identify",
"all",
"the",
"restaurants",
"in",
"Yolo",
"County",
"by",
"their",
"label",
"."
] | [
{
"id": 0,
"type": "column",
"value": "id_restaurant"
},
{
"id": 2,
"type": "table",
"value": "generalinfo"
},
{
"id": 5,
"type": "value",
"value": "yolo county"
},
{
"id": 3,
"type": "table",
"value": "geographic"
},
{
"id": 4,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
10,450 | customers_and_addresses | spider:train_spider.json:6063 | Find the "date became customers" of the customers whose ID is between 10 and 20. | SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20 | [
"Find",
"the",
"\"",
"date",
"became",
"customers",
"\"",
"of",
"the",
"customers",
"whose",
"ID",
"is",
"between",
"10",
"and",
"20",
"."
] | [
{
"id": 1,
"type": "column",
"value": "date_became_customer"
},
{
"id": 2,
"type": "column",
"value": "customer_id"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 3,
"type": "value",
"value": "10"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
10,451 | race_track | spider:train_spider.json:766 | What are the names, classes, and dates for all races? | SELECT name , CLASS , date FROM race | [
"What",
"are",
"the",
"names",
",",
"classes",
",",
"and",
"dates",
"for",
"all",
"races",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "class"
},
{
"id": 0,
"type": "table",
"value": "race"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "column",
"value": "date"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
10,452 | sports_competition | spider:train_spider.json:3385 | which countries did participated in both Friendly and Tournament type competitions. | SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament' | [
"which",
"countries",
"did",
"participated",
"in",
"both",
"Friendly",
"and",
"Tournament",
"type",
"competitions",
"."
] | [
{
"id": 2,
"type": "column",
"value": "competition_type"
},
{
"id": 0,
"type": "table",
"value": "competition"
},
{
"id": 4,
"type": "value",
"value": "Tournament"
},
{
"id": 3,
"type": "value",
"value": "Friendly"
},
{
"id": 1,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O"
] |
10,453 | retail_complains | bird:train.json:305 | How many complaints made by women and served after 3 pm received a timely response from the company? | SELECT COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN events AS T3 ON T1.`Complaint ID` = T3.`Complaint ID` WHERE T2.sex = 'Female' AND T1.ser_start BETWEEN '15:00:01' AND '23:59:59' AND T3.`Timely response?` = 'Yes' | [
"How",
"many",
"complaints",
"made",
"by",
"women",
"and",
"served",
"after",
"3",
"pm",
"received",
"a",
"timely",
"response",
"from",
"the",
"company",
"?"
] | [
{
"id": 9,
"type": "column",
"value": "Timely response?"
},
{
"id": 2,
"type": "table",
"value": "callcenterlogs"
},
{
"id": 1,
"type": "column",
"value": "Complaint ID"
},
{
"id": 11,
"type": "column",
"value": "rand client"
},
{
"id": 6,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
3
... | [
"O",
"B-COLUMN",
"B-TABLE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O"
] |
10,454 | public_review_platform | bird:train.json:4056 | How many businesses id are rated more than 4? | SELECT COUNT(business_id) FROM Business WHERE stars > 4 | [
"How",
"many",
"businesses",
"i",
"d",
"are",
"rated",
"more",
"than",
"4",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "business_id"
},
{
"id": 0,
"type": "table",
"value": "business"
},
{
"id": 1,
"type": "column",
"value": "stars"
},
{
"id": 2,
"type": "value",
"value": "4"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
3,
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
10,455 | institution_sports | bird:test.json:1675 | What are the total enrollment of institutions in city `` Vancouver '' or `` Calgary '' ? | select sum(enrollment) from institution where city = "vancouver" or city = "calgary" | [
"What",
"are",
"the",
"total",
"enrollment",
"of",
"institutions",
"in",
"city",
"`",
"`",
"Vancouver",
"''",
"or",
"`",
"`",
"Calgary",
"''",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "institution"
},
{
"id": 1,
"type": "column",
"value": "enrollment"
},
{
"id": 3,
"type": "column",
"value": "vancouver"
},
{
"id": 4,
"type": "column",
"value": "calgary"
},
{
"id": 2,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
10,456 | shakespeare | bird:train.json:2999 | Among the chapters in "As You Like It", how many chapters have a paragraph number of no more than 50? | SELECT COUNT(T3.chapter_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T1.Title = 'As You Like It' AND T3.ParagraphNum < 50 | [
"Among",
"the",
"chapters",
"in",
"\"",
"As",
"You",
"Like",
"It",
"\"",
",",
"how",
"many",
"chapters",
"have",
"a",
"paragraph",
"number",
"of",
"no",
"more",
"than",
"50",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "As You Like It"
},
{
"id": 7,
"type": "column",
"value": "paragraphnum"
},
{
"id": 0,
"type": "table",
"value": "paragraphs"
},
{
"id": 1,
"type": "column",
"value": "chapter_id"
},
{
"id": 3,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
10,457 | soccer_2 | spider:train_spider.json:5043 | What are the names of all colleges with a larger enrollment than the largest college in Florida? | SELECT cName FROM college WHERE enr > (SELECT max(enr) FROM college WHERE state = 'FL') | [
"What",
"are",
"the",
"names",
"of",
"all",
"colleges",
"with",
"a",
"larger",
"enrollment",
"than",
"the",
"largest",
"college",
"in",
"Florida",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "college"
},
{
"id": 1,
"type": "column",
"value": "cname"
},
{
"id": 3,
"type": "column",
"value": "state"
},
{
"id": 2,
"type": "column",
"value": "enr"
},
{
"id": 4,
"type": "value",
"value": "FL"
}... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_i... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
10,458 | card_games | bird:dev.json:409 | Indicates the number of cards with pre-modern format, ruling text "This is a triggered mana ability." that do not have multiple faces. | SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN rulings AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'premodern' AND T3.text = 'This is a triggered mana ability.' AND T1.Side IS NULL | [
"Indicates",
"the",
"number",
"of",
"cards",
"with",
"pre",
"-",
"modern",
"format",
",",
"ruling",
"text",
"\"",
"This",
"is",
"a",
"triggered",
"mana",
"ability",
".",
"\"",
"that",
"do",
"not",
"have",
"multiple",
"faces",
"."
] | [
{
"id": 8,
"type": "value",
"value": "This is a triggered mana ability."
},
{
"id": 3,
"type": "table",
"value": "legalities"
},
{
"id": 6,
"type": "value",
"value": "premodern"
},
{
"id": 0,
"type": "table",
"value": "rulings"
},
{
"id": 5,
"t... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"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-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
10,459 | talkingdata | bird:train.json:1231 | What are the behavior categories that user number -9222198347540750000 belongs to? | SELECT T3.category FROM app_all AS T1 INNER JOIN app_labels AS T2 ON T1.app_id = T2.app_id INNER JOIN label_categories AS T3 ON T2.label_id = T3.label_id WHERE T1.app_id = -9222198347540750000 | [
"What",
"are",
"the",
"behavior",
"categories",
"that",
"user",
"number",
"-9222198347540750000",
"belongs",
"to",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "-9222198347540750000"
},
{
"id": 1,
"type": "table",
"value": "label_categories"
},
{
"id": 5,
"type": "table",
"value": "app_labels"
},
{
"id": 0,
"type": "column",
"value": "category"
},
{
"id": 6,
"type"... | [
{
"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-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
10,460 | toxicology | bird:dev.json:278 | How many of the single bond type molecules are non-carcinogenic? | SELECT COUNT(DISTINCT T2.molecule_id) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '-' AND T1.bond_type = '-' | [
"How",
"many",
"of",
"the",
"single",
"bond",
"type",
"molecules",
"are",
"non",
"-",
"carcinogenic",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "molecule_id"
},
{
"id": 5,
"type": "column",
"value": "bond_type"
},
{
"id": 1,
"type": "table",
"value": "molecule"
},
{
"id": 3,
"type": "column",
"value": "label"
},
{
"id": 0,
"type": "table",
"val... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
10,461 | movielens | bird:train.json:2313 | How many latest released dramas and action movies? | SELECT COUNT(T1.movieid) FROM movies2directors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.year = 4 AND T1.genre IN ('Action', 'drama') | [
"How",
"many",
"latest",
"released",
"dramas",
"and",
"action",
"movies",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "movies2directors"
},
{
"id": 2,
"type": "column",
"value": "movieid"
},
{
"id": 1,
"type": "table",
"value": "movies"
},
{
"id": 6,
"type": "value",
"value": "Action"
},
{
"id": 5,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
10,462 | sports_competition | spider:train_spider.json:3374 | What are the positions of both players that have more than 20 20 points and less than 10 points? | SELECT POSITION FROM player WHERE Points > 20 INTERSECT SELECT POSITION FROM player WHERE Points < 10 | [
"What",
"are",
"the",
"positions",
"of",
"both",
"players",
"that",
"have",
"more",
"than",
"20",
"20",
"points",
"and",
"less",
"than",
"10",
"points",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "position"
},
{
"id": 0,
"type": "table",
"value": "player"
},
{
"id": 2,
"type": "column",
"value": "points"
},
{
"id": 3,
"type": "value",
"value": "20"
},
{
"id": 4,
"type": "value",
"value": "10"
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
10,463 | toxicology | bird:dev.json:215 | How many atoms with iodine and with sulfur type elements are there in single bond molecules? | SELECT COUNT(DISTINCT CASE WHEN T1.element = 'i' THEN T1.atom_id ELSE NULL END) AS iodine_nums , COUNT(DISTINCT CASE WHEN T1.element = 's' THEN T1.atom_id ELSE NULL END) AS sulfur_nums FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T2.bond_id = T3.bond_id WHERE T3.bond_ty... | [
"How",
"many",
"atoms",
"with",
"iodine",
"and",
"with",
"sulfur",
"type",
"elements",
"are",
"there",
"in",
"single",
"bond",
"molecules",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "bond_type"
},
{
"id": 4,
"type": "table",
"value": "connected"
},
{
"id": 5,
"type": "column",
"value": "bond_id"
},
{
"id": 6,
"type": "column",
"value": "atom_id"
},
{
"id": 7,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O",
"O"
] |
10,464 | bbc_channels | bird:test.json:123 | How many different digital terrestrial channels are there? | SELECT count(DISTINCT Digital_terrestrial_channel) FROM channel | [
"How",
"many",
"different",
"digital",
"terrestrial",
"channels",
"are",
"there",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "digital_terrestrial_channel"
},
{
"id": 0,
"type": "table",
"value": "channel"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O",
"O"
] |
10,465 | tracking_orders | spider:train_spider.json:6924 | Which order has the most recent shipment? Give me the order id. | SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments) | [
"Which",
"order",
"has",
"the",
"most",
"recent",
"shipment",
"?",
"Give",
"me",
"the",
"order",
"i",
"d."
] | [
{
"id": 2,
"type": "column",
"value": "shipment_date"
},
{
"id": 0,
"type": "table",
"value": "shipments"
},
{
"id": 1,
"type": "column",
"value": "order_id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
11,
12,
13
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN"
] |
10,466 | student_1 | spider:train_spider.json:4049 | What are the first names of the teachers who teach grade 1? | SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 | [
"What",
"are",
"the",
"first",
"names",
"of",
"the",
"teachers",
"who",
"teach",
"grade",
"1",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 5,
"type": "column",
"value": "classroom"
},
{
"id": 2,
"type": "table",
"value": "teachers"
},
{
"id": 3,
"type": "column",
"value": "grade"
},
{
"id": 1,
"type": "table",
"value... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
10,467 | dorm_1 | spider:train_spider.json:5743 | What are the first names of all students in Smith Hall? | SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' | [
"What",
"are",
"the",
"first",
"names",
"of",
"all",
"students",
"in",
"Smith",
"Hall",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Smith Hall"
},
{
"id": 2,
"type": "column",
"value": "dorm_name"
},
{
"id": 5,
"type": "table",
"value": "lives_in"
},
{
"id": 4,
"type": "table",
"value": "student"
},
{
"id": 6,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
10,469 | simpson_episodes | bird:train.json:4321 | What is the percentage of star score 5 that was collected by title "Sex, Pies and Idiot Scrapes"? | SELECT CAST(SUM(CASE WHEN T2.stars = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Sex, Pies and Idiot Scrapes'; | [
"What",
"is",
"the",
"percentage",
"of",
"star",
"score",
"5",
"that",
"was",
"collected",
"by",
"title",
"\"",
"Sex",
",",
"Pies",
"and",
"Idiot",
"Scrapes",
"\"",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Sex, Pies and Idiot Scrapes"
},
{
"id": 4,
"type": "column",
"value": "episode_id"
},
{
"id": 0,
"type": "table",
"value": "episode"
},
{
"id": 2,
"type": "column",
"value": "title"
},
{
"id": 8,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
14,
15,
16,
17,
18,
19
]
},
{
"entity_id": 4,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
10,470 | card_games | bird:dev.json:401 | What percentage of legendary frame effect cards that are only available in online game variations? | SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects = 'legendary' | [
"What",
"percentage",
"of",
"legendary",
"frame",
"effect",
"cards",
"that",
"are",
"only",
"available",
"in",
"online",
"game",
"variations",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "frameeffects"
},
{
"id": 7,
"type": "column",
"value": "isonlineonly"
},
{
"id": 2,
"type": "value",
"value": "legendary"
},
{
"id": 0,
"type": "table",
"value": "cards"
},
{
"id": 3,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
10,471 | bike_share_1 | bird:train.json:9030 | In 2014, what is the shortest duration of trips by subscribers which started at 2nd at Folsom and ended in the 5th at Howard stations, and by how much shorter than the average? Give me the minimum temperature, maximum gust speed and weather event on that trip. | SELECT MIN(T1.duration) , MIN(T1.duration) - AVG(T1.duration), T2.min_temperature_f FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.start_date = '1/1/2014 0:00' AND T1.end_date = '12/31/2014 11:59' AND T1.start_station_name = '2nd at Folsom' AND T1.end_station_name = '5th at Howard' AND T... | [
"In",
"2014",
",",
"what",
"is",
"the",
"shortest",
"duration",
"of",
"trips",
"by",
"subscribers",
"which",
"started",
"at",
"2nd",
"at",
"Folsom",
"and",
"ended",
"in",
"the",
"5th",
"at",
"Howard",
"stations",
",",
"and",
"by",
"how",
"much",
"shorter... | [
{
"id": 9,
"type": "column",
"value": "start_station_name"
},
{
"id": 0,
"type": "column",
"value": "min_temperature_f"
},
{
"id": 13,
"type": "column",
"value": "subscription_type"
},
{
"id": 8,
"type": "value",
"value": "12/31/2014 11:59"
},
{
"i... | [
{
"entity_id": 0,
"token_idxs": [
40
]
},
{
"entity_id": 1,
"token_idxs": [
50
]
},
{
"entity_id": 2,
"token_idxs": [
46
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"enti... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"... |
10,472 | music_tracker | bird:train.json:2062 | What are the average download times for the a release tagged "1980s"? | SELECT CAST(SUM(T1.totalSnatched) AS REAL) / COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = '1980s' | [
"What",
"are",
"the",
"average",
"download",
"times",
"for",
"the",
"a",
"release",
"tagged",
"\"",
"1980s",
"\"",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "totalsnatched"
},
{
"id": 0,
"type": "table",
"value": "torrents"
},
{
"id": 3,
"type": "value",
"value": "1980s"
},
{
"id": 1,
"type": "table",
"value": "tags"
},
{
"id": 2,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
10,473 | retail_world | bird:train.json:6470 | What is the contact name for product Teatime Chocolate Biscuits? | SELECT T2.ContactName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Teatime Chocolate Biscuits' | [
"What",
"is",
"the",
"contact",
"name",
"for",
"product",
"Teatime",
"Chocolate",
"Biscuits",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Teatime Chocolate Biscuits"
},
{
"id": 0,
"type": "column",
"value": "contactname"
},
{
"id": 3,
"type": "column",
"value": "productname"
},
{
"id": 5,
"type": "column",
"value": "supplierid"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7,
8,
9
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
10,474 | advertising_agencies | bird:test.json:2079 | Show all agency ids and details for agencies with a client. | SELECT T1.agency_id , T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id = T2.agency_id | [
"Show",
"all",
"agency",
"ids",
"and",
"details",
"for",
"agencies",
"with",
"a",
"client",
"."
] | [
{
"id": 1,
"type": "column",
"value": "agency_details"
},
{
"id": 0,
"type": "column",
"value": "agency_id"
},
{
"id": 2,
"type": "table",
"value": "agencies"
},
{
"id": 3,
"type": "table",
"value": "clients"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O"
] |
10,475 | image_and_language | bird:train.json:7500 | Give the number of images containing the object sample of "suit". | 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 = 'suit' GROUP BY T2.IMG_ID ) T | [
"Give",
"the",
"number",
"of",
"images",
"containing",
"the",
"object",
"sample",
"of",
"\"",
"suit",
"\"",
"."
] | [
{
"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": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
10,477 | public_review_platform | bird:train.json:3899 | How many businesses are with high review count? | SELECT COUNT(business_id) FROM Business WHERE review_count LIKE 'High' | [
"How",
"many",
"businesses",
"are",
"with",
"high",
"review",
"count",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "review_count"
},
{
"id": 3,
"type": "column",
"value": "business_id"
},
{
"id": 0,
"type": "table",
"value": "business"
},
{
"id": 2,
"type": "value",
"value": "High"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6,
7
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O"
] |
10,478 | planet_1 | bird:test.json:1924 | What are the names of all planets with one employee that has clearance? | SELECT T3.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID GROUP BY T1.Planet HAVING count(*) = 1; | [
"What",
"are",
"the",
"names",
"of",
"all",
"planets",
"with",
"one",
"employee",
"that",
"has",
"clearance",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "has_clearance"
},
{
"id": 8,
"type": "column",
"value": "employeeid"
},
{
"id": 5,
"type": "table",
"value": "employee"
},
{
"id": 6,
"type": "column",
"value": "planetid"
},
{
"id": 7,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11,
12
]
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
10,479 | authors | bird:train.json:3567 | How many papers were preprinted between the years 1990 and 2000? | SELECT COUNT(id) FROM Paper WHERE Year BETWEEN '1990' AND '2000' AND ConferenceId = 0 AND JournalId = 0 | [
"How",
"many",
"papers",
"were",
"preprinted",
"between",
"the",
"years",
"1990",
"and",
"2000",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "conferenceid"
},
{
"id": 7,
"type": "column",
"value": "journalid"
},
{
"id": 0,
"type": "table",
"value": "paper"
},
{
"id": 2,
"type": "column",
"value": "year"
},
{
"id": 3,
"type": "value",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
10,480 | allergy_1 | spider:train_spider.json:496 | What are the average ages for male and female students? | SELECT avg(age) , sex FROM Student GROUP BY sex | [
"What",
"are",
"the",
"average",
"ages",
"for",
"male",
"and",
"female",
"students",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "sex"
},
{
"id": 2,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"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",
"O",
"O",
"B-TABLE",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.