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 |
|---|---|---|---|---|---|---|---|---|
5,477 | california_schools | bird:dev.json:84 | What are the two most common first names among the school administrators? Indicate the district to which they administer. | SELECT DISTINCT T1.AdmFName1, T1.District FROM schools AS T1 INNER JOIN ( SELECT admfname1 FROM schools GROUP BY admfname1 ORDER BY COUNT(admfname1) DESC LIMIT 2 ) AS T2 ON T1.AdmFName1 = T2.admfname1 | [
"What",
"are",
"the",
"two",
"most",
"common",
"first",
"names",
"among",
"the",
"school",
"administrators",
"?",
"Indicate",
"the",
"district",
"to",
"which",
"they",
"administer",
"."
] | [
{
"id": 0,
"type": "column",
"value": "admfname1"
},
{
"id": 1,
"type": "column",
"value": "district"
},
{
"id": 2,
"type": "table",
"value": "schools"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
5,478 | student_club | bird:dev.json:1398 | Name the event with the highest amount spent on advertisement. | SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' ORDER BY T1.spent DESC LIMIT 1 | [
"Name",
"the",
"event",
"with",
"the",
"highest",
"amount",
"spent",
"on",
"advertisement",
"."
] | [
{
"id": 4,
"type": "value",
"value": "Advertisement"
},
{
"id": 6,
"type": "column",
"value": "link_to_event"
},
{
"id": 0,
"type": "column",
"value": "event_name"
},
{
"id": 3,
"type": "column",
"value": "category"
},
{
"id": 7,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
5,479 | card_games | bird:dev.json:530 | List all the frame styles and cards Allen Williams worked on and find any banned cards if there are any. | SELECT DISTINCT T1.frameVersion, T1.name , IIF(T2.status = 'Banned', T1.name, 'NO') FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Allen Williams' | [
"List",
"all",
"the",
"frame",
"styles",
"and",
"cards",
"Allen",
"Williams",
"worked",
"on",
"and",
"find",
"any",
"banned",
"cards",
"if",
"there",
"are",
"any",
"."
] | [
{
"id": 5,
"type": "value",
"value": "Allen Williams"
},
{
"id": 0,
"type": "column",
"value": "frameversion"
},
{
"id": 3,
"type": "table",
"value": "legalities"
},
{
"id": 4,
"type": "column",
"value": "artist"
},
{
"id": 8,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
0
]
},
{
"entity_id": 5,
... | [
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
5,480 | planet_1 | bird:test.json:1890 | What are the names and coordinates of all planets in alphabetical order by name? | SELECT Name , Coordinates FROM Planet ORDER BY Name | [
"What",
"are",
"the",
"names",
"and",
"coordinates",
"of",
"all",
"planets",
"in",
"alphabetical",
"order",
"by",
"name",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "coordinates"
},
{
"id": 0,
"type": "table",
"value": "planet"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,481 | public_review_platform | bird:train.json:4080 | Among the user ID with number in compliment of uber on profile, list any 5 user ID and the year when they join Yelp. | SELECT T3.user_id, T3.user_yelping_since_year FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id INNER JOIN Users AS T3 ON T2.user_id = T3.user_id WHERE T1.compliment_type = 'profile' AND T2.number_of_compliments = 'Uber' LIMIT 5 | [
"Among",
"the",
"user",
"ID",
"with",
"number",
"in",
"compliment",
"of",
"uber",
"on",
"profile",
",",
"list",
"any",
"5",
"user",
"ID",
"and",
"the",
"year",
"when",
"they",
"join",
"Yelp",
"."
] | [
{
"id": 1,
"type": "column",
"value": "user_yelping_since_year"
},
{
"id": 7,
"type": "column",
"value": "number_of_compliments"
},
{
"id": 4,
"type": "table",
"value": "users_compliments"
},
{
"id": 5,
"type": "column",
"value": "compliment_type"
},
{... | [
{
"entity_id": 0,
"token_idxs": [
16,
17
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,482 | olympics | bird:train.json:4962 | What is the name of the oldest person who participated in the Olympic Games? | SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T2.age DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"oldest",
"person",
"who",
"participated",
"in",
"the",
"Olympic",
"Games",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "games_competitor"
},
{
"id": 0,
"type": "column",
"value": "full_name"
},
{
"id": 5,
"type": "column",
"value": "person_id"
},
{
"id": 1,
"type": "table",
"value": "person"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,483 | activity_1 | spider:train_spider.json:6778 | What are the names of the activities Mark Giuliano is involved in | SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = "Mark" AND T1.lname = "Giuliano" | [
"What",
"are",
"the",
"names",
"of",
"the",
"activities",
"Mark",
"Giuliano",
"is",
"involved",
"in"
] | [
{
"id": 3,
"type": "table",
"value": "faculty_participates_in"
},
{
"id": 0,
"type": "column",
"value": "activity_name"
},
{
"id": 1,
"type": "table",
"value": "activity"
},
{
"id": 8,
"type": "column",
"value": "Giuliano"
},
{
"id": 2,
"type":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O"
] |
5,484 | dorm_1 | spider:train_spider.json:5672 | How many female students (sex is F) whose age is below 25? | SELECT count(*) FROM student WHERE sex = 'F' AND age < 25 | [
"How",
"many",
"female",
"students",
"(",
"sex",
"is",
"F",
")",
"whose",
"age",
"is",
"below",
"25",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "sex"
},
{
"id": 3,
"type": "column",
"value": "age"
},
{
"id": 4,
"type": "value",
"value": "25"
},
{
"id": 2,
"type": "value",
"value": "F"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
5,485 | sales_in_weather | bird:train.json:8209 | Which items from store 1 have the highest units sold during rainy day? | SELECT T2.item_nbr FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr AND T1.station_nbr = T3.station_nbr WHERE T2.store_nbr = 1 AND T1.codesum LIKE '%' OR 'RA' OR '%' GROUP BY T2.item_nbr ORDER BY T2.units DESC LIMIT 1 | [
"Which",
"items",
"from",
"store",
"1",
"have",
"the",
"highest",
"units",
"sold",
"during",
"rainy",
"day",
"?"
] | [
{
"id": 6,
"type": "table",
"value": "sales_in_weather"
},
{
"id": 9,
"type": "column",
"value": "station_nbr"
},
{
"id": 8,
"type": "column",
"value": "store_nbr"
},
{
"id": 0,
"type": "column",
"value": "item_nbr"
},
{
"id": 1,
"type": "table... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
... | [
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
5,486 | social_media | bird:train.json:797 | State the number of states in the United Kingdom. | SELECT COUNT(State) AS State_number FROM location WHERE Country = 'United Kingdom' | [
"State",
"the",
"number",
"of",
"states",
"in",
"the",
"United",
"Kingdom",
"."
] | [
{
"id": 2,
"type": "value",
"value": "United Kingdom"
},
{
"id": 0,
"type": "table",
"value": "location"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 3,
"type": "column",
"value": "state"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": [
0
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
5,487 | sales | bird:train.json:5467 | List the full name of customers who spend more than 50,000 in descending order the amount spend. | SELECT DISTINCT T3.FirstName, T3.MiddleInitial, T3.LastName FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T2.Quantity * T1.Price > 50000 | [
"List",
"the",
"full",
"name",
"of",
"customers",
"who",
"spend",
"more",
"than",
"50,000",
"in",
"descending",
"order",
"the",
"amount",
"spend",
"."
] | [
{
"id": 1,
"type": "column",
"value": "middleinitial"
},
{
"id": 7,
"type": "column",
"value": "customerid"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 3,
"type": "table",
"value": "customers"
},
{
"id": 10,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,488 | soccer_2016 | bird:train.json:1883 | List down the name of venues in season 2. | SELECT T2.Venue_Name FROM Match AS T1 INNER JOIN Venue AS T2 ON T2.Venue_Id = T1.Venue_Id WHERE T1.Season_Id = 2 GROUP BY T2.Venue_Name | [
"List",
"down",
"the",
"name",
"of",
"venues",
"in",
"season",
"2",
"."
] | [
{
"id": 0,
"type": "column",
"value": "venue_name"
},
{
"id": 3,
"type": "column",
"value": "season_id"
},
{
"id": 5,
"type": "column",
"value": "venue_id"
},
{
"id": 1,
"type": "table",
"value": "match"
},
{
"id": 2,
"type": "table",
"valu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"B-VALUE",
"O"
] |
5,489 | aircraft | spider:train_spider.json:4839 | what is the name and age of the youngest winning pilot? | SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1 | [
"what",
"is",
"the",
"name",
"and",
"age",
"of",
"the",
"youngest",
"winning",
"pilot",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "winning_pilot"
},
{
"id": 4,
"type": "column",
"value": "pilot_id"
},
{
"id": 2,
"type": "table",
"value": "pilot"
},
{
"id": 3,
"type": "table",
"value": "match"
},
{
"id": 0,
"type": "column",
"value... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"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-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
5,490 | voter_2 | spider:train_spider.json:5490 | Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle. | SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring" | [
"Find",
"the",
"average",
"age",
"of",
"students",
"who",
"live",
"in",
"the",
"city",
"with",
"code",
"\"",
"NYC",
"\"",
"and",
"have",
"secretary",
"votes",
"in",
"the",
"spring",
"election",
"cycle",
"."
] | [
{
"id": 4,
"type": "column",
"value": "secretary_vote"
},
{
"id": 7,
"type": "column",
"value": "election_cycle"
},
{
"id": 1,
"type": "table",
"value": "voting_record"
},
{
"id": 5,
"type": "column",
"value": "city_code"
},
{
"id": 0,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
18,
19
]
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,492 | university | bird:train.json:8011 | What is the university ID of Harvard University? | SELECT id FROM university WHERE university_name = 'Harvard University' | [
"What",
"is",
"the",
"university",
"ID",
"of",
"Harvard",
"University",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Harvard University"
},
{
"id": 2,
"type": "column",
"value": "university_name"
},
{
"id": 0,
"type": "table",
"value": "university"
},
{
"id": 1,
"type": "column",
"value": "id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
5,493 | talkingdata | bird:train.json:1198 | Give the number of male users who use phone branded HTC. | SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'M' AND T2.phone_brand = 'HTC' | [
"Give",
"the",
"number",
"of",
"male",
"users",
"who",
"use",
"phone",
"branded",
"HTC",
"."
] | [
{
"id": 1,
"type": "table",
"value": "phone_brand_device_model2"
},
{
"id": 5,
"type": "column",
"value": "phone_brand"
},
{
"id": 0,
"type": "table",
"value": "gender_age"
},
{
"id": 2,
"type": "column",
"value": "device_id"
},
{
"id": 3,
"typ... | [
{
"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": [
8,
9
]
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
5,494 | allergy_1 | spider:train_spider.json:441 | How many different allergy types exist? | SELECT count(DISTINCT allergytype) FROM Allergy_type | [
"How",
"many",
"different",
"allergy",
"types",
"exist",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "allergy_type"
},
{
"id": 1,
"type": "column",
"value": "allergytype"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
5,495 | cre_Doc_Control_Systems | spider:train_spider.json:2115 | What is the name of the shipping agent of the document with id 2? | SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2; | [
"What",
"is",
"the",
"name",
"of",
"the",
"shipping",
"agent",
"of",
"the",
"document",
"with",
"i",
"d",
"2",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "shipping_agent_name"
},
{
"id": 1,
"type": "table",
"value": "ref_shipping_agents"
},
{
"id": 5,
"type": "column",
"value": "shipping_agent_code"
},
{
"id": 3,
"type": "column",
"value": "document_id"
},
{
"id... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,496 | food_inspection_2 | bird:train.json:6167 | How many of the restaurants with the lowest risk level failed the complaint inspection type? | SELECT COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.risk_level = '1' AND T2.inspection_type = 'Complaint' AND T1.facility_type = 'Restaurant' AND T2.results = 'Fail' | [
"How",
"many",
"of",
"the",
"restaurants",
"with",
"the",
"lowest",
"risk",
"level",
"failed",
"the",
"complaint",
"inspection",
"type",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "inspection_type"
},
{
"id": 0,
"type": "table",
"value": "establishment"
},
{
"id": 7,
"type": "column",
"value": "facility_type"
},
{
"id": 1,
"type": "table",
"value": "inspection"
},
{
"id": 2,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"B-TABLE",
"B-COLUMN",
"O"
] |
5,497 | public_review_platform | bird:train.json:4094 | List down the category of businesses whose stars ratings are 5. | SELECT DISTINCT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T1.stars = 5 | [
"List",
"down",
"the",
"category",
"of",
"businesses",
"whose",
"stars",
"ratings",
"are",
"5",
"."
] | [
{
"id": 5,
"type": "table",
"value": "business_categories"
},
{
"id": 0,
"type": "column",
"value": "category_name"
},
{
"id": 6,
"type": "column",
"value": "category_id"
},
{
"id": 7,
"type": "column",
"value": "business_id"
},
{
"id": 1,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
5,498 | student_assessment | spider:train_spider.json:106 | What are the ids of the students who registered course statistics by order of registration date? | SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.registration_date | [
"What",
"are",
"the",
"ids",
"of",
"the",
"students",
"who",
"registered",
"course",
"statistics",
"by",
"order",
"of",
"registration",
"date",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "student_course_registrations"
},
{
"id": 5,
"type": "column",
"value": "registration_date"
},
{
"id": 3,
"type": "column",
"value": "course_name"
},
{
"id": 0,
"type": "column",
"value": "student_id"
},
{
"id":... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
12,
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,499 | movies_4 | bird:train.json:480 | Which movie has the keyword 'extremis?' | SELECT T1.title FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'extremis' | [
"Which",
"movie",
"has",
"the",
"keyword",
"'",
"extremis",
"?",
"'"
] | [
{
"id": 5,
"type": "table",
"value": "movie_keywords"
},
{
"id": 2,
"type": "column",
"value": "keyword_name"
},
{
"id": 6,
"type": "column",
"value": "keyword_id"
},
{
"id": 3,
"type": "value",
"value": "extremis"
},
{
"id": 7,
"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": [
1
]
},
{
"entity_id": 5,
"... | [
"O",
"B-TABLE",
"B-TABLE",
"I-TABLE",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O"
] |
5,500 | works_cycles | bird:train.json:7126 | How many accounts are in Bothell as opposed to Kenmore? What is the name of the State that comprises these two cities? | SELECT SUM(IIF(T1.city = 'Bothell', 1, 0)) - SUM(IIF(T1.city = 'Kenmore', 1, 0)) , stateprovincecode FROM Address AS T1 INNER JOIN StateProvince AS T2 ON T1.stateprovinceid = T2.stateprovinceid GROUP BY stateprovincecode | [
"How",
"many",
"accounts",
"are",
"in",
"Bothell",
"as",
"opposed",
"to",
"Kenmore",
"?",
"What",
"is",
"the",
"name",
"of",
"the",
"State",
"that",
"comprises",
"these",
"two",
"cities",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "stateprovincecode"
},
{
"id": 3,
"type": "column",
"value": "stateprovinceid"
},
{
"id": 2,
"type": "table",
"value": "stateprovince"
},
{
"id": 1,
"type": "table",
"value": "address"
},
{
"id": 7,
"type":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,501 | voter_2 | spider:train_spider.json:5467 | Show all the distinct president votes made on 08/30/2015. | SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = "08/30/2015" | [
"Show",
"all",
"the",
"distinct",
"president",
"votes",
"made",
"on",
"08/30/2015",
"."
] | [
{
"id": 2,
"type": "column",
"value": "registration_date"
},
{
"id": 1,
"type": "column",
"value": "president_vote"
},
{
"id": 0,
"type": "table",
"value": "voting_record"
},
{
"id": 3,
"type": "column",
"value": "08/30/2015"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
5,503 | mondial_geo | bird:train.json:8261 | Please list the organization names established in the countries where Dutch is spoken. | SELECT T2.Name FROM language AS T1 INNER JOIN organization AS T2 ON T1.Country = T2.Country WHERE T1.Name = 'Dutch' | [
"Please",
"list",
"the",
"organization",
"names",
"established",
"in",
"the",
"countries",
"where",
"Dutch",
"is",
"spoken",
"."
] | [
{
"id": 2,
"type": "table",
"value": "organization"
},
{
"id": 1,
"type": "table",
"value": "language"
},
{
"id": 4,
"type": "column",
"value": "country"
},
{
"id": 3,
"type": "value",
"value": "Dutch"
},
{
"id": 0,
"type": "column",
"value... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
5,504 | ice_hockey_draft | bird:train.json:6939 | Among the players who played 72 games, how many are left-shooters? | SELECT COUNT(T2.ELITEID) FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.GP = 72 AND T2.shoots = 'L' | [
"Among",
"the",
"players",
"who",
"played",
"72",
"games",
",",
"how",
"many",
"are",
"left",
"-",
"shooters",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "seasonstatus"
},
{
"id": 1,
"type": "table",
"value": "playerinfo"
},
{
"id": 2,
"type": "column",
"value": "eliteid"
},
{
"id": 5,
"type": "column",
"value": "shoots"
},
{
"id": 3,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,505 | bike_1 | spider:train_spider.json:134 | What are the start station's name and id for the one that had the most start trips in August? | SELECT start_station_name , start_station_id FROM trip WHERE start_date LIKE "8/%" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1 | [
"What",
"are",
"the",
"start",
"station",
"'s",
"name",
"and",
"i",
"d",
"for",
"the",
"one",
"that",
"had",
"the",
"most",
"start",
"trips",
"in",
"August",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "start_station_name"
},
{
"id": 2,
"type": "column",
"value": "start_station_id"
},
{
"id": 3,
"type": "column",
"value": "start_date"
},
{
"id": 0,
"type": "table",
"value": "trip"
},
{
"id": 4,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": [
18
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
5,506 | law_episode | bird:train.json:1331 | How many people from Canada are nominated for an award? | SELECT COUNT(T1.person_id) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.birth_country = 'Canada' | [
"How",
"many",
"people",
"from",
"Canada",
"are",
"nominated",
"for",
"an",
"award",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "birth_country"
},
{
"id": 4,
"type": "column",
"value": "person_id"
},
{
"id": 0,
"type": "table",
"value": "person"
},
{
"id": 3,
"type": "value",
"value": "Canada"
},
{
"id": 1,
"type": "table",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,508 | donor | bird:train.json:3305 | What percentage of donations are given via a giving or campaign page? List the primary area of those donations. | SELECT CAST(SUM(CASE WHEN T1.via_giving_page = 't' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(donation_total), ( SELECT T2.primary_focus_area FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.via_giving_page = 't' GROUP BY T2.primary_focus_area ORDER BY SUM(T1.donation_total) DESC LI... | [
"What",
"percentage",
"of",
"donations",
"are",
"given",
"via",
"a",
"giving",
"or",
"campaign",
"page",
"?",
"List",
"the",
"primary",
"area",
"of",
"those",
"donations",
"."
] | [
{
"id": 5,
"type": "column",
"value": "primary_focus_area"
},
{
"id": 6,
"type": "column",
"value": "via_giving_page"
},
{
"id": 4,
"type": "column",
"value": "donation_total"
},
{
"id": 0,
"type": "table",
"value": "donations"
},
{
"id": 2,
"t... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
15,
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O"
] |
5,509 | simpson_episodes | bird:train.json:4355 | List down the episode ID of episodes aired in 2008 with 5 stars and below. | SELECT DISTINCT T1.episode_id FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE SUBSTR(T1.air_date, 1, 4) = '2008' AND T2.stars < 5; | [
"List",
"down",
"the",
"episode",
"ID",
"of",
"episodes",
"aired",
"in",
"2008",
"with",
"5",
"stars",
"and",
"below",
"."
] | [
{
"id": 0,
"type": "column",
"value": "episode_id"
},
{
"id": 6,
"type": "column",
"value": "air_date"
},
{
"id": 1,
"type": "table",
"value": "episode"
},
{
"id": 4,
"type": "column",
"value": "stars"
},
{
"id": 2,
"type": "table",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O"
] |
5,510 | cars | bird:train.json:3104 | What is the percentage of cars that was produced by Japan among those that have a sweep volume of no less than 30? | SELECT CAST(SUM(CASE WHEN T3.country = 'Japan' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.displacement / T1.cylinders > 30 | [
"What",
"is",
"the",
"percentage",
"of",
"cars",
"that",
"was",
"produced",
"by",
"Japan",
"among",
"those",
"that",
"have",
"a",
"sweep",
"volume",
"of",
"no",
"less",
"than",
"30",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "displacement"
},
{
"id": 3,
"type": "table",
"value": "production"
},
{
"id": 7,
"type": "column",
"value": "cylinders"
},
{
"id": 0,
"type": "table",
"value": "country"
},
{
"id": 5,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,511 | student_1 | spider:train_spider.json:4090 | Report the total number of students for each fourth-grade classroom. | SELECT classroom , count(*) FROM list WHERE grade = "4" GROUP BY classroom | [
"Report",
"the",
"total",
"number",
"of",
"students",
"for",
"each",
"fourth",
"-",
"grade",
"classroom",
"."
] | [
{
"id": 1,
"type": "column",
"value": "classroom"
},
{
"id": 2,
"type": "column",
"value": "grade"
},
{
"id": 0,
"type": "table",
"value": "list"
},
{
"id": 3,
"type": "column",
"value": "4"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
5,512 | product_catalog | spider:train_spider.json:307 | Find the name and level of catalog structure with level between 5 and 10. | SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 | [
"Find",
"the",
"name",
"and",
"level",
"of",
"catalog",
"structure",
"with",
"level",
"between",
"5",
"and",
"10",
"."
] | [
{
"id": 2,
"type": "column",
"value": "catalog_level_number"
},
{
"id": 1,
"type": "column",
"value": "catalog_level_name"
},
{
"id": 0,
"type": "table",
"value": "catalog_structure"
},
{
"id": 4,
"type": "value",
"value": "10"
},
{
"id": 3,
"t... | [
{
"entity_id": 0,
"token_idxs": [
6,
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
5,513 | toxicology | bird:dev.json:251 | What is the least common element of all carcinogenic molecules? | SELECT T.element FROM ( SELECT T2.element, COUNT(DISTINCT T2.molecule_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.label = '+' GROUP BY T2.element ORDER BY COUNT(DISTINCT T2.molecule_id) LIMIT 1 ) t | [
"What",
"is",
"the",
"least",
"common",
"element",
"of",
"all",
"carcinogenic",
"molecules",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "molecule_id"
},
{
"id": 1,
"type": "table",
"value": "molecule"
},
{
"id": 0,
"type": "column",
"value": "element"
},
{
"id": 3,
"type": "column",
"value": "label"
},
{
"id": 2,
"type": "table",
"value... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,515 | address | bird:train.json:5205 | What is the elevation of the city with the alias East Longmeadow? | SELECT T2.elevation FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.alias = 'East Longmeadow' | [
"What",
"is",
"the",
"elevation",
"of",
"the",
"city",
"with",
"the",
"alias",
"East",
"Longmeadow",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "East Longmeadow"
},
{
"id": 0,
"type": "column",
"value": "elevation"
},
{
"id": 2,
"type": "table",
"value": "zip_data"
},
{
"id": 5,
"type": "column",
"value": "zip_code"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
10,
11
]
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O"
] |
5,516 | farm | spider:train_spider.json:38 | Show the status of the city that has hosted the greatest number of competitions. | SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1 | [
"Show",
"the",
"status",
"of",
"the",
"city",
"that",
"has",
"hosted",
"the",
"greatest",
"number",
"of",
"competitions",
"."
] | [
{
"id": 3,
"type": "table",
"value": "farm_competition"
},
{
"id": 0,
"type": "column",
"value": "host_city_id"
},
{
"id": 4,
"type": "column",
"value": "city_id"
},
{
"id": 1,
"type": "column",
"value": "status"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,517 | soccer_2 | spider:train_spider.json:5041 | What are the names of the colleges that are larger than at least one college in Florida? | SELECT DISTINCT cName FROM college WHERE enr > (SELECT min(enr) FROM college WHERE state = 'FL') | [
"What",
"are",
"the",
"names",
"of",
"the",
"colleges",
"that",
"are",
"larger",
"than",
"at",
"least",
"one",
"college",
"in",
"Florida",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "college"
},
{
"id": 1,
"type": "column",
"value": "cname"
},
{
"id": 3,
"type": "column",
"value": "state"
},
{
"id": 2,
"type": "column",
"value": "enr"
},
{
"id": 4,
"type": "value",
"value": "FL"
}... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
5,518 | movie_2 | bird:test.json:1810 | What are the names of the movies that are played in any theater and the name of the corresponding theater? | SELECT T1.title , T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie | [
"What",
"are",
"the",
"names",
"of",
"the",
"movies",
"that",
"are",
"played",
"in",
"any",
"theater",
"and",
"the",
"name",
"of",
"the",
"corresponding",
"theater",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "movietheaters"
},
{
"id": 2,
"type": "table",
"value": "movies"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 5,
"type": "column",
"value": "movie"
},
{
"id": 1,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
5,519 | restaurant | bird:train.json:1709 | What is the full address of Albert's Café? | SELECT T2.street_num, T2.street_name, T1.city FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.label = 'Albert''s Café' | [
"What",
"is",
"the",
"full",
"address",
"of",
"Albert",
"'s",
"Café",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Albert's Café"
},
{
"id": 7,
"type": "column",
"value": "id_restaurant"
},
{
"id": 1,
"type": "column",
"value": "street_name"
},
{
"id": 3,
"type": "table",
"value": "generalinfo"
},
{
"id": 0,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
5,520 | movie_3 | bird:train.json:9255 | Find and list the full name of customers who rented more than five types of movies. | SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, COUNT(T1.customer_id) AS num 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 AS T4 ON T3.film_id = T4.film_id INNER JOIN film_categor... | [
"Find",
"and",
"list",
"the",
"full",
"name",
"of",
"customers",
"who",
"rented",
"more",
"than",
"five",
"types",
"of",
"movies",
"."
] | [
{
"id": 4,
"type": "table",
"value": "film_category"
},
{
"id": 11,
"type": "column",
"value": "inventory_id"
},
{
"id": 5,
"type": "column",
"value": "customer_id"
},
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 1,
"type": "co... | [
{
"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",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,521 | movies_4 | bird:train.json:430 | How many producers does the movie "The Amityville Horror" have? | SELECT COUNT(T2.person_id) FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'The Amityville Horror' AND T2.job = 'Producer' | [
"How",
"many",
"producers",
"does",
"the",
"movie",
"\"",
"The",
"Amityville",
"Horror",
"\"",
"have",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "The Amityville Horror"
},
{
"id": 1,
"type": "table",
"value": "movie_crew"
},
{
"id": 2,
"type": "column",
"value": "person_id"
},
{
"id": 3,
"type": "column",
"value": "movie_id"
},
{
"id": 7,
"type": "va... | [
{
"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": [
7,
... | [
"O",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
5,522 | university_basketball | spider:train_spider.json:1021 | List names of all teams in the basketball competition, ordered by all home scores in descending order. | SELECT team_name FROM basketball_match ORDER BY All_Home DESC | [
"List",
"names",
"of",
"all",
"teams",
"in",
"the",
"basketball",
"competition",
",",
"ordered",
"by",
"all",
"home",
"scores",
"in",
"descending",
"order",
"."
] | [
{
"id": 0,
"type": "table",
"value": "basketball_match"
},
{
"id": 1,
"type": "column",
"value": "team_name"
},
{
"id": 2,
"type": "column",
"value": "all_home"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
12,
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
5,523 | baseball_1 | spider:train_spider.json:3671 | What is the number of wins the team Boston Red Stockings got in the postseasons each year in history? | SELECT count(*) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year | [
"What",
"is",
"the",
"number",
"of",
"wins",
"the",
"team",
"Boston",
"Red",
"Stockings",
"got",
"in",
"the",
"postseasons",
"each",
"year",
"in",
"history",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Boston Red Stockings"
},
{
"id": 5,
"type": "column",
"value": "team_id_winner"
},
{
"id": 1,
"type": "table",
"value": "postseason"
},
{
"id": 6,
"type": "column",
"value": "team_id_br"
},
{
"id": 0,
"type... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": [
8,
9,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
5,524 | movielens | bird:train.json:2328 | How many 35-year-old female users gave the movie 1711133 a rating of 3? | SELECT COUNT(T1.userid) FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid WHERE T2.rating = 3 AND T2.movieid = '1711133' AND T1.age = 35 AND T1.u_gender = 'F' | [
"How",
"many",
"35",
"-",
"year",
"-",
"old",
"female",
"users",
"gave",
"the",
"movie",
"1711133",
"a",
"rating",
"of",
"3",
"?"
] | [
{
"id": 9,
"type": "column",
"value": "u_gender"
},
{
"id": 5,
"type": "column",
"value": "movieid"
},
{
"id": 6,
"type": "value",
"value": "1711133"
},
{
"id": 1,
"type": "table",
"value": "u2base"
},
{
"id": 2,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"B-COLUMN",
"B-VALUE",
"B-VALUE",
"O"
] |
5,525 | book_publishing_company | bird:train.json:227 | How many sales did the store in Remulade make? | SELECT COUNT(T1.ord_num) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id WHERE T2.city = 'Remulade' | [
"How",
"many",
"sales",
"did",
"the",
"store",
"in",
"Remulade",
"make",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Remulade"
},
{
"id": 4,
"type": "column",
"value": "ord_num"
},
{
"id": 5,
"type": "column",
"value": "stor_id"
},
{
"id": 1,
"type": "table",
"value": "stores"
},
{
"id": 0,
"type": "table",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O"
] |
5,526 | card_games | bird:dev.json:388 | What are the cards in set 10E with converted mana of 5 have translation and what are the languages? | SELECT id, language FROM set_translations WHERE id = ( SELECT id FROM cards WHERE convertedManaCost = 5 ) AND setCode = '10E' | [
"What",
"are",
"the",
"cards",
"in",
"set",
"10E",
"with",
"converted",
"mana",
"of",
"5",
"have",
"translation",
"and",
"what",
"are",
"the",
"languages",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "convertedmanacost"
},
{
"id": 0,
"type": "table",
"value": "set_translations"
},
{
"id": 2,
"type": "column",
"value": "language"
},
{
"id": 3,
"type": "column",
"value": "setcode"
},
{
"id": 5,
"type": "t... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
18
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entit... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,527 | codebase_comments | bird:train.json:577 | Among the repositories whose number of stars received are between 6,000 to 9,000, which repository has the highest number of solution paths and many of those solution paths needs to be compiled if user wants to implement it? | SELECT T2.RepoId, COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars BETWEEN 6000 AND 9000 AND T2.WasCompiled = 0 GROUP BY T2.RepoId ORDER BY COUNT(T2.RepoId) DESC LIMIT 1 | [
"Among",
"the",
"repositories",
"whose",
"number",
"of",
"stars",
"received",
"are",
"between",
"6,000",
"to",
"9,000",
",",
"which",
"repository",
"has",
"the",
"highest",
"number",
"of",
"solution",
"paths",
"and",
"many",
"of",
"those",
"solution",
"paths",... | [
{
"id": 7,
"type": "column",
"value": "wascompiled"
},
{
"id": 2,
"type": "table",
"value": "solution"
},
{
"id": 0,
"type": "column",
"value": "repoid"
},
{
"id": 4,
"type": "column",
"value": "stars"
},
{
"id": 1,
"type": "table",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
15
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
21
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
... |
5,528 | simpson_episodes | bird:train.json:4233 | Name the title of the episode that was nominated for Emmy's Outstanding Animated Program 21 times. | SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.organization = 'Primetime Emmy Awards' AND T1.award = 'Outstanding Animated Program (For Programming Less Than One Hour)' AND T1.result = 'Nominee' GROUP BY T1.episode_id HAVING COUNT(T1.episode_id) = 21; | [
"Name",
"the",
"title",
"of",
"the",
"episode",
"that",
"was",
"nominated",
"for",
"Emmy",
"'s",
"Outstanding",
"Animated",
"Program",
"21",
"times",
"."
] | [
{
"id": 8,
"type": "value",
"value": "Outstanding Animated Program (For Programming Less Than One Hour)"
},
{
"id": 6,
"type": "value",
"value": "Primetime Emmy Awards"
},
{
"id": 5,
"type": "column",
"value": "organization"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-VALUE",
"B-VALUE",
"O"
] |
5,530 | retails | bird:train.json:6818 | How many Japanese suppliers have their accounts in debt? | SELECT COUNT(T1.s_suppkey) FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0 AND T2.n_name = 'JAPAN' | [
"How",
"many",
"Japanese",
"suppliers",
"have",
"their",
"accounts",
"in",
"debt",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "s_nationkey"
},
{
"id": 4,
"type": "column",
"value": "n_nationkey"
},
{
"id": 2,
"type": "column",
"value": "s_suppkey"
},
{
"id": 5,
"type": "column",
"value": "s_acctbal"
},
{
"id": 0,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,531 | hockey | bird:train.json:7750 | How many Canadian players, between the ages of 18 and 24 when they initially played their first NHL, had a cumulative goal total of no more than 5? Indicate their complete names, the year, and the team for which they scored the specified amount of goals. | SELECT T2.nameGiven, T2.lastName, T2.birthYear, birthMon, birthDay , T3.tmID FROM Scoring AS T1 INNER JOIN Master AS T2 ON T2.playerID = T1.playerID INNER JOIN Teams AS T3 ON T3.tmID = T1.tmID WHERE (T2.firstNHL - T2.birthYear) BETWEEN 18 AND 24 AND T3.G < 5 | [
"How",
"many",
"Canadian",
"players",
",",
"between",
"the",
"ages",
"of",
"18",
"and",
"24",
"when",
"they",
"initially",
"played",
"their",
"first",
"NHL",
",",
"had",
"a",
"cumulative",
"goal",
"total",
"of",
"no",
"more",
"than",
"5",
"?",
"Indicate"... | [
{
"id": 0,
"type": "column",
"value": "namegiven"
},
{
"id": 2,
"type": "column",
"value": "birthyear"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 3,
"type": "column",
"value": "birthmon"
},
{
"id": 4,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
34
]
},
{
"entity_id": 2,
"token_idxs": [
36,
37
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"t... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-C... |
5,532 | address | bird:train.json:5220 | Provide the zip codes, cities, and locations of the postal points that have Shared Reshipper as a bad alias. | SELECT T1.zip_code, T2.city, T2.latitude, T2.longitude FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.bad_alias = 'Shared Reshipper' | [
"Provide",
"the",
"zip",
"codes",
",",
"cities",
",",
"and",
"locations",
"of",
"the",
"postal",
"points",
"that",
"have",
"Shared",
"Reshipper",
"as",
"a",
"bad",
"alias",
"."
] | [
{
"id": 7,
"type": "value",
"value": "Shared Reshipper"
},
{
"id": 3,
"type": "column",
"value": "longitude"
},
{
"id": 6,
"type": "column",
"value": "bad_alias"
},
{
"id": 0,
"type": "column",
"value": "zip_code"
},
{
"id": 2,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": [
2,
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,
"toke... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,533 | public_review_platform | bird:train.json:3785 | How many hours does the Yelp business No. "5734" open on Saturday? | SELECT T1.closing_time - T1.opening_time AS "hour" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week LIKE 'Saturday' AND T1.business_id = 5734 | [
"How",
"many",
"hours",
"does",
"the",
"Yelp",
"business",
"No",
".",
"\"",
"5734",
"\"",
"open",
"on",
"Saturday",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "business_hours"
},
{
"id": 2,
"type": "column",
"value": "closing_time"
},
{
"id": 3,
"type": "column",
"value": "opening_time"
},
{
"id": 5,
"type": "column",
"value": "day_of_week"
},
{
"id": 7,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"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",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,534 | card_games | bird:dev.json:461 | Please list the names of the top 3 cards with the highest converted mana cost and have a 2003 card frame style. | SELECT name FROM cards WHERE frameVersion = 2003 ORDER BY convertedManaCost DESC LIMIT 3 | [
"Please",
"list",
"the",
"names",
"of",
"the",
"top",
"3",
"cards",
"with",
"the",
"highest",
"converted",
"mana",
"cost",
"and",
"have",
"a",
"2003",
"card",
"frame",
"style",
"."
] | [
{
"id": 4,
"type": "column",
"value": "convertedmanacost"
},
{
"id": 2,
"type": "column",
"value": "frameversion"
},
{
"id": 0,
"type": "table",
"value": "cards"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
20
]
},
{
"entity_id": 3,
"token_idxs": [
18
]
},
{
"entity_id": 4,
"token_idxs": [
12,
13,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O"
] |
5,535 | language_corpus | bird:train.json:5794 | State the word ID for "periodograma". | SELECT wid FROM words WHERE word = 'periodograma' | [
"State",
"the",
"word",
"ID",
"for",
"\"",
"periodograma",
"\"",
"."
] | [
{
"id": 3,
"type": "value",
"value": "periodograma"
},
{
"id": 0,
"type": "table",
"value": "words"
},
{
"id": 2,
"type": "column",
"value": "word"
},
{
"id": 1,
"type": "column",
"value": "wid"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
5,536 | human_resources | bird:train.json:8953 | What is the education required for David Whitehead to reach his current position? | SELECT T2.educationrequired FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.firstname = 'David' AND T1.lastname = 'Whitehead' AND T1.gender = 'M' | [
"What",
"is",
"the",
"education",
"required",
"for",
"David",
"Whitehead",
"to",
"reach",
"his",
"current",
"position",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "educationrequired"
},
{
"id": 3,
"type": "column",
"value": "positionid"
},
{
"id": 4,
"type": "column",
"value": "firstname"
},
{
"id": 7,
"type": "value",
"value": "Whitehead"
},
{
"id": 1,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,537 | chicago_crime | bird:train.json:8751 | Name the neighborhood of the community area in crime with report number 23843? | SELECT T3.neighborhood_name FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN Neighborhood AS T3 ON T2.community_area_no = T3.community_area_no WHERE T2.report_no = 23778 | [
"Name",
"the",
"neighborhood",
"of",
"the",
"community",
"area",
"in",
"crime",
"with",
"report",
"number",
"23843",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "neighborhood_name"
},
{
"id": 6,
"type": "column",
"value": "community_area_no"
},
{
"id": 4,
"type": "table",
"value": "community_area"
},
{
"id": 1,
"type": "table",
"value": "neighborhood"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
5,
6
]
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
5,538 | human_resources | bird:train.json:8988 | Describe the employees' full name, positions, located city and office phone number within Colorado state. | SELECT T1.firstname, T1.lastname, T3.positiontitle, T2.locationcity, T2.officephone FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID INNER JOIN position AS T3 ON T3.positionID = T1.positionID WHERE T2.state = 'CO' | [
"Describe",
"the",
"employees",
"'",
"full",
"name",
",",
"positions",
",",
"located",
"city",
"and",
"office",
"phone",
"number",
"within",
"Colorado",
"state",
"."
] | [
{
"id": 2,
"type": "column",
"value": "positiontitle"
},
{
"id": 3,
"type": "column",
"value": "locationcity"
},
{
"id": 4,
"type": "column",
"value": "officephone"
},
{
"id": 10,
"type": "column",
"value": "positionid"
},
{
"id": 11,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
12,
13
]
},
{
"entity_i... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,540 | cre_Doc_and_collections | bird:test.json:674 | What are the owners of the document objects described as the 'Braeden Collection'? | SELECT OWNER FROM Document_Objects WHERE Description = 'Braeden Collection' | [
"What",
"are",
"the",
"owners",
"of",
"the",
"document",
"objects",
"described",
"as",
"the",
"'",
"Braeden",
"Collection",
"'",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Braeden Collection"
},
{
"id": 0,
"type": "table",
"value": "document_objects"
},
{
"id": 2,
"type": "column",
"value": "description"
},
{
"id": 1,
"type": "column",
"value": "owner"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6,
7
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
5,541 | ice_hockey_draft | bird:train.json:6973 | Who among the players drafted by Arizona Coyotes in 2000 has committed the highest rule violations? | SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.overallby = 'Arizona Coyotes' AND T2.draftyear = 2000 ORDER BY T1.PIM DESC LIMIT 1 | [
"Who",
"among",
"the",
"players",
"drafted",
"by",
"Arizona",
"Coyotes",
"in",
"2000",
"has",
"committed",
"the",
"highest",
"rule",
"violations",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Arizona Coyotes"
},
{
"id": 1,
"type": "table",
"value": "seasonstatus"
},
{
"id": 0,
"type": "column",
"value": "playername"
},
{
"id": 2,
"type": "table",
"value": "playerinfo"
},
{
"id": 5,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,542 | department_store | spider:train_spider.json:4711 | What are the product id and product type of the cheapest product? | SELECT product_id , product_type_code FROM products ORDER BY product_price LIMIT 1 | [
"What",
"are",
"the",
"product",
"i",
"d",
"and",
"product",
"type",
"of",
"the",
"cheapest",
"product",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "product_type_code"
},
{
"id": 3,
"type": "column",
"value": "product_price"
},
{
"id": 1,
"type": "column",
"value": "product_id"
},
{
"id": 0,
"type": "table",
"value": "products"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"en... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
5,543 | mondial_geo | bird:train.json:8494 | What river has the 17th-longest length overall? Specify it's length. | SELECT Name, Length FROM river ORDER BY Length DESC LIMIT 16, 1 | [
"What",
"river",
"has",
"the",
"17th",
"-",
"longest",
"length",
"overall",
"?",
"Specify",
"it",
"'s",
"length",
"."
] | [
{
"id": 2,
"type": "column",
"value": "length"
},
{
"id": 0,
"type": "table",
"value": "river"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
5,544 | books | bird:train.json:6037 | What is the status of the orders placed on 04/10/2022? | SELECT DISTINCT T1.status_value FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id WHERE T3.order_date LIKE '2022-04-10%' | [
"What",
"is",
"the",
"status",
"of",
"the",
"orders",
"placed",
"on",
"04/10/2022",
"?"
] | [
{
"id": 5,
"type": "table",
"value": "order_history"
},
{
"id": 0,
"type": "column",
"value": "status_value"
},
{
"id": 4,
"type": "table",
"value": "order_status"
},
{
"id": 3,
"type": "value",
"value": "2022-04-10%"
},
{
"id": 1,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
5,545 | retail_world | bird:train.json:6431 | Which company supplies Gula Malacca? | SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Gula Malacca' | [
"Which",
"company",
"supplies",
"Gula",
"Malacca",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Gula Malacca"
},
{
"id": 0,
"type": "column",
"value": "companyname"
},
{
"id": 3,
"type": "column",
"value": "productname"
},
{
"id": 5,
"type": "column",
"value": "supplierid"
},
{
"id": 2,
"type": "table... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3,
4
]
},
{
"entity_id":... | [
"O",
"B-COLUMN",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O"
] |
5,546 | farm | spider:train_spider.json:50 | Show the status shared by cities with population bigger than 1500 and smaller than 500. | SELECT Status FROM city WHERE Population > 1500 INTERSECT SELECT Status FROM city WHERE Population < 500 | [
"Show",
"the",
"status",
"shared",
"by",
"cities",
"with",
"population",
"bigger",
"than",
"1500",
"and",
"smaller",
"than",
"500",
"."
] | [
{
"id": 2,
"type": "column",
"value": "population"
},
{
"id": 1,
"type": "column",
"value": "status"
},
{
"id": 0,
"type": "table",
"value": "city"
},
{
"id": 3,
"type": "value",
"value": "1500"
},
{
"id": 4,
"type": "value",
"value": "500"... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,547 | school_player | spider:train_spider.json:4884 | Show locations and nicknames of schools. | SELECT T1.Location , T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID | [
"Show",
"locations",
"and",
"nicknames",
"of",
"schools",
"."
] | [
{
"id": 3,
"type": "table",
"value": "school_details"
},
{
"id": 4,
"type": "column",
"value": "school_id"
},
{
"id": 0,
"type": "column",
"value": "location"
},
{
"id": 1,
"type": "column",
"value": "nickname"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
5,548 | european_football_1 | bird:train.json:2758 | How many matches were played in the Scottish Premiership division from 2006 to 2008? | SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Scottish Premiership' AND (T1.season BETWEEN 2006 AND 2008) | [
"How",
"many",
"matches",
"were",
"played",
"in",
"the",
"Scottish",
"Premiership",
"division",
"from",
"2006",
"to",
"2008",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Scottish Premiership"
},
{
"id": 1,
"type": "table",
"value": "divisions"
},
{
"id": 3,
"type": "column",
"value": "division"
},
{
"id": 0,
"type": "table",
"value": "matchs"
},
{
"id": 6,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
5,549 | ship_1 | spider:train_spider.json:6265 | What are the names and flags of ships that do not have a captain with the rank of Midshipman? | SELECT name , flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman') | [
"What",
"are",
"the",
"names",
"and",
"flags",
"of",
"ships",
"that",
"do",
"not",
"have",
"a",
"captain",
"with",
"the",
"rank",
"of",
"Midshipman",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Midshipman"
},
{
"id": 3,
"type": "column",
"value": "ship_id"
},
{
"id": 4,
"type": "table",
"value": "captain"
},
{
"id": 0,
"type": "table",
"value": "ship"
},
{
"id": 1,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
5,550 | car_retails | bird:train.json:1654 | Among the customers of empolyee 1370, who has the highest credit limit?Please list the full name of the contact person. | SELECT t2.contactFirstName, t2.contactLastName FROM employees AS t1 INNER JOIN customers AS t2 ON t1.employeeNumber = t2.salesRepEmployeeNumber WHERE t1.employeeNumber = '1370' ORDER BY t2.creditLimit DESC LIMIT 1 | [
"Among",
"the",
"customers",
"of",
"empolyee",
"1370",
",",
"who",
"has",
"the",
"highest",
"credit",
"limit?Please",
"list",
"the",
"full",
"name",
"of",
"the",
"contact",
"person",
"."
] | [
{
"id": 7,
"type": "column",
"value": "salesrepemployeenumber"
},
{
"id": 0,
"type": "column",
"value": "contactfirstname"
},
{
"id": 1,
"type": "column",
"value": "contactlastname"
},
{
"id": 4,
"type": "column",
"value": "employeenumber"
},
{
"id... | [
{
"entity_id": 0,
"token_idxs": [
20
]
},
{
"entity_id": 1,
"token_idxs": [
19
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
5,551 | law_episode | bird:train.json:1292 | What are the titles of the top 3 episodes that received no less than 30 votes in its 10-star rating? | SELECT T2.title FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.votes >= 30 AND T1.stars = 10 ORDER BY T1.votes DESC LIMIT 3 | [
"What",
"are",
"the",
"titles",
"of",
"the",
"top",
"3",
"episodes",
"that",
"received",
"no",
"less",
"than",
"30",
"votes",
"in",
"its",
"10",
"-",
"star",
"rating",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "episode_id"
},
{
"id": 2,
"type": "table",
"value": "episode"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 3,
"type": "column",
"value": "votes"
},
{
"id": 6,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O"
] |
5,552 | world | bird:train.json:7855 | What country in Asia has the largest gross national product(GNP)? | SELECT Name FROM Country WHERE Continent = 'Asia' ORDER BY GNP DESC LIMIT 1 | [
"What",
"country",
"in",
"Asia",
"has",
"the",
"largest",
"gross",
"national",
"product(GNP",
")",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "continent"
},
{
"id": 0,
"type": "table",
"value": "country"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value",
"value": "Asia"
},
{
"id": 4,
"type": "column",
"value": "gnp... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,553 | boat_1 | bird:test.json:862 | What are the sids for sailors who reserved red or blue boats? | SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid WHERE T1.color = 'red' OR T1.color = "blue" | [
"What",
"are",
"the",
"sids",
"for",
"sailors",
"who",
"reserved",
"red",
"or",
"blue",
"boats",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "reserves"
},
{
"id": 1,
"type": "table",
"value": "boats"
},
{
"id": 4,
"type": "column",
"value": "color"
},
{
"id": 6,
"type": "column",
"value": "blue"
},
{
"id": 0,
"type": "column",
"value": "sid"
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
5,554 | codebase_comments | bird:train.json:591 | Please list the path of the solution that contains files found within the repository most people like. | SELECT DISTINCT T2.Path FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = ( SELECT MAX(Stars) FROM Repo ) | [
"Please",
"list",
"the",
"path",
"of",
"the",
"solution",
"that",
"contains",
"files",
"found",
"within",
"the",
"repository",
"most",
"people",
"like",
"."
] | [
{
"id": 2,
"type": "table",
"value": "solution"
},
{
"id": 5,
"type": "column",
"value": "repoid"
},
{
"id": 3,
"type": "column",
"value": "stars"
},
{
"id": 0,
"type": "column",
"value": "path"
},
{
"id": 1,
"type": "table",
"value": "repo... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
5,555 | dorm_1 | spider:train_spider.json:5701 | How many different majors are there and how many different city codes are there for each student? | SELECT count(DISTINCT major) , count(DISTINCT city_code) FROM student | [
"How",
"many",
"different",
"majors",
"are",
"there",
"and",
"how",
"many",
"different",
"city",
"codes",
"are",
"there",
"for",
"each",
"student",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "city_code"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "major"
}
] | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
10,
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_i... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,556 | customers_and_orders | bird:test.json:282 | Give the payment method code and customer number corresponding to the customer named Jeromy. | SELECT payment_method_code , customer_number FROM Customers WHERE customer_name = "Jeromy" | [
"Give",
"the",
"payment",
"method",
"code",
"and",
"customer",
"number",
"corresponding",
"to",
"the",
"customer",
"named",
"Jeromy",
"."
] | [
{
"id": 1,
"type": "column",
"value": "payment_method_code"
},
{
"id": 2,
"type": "column",
"value": "customer_number"
},
{
"id": 3,
"type": "column",
"value": "customer_name"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 4,
"t... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_id... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O"
] |
5,557 | address | bird:train.json:5137 | Calculate the average of 2020's population in each zip code. | SELECT CAST(SUM(population_2020) AS REAL) / COUNT(zip_code) FROM zip_data | [
"Calculate",
"the",
"average",
"of",
"2020",
"'s",
"population",
"in",
"each",
"zip",
"code",
"."
] | [
{
"id": 2,
"type": "column",
"value": "population_2020"
},
{
"id": 0,
"type": "table",
"value": "zip_data"
},
{
"id": 1,
"type": "column",
"value": "zip_code"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9,
10
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,558 | loan_1 | spider:train_spider.json:3037 | What are the names of customers who have both savings and checking accounts? | SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking' | [
"What",
"are",
"the",
"names",
"of",
"customers",
"who",
"have",
"both",
"savings",
"and",
"checking",
"accounts",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "cust_name"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 2,
"type": "column",
"value": "acc_type"
},
{
"id": 4,
"type": "value",
"value": "checking"
},
{
"id": 3,
"type": "value",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O"
] |
5,560 | customers_and_addresses | spider:train_spider.json:6080 | Find the number of customers who live in the city called Lake Geovannyton. | SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = "Lake Geovannyton" | [
"Find",
"the",
"number",
"of",
"customers",
"who",
"live",
"in",
"the",
"city",
"called",
"Lake",
"Geovannyton",
"."
] | [
{
"id": 4,
"type": "table",
"value": "customer_addresses"
},
{
"id": 2,
"type": "column",
"value": "Lake Geovannyton"
},
{
"id": 6,
"type": "column",
"value": "customer_id"
},
{
"id": 5,
"type": "column",
"value": "address_id"
},
{
"id": 0,
"ty... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
11,
12
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,561 | entrepreneur | spider:train_spider.json:2265 | List the companies of entrepreneurs in descending order of money requested. | SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC | [
"List",
"the",
"companies",
"of",
"entrepreneurs",
"in",
"descending",
"order",
"of",
"money",
"requested",
"."
] | [
{
"id": 2,
"type": "column",
"value": "money_requested"
},
{
"id": 0,
"type": "table",
"value": "entrepreneur"
},
{
"id": 1,
"type": "column",
"value": "company"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,562 | tv_shows | bird:test.json:146 | Show the cities and station names of city channels in ascending alphabetical order of station name. | SELECT City , Station_name FROM city_channel ORDER BY Station_name ASC | [
"Show",
"the",
"cities",
"and",
"station",
"names",
"of",
"city",
"channels",
"in",
"ascending",
"alphabetical",
"order",
"of",
"station",
"name",
"."
] | [
{
"id": 0,
"type": "table",
"value": "city_channel"
},
{
"id": 2,
"type": "column",
"value": "station_name"
},
{
"id": 1,
"type": "column",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
14,
15
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
5,563 | card_games | bird:dev.json:421 | Please list top three unknown power cards that have promotional types for arena league in alphabetical order. | SELECT name FROM cards WHERE (power IS NULL OR power LIKE '%*%') AND promoTypes = 'arenaleague' ORDER BY name LIMIT 3 | [
"Please",
"list",
"top",
"three",
"unknown",
"power",
"cards",
"that",
"have",
"promotional",
"types",
"for",
"arena",
"league",
"in",
"alphabetical",
"order",
"."
] | [
{
"id": 3,
"type": "value",
"value": "arenaleague"
},
{
"id": 2,
"type": "column",
"value": "promotypes"
},
{
"id": 0,
"type": "table",
"value": "cards"
},
{
"id": 4,
"type": "column",
"value": "power"
},
{
"id": 1,
"type": "column",
"value... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O"
] |
5,564 | language_corpus | bird:train.json:5697 | What is the word id of the catalan language that was repeated no more than 10 times in the said language? | SELECT wid FROM langs_words WHERE occurrences <= 10 | [
"What",
"is",
"the",
"word",
"i",
"d",
"of",
"the",
"catalan",
"language",
"that",
"was",
"repeated",
"no",
"more",
"than",
"10",
"times",
"in",
"the",
"said",
"language",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "langs_words"
},
{
"id": 2,
"type": "column",
"value": "occurrences"
},
{
"id": 1,
"type": "column",
"value": "wid"
},
{
"id": 3,
"type": "value",
"value": "10"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,565 | flight_4 | spider:train_spider.json:6860 | For each airport name, how many routes start at that airport? | SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name | [
"For",
"each",
"airport",
"name",
",",
"how",
"many",
"routes",
"start",
"at",
"that",
"airport",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "airports"
},
{
"id": 4,
"type": "column",
"value": "src_apid"
},
{
"id": 2,
"type": "table",
"value": "routes"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "column",
"value": "a... | [
{
"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": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
5,566 | olympics | bird:train.json:4979 | List out all the medals won by Lee Chong Wei. | SELECT DISTINCT T1.medal_name FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN person AS T4 ON T3.person_id = T4.id WHERE T4.full_name = 'Lee Chong Wei' AND T2.medal_id <> 4 | [
"List",
"out",
"all",
"the",
"medals",
"won",
"by",
"Lee",
"Chong",
"Wei",
"."
] | [
{
"id": 2,
"type": "table",
"value": "games_competitor"
},
{
"id": 10,
"type": "table",
"value": "competitor_event"
},
{
"id": 6,
"type": "value",
"value": "Lee Chong Wei"
},
{
"id": 11,
"type": "column",
"value": "competitor_id"
},
{
"id": 0,
... | [
{
"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",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
5,567 | legislator | bird:train.json:4888 | What is the religion with the most occurrrence of the current legislators? | SELECT religion_bio FROM current GROUP BY religion_bio ORDER BY COUNT(religion_bio) DESC LIMIT 1 | [
"What",
"is",
"the",
"religion",
"with",
"the",
"most",
"occurrrence",
"of",
"the",
"current",
"legislators",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "religion_bio"
},
{
"id": 0,
"type": "table",
"value": "current"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
5,568 | music_1 | spider:train_spider.json:3610 | What are the names of the three artists who have produced the most songs, and how many works did they produce? | SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3 | [
"What",
"are",
"the",
"names",
"of",
"the",
"three",
"artists",
"who",
"have",
"produced",
"the",
"most",
"songs",
",",
"and",
"how",
"many",
"works",
"did",
"they",
"produce",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "artist_name"
},
{
"id": 1,
"type": "table",
"value": "artist"
},
{
"id": 2,
"type": "table",
"value": "song"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"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",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,569 | real_estate_rentals | bird:test.json:1401 | Give the states or provinces corresponding to each property. | SELECT DISTINCT T1.county_state_province FROM Addresses AS T1 JOIN Properties AS T2 ON T1.address_id = T2.property_address_id; | [
"Give",
"the",
"states",
"or",
"provinces",
"corresponding",
"to",
"each",
"property",
"."
] | [
{
"id": 0,
"type": "column",
"value": "county_state_province"
},
{
"id": 4,
"type": "column",
"value": "property_address_id"
},
{
"id": 2,
"type": "table",
"value": "properties"
},
{
"id": 3,
"type": "column",
"value": "address_id"
},
{
"id": 1,
... | [
{
"entity_id": 0,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,570 | professional_basketball | bird:train.json:2847 | What is the maximum weight of USA all-star players? | SELECT MAX(T1.weight) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCountry = 'USA' | [
"What",
"is",
"the",
"maximum",
"weight",
"of",
"USA",
"all",
"-",
"star",
"players",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "player_allstar"
},
{
"id": 2,
"type": "column",
"value": "birthcountry"
},
{
"id": 5,
"type": "column",
"value": "playerid"
},
{
"id": 0,
"type": "table",
"value": "players"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
5,571 | mondial_geo | bird:train.json:8370 | How many people reside in the nation's capital city, which is situated in the nation that attained independence on 8/15/1947? | SELECT T3.Population FROM politics AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code INNER JOIN city AS T3 ON T3.Name = T2.Capital WHERE T1.Independence = '1947-08-15' | [
"How",
"many",
"people",
"reside",
"in",
"the",
"nation",
"'s",
"capital",
"city",
",",
"which",
"is",
"situated",
"in",
"the",
"nation",
"that",
"attained",
"independence",
"on",
"8/15/1947",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "independence"
},
{
"id": 0,
"type": "column",
"value": "population"
},
{
"id": 3,
"type": "value",
"value": "1947-08-15"
},
{
"id": 4,
"type": "table",
"value": "politics"
},
{
"id": 5,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
19
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
5,572 | voter_2 | spider:train_spider.json:5462 | Who are the advisors for students that live in a city with city code "BAL"? | SELECT Advisor FROM STUDENT WHERE city_code = "BAL" | [
"Who",
"are",
"the",
"advisors",
"for",
"students",
"that",
"live",
"in",
"a",
"city",
"with",
"city",
"code",
"\"",
"BAL",
"\"",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "city_code"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "advisor"
},
{
"id": 3,
"type": "column",
"value": "BAL"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
12,
13
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
5,575 | match_season | spider:train_spider.json:1092 | Show the country names and the corresponding number of players. | SELECT Country_name , COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name | [
"Show",
"the",
"country",
"names",
"and",
"the",
"corresponding",
"number",
"of",
"players",
"."
] | [
{
"id": 0,
"type": "column",
"value": "country_name"
},
{
"id": 2,
"type": "table",
"value": "match_season"
},
{
"id": 3,
"type": "column",
"value": "country_id"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,576 | disney | bird:train.json:4635 | Who is the villain of the movie "Beauty and the Beast"? | SELECT villian FROM characters WHERE movie_title = 'Beauty and the Beast' | [
"Who",
"is",
"the",
"villain",
"of",
"the",
"movie",
"\"",
"Beauty",
"and",
"the",
"Beast",
"\"",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Beauty and the Beast"
},
{
"id": 2,
"type": "column",
"value": "movie_title"
},
{
"id": 0,
"type": "table",
"value": "characters"
},
{
"id": 1,
"type": "column",
"value": "villian"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
8,
9,
10,
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
5,577 | authors | bird:train.json:3540 | Within the year of 2001 to 2010, find the paper published rate of 2001. | SELECT CAST(SUM(CASE WHEN Year = 2001 THEN 1 ELSE 0 END) AS REAL) / COUNT(Id) FROM Paper WHERE Year >= 2001 AND Year < 2011 | [
"Within",
"the",
"year",
"of",
"2001",
"to",
"2010",
",",
"find",
"the",
"paper",
"published",
"rate",
"of",
"2001",
"."
] | [
{
"id": 0,
"type": "table",
"value": "paper"
},
{
"id": 1,
"type": "column",
"value": "year"
},
{
"id": 2,
"type": "value",
"value": "2001"
},
{
"id": 3,
"type": "value",
"value": "2011"
},
{
"id": 4,
"type": "column",
"value": "id"
},
... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
5,578 | airline | bird:train.json:5876 | What is the only flight destination for flights from Albany? | SELECT DEST FROM Airlines WHERE ORIGIN = 'ABY' GROUP BY DEST | [
"What",
"is",
"the",
"only",
"flight",
"destination",
"for",
"flights",
"from",
"Albany",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "airlines"
},
{
"id": 2,
"type": "column",
"value": "origin"
},
{
"id": 1,
"type": "column",
"value": "dest"
},
{
"id": 3,
"type": "value",
"value": "ABY"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"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",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
5,579 | superstore | bird:train.json:2383 | What product was ordered in the Central region on April 26, 2018, and shipped by April 27, 2018? | SELECT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Order Date` = '2018-04-26' AND T1.`Ship Date` = '2018-04-27' AND T2.Region = 'Central' | [
"What",
"product",
"was",
"ordered",
"in",
"the",
"Central",
"region",
"on",
"April",
"26",
",",
"2018",
",",
"and",
"shipped",
"by",
"April",
"27",
",",
"2018",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "central_superstore"
},
{
"id": 0,
"type": "column",
"value": "Product Name"
},
{
"id": 3,
"type": "column",
"value": "Product ID"
},
{
"id": 4,
"type": "column",
"value": "Order Date"
},
{
"id": 5,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"... | [
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
5,580 | art_1 | bird:test.json:1304 | Find the top 3 artists who have the biggest number of painting works whose medium is oil? | SELECT T1.lname , T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = "oil" GROUP BY T2.painterID ORDER BY count(*) DESC LIMIT 3 | [
"Find",
"the",
"top",
"3",
"artists",
"who",
"have",
"the",
"biggest",
"number",
"of",
"painting",
"works",
"whose",
"medium",
"is",
"oil",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "painterid"
},
{
"id": 4,
"type": "table",
"value": "paintings"
},
{
"id": 7,
"type": "column",
"value": "artistid"
},
{
"id": 3,
"type": "table",
"value": "artists"
},
{
"id": 5,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
5,581 | books | bird:train.json:5977 | Count the number of books written by Orson Scott Card. | SELECT COUNT(*) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Orson Scott Card' | [
"Count",
"the",
"number",
"of",
"books",
"written",
"by",
"Orson",
"Scott",
"Card",
"."
] | [
{
"id": 2,
"type": "value",
"value": "Orson Scott Card"
},
{
"id": 1,
"type": "column",
"value": "author_name"
},
{
"id": 4,
"type": "table",
"value": "book_author"
},
{
"id": 5,
"type": "column",
"value": "author_id"
},
{
"id": 6,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
5,582 | talkingdata | bird:train.json:1160 | What is the ratio of female users to male users who uses a vivo device? | SELECT SUM(IIF(T1.gender = 'M', 1, 0)) / SUM(IIF(T1.gender = 'F', 1, 0)) AS per FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo' | [
"What",
"is",
"the",
"ratio",
"of",
"female",
"users",
"to",
"male",
"users",
"who",
"uses",
"a",
"vivo",
"device",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "phone_brand_device_model2"
},
{
"id": 2,
"type": "column",
"value": "phone_brand"
},
{
"id": 0,
"type": "table",
"value": "gender_age"
},
{
"id": 4,
"type": "column",
"value": "device_id"
},
{
"id": 7,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
5,583 | books | bird:train.json:5955 | List all the names of the books written by Danielle Steel. | SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Danielle Steel' | [
"List",
"all",
"the",
"names",
"of",
"the",
"books",
"written",
"by",
"Danielle",
"Steel",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Danielle Steel"
},
{
"id": 2,
"type": "column",
"value": "author_name"
},
{
"id": 5,
"type": "table",
"value": "book_author"
},
{
"id": 6,
"type": "column",
"value": "author_id"
},
{
"id": 7,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2,
3
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"e... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
5,584 | human_resources | bird:train.json:8967 | What is the full office location address where most of the employees work at? | SELECT T2.address, T2.locationcity, T2.state, T2.zipcode FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID GROUP BY T2.address, T2.locationcity, T2.state, T2.zipcode ORDER BY COUNT(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"full",
"office",
"location",
"address",
"where",
"most",
"of",
"the",
"employees",
"work",
"at",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "locationcity"
},
{
"id": 6,
"type": "column",
"value": "locationid"
},
{
"id": 4,
"type": "table",
"value": "employee"
},
{
"id": 5,
"type": "table",
"value": "location"
},
{
"id": 0,
"type": "column",
... | [
{
"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": [
11
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
5,585 | customers_and_invoices | spider:train_spider.json:1548 | How many accounts are there? | SELECT count(*) FROM Accounts | [
"How",
"many",
"accounts",
"are",
"there",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "accounts"
}
] | [
{
"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"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.