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 |
|---|---|---|---|---|---|---|---|---|
11,768 | cre_Drama_Workshop_Groups | spider:train_spider.json:5136 | What are the different product names? What is the average product price for each of them? | SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name | [
"What",
"are",
"the",
"different",
"product",
"names",
"?",
"What",
"is",
"the",
"average",
"product",
"price",
"for",
"each",
"of",
"them",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "product_price"
},
{
"id": 1,
"type": "column",
"value": "product_name"
},
{
"id": 0,
"type": "table",
"value": "products"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
11,771 | cinema | spider:train_spider.json:1939 | What are the name and location of the cinema with the largest capacity? | SELECT name , LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1 | [
"What",
"are",
"the",
"name",
"and",
"location",
"of",
"the",
"cinema",
"with",
"the",
"largest",
"capacity",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "location"
},
{
"id": 3,
"type": "column",
"value": "capacity"
},
{
"id": 0,
"type": "table",
"value": "cinema"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,772 | entrepreneur | spider:train_spider.json:2271 | What are the names of people in ascending order of weight? | SELECT Name FROM People ORDER BY Weight ASC | [
"What",
"are",
"the",
"names",
"of",
"people",
"in",
"ascending",
"order",
"of",
"weight",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "people"
},
{
"id": 2,
"type": "column",
"value": "weight"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"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",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,773 | theme_gallery | spider:train_spider.json:1667 | Show all artist names and the number of exhibitions for each artist. | SELECT T2.name , count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id | [
"Show",
"all",
"artist",
"names",
"and",
"the",
"number",
"of",
"exhibitions",
"for",
"each",
"artist",
"."
] | [
{
"id": 2,
"type": "table",
"value": "exhibition"
},
{
"id": 0,
"type": "column",
"value": "artist_id"
},
{
"id": 3,
"type": "table",
"value": "artist"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O"
] |
11,774 | student_loan | bird:train.json:4485 | List down the enrolled schools and duration of student214. | SELECT school, month FROM enrolled WHERE name = 'student214' | [
"List",
"down",
"the",
"enrolled",
"schools",
"and",
"duration",
"of",
"student214",
"."
] | [
{
"id": 4,
"type": "value",
"value": "student214"
},
{
"id": 0,
"type": "table",
"value": "enrolled"
},
{
"id": 1,
"type": "column",
"value": "school"
},
{
"id": 2,
"type": "column",
"value": "month"
},
{
"id": 3,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
1,
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
11,775 | card_games | bird:dev.json:355 | What is the keyword found on card 'Angel of Mercy'? | SELECT DISTINCT keywords FROM cards WHERE name = 'Angel of Mercy' | [
"What",
"is",
"the",
"keyword",
"found",
"on",
"card",
"'",
"Angel",
"of",
"Mercy",
"'",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Angel of Mercy"
},
{
"id": 1,
"type": "column",
"value": "keywords"
},
{
"id": 0,
"type": "table",
"value": "cards"
},
{
"id": 2,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"e... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
11,776 | customers_card_transactions | spider:train_spider.json:708 | Count the number of customer cards of the type Debit. | SELECT count(*) FROM Customers_cards WHERE card_type_code = "Debit" | [
"Count",
"the",
"number",
"of",
"customer",
"cards",
"of",
"the",
"type",
"Debit",
"."
] | [
{
"id": 0,
"type": "table",
"value": "customers_cards"
},
{
"id": 1,
"type": "column",
"value": "card_type_code"
},
{
"id": 2,
"type": "column",
"value": "Debit"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,777 | chicago_crime | bird:train.json:8615 | Give the neighborhood name of West Englewood community. | SELECT T1.neighborhood_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.community_area_name = 'West Englewood' | [
"Give",
"the",
"neighborhood",
"name",
"of",
"West",
"Englewood",
"community",
"."
] | [
{
"id": 3,
"type": "column",
"value": "community_area_name"
},
{
"id": 0,
"type": "column",
"value": "neighborhood_name"
},
{
"id": 5,
"type": "column",
"value": "community_area_no"
},
{
"id": 2,
"type": "table",
"value": "community_area"
},
{
"id"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5,
6
]
},
{
... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"O"
] |
11,778 | public_review_platform | bird:train.json:3924 | What is the attribute of the business with highest star rating? | SELECT T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id ORDER BY T1.stars DESC LIMIT 1 | [
"What",
"is",
"the",
"attribute",
"of",
"the",
"business",
"with",
"highest",
"star",
"rating",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "business_attributes"
},
{
"id": 0,
"type": "column",
"value": "attribute_name"
},
{
"id": 5,
"type": "column",
"value": "attribute_id"
},
{
"id": 6,
"type": "column",
"value": "business_id"
},
{
"id": 1,
"t... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
11,779 | card_games | bird:dev.json:512 | How many cards with unknown power that can't be found in foil is in duel deck A? | SELECT SUM(CASE WHEN power = '*' OR power IS NULL THEN 1 ELSE 0 END) FROM cards WHERE hasFoil = 0 AND duelDeck = 'a' | [
"How",
"many",
"cards",
"with",
"unknown",
"power",
"that",
"ca",
"n't",
"be",
"found",
"in",
"foil",
"is",
"in",
"duel",
"deck",
"A",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "dueldeck"
},
{
"id": 1,
"type": "column",
"value": "hasfoil"
},
{
"id": 0,
"type": "table",
"value": "cards"
},
{
"id": 6,
"type": "column",
"value": "power"
},
{
"id": 2,
"type": "value",
"value": "0"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15,
16
]
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
{... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
11,780 | car_racing | bird:test.json:1640 | Find the team with two or more drivers and return the the manager and car owner of the team. | SELECT t1.manager , t1.car_owner FROM team AS t1 JOIN team_driver AS t2 ON t1.team_id = t2.team_id GROUP BY t2.team_id HAVING count(*) >= 2 | [
"Find",
"the",
"team",
"with",
"two",
"or",
"more",
"drivers",
"and",
"return",
"the",
"the",
"manager",
"and",
"car",
"owner",
"of",
"the",
"team",
"."
] | [
{
"id": 4,
"type": "table",
"value": "team_driver"
},
{
"id": 2,
"type": "column",
"value": "car_owner"
},
{
"id": 0,
"type": "column",
"value": "team_id"
},
{
"id": 1,
"type": "column",
"value": "manager"
},
{
"id": 3,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": [
18
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": [
14,
15
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
7
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
11,781 | boat_1 | bird:test.json:860 | What are the different names of sailors who reserved two or more boats ? | select distinct t1.name , t1.sid from sailors as t1 join reserves as t2 on t1.sid = t2.sid group by t2.sid having count(*) >= 2 | [
"What",
"are",
"the",
"different",
"names",
"of",
"sailors",
"who",
"reserved",
"two",
"or",
"more",
"boats",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "reserves"
},
{
"id": 2,
"type": "table",
"value": "sailors"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 0,
"type": "column",
"value": "sid"
},
{
"id": 4,
"type": "value",
"value": "2"
}... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
11,782 | headphone_store | bird:test.json:932 | What are the top 2 earpads in terms of the number of headphones using them? | SELECT earpads FROM headphone GROUP BY earpads ORDER BY count(*) DESC LIMIT 2 | [
"What",
"are",
"the",
"top",
"2",
"earpads",
"in",
"terms",
"of",
"the",
"number",
"of",
"headphones",
"using",
"them",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "headphone"
},
{
"id": 1,
"type": "column",
"value": "earpads"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
11,783 | school_player | spider:train_spider.json:4863 | What is the list of school locations sorted in ascending order of school enrollment? | SELECT LOCATION FROM school ORDER BY Enrollment ASC | [
"What",
"is",
"the",
"list",
"of",
"school",
"locations",
"sorted",
"in",
"ascending",
"order",
"of",
"school",
"enrollment",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "enrollment"
},
{
"id": 1,
"type": "column",
"value": "location"
},
{
"id": 0,
"type": "table",
"value": "school"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
11,785 | cre_Doc_Tracking_DB | spider:train_spider.json:4236 | Show the id of each employee and the number of document destruction authorised by that employee. | SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID | [
"Show",
"the",
"i",
"d",
"of",
"each",
"employee",
"and",
"the",
"number",
"of",
"document",
"destruction",
"authorised",
"by",
"that",
"employee",
"."
] | [
{
"id": 1,
"type": "column",
"value": "destruction_authorised_by_employee_id"
},
{
"id": 0,
"type": "table",
"value": "documents_to_be_destroyed"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11,
12
]
},
{
"entity_id": 1,
"token_idxs": [
13,
14,
15,
16
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
11,786 | world | bird:train.json:7850 | Who is the head of the country where Santa Catarina district belongs? | SELECT T1.HeadOfState FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.District = 'Santa Catarina' | [
"Who",
"is",
"the",
"head",
"of",
"the",
"country",
"where",
"Santa",
"Catarina",
"district",
"belongs",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Santa Catarina"
},
{
"id": 0,
"type": "column",
"value": "headofstate"
},
{
"id": 6,
"type": "column",
"value": "countrycode"
},
{
"id": 3,
"type": "column",
"value": "district"
},
{
"id": 1,
"type": "table... | [
{
"entity_id": 0,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
8,
9... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"O"
] |
11,788 | college_2 | spider:train_spider.json:1464 | Find the names of all instructors in computer science department | SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' | [
"Find",
"the",
"names",
"of",
"all",
"instructors",
"in",
"computer",
"science",
"department"
] | [
{
"id": 0,
"type": "table",
"value": "instructor"
},
{
"id": 3,
"type": "value",
"value": "Comp. Sci."
},
{
"id": 2,
"type": "column",
"value": "dept_name"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN"
] |
11,789 | vehicle_driver | bird:test.json:157 | What is the maximum and average power for the vehicles manufactured by 'Zhuzhou'? | SELECT max(power) , avg(power) FROM vehicle WHERE builder = 'Zhuzhou' | [
"What",
"is",
"the",
"maximum",
"and",
"average",
"power",
"for",
"the",
"vehicles",
"manufactured",
"by",
"'",
"Zhuzhou",
"'",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "vehicle"
},
{
"id": 1,
"type": "column",
"value": "builder"
},
{
"id": 2,
"type": "value",
"value": "Zhuzhou"
},
{
"id": 3,
"type": "column",
"value": "power"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
11,790 | cars | bird:train.json:3113 | Among the cars originated from Japan, what is the name of the car with the highest price? | SELECT T4.car_name FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'Japan' ORDER BY T1.price DESC LIMIT 1 | [
"Among",
"the",
"cars",
"originated",
"from",
"Japan",
",",
"what",
"is",
"the",
"name",
"of",
"the",
"car",
"with",
"the",
"highest",
"price",
"?"
] | [
{
"id": 8,
"type": "table",
"value": "production"
},
{
"id": 0,
"type": "column",
"value": "car_name"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 5,
"type": "table",
"value": "country"
},
{
"id": 9,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"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",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,793 | financial | bird:dev.json:108 | For the client who applied the biggest loan, what was his/her first amount of transaction after opened the account? | SELECT T3.amount FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id ORDER BY T1.amount DESC, T3.date ASC LIMIT 1 | [
"For",
"the",
"client",
"who",
"applied",
"the",
"biggest",
"loan",
",",
"what",
"was",
"his",
"/",
"her",
"first",
"amount",
"of",
"transaction",
"after",
"opened",
"the",
"account",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "account_id"
},
{
"id": 4,
"type": "table",
"value": "account"
},
{
"id": 0,
"type": "column",
"value": "amount"
},
{
"id": 1,
"type": "table",
"value": "trans"
},
{
"id": 2,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
15
]
},
{
"entity_id": 1,
"token_idxs": [
17
]
},
{
"entity_id": 2,
"token_idxs": [
18
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
21
]
},... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
11,794 | inn_1 | spider:train_spider.json:2617 | What are the bed type and name of all the rooms with traditional decor? | SELECT roomName , bedType FROM Rooms WHERE decor = "traditional"; | [
"What",
"are",
"the",
"bed",
"type",
"and",
"name",
"of",
"all",
"the",
"rooms",
"with",
"traditional",
"decor",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "traditional"
},
{
"id": 1,
"type": "column",
"value": "roomname"
},
{
"id": 2,
"type": "column",
"value": "bedtype"
},
{
"id": 0,
"type": "table",
"value": "rooms"
},
{
"id": 3,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
3,
4
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
12
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
11,795 | solvency_ii | spider:train_spider.json:4587 | What is the average price for products? | SELECT avg(Product_Price) FROM Products | [
"What",
"is",
"the",
"average",
"price",
"for",
"products",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "product_price"
},
{
"id": 0,
"type": "table",
"value": "products"
}
] | [
{
"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"
] |
11,796 | restaurant | bird:train.json:1690 | What restaurant on Drive Street in San Rafael doesn't serve American food? | SELECT T1.label FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'drive' AND T1.food_type != 'american' AND T2.city = 'san rafael' | [
"What",
"restaurant",
"on",
"Drive",
"Street",
"in",
"San",
"Rafael",
"does",
"n't",
"serve",
"American",
"food",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "id_restaurant"
},
{
"id": 1,
"type": "table",
"value": "generalinfo"
},
{
"id": 4,
"type": "column",
"value": "street_name"
},
{
"id": 9,
"type": "value",
"value": "san rafael"
},
{
"id": 6,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
1
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
11,797 | soccer_2 | spider:train_spider.json:4984 | Which position is most popular among players in the tryout? | SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1 | [
"Which",
"position",
"is",
"most",
"popular",
"among",
"players",
"in",
"the",
"tryout",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "tryout"
},
{
"id": 1,
"type": "column",
"value": "ppos"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,798 | bike_1 | spider:train_spider.json:181 | Find the zip code in which the average mean visibility is lower than 10. | SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles) < 10 | [
"Find",
"the",
"zip",
"code",
"in",
"which",
"the",
"average",
"mean",
"visibility",
"is",
"lower",
"than",
"10",
"."
] | [
{
"id": 3,
"type": "column",
"value": "mean_visibility_miles"
},
{
"id": 1,
"type": "column",
"value": "zip_code"
},
{
"id": 0,
"type": "table",
"value": "weather"
},
{
"id": 2,
"type": "value",
"value": "10"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
8,
9,
10
]
},
{
"entity_id": 4,
"token_id... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
11,799 | olympics | bird:train.json:5048 | Which region is the majority of the athletes from? | SELECT T2.region_name FROM person_region AS T1 INNER JOIN noc_region AS T2 ON T1.region_id = T2.id GROUP BY T2.region_name ORDER BY COUNT(T1.person_id) DESC LIMIT 1 | [
"Which",
"region",
"is",
"the",
"majority",
"of",
"the",
"athletes",
"from",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "person_region"
},
{
"id": 0,
"type": "column",
"value": "region_name"
},
{
"id": 2,
"type": "table",
"value": "noc_region"
},
{
"id": 3,
"type": "column",
"value": "region_id"
},
{
"id": 5,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
1
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,800 | university_rank | bird:test.json:1791 | What is the university name with highest research point? | SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id ORDER BY T2.research_point DESC LIMIT 1 | [
"What",
"is",
"the",
"university",
"name",
"with",
"highest",
"research",
"point",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "university_name"
},
{
"id": 2,
"type": "table",
"value": "overall_ranking"
},
{
"id": 3,
"type": "column",
"value": "research_point"
},
{
"id": 4,
"type": "column",
"value": "university_id"
},
{
"id": 1,
"... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
11,801 | works_cycles | bird:train.json:7117 | What is the sales revenue for item number 740? | SELECT ListPrice - StandardCost FROM Product WHERE ProductID = 740 | [
"What",
"is",
"the",
"sales",
"revenue",
"for",
"item",
"number",
"740",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "standardcost"
},
{
"id": 1,
"type": "column",
"value": "productid"
},
{
"id": 3,
"type": "column",
"value": "listprice"
},
{
"id": 0,
"type": "table",
"value": "product"
},
{
"id": 2,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
11,802 | video_games | bird:train.json:3308 | Please list all the games that have the same game genre as 3D Lemmings. | SELECT T1.game_name FROM game AS T1 WHERE T1.genre_id = ( SELECT T.genre_id FROM game AS T WHERE T.game_name = '3D Lemmings' ) | [
"Please",
"list",
"all",
"the",
"games",
"that",
"have",
"the",
"same",
"game",
"genre",
"as",
"3D",
"Lemmings",
"."
] | [
{
"id": 3,
"type": "value",
"value": "3D Lemmings"
},
{
"id": 1,
"type": "column",
"value": "game_name"
},
{
"id": 2,
"type": "column",
"value": "genre_id"
},
{
"id": 0,
"type": "table",
"value": "game"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
11,803 | synthea | bird:train.json:1504 | Among the male patients, who has the earliest starting date of the care plan? | SELECT T2.first, T2.last FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.gender = 'M' ORDER BY T1.START LIMIT 1 | [
"Among",
"the",
"male",
"patients",
",",
"who",
"has",
"the",
"earliest",
"starting",
"date",
"of",
"the",
"care",
"plan",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "careplans"
},
{
"id": 3,
"type": "table",
"value": "patients"
},
{
"id": 7,
"type": "column",
"value": "patient"
},
{
"id": 4,
"type": "column",
"value": "gender"
},
{
"id": 0,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13,
14
]
},
{
"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",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
11,804 | hr_1 | spider:train_spider.json:3513 | display all the information of those employees who did not have any job in the past. | SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history) | [
"display",
"all",
"the",
"information",
"of",
"those",
"employees",
"who",
"did",
"not",
"have",
"any",
"job",
"in",
"the",
"past",
"."
] | [
{
"id": 1,
"type": "column",
"value": "employee_id"
},
{
"id": 2,
"type": "table",
"value": "job_history"
},
{
"id": 0,
"type": "table",
"value": "employees"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,805 | soccer_2016 | bird:train.json:1806 | How many times has Sunrisers Hyderabad been the toss winner of a game? | SELECT SUM(CASE WHEN Toss_Winner = ( SELECT Team_Id FROM Team WHERE Team_Name = 'Sunrisers Hyderabad' ) THEN 1 ELSE 0 END) FROM `Match` | [
"How",
"many",
"times",
"has",
"Sunrisers",
"Hyderabad",
"been",
"the",
"toss",
"winner",
"of",
"a",
"game",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "Sunrisers Hyderabad"
},
{
"id": 3,
"type": "column",
"value": "toss_winner"
},
{
"id": 6,
"type": "column",
"value": "team_name"
},
{
"id": 5,
"type": "column",
"value": "team_id"
},
{
"id": 0,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O"
] |
11,806 | public_review_platform | bird:train.json:3871 | Please list the business IDs of the Yelp_Business that have a business time of longer than 12 hours on Sundays. | SELECT T1.business_id FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T1.closing_time + 12 - T1.opening_time > 12 AND T2.day_of_week LIKE 'Sunday' GROUP BY T1.business_id | [
"Please",
"list",
"the",
"business",
"IDs",
"of",
"the",
"Yelp_Business",
"that",
"have",
"a",
"business",
"time",
"of",
"longer",
"than",
"12",
"hours",
"on",
"Sundays",
"."
] | [
{
"id": 2,
"type": "table",
"value": "business_hours"
},
{
"id": 8,
"type": "column",
"value": "opening_time"
},
{
"id": 9,
"type": "column",
"value": "closing_time"
},
{
"id": 0,
"type": "column",
"value": "business_id"
},
{
"id": 5,
"type": "... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
19
]
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
{
"entit... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"O"
] |
11,807 | california_schools | bird:dev.json:52 | What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is Lakeport? | SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Lakeport' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500 | [
"What",
"is",
"the",
"total",
"number",
"of",
"schools",
"whose",
"total",
"SAT",
"scores",
"are",
"greater",
"or",
"equal",
"to",
"1500",
"whose",
"mailing",
"city",
"is",
"Lakeport",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "avgscrwrite"
},
{
"id": 8,
"type": "column",
"value": "avgscrread"
},
{
"id": 9,
"type": "column",
"value": "avgscrmath"
},
{
"id": 0,
"type": "table",
"value": "satscores"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
18,
19
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
11,809 | video_game | bird:test.json:1960 | How many games are there from each Franchise? | SELECT Franchise , COUNT(*) FROM game GROUP BY Franchise | [
"How",
"many",
"games",
"are",
"there",
"from",
"each",
"Franchise",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "franchise"
},
{
"id": 0,
"type": "table",
"value": "game"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,810 | college_1 | spider:train_spider.json:3192 | Count different addresses of each school. | SELECT count(DISTINCT dept_address) , school_code FROM department GROUP BY school_code | [
"Count",
"different",
"addresses",
"of",
"each",
"school",
"."
] | [
{
"id": 2,
"type": "column",
"value": "dept_address"
},
{
"id": 1,
"type": "column",
"value": "school_code"
},
{
"id": 0,
"type": "table",
"value": "department"
}
] | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
11,811 | european_football_1 | bird:train.json:2786 | Which team has the most victories as the home team in matches of the Bundesliga division? | SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'H' GROUP BY T1.HomeTeam ORDER BY COUNT(T1.FTR) DESC LIMIT 1 | [
"Which",
"team",
"has",
"the",
"most",
"victories",
"as",
"the",
"home",
"team",
"in",
"matches",
"of",
"the",
"Bundesliga",
"division",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Bundesliga"
},
{
"id": 2,
"type": "table",
"value": "divisions"
},
{
"id": 0,
"type": "column",
"value": "hometeam"
},
{
"id": 4,
"type": "column",
"value": "division"
},
{
"id": 1,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": [
8,
9
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
11,812 | movie_3 | bird:train.json:9259 | Find and list the full name of customers who rented more family movies than Sci-Fi movies. | SELECT DISTINCT IIF(SUM(IIF(T5.name = 'Family', 1, 0)) - SUM(IIF(T5.name = 'Sci-Fi', 1, 0)) > 0, T1.first_name, 0) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film_category AS T4 ON T4.film_id = T3.film_id INNE... | [
"Find",
"and",
"list",
"the",
"full",
"name",
"of",
"customers",
"who",
"rented",
"more",
"family",
"movies",
"than",
"Sci",
"-",
"Fi",
"movies",
"."
] | [
{
"id": 4,
"type": "table",
"value": "film_category"
},
{
"id": 10,
"type": "column",
"value": "inventory_id"
},
{
"id": 0,
"type": "column",
"value": "customer_id"
},
{
"id": 5,
"type": "column",
"value": "category_id"
},
{
"id": 2,
"type": "c... | [
{
"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",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
11,813 | cre_Students_Information_Systems | bird:test.json:447 | What are the loan amounts and loan dates of the students who have at least 2 achievements? | SELECT amount_of_loan , date_of_loan FROM Student_Loans WHERE student_id IN ( SELECT student_id FROM Achievements GROUP BY student_id HAVING count(*) >= 2 ) | [
"What",
"are",
"the",
"loan",
"amounts",
"and",
"loan",
"dates",
"of",
"the",
"students",
"who",
"have",
"at",
"least",
"2",
"achievements",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "amount_of_loan"
},
{
"id": 0,
"type": "table",
"value": "student_loans"
},
{
"id": 2,
"type": "column",
"value": "date_of_loan"
},
{
"id": 4,
"type": "table",
"value": "achievements"
},
{
"id": 3,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
2,
3
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
1... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
11,814 | storm_record | spider:train_spider.json:2716 | What is the storm name and max speed which affected the greatest number of regions? | SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"storm",
"name",
"and",
"max",
"speed",
"which",
"affected",
"the",
"greatest",
"number",
"of",
"regions",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "affected_region"
},
{
"id": 2,
"type": "column",
"value": "max_speed"
},
{
"id": 0,
"type": "column",
"value": "storm_id"
},
{
"id": 3,
"type": "table",
"value": "storm"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,815 | restaurant | bird:train.json:1717 | Which county and region does the street E. El Camino Real belong to? | SELECT DISTINCT T2.county, T2.region FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.street_name = 'E. El Camino Real' | [
"Which",
"county",
"and",
"region",
"does",
"the",
"street",
"E.",
"El",
"Camino",
"Real",
"belong",
"to",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "E. El Camino Real"
},
{
"id": 4,
"type": "column",
"value": "street_name"
},
{
"id": 3,
"type": "table",
"value": "geographic"
},
{
"id": 2,
"type": "table",
"value": "location"
},
{
"id": 0,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
8,
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id":... | [
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"B-TABLE",
"I-TABLE",
"B-VALUE",
"O",
"O",
"O"
] |
11,816 | regional_sales | bird:train.json:2696 | At what Latitude and Longitude is the store that has used the WARE-PUJ1005 warehouse the fewest times? | SELECT T2.Latitude, T2.Longitude FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T1.WarehouseCode = 'WARE-PUJ1005' GROUP BY T2.StoreID ORDER BY COUNT(T1.WarehouseCode) ASC LIMIT 1 | [
"At",
"what",
"Latitude",
"and",
"Longitude",
"is",
"the",
"store",
"that",
"has",
"used",
"the",
"WARE",
"-",
"PUJ1005",
"warehouse",
"the",
"fewest",
"times",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "Store Locations"
},
{
"id": 5,
"type": "column",
"value": "warehousecode"
},
{
"id": 3,
"type": "table",
"value": "Sales Orders"
},
{
"id": 6,
"type": "value",
"value": "WARE-PUJ1005"
},
{
"id": 2,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
11,817 | baseball_1 | spider:train_spider.json:3681 | List the 3 highest salaries of the players in 2001? | SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3; | [
"List",
"the",
"3",
"highest",
"salaries",
"of",
"the",
"players",
"in",
"2001",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "salary"
},
{
"id": 1,
"type": "column",
"value": "salary"
},
{
"id": 2,
"type": "column",
"value": "year"
},
{
"id": 3,
"type": "value",
"value": "2001"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
11,818 | soccer_2016 | bird:train.json:1848 | Among the matches held in 2015, who is the winning team in the match ID 829768? | SELECT T2.Team_Name FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Match_Winner WHERE T1.Match_Date LIKE '2015%' AND T1.Match_Id = 829768 | [
"Among",
"the",
"matches",
"held",
"in",
"2015",
",",
"who",
"is",
"the",
"winning",
"team",
"in",
"the",
"match",
"ID",
"829768",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "match_winner"
},
{
"id": 5,
"type": "column",
"value": "match_date"
},
{
"id": 0,
"type": "column",
"value": "team_name"
},
{
"id": 7,
"type": "column",
"value": "match_id"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O"
] |
11,819 | student_loan | bird:train.json:4512 | List out female students that enrolled in occ school and ulca? | SELECT name FROM enrolled WHERE school IN ('occ', 'ulca') AND name NOT IN ( SELECT name FROM male ) | [
"List",
"out",
"female",
"students",
"that",
"enrolled",
"in",
"occ",
"school",
"and",
"ulca",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "enrolled"
},
{
"id": 2,
"type": "column",
"value": "school"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "value",
"value": "ulca"
},
{
"id": 5,
"type": "table",
"value": "male"
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
11,820 | cre_Docs_and_Epenses | spider:train_spider.json:6413 | What is the id of the project with least number of documents? | SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1 | [
"What",
"is",
"the",
"i",
"d",
"of",
"the",
"project",
"with",
"least",
"number",
"of",
"documents",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "project_id"
},
{
"id": 0,
"type": "table",
"value": "documents"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"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",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,821 | loan_1 | spider:train_spider.json:3041 | What are the names of customers who have not taken a Mortage loan? | SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages' | [
"What",
"are",
"the",
"names",
"of",
"customers",
"who",
"have",
"not",
"taken",
"a",
"Mortage",
"loan",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "cust_name"
},
{
"id": 3,
"type": "column",
"value": "loan_type"
},
{
"id": 4,
"type": "value",
"value": "Mortgages"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 5,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
11,822 | thrombosis_prediction | bird:dev.json:1195 | What is the average blood albumin level for female patients with a PLT greater than 400 who have been diagnosed with SLE? | SELECT AVG(T2.ALB) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PLT > 400 AND T1.Diagnosis = 'SLE' AND T1.SEX = 'F' | [
"What",
"is",
"the",
"average",
"blood",
"albumin",
"level",
"for",
"female",
"patients",
"with",
"a",
"PLT",
"greater",
"than",
"400",
"who",
"have",
"been",
"diagnosed",
"with",
"SLE",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "laboratory"
},
{
"id": 6,
"type": "column",
"value": "diagnosis"
},
{
"id": 0,
"type": "table",
"value": "patient"
},
{
"id": 2,
"type": "column",
"value": "alb"
},
{
"id": 4,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
11,823 | manufactory_1 | spider:train_spider.json:5292 | What is the total revenue of all companies whose main office is at Tokyo or Taiwan? | SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan' | [
"What",
"is",
"the",
"total",
"revenue",
"of",
"all",
"companies",
"whose",
"main",
"office",
"is",
"at",
"Tokyo",
"or",
"Taiwan",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "manufacturers"
},
{
"id": 2,
"type": "column",
"value": "headquarter"
},
{
"id": 1,
"type": "column",
"value": "revenue"
},
{
"id": 4,
"type": "value",
"value": "Taiwan"
},
{
"id": 3,
"type": "value",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
11,824 | school_finance | spider:train_spider.json:1890 | List the name of the school with the smallest enrollment. | SELECT school_name FROM school ORDER BY enrollment LIMIT 1 | [
"List",
"the",
"name",
"of",
"the",
"school",
"with",
"the",
"smallest",
"enrollment",
"."
] | [
{
"id": 1,
"type": "column",
"value": "school_name"
},
{
"id": 2,
"type": "column",
"value": "enrollment"
},
{
"id": 0,
"type": "table",
"value": "school"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,825 | retail_world | bird:train.json:6622 | How many suppliers are from UK? | SELECT COUNT(SupplierID) FROM Suppliers WHERE Country = 'UK' | [
"How",
"many",
"suppliers",
"are",
"from",
"UK",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "supplierid"
},
{
"id": 0,
"type": "table",
"value": "suppliers"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 2,
"type": "value",
"value": "UK"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
11,826 | video_games | bird:train.json:3435 | Indicate the name of all the games published for the 'SCD' platform. | SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T4.platform_name = 'SCD' | [
"Indicate",
"the",
"name",
"of",
"all",
"the",
"games",
"published",
"for",
"the",
"'",
"SCD",
"'",
"platform",
"."
] | [
{
"id": 9,
"type": "column",
"value": "game_publisher_id"
},
{
"id": 8,
"type": "table",
"value": "game_publisher"
},
{
"id": 2,
"type": "column",
"value": "platform_name"
},
{
"id": 4,
"type": "table",
"value": "game_platform"
},
{
"id": 5,
"t... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O"
] |
11,827 | customers_and_products_contacts | spider:train_spider.json:5653 | How many addresses are there in country USA? | SELECT count(*) FROM addresses WHERE country = 'USA' | [
"How",
"many",
"addresses",
"are",
"there",
"in",
"country",
"USA",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "addresses"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 2,
"type": "value",
"value": "USA"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
11,828 | company_office | spider:train_spider.json:4577 | Show the industries shared by companies whose headquarters are "USA" and companies whose headquarters are "China". | SELECT Industry FROM Companies WHERE Headquarters = "USA" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = "China" | [
"Show",
"the",
"industries",
"shared",
"by",
"companies",
"whose",
"headquarters",
"are",
"\"",
"USA",
"\"",
"and",
"companies",
"whose",
"headquarters",
"are",
"\"",
"China",
"\"",
"."
] | [
{
"id": 2,
"type": "column",
"value": "headquarters"
},
{
"id": 0,
"type": "table",
"value": "companies"
},
{
"id": 1,
"type": "column",
"value": "industry"
},
{
"id": 4,
"type": "column",
"value": "China"
},
{
"id": 3,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
18
]
},... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
11,829 | county_public_safety | spider:train_spider.json:2550 | Show names of cities and names of counties they are in. | SELECT T1.Name , T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID | [
"Show",
"names",
"of",
"cities",
"and",
"names",
"of",
"counties",
"they",
"are",
"in",
"."
] | [
{
"id": 2,
"type": "table",
"value": "county_public_safety"
},
{
"id": 3,
"type": "column",
"value": "county_id"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 1,
"type": "table",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
11,831 | retails | bird:train.json:6771 | Name the part which is most profitable. | SELECT T.p_name FROM ( SELECT T3.p_name , T2.l_extendedprice * (1 - T2.l_discount) - T1.ps_supplycost * T2.l_quantity AS num FROM partsupp AS T1 INNER JOIN lineitem AS T2 ON T1.ps_suppkey = T2.l_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey ) AS T ORDER BY T.num DESC LIMIT 1 | [
"Name",
"the",
"part",
"which",
"is",
"most",
"profitable",
"."
] | [
{
"id": 7,
"type": "column",
"value": "l_extendedprice"
},
{
"id": 8,
"type": "column",
"value": "ps_supplycost"
},
{
"id": 5,
"type": "column",
"value": "ps_partkey"
},
{
"id": 9,
"type": "column",
"value": "l_quantity"
},
{
"id": 10,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
0
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
11,832 | wine_1 | spider:train_spider.json:6561 | List the names of all distinct wines ordered by price. | SELECT DISTINCT Name FROM WINE ORDER BY price | [
"List",
"the",
"names",
"of",
"all",
"distinct",
"wines",
"ordered",
"by",
"price",
"."
] | [
{
"id": 2,
"type": "column",
"value": "price"
},
{
"id": 0,
"type": "table",
"value": "wine"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O"
] |
11,833 | book_2 | spider:train_spider.json:213 | How many books are there? | SELECT count(*) FROM book | [
"How",
"many",
"books",
"are",
"there",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "book"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
11,834 | ice_hockey_draft | bird:train.json:6992 | Which country do most players of team Plymouth Whalers come from? | SELECT T.nation FROM ( SELECT T1.nation, COUNT(T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.TEAM = 'Plymouth Whalers' GROUP BY T1.nation ORDER BY COUNT(T1.ELITEID) DESC LIMIT 1 ) AS T | [
"Which",
"country",
"do",
"most",
"players",
"of",
"team",
"Plymouth",
"Whalers",
"come",
"from",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Plymouth Whalers"
},
{
"id": 2,
"type": "table",
"value": "seasonstatus"
},
{
"id": 1,
"type": "table",
"value": "playerinfo"
},
{
"id": 5,
"type": "column",
"value": "eliteid"
},
{
"id": 0,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
7,
8
]
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
11,835 | manufactory_1 | spider:train_spider.json:5296 | Find the name, headquarter and founder of the manufacturer that has the highest revenue. | SELECT name , headquarter , founder FROM manufacturers ORDER BY revenue DESC LIMIT 1 | [
"Find",
"the",
"name",
",",
"headquarter",
"and",
"founder",
"of",
"the",
"manufacturer",
"that",
"has",
"the",
"highest",
"revenue",
"."
] | [
{
"id": 0,
"type": "table",
"value": "manufacturers"
},
{
"id": 2,
"type": "column",
"value": "headquarter"
},
{
"id": 3,
"type": "column",
"value": "founder"
},
{
"id": 4,
"type": "column",
"value": "revenue"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,836 | car_retails | bird:train.json:1647 | List the name of employees in Japan office and who are they reporting to. | SELECT t2.firstName, t2.lastName, t2.reportsTo FROM offices AS t1 INNER JOIN employees AS t2 ON t1.officeCode = t2.officeCode WHERE t1.country = 'Japan' | [
"List",
"the",
"name",
"of",
"employees",
"in",
"Japan",
"office",
"and",
"who",
"are",
"they",
"reporting",
"to",
"."
] | [
{
"id": 7,
"type": "column",
"value": "officecode"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 2,
"type": "column",
"value": "reportsto"
},
{
"id": 4,
"type": "table",
"value": "employees"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
0,
1
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
12,
13
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
11,837 | customers_and_orders | bird:test.json:312 | What are the ids of customers who have not made an order? | SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Customer_orders | [
"What",
"are",
"the",
"ids",
"of",
"customers",
"who",
"have",
"not",
"made",
"an",
"order",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "customer_orders"
},
{
"id": 2,
"type": "column",
"value": "customer_id"
},
{
"id": 0,
"type": "table",
"value": "customers"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,838 | hospital_1 | spider:train_spider.json:3979 | What are the names of procedures physician John Wen was trained in? | SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" | [
"What",
"are",
"the",
"names",
"of",
"procedures",
"physician",
"John",
"Wen",
"was",
"trained",
"in",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "procedures"
},
{
"id": 4,
"type": "table",
"value": "trained_in"
},
{
"id": 7,
"type": "column",
"value": "employeeid"
},
{
"id": 3,
"type": "table",
"value": "physician"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10,
11
]
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
11,839 | college_1 | spider:train_spider.json:3330 | What are the first names of all professors who teach more than one class? | SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING count(*) > 1 | [
"What",
"are",
"the",
"first",
"names",
"of",
"all",
"professors",
"who",
"teach",
"more",
"than",
"one",
"class",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "emp_fname"
},
{
"id": 0,
"type": "column",
"value": "prof_num"
},
{
"id": 3,
"type": "table",
"value": "employee"
},
{
"id": 5,
"type": "column",
"value": "emp_num"
},
{
"id": 2,
"type": "table",
"valu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,840 | movie_1 | spider:train_spider.json:2520 | find the ids of reviewers who did not give 4 star. | SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4 | [
"find",
"the",
"ids",
"of",
"reviewers",
"who",
"did",
"not",
"give",
"4",
"star",
"."
] | [
{
"id": 0,
"type": "table",
"value": "rating"
},
{
"id": 2,
"type": "column",
"value": "stars"
},
{
"id": 1,
"type": "column",
"value": "rid"
},
{
"id": 3,
"type": "value",
"value": "4"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
11,841 | tracking_software_problems | spider:train_spider.json:5379 | What are the products that have problems reported after 1986-11-13? Give me the product id and the count of problems reported after 1986-11-13. | SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id | [
"What",
"are",
"the",
"products",
"that",
"have",
"problems",
"reported",
"after",
"1986",
"-",
"11",
"-",
"13",
"?",
"Give",
"me",
"the",
"product",
"i",
"d",
"and",
"the",
"count",
"of",
"problems",
"reported",
"after",
"1986",
"-",
"11",
"-",
"13",
... | [
{
"id": 3,
"type": "column",
"value": "date_problem_reported"
},
{
"id": 0,
"type": "column",
"value": "product_id"
},
{
"id": 4,
"type": "column",
"value": "1986-11-13"
},
{
"id": 1,
"type": "table",
"value": "problems"
},
{
"id": 2,
"type": "... | [
{
"entity_id": 0,
"token_idxs": [
19,
20
]
},
{
"entity_id": 1,
"token_idxs": [
25
]
},
{
"entity_id": 2,
"token_idxs": [
18
]
},
{
"entity_id": 3,
"token_idxs": [
5,
6,
7
]
},
{
"entity_id": 4,
"token_... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"... |
11,842 | store_1 | spider:train_spider.json:639 | List all tracks bought by customer Daan Peeters. | SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "Daan" AND T4.last_name = "Peeters"; | [
"List",
"all",
"tracks",
"bought",
"by",
"customer",
"Daan",
"Peeters",
"."
] | [
{
"id": 10,
"type": "table",
"value": "invoice_lines"
},
{
"id": 4,
"type": "column",
"value": "customer_id"
},
{
"id": 5,
"type": "column",
"value": "first_name"
},
{
"id": 11,
"type": "column",
"value": "invoice_id"
},
{
"id": 1,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"O"
] |
11,843 | talkingdata | bird:train.json:1117 | Calculate the ratio in percentage between the average number of app users belonging to "80s Japanese comic" and "90s Japanese comic". | SELECT SUM(IIF(T1.category = '80s Japanese comic', 1, 0)) / COUNT(T1.label_id) AS J8 , SUM(IIF(T1.category = '90s Japanese comic', 1, 0)) / COUNT(T1.label_id) AS J9 FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id | [
"Calculate",
"the",
"ratio",
"in",
"percentage",
"between",
"the",
"average",
"number",
"of",
"app",
"users",
"belonging",
"to",
"\"",
"80s",
"Japanese",
"comic",
"\"",
"and",
"\"",
"90s",
"Japanese",
"comic",
"\"",
"."
] | [
{
"id": 6,
"type": "value",
"value": "80s Japanese comic"
},
{
"id": 7,
"type": "value",
"value": "90s Japanese comic"
},
{
"id": 0,
"type": "table",
"value": "label_categories"
},
{
"id": 1,
"type": "table",
"value": "app_labels"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
11,844 | music_1 | spider:train_spider.json:3611 | Find the country of origin for the artist who made the least number of songs? | SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1 | [
"Find",
"the",
"country",
"of",
"origin",
"for",
"the",
"artist",
"who",
"made",
"the",
"least",
"number",
"of",
"songs",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "artist_name"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 2,
"type": "table",
"value": "artist"
},
{
"id": 3,
"type": "table",
"value": "song"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,845 | restaurant | bird:train.json:1756 | Give the review of the restaurant located in Ocean St., Santa Cruz. | SELECT T2.review FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.city = 'santa cruz' AND T1.street_name = 'ocean st' | [
"Give",
"the",
"review",
"of",
"the",
"restaurant",
"located",
"in",
"Ocean",
"St.",
",",
"Santa",
"Cruz",
"."
] | [
{
"id": 3,
"type": "column",
"value": "id_restaurant"
},
{
"id": 2,
"type": "table",
"value": "generalinfo"
},
{
"id": 6,
"type": "column",
"value": "street_name"
},
{
"id": 5,
"type": "value",
"value": "santa cruz"
},
{
"id": 1,
"type": "table... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6,
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"I-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
11,846 | movies_4 | bird:train.json:497 | What is the country ID of the movie with the title of "Pirates of the Caribbean: Dead Man's Chest"? | SELECT T2.COUNTry_id FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title LIKE 'Pirates of the Caribbean: Dead Man%s Chest' | [
"What",
"is",
"the",
"country",
"ID",
"of",
"the",
"movie",
"with",
"the",
"title",
"of",
"\"",
"Pirates",
"of",
"the",
"Caribbean",
":",
"Dead",
"Man",
"'s",
"Chest",
"\"",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Pirates of the Caribbean: Dead Man%s Chest"
},
{
"id": 2,
"type": "table",
"value": "production_country"
},
{
"id": 0,
"type": "column",
"value": "country_id"
},
{
"id": 5,
"type": "column",
"value": "movie_id"
},
... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
13,
14,
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
11,847 | retails | bird:train.json:6751 | Name the countries that belong in the region with comment description "furiously express accounts wake sly". | SELECT T1.n_name FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey WHERE T2.r_comment = 'furiously express accounts wake sly' | [
"Name",
"the",
"countries",
"that",
"belong",
"in",
"the",
"region",
"with",
"comment",
"description",
"\"",
"furiously",
"express",
"accounts",
"wake",
"sly",
"\"",
"."
] | [
{
"id": 4,
"type": "value",
"value": "furiously express accounts wake sly"
},
{
"id": 5,
"type": "column",
"value": "n_regionkey"
},
{
"id": 6,
"type": "column",
"value": "r_regionkey"
},
{
"id": 3,
"type": "column",
"value": "r_comment"
},
{
"id":... | [
{
"entity_id": 0,
"token_idxs": [
0
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
12,
13,
14,
... | [
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
11,848 | college_2 | spider:train_spider.json:1338 | How many departments offer courses? | SELECT count(DISTINCT dept_name) FROM course | [
"How",
"many",
"departments",
"offer",
"courses",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "dept_name"
},
{
"id": 0,
"type": "table",
"value": "course"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
11,849 | cs_semester | bird:train.json:870 | What is the average gpa of Ogdon Zywicki's research assistants? | SELECT SUM(T3.gpa) / COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T1.student_id = T3.student_id WHERE T2.first_name = 'Ogdon' AND T2.last_name = 'Zywicki' | [
"What",
"is",
"the",
"average",
"gpa",
"of",
"Ogdon",
"Zywicki",
"'s",
"research",
"assistants",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "student_id"
},
{
"id": 4,
"type": "column",
"value": "first_name"
},
{
"id": 6,
"type": "column",
"value": "last_name"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 7,
"type": "value",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
6
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O"
] |
11,850 | video_games | bird:train.json:3357 | Provide the release year of record ID 1 to 10. | SELECT T.release_year FROM game_platform AS T WHERE T.id BETWEEN 1 AND 10 | [
"Provide",
"the",
"release",
"year",
"of",
"record",
"ID",
"1",
"to",
"10",
"."
] | [
{
"id": 0,
"type": "table",
"value": "game_platform"
},
{
"id": 1,
"type": "column",
"value": "release_year"
},
{
"id": 2,
"type": "column",
"value": "id"
},
{
"id": 4,
"type": "value",
"value": "10"
},
{
"id": 3,
"type": "value",
"value": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
11,852 | hockey | bird:train.json:7678 | Which country has the most players in the Hall of Fame? | SELECT T1.birthCountry FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID GROUP BY T1.birthCountry ORDER BY COUNT(T1.playerID) DESC LIMIT 1 | [
"Which",
"country",
"has",
"the",
"most",
"players",
"in",
"the",
"Hall",
"of",
"Fame",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "birthcountry"
},
{
"id": 4,
"type": "column",
"value": "playerid"
},
{
"id": 1,
"type": "table",
"value": "master"
},
{
"id": 3,
"type": "column",
"value": "hofid"
},
{
"id": 2,
"type": "table",
"value... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
... | [
"O",
"B-COLUMN",
"B-TABLE",
"I-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
11,853 | trains | bird:train.json:721 | Which direction does the majority of the trains that have 3 cars are running? | SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS carsNum FROM cars GROUP BY train_id HAVING carsNum = 3 ) AS T2 ON T1.id = T2.train_id GROUP BY T1.direction | [
"Which",
"direction",
"does",
"the",
"majority",
"of",
"the",
"trains",
"that",
"have",
"3",
"cars",
"are",
"running",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "direction"
},
{
"id": 3,
"type": "column",
"value": "train_id"
},
{
"id": 5,
"type": "column",
"value": "carsnum"
},
{
"id": 1,
"type": "table",
"value": "trains"
},
{
"id": 4,
"type": "table",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O"
] |
11,854 | farm | spider:train_spider.json:35 | Give the years and official names of the cities of each competition. | SELECT T2.Year , T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID | [
"Give",
"the",
"years",
"and",
"official",
"names",
"of",
"the",
"cities",
"of",
"each",
"competition",
"."
] | [
{
"id": 3,
"type": "table",
"value": "farm_competition"
},
{
"id": 1,
"type": "column",
"value": "official_name"
},
{
"id": 5,
"type": "column",
"value": "host_city_id"
},
{
"id": 4,
"type": "column",
"value": "city_id"
},
{
"id": 0,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O"
] |
11,855 | product_catalog | spider:train_spider.json:303 | Find the list of attribute data types possessed by more than 3 attribute definitions. | SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3 | [
"Find",
"the",
"list",
"of",
"attribute",
"data",
"types",
"possessed",
"by",
"more",
"than",
"3",
"attribute",
"definitions",
"."
] | [
{
"id": 0,
"type": "table",
"value": "attribute_definitions"
},
{
"id": 1,
"type": "column",
"value": "attribute_data_type"
},
{
"id": 2,
"type": "value",
"value": "3"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12,
13
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"I-TABLE",
"O"
] |
11,856 | cs_semester | bird:train.json:886 | What is the percentage of Professor Ogdon Zywicki's research assistants are taught postgraduate students? | SELECT CAST(SUM(CASE WHEN T3.type = 'TPG' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T1.student_id = T3.student_id WHERE T2.first_name = 'Ogdon' AND T2.last_name = 'Zywicki' | [
"What",
"is",
"the",
"percentage",
"of",
"Professor",
"Ogdon",
"Zywicki",
"'s",
"research",
"assistants",
"are",
"taught",
"postgraduate",
"students",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "student_id"
},
{
"id": 4,
"type": "column",
"value": "first_name"
},
{
"id": 6,
"type": "column",
"value": "last_name"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 7,
"type": "value",
"... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"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",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,857 | warehouse_1 | bird:test.json:1757 | Find the total values of boxes that are not in the warehouses located at Chicago. | SELECT sum(T1.value) FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location != 'Chicago' | [
"Find",
"the",
"total",
"values",
"of",
"boxes",
"that",
"are",
"not",
"in",
"the",
"warehouses",
"located",
"at",
"Chicago",
"."
] | [
{
"id": 1,
"type": "table",
"value": "warehouses"
},
{
"id": 5,
"type": "column",
"value": "warehouse"
},
{
"id": 2,
"type": "column",
"value": "location"
},
{
"id": 3,
"type": "value",
"value": "Chicago"
},
{
"id": 0,
"type": "table",
"val... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entit... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
11,858 | soccer_3 | bird:test.json:12 | What are the distinct countries of players with earnings higher than 1200000? | SELECT DISTINCT Country FROM player WHERE Earnings > 1200000 | [
"What",
"are",
"the",
"distinct",
"countries",
"of",
"players",
"with",
"earnings",
"higher",
"than",
"1200000",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "earnings"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 3,
"type": "value",
"value": "1200000"
},
{
"id": 0,
"type": "table",
"value": "player"
}
] | [
{
"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": []
},
{
"entity... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
11,859 | vehicle_rent | bird:test.json:406 | How many vehicles have each type of powertrain? | SELECT type_of_powertrain , count(*) FROM vehicles GROUP BY type_of_powertrain | [
"How",
"many",
"vehicles",
"have",
"each",
"type",
"of",
"powertrain",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "type_of_powertrain"
},
{
"id": 0,
"type": "table",
"value": "vehicles"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6,
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
11,860 | mondial_geo | bird:train.json:8347 | Which are the 2 rivers located at Belgrade city? Which river is longer and how by much? | SELECT T1.Name, T1.Length FROM river AS T1 INNER JOIN located AS T2 ON T1.Name = T2.River INNER JOIN city AS T3 ON T3.Name = T2.City WHERE T3.Name = 'Belgrade' | [
"Which",
"are",
"the",
"2",
"rivers",
"located",
"at",
"Belgrade",
"city",
"?",
"Which",
"river",
"is",
"longer",
"and",
"how",
"by",
"much",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Belgrade"
},
{
"id": 5,
"type": "table",
"value": "located"
},
{
"id": 1,
"type": "column",
"value": "length"
},
{
"id": 4,
"type": "table",
"value": "river"
},
{
"id": 7,
"type": "column",
"value": "ri... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
5
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,861 | toxicology | bird:dev.json:284 | Determine the bond type that is formed in the chemical compound containing element Carbon. | SELECT DISTINCT T2.bond_type FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'c' | [
"Determine",
"the",
"bond",
"type",
"that",
"is",
"formed",
"in",
"the",
"chemical",
"compound",
"containing",
"element",
"Carbon",
"."
] | [
{
"id": 5,
"type": "column",
"value": "molecule_id"
},
{
"id": 0,
"type": "column",
"value": "bond_type"
},
{
"id": 3,
"type": "column",
"value": "element"
},
{
"id": 1,
"type": "table",
"value": "atom"
},
{
"id": 2,
"type": "table",
"value... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
11,862 | customers_campaigns_ecommerce | spider:train_spider.json:4626 | Show the name and phone for customers with a mailshot with outcome code 'No Response'. | SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response' | [
"Show",
"the",
"name",
"and",
"phone",
"for",
"customers",
"with",
"a",
"mailshot",
"with",
"outcome",
"code",
"'",
"No",
"Response",
"'",
"."
] | [
{
"id": 3,
"type": "table",
"value": "mailshot_customers"
},
{
"id": 1,
"type": "column",
"value": "customer_phone"
},
{
"id": 0,
"type": "column",
"value": "customer_name"
},
{
"id": 4,
"type": "column",
"value": "outcome_code"
},
{
"id": 5,
"... | [
{
"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": [
11,
12
]
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
11,863 | university | bird:train.json:8102 | What was the score for University of Florida in "N and S" in 2014? | SELECT T2.score FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'University of Florida' AND T2.year = 2014 AND T1.criteria_name = 'N and S' | [
"What",
"was",
"the",
"score",
"for",
"University",
"of",
"Florida",
"in",
"\"",
"N",
"and",
"S",
"\"",
"in",
"2014",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "university_ranking_year"
},
{
"id": 7,
"type": "value",
"value": "University of Florida"
},
{
"id": 12,
"type": "column",
"value": "ranking_criteria_id"
},
{
"id": 2,
"type": "table",
"value": "ranking_criteria"
},
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
11,865 | debit_card_specializing | bird:dev.json:1510 | What is the average total price of the transactions taken place in gas stations in the Czech Republic? | SELECT AVG(T1.Price) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.Country = 'CZE' | [
"What",
"is",
"the",
"average",
"total",
"price",
"of",
"the",
"transactions",
"taken",
"place",
"in",
"gas",
"stations",
"in",
"the",
"Czech",
"Republic",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "transactions_1k"
},
{
"id": 5,
"type": "column",
"value": "gasstationid"
},
{
"id": 1,
"type": "table",
"value": "gasstations"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 4,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
12,
13
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
11,866 | dorm_1 | spider:train_spider.json:5712 | Find the code of city where most of students are living in. | SELECT city_code FROM student GROUP BY city_code ORDER BY count(*) DESC LIMIT 1 | [
"Find",
"the",
"code",
"of",
"city",
"where",
"most",
"of",
"students",
"are",
"living",
"in",
"."
] | [
{
"id": 1,
"type": "column",
"value": "city_code"
},
{
"id": 0,
"type": "table",
"value": "student"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
11,868 | retail_complains | bird:train.json:314 | What percentage of clients who sent their complaints by postal mail are age 50 and older? | SELECT CAST(SUM(CASE WHEN T1.age > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.`Submitted via`) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Submitted via` = 'Postal mail' | [
"What",
"percentage",
"of",
"clients",
"who",
"sent",
"their",
"complaints",
"by",
"postal",
"mail",
"are",
"age",
"50",
"and",
"older",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "Submitted via"
},
{
"id": 3,
"type": "value",
"value": "Postal mail"
},
{
"id": 4,
"type": "column",
"value": "client_id"
},
{
"id": 0,
"type": "table",
"value": "client"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O"
] |
11,869 | cre_Students_Information_Systems | bird:test.json:464 | What is the biographical information of the students who got the most common result for their behaviour monitoring details ? | select t1.bio_data from students as t1 join behaviour_monitoring as t2 on t1.student_id = t2.student_id where t2.behaviour_monitoring_details in ( select behaviour_monitoring_details from behaviour_monitoring group by behaviour_monitoring_details order by count(*) desc limit 1 ) except select t1.bio_data from student... | [
"What",
"is",
"the",
"biographical",
"information",
"of",
"the",
"students",
"who",
"got",
"the",
"most",
"common",
"result",
"for",
"their",
"behaviour",
"monitoring",
"details",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "behaviour_monitoring_details"
},
{
"id": 2,
"type": "table",
"value": "behaviour_monitoring"
},
{
"id": 4,
"type": "column",
"value": "student_id"
},
{
"id": 0,
"type": "column",
"value": "bio_data"
},
{
"id":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
16,
17
]
},
{
"entity_id": 3,
"token_idxs": [
18
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_i... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O"
] |
11,870 | conference | bird:test.json:1093 | Find the name and nationality of the people who did not participate in any ACL conference. | SELECT name , nationality FROM staff WHERE staff_id NOT IN (SELECT T2.staff_id FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id WHERE T1.Conference_Name = "ACL") | [
"Find",
"the",
"name",
"and",
"nationality",
"of",
"the",
"people",
"who",
"did",
"not",
"participate",
"in",
"any",
"ACL",
"conference",
"."
] | [
{
"id": 5,
"type": "table",
"value": "conference_participation"
},
{
"id": 6,
"type": "column",
"value": "conference_name"
},
{
"id": 8,
"type": "column",
"value": "conference_id"
},
{
"id": 2,
"type": "column",
"value": "nationality"
},
{
"id": 4,... | [
{
"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": [
15
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
11,871 | dorm_1 | spider:train_spider.json:5694 | Find the number of distinct gender for dorms. | SELECT count(DISTINCT gender) FROM dorm | [
"Find",
"the",
"number",
"of",
"distinct",
"gender",
"for",
"dorms",
"."
] | [
{
"id": 1,
"type": "column",
"value": "gender"
},
{
"id": 0,
"type": "table",
"value": "dorm"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
11,872 | cre_Docs_and_Epenses | spider:train_spider.json:6464 | Count the number of documents that do not have expenses. | SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses ) | [
"Count",
"the",
"number",
"of",
"documents",
"that",
"do",
"not",
"have",
"expenses",
"."
] | [
{
"id": 2,
"type": "table",
"value": "documents_with_expenses"
},
{
"id": 1,
"type": "column",
"value": "document_id"
},
{
"id": 0,
"type": "table",
"value": "documents"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6,
7,
8,
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"I-TABLE",
"O"
] |
11,873 | simpson_episodes | bird:train.json:4204 | How many episodes was Dell Hake not included in the credit list? | SELECT COUNT(*) FROM Credit WHERE person = 'Dell Hake' AND credited = 'false'; | [
"How",
"many",
"episodes",
"was",
"Dell",
"Hake",
"not",
"included",
"in",
"the",
"credit",
"list",
"?"
] | [
{
"id": 2,
"type": "value",
"value": "Dell Hake"
},
{
"id": 3,
"type": "column",
"value": "credited"
},
{
"id": 0,
"type": "table",
"value": "credit"
},
{
"id": 1,
"type": "column",
"value": "person"
},
{
"id": 4,
"type": "value",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4,
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
11,874 | airline | bird:train.json:5850 | How many flights were there from San Diego International airport to Los Angeles International airport in the August of 2018? | SELECT COUNT(FL_DATE) FROM Airlines WHERE FL_DATE LIKE '2018/8%' AND ORIGIN = ( SELECT T2.ORIGIN FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'San Diego, CA: San Diego International' ) AND DEST = ( SELECT T4.DEST FROM Airports AS T3 INNER JOIN Airlines AS T4 ON T3.Code = T... | [
"How",
"many",
"flights",
"were",
"there",
"from",
"San",
"Diego",
"International",
"airport",
"to",
"Los",
"Angeles",
"International",
"airport",
"in",
"the",
"August",
"of",
"2018",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "Los Angeles, CA: Los Angeles International"
},
{
"id": 7,
"type": "value",
"value": "San Diego, CA: San Diego International"
},
{
"id": 6,
"type": "column",
"value": "description"
},
{
"id": 0,
"type": "table",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
19
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
9
... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
11,875 | food_inspection_2 | bird:train.json:6129 | How many "food maintenance" related violations did inspection no.1454071 have? | SELECT COUNT(T2.point_id) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.inspection_id = '1454071' AND T1.category = 'Food Maintenance' | [
"How",
"many",
"\"",
"food",
"maintenance",
"\"",
"related",
"violations",
"did",
"inspection",
"no.1454071",
"have",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "inspection_point"
},
{
"id": 6,
"type": "value",
"value": "Food Maintenance"
},
{
"id": 3,
"type": "column",
"value": "inspection_id"
},
{
"id": 1,
"type": "table",
"value": "violation"
},
{
"id": 2,
"type"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O"
] |
11,876 | sales | bird:train.json:5447 | How many free or gift products are there? | SELECT COUNT(ProductID) FROM Products WHERE Price = 0 | [
"How",
"many",
"free",
"or",
"gift",
"products",
"are",
"there",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "productid"
},
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 1,
"type": "column",
"value": "price"
},
{
"id": 2,
"type": "value",
"value": "0"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
11,877 | cars | bird:train.json:3129 | List the names and prices of the cars with model 82 and mileage per gallon of greater than 30. | SELECT T2.car_name, T1.price FROM price AS T1 INNER JOIN data AS T2 ON T1.ID = T2.ID WHERE T2.model = 82 AND T2.mpg > 30 | [
"List",
"the",
"names",
"and",
"prices",
"of",
"the",
"cars",
"with",
"model",
"82",
"and",
"mileage",
"per",
"gallon",
"of",
"greater",
"than",
"30",
"."
] | [
{
"id": 0,
"type": "column",
"value": "car_name"
},
{
"id": 1,
"type": "column",
"value": "price"
},
{
"id": 2,
"type": "table",
"value": "price"
},
{
"id": 5,
"type": "column",
"value": "model"
},
{
"id": 3,
"type": "table",
"value": "data... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
11,878 | college_3 | spider:train_spider.json:4670 | What are the first names for all faculty professors, ordered by first name? | SELECT Fname FROM FACULTY WHERE Rank = "Professor" ORDER BY Fname | [
"What",
"are",
"the",
"first",
"names",
"for",
"all",
"faculty",
"professors",
",",
"ordered",
"by",
"first",
"name",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "Professor"
},
{
"id": 0,
"type": "table",
"value": "faculty"
},
{
"id": 1,
"type": "column",
"value": "fname"
},
{
"id": 2,
"type": "column",
"value": "rank"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.