question_id int64 0 16.1k | db_id stringclasses 259
values | dber_id stringlengths 15 29 | question stringlengths 16 325 | SQL stringlengths 18 1.25k | tokens listlengths 4 62 | entities listlengths 0 21 | entity_to_token listlengths 20 20 | dber_tags listlengths 4 62 |
|---|---|---|---|---|---|---|---|---|
11,239 | entrepreneur | spider:train_spider.json:2278 | Return the weight of the shortest person. | SELECT Weight FROM people ORDER BY Height ASC LIMIT 1 | [
"Return",
"the",
"weight",
"of",
"the",
"shortest",
"person",
"."
] | [
{
"id": 0,
"type": "table",
"value": "people"
},
{
"id": 1,
"type": "column",
"value": "weight"
},
{
"id": 2,
"type": "column",
"value": "height"
}
] | [
{
"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": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
11,240 | baseball_1 | spider:train_spider.json:3635 | What are the first name, last name and id of the player with the most all star game experiences? Also list the count. | SELECT T1.name_first , T1.name_last , T1.player_id , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1; | [
"What",
"are",
"the",
"first",
"name",
",",
"last",
"name",
"and",
"i",
"d",
"of",
"the",
"player",
"with",
"the",
"most",
"all",
"star",
"game",
"experiences",
"?",
"Also",
"list",
"the",
"count",
"."
] | [
{
"id": 1,
"type": "column",
"value": "name_first"
},
{
"id": 0,
"type": "column",
"value": "player_id"
},
{
"id": 2,
"type": "column",
"value": "name_last"
},
{
"id": 4,
"type": "table",
"value": "all_star"
},
{
"id": 3,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
17,
... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,241 | university_rank | bird:test.json:1783 | What is the name of the university that has most number of majors with rank 1? | SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id = T2.university_id WHERE T1.rank = 1 GROUP BY T2.university_name ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"university",
"that",
"has",
"most",
"number",
"of",
"majors",
"with",
"rank",
"1",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "university_name"
},
{
"id": 1,
"type": "table",
"value": "major_ranking"
},
{
"id": 5,
"type": "column",
"value": "university_id"
},
{
"id": 2,
"type": "table",
"value": "university"
},
{
"id": 3,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
12,
13
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"B-VALUE",
"O"
] |
11,242 | soccer_2 | spider:train_spider.json:5015 | For each position, what is the maximum number of hours for students who spent more than 1000 hours training? | SELECT max(T1.HS) , pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos | [
"For",
"each",
"position",
",",
"what",
"is",
"the",
"maximum",
"number",
"of",
" ",
"hours",
"for",
"students",
"who",
"spent",
"more",
"than",
"1000",
"hours",
"training",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "player"
},
{
"id": 2,
"type": "table",
"value": "tryout"
},
{
"id": 0,
"type": "column",
"value": "ppos"
},
{
"id": 4,
"type": "value",
"value": "1000"
},
{
"id": 5,
"type": "column",
"value": "pid"
}... | [
{
"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": [
18
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
11,243 | dorm_1 | spider:train_spider.json:5749 | How many female students live in Smith Hall? | SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' AND T1.sex = 'F' | [
"How",
"many",
"female",
"students",
"live",
"in",
"Smith",
"Hall",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Smith Hall"
},
{
"id": 4,
"type": "column",
"value": "dorm_name"
},
{
"id": 2,
"type": "table",
"value": "lives_in"
},
{
"id": 1,
"type": "table",
"value": "student"
},
{
"id": 3,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4,
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
... | [
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"I-TABLE",
"B-VALUE",
"I-VALUE",
"O"
] |
11,244 | computer_student | bird:train.json:1012 | List the professor ID who taught the course ID from 121 to 130 of basic undergraduate courses. | SELECT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_300' AND T1.course_id > 121 AND T1.course_id < 130 | [
"List",
"the",
"professor",
"ID",
"who",
"taught",
"the",
"course",
"ID",
"from",
"121",
"to",
"130",
"of",
"basic",
"undergraduate",
"courses",
"."
] | [
{
"id": 4,
"type": "column",
"value": "courselevel"
},
{
"id": 3,
"type": "column",
"value": "course_id"
},
{
"id": 5,
"type": "value",
"value": "Level_300"
},
{
"id": 2,
"type": "table",
"value": "taughtby"
},
{
"id": 1,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
11,245 | small_bank_1 | spider:train_spider.json:1808 | Find the name of accounts whose checking balance is below the average checking balance. | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking) | [
"Find",
"the",
"name",
"of",
"accounts",
"whose",
"checking",
"balance",
"is",
"below",
"the",
"average",
"checking",
"balance",
"."
] | [
{
"id": 1,
"type": "table",
"value": "accounts"
},
{
"id": 2,
"type": "table",
"value": "checking"
},
{
"id": 3,
"type": "column",
"value": "balance"
},
{
"id": 4,
"type": "column",
"value": "custid"
},
{
"id": 0,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
11,246 | car_retails | bird:train.json:1553 | Of all the classic cars, with a product scale of 1:18, which product is the most ordered product by customers? | SELECT T1.productName FROM products AS T1 INNER JOIN orderdetails AS T2 ON T1.productCode = T2.productCode WHERE T1.productScale = '1:18' AND T1.productLine = 'Classic Cars' GROUP BY T1.productName ORDER BY SUM(T2.quantityOrdered) DESC LIMIT 1 | [
"Of",
"all",
"the",
"classic",
"cars",
",",
"with",
"a",
"product",
"scale",
"of",
"1:18",
",",
"which",
"product",
"is",
"the",
"most",
"ordered",
"product",
"by",
"customers",
"?"
] | [
{
"id": 8,
"type": "column",
"value": "quantityordered"
},
{
"id": 2,
"type": "table",
"value": "orderdetails"
},
{
"id": 4,
"type": "column",
"value": "productscale"
},
{
"id": 7,
"type": "value",
"value": "Classic Cars"
},
{
"id": 0,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
18
]
},
{
"entity_id": 3,
"token_idxs": [
19
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entit... | [
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O"
] |
11,247 | airline | bird:train.json:5874 | What is the scheduled local departure time and the actual departure time of the flight from Philadelphia to Harrisburg with the plane's tail number N627AE on the 13th of August 2018? | SELECT CRS_DEP_TIME, DEP_TIME FROM Airlines WHERE ORIGIN = 'PHL' AND DEST = 'MDT' AND TAIL_NUM = 'N627AE' AND FL_DATE = '2018/8/13' | [
"What",
"is",
"the",
"scheduled",
"local",
"departure",
"time",
"and",
"the",
"actual",
"departure",
"time",
"of",
"the",
"flight",
"from",
"Philadelphia",
"to",
"Harrisburg",
"with",
"the",
"plane",
"'s",
"tail",
"number",
"N627AE",
"on",
"the",
"13th",
"of... | [
{
"id": 1,
"type": "column",
"value": "crs_dep_time"
},
{
"id": 10,
"type": "value",
"value": "2018/8/13"
},
{
"id": 0,
"type": "table",
"value": "airlines"
},
{
"id": 2,
"type": "column",
"value": "dep_time"
},
{
"id": 7,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
11,248 | mondial_geo | bird:train.json:8432 | What is the geographic location of Aarhus city? Please provide the answer with the coordinates of the location. | SELECT Longitude, Latitude FROM city WHERE Name = 'Aarhus' | [
"What",
"is",
"the",
"geographic",
"location",
"of",
"Aarhus",
"city",
"?",
"Please",
"provide",
"the",
"answer",
"with",
"the",
"coordinates",
"of",
"the",
"location",
"."
] | [
{
"id": 1,
"type": "column",
"value": "longitude"
},
{
"id": 2,
"type": "column",
"value": "latitude"
},
{
"id": 4,
"type": "value",
"value": "Aarhus"
},
{
"id": 0,
"type": "table",
"value": "city"
},
{
"id": 3,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,249 | human_resources | bird:train.json:8975 | Mention the employee's full name and performance status who got the lowest in salary per year. | SELECT firstname, lastname, performance FROM employee ORDER BY salary ASC LIMIT 1 | [
"Mention",
"the",
"employee",
"'s",
"full",
"name",
"and",
"performance",
"status",
"who",
"got",
"the",
"lowest",
"in",
"salary",
"per",
"year",
"."
] | [
{
"id": 3,
"type": "column",
"value": "performance"
},
{
"id": 1,
"type": "column",
"value": "firstname"
},
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 2,
"type": "column",
"value": "lastname"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"entity... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
11,250 | vehicle_rent | bird:test.json:418 | What is the name and age of the customer with the most membership credit? | SELECT name , age FROM customers ORDER BY membership_credit DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"and",
"age",
"of",
"the",
"customer",
"with",
"the",
"most",
"membership",
"credit",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "membership_credit"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
11,251 | twitter_1 | spider:train_spider.json:296 | Find the name and partition id for users who tweeted less than twice. | SELECT T1.name , T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) < 2 | [
"Find",
"the",
"name",
"and",
"partition",
"i",
"d",
"for",
"users",
"who",
"tweeted",
"less",
"than",
"twice",
"."
] | [
{
"id": 3,
"type": "table",
"value": "user_profiles"
},
{
"id": 2,
"type": "column",
"value": "partitionid"
},
{
"id": 4,
"type": "table",
"value": "tweets"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 0,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
11,252 | food_inspection_2 | bird:train.json:6197 | What is the job title of employee who did inspection ID 52269? | SELECT T1.title FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52269 | [
"What",
"is",
"the",
"job",
"title",
"of",
"employee",
"who",
"did",
"inspection",
"ID",
"52269",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "inspection_id"
},
{
"id": 5,
"type": "column",
"value": "employee_id"
},
{
"id": 2,
"type": "table",
"value": "inspection"
},
{
"id": 1,
"type": "table",
"value": "employee"
},
{
"id": 0,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O"
] |
11,254 | company_1 | spider:train_spider.json:2135 | Return the first names and last names of employees who earn more than 30000 in salary. | SELECT fname , lname FROM employee WHERE salary > 30000 | [
"Return",
"the",
"first",
"names",
"and",
"last",
"names",
"of",
"employees",
"who",
"earn",
"more",
"than",
"30000",
"in",
"salary",
"."
] | [
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 3,
"type": "column",
"value": "salary"
},
{
"id": 1,
"type": "column",
"value": "fname"
},
{
"id": 2,
"type": "column",
"value": "lname"
},
{
"id": 4,
"type": "value",
"value": "300... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entit... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O"
] |
11,255 | hr_1 | spider:train_spider.json:3494 | Give the first name and job id for all employees in the Finance department. | SELECT T1.first_name , T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance' | [
"Give",
"the",
"first",
"name",
"and",
"job",
"i",
"d",
"for",
"all",
"employees",
"in",
"the",
"Finance",
"department",
"."
] | [
{
"id": 4,
"type": "column",
"value": "department_name"
},
{
"id": 6,
"type": "column",
"value": "department_id"
},
{
"id": 3,
"type": "table",
"value": "departments"
},
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 2,
"type": "... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6,
7
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_id... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
11,256 | cre_Doc_Tracking_DB | spider:train_spider.json:4217 | What are the employee ids of the employees whose role name is "Human Resource" or "Manager"? | SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource" OR T2.role_name = "Manager" | [
"What",
"are",
"the",
"employee",
"ids",
"of",
"the",
"employees",
"whose",
"role",
"name",
"is",
"\"",
"Human",
"Resource",
"\"",
"or",
"\"",
"Manager",
"\"",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "Human Resource"
},
{
"id": 0,
"type": "column",
"value": "employee_id"
},
{
"id": 1,
"type": "table",
"value": "employees"
},
{
"id": 3,
"type": "column",
"value": "role_code"
},
{
"id": 4,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
11,257 | retail_world | bird:train.json:6401 | Indicate the courtesy title of the 3 employees who have the lowest salary. | SELECT TitleOfCourtesy FROM Employees ORDER BY Salary LIMIT 3 | [
"Indicate",
"the",
"courtesy",
"title",
"of",
"the",
"3",
"employees",
"who",
"have",
"the",
"lowest",
"salary",
"."
] | [
{
"id": 1,
"type": "column",
"value": "titleofcourtesy"
},
{
"id": 0,
"type": "table",
"value": "employees"
},
{
"id": 2,
"type": "column",
"value": "salary"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,258 | language_corpus | bird:train.json:5695 | What is the total pages of Wikipedia in Catalan language? | SELECT pages FROM langs WHERE lang = 'ca' | [
"What",
"is",
"the",
"total",
"pages",
"of",
"Wikipedia",
"in",
"Catalan",
"language",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "langs"
},
{
"id": 1,
"type": "column",
"value": "pages"
},
{
"id": 2,
"type": "column",
"value": "lang"
},
{
"id": 3,
"type": "value",
"value": "ca"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,259 | professional_basketball | bird:train.json:2941 | Where was the high school of the player who had the most rebounds in the NBA allstar history? | SELECT T2.highSchool FROM player_allstar AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID ORDER BY T1.rebounds DESC LIMIT 1 | [
"Where",
"was",
"the",
"high",
"school",
"of",
"the",
"player",
"who",
"had",
"the",
"most",
"rebounds",
"in",
"the",
"NBA",
"allstar",
"history",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "player_allstar"
},
{
"id": 0,
"type": "column",
"value": "highschool"
},
{
"id": 3,
"type": "column",
"value": "rebounds"
},
{
"id": 4,
"type": "column",
"value": "playerid"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
16
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
11,260 | document_management | spider:train_spider.json:4530 | What are the names of documents that contain the substring "CV"? | SELECT document_name FROM documents WHERE document_name LIKE "%CV%" | [
"What",
"are",
"the",
"names",
"of",
"documents",
"that",
"contain",
"the",
"substring",
"\"",
"CV",
"\"",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "document_name"
},
{
"id": 0,
"type": "table",
"value": "documents"
},
{
"id": 2,
"type": "column",
"value": "%CV%"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
11,261 | public_review_platform | bird:train.json:3792 | Give the number of "drive-thru" businesses in "Scottsdale" with business ID number less than "1000". | SELECT T2.business_id FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T3.business_id < 1000 AND T3.city LIKE 'Scottsdale' AND T1.attribute_name LIKE 'Drive-Thru' AND T2.attribute_value LIKE 'TRUE' | [
"Give",
"the",
"number",
"of",
"\"",
"drive",
"-",
"thru",
"\"",
"businesses",
"in",
"\"",
"Scottsdale",
"\"",
"with",
"business",
"ID",
"number",
"less",
"than",
"\"",
"1000",
"\"",
"."
] | [
{
"id": 3,
"type": "table",
"value": "business_attributes"
},
{
"id": 9,
"type": "column",
"value": "attribute_value"
},
{
"id": 7,
"type": "column",
"value": "attribute_name"
},
{
"id": 11,
"type": "column",
"value": "attribute_id"
},
{
"id": 0,
... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
21
]
},
{
"enti... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-VALUE",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
11,262 | insurance_policies | spider:train_spider.json:3876 | What are the claim dates and settlement dates of all the settlements? | SELECT Date_Claim_Made , Date_Claim_Settled FROM Settlements | [
"What",
"are",
"the",
"claim",
"dates",
"and",
"settlement",
"dates",
"of",
"all",
"the",
"settlements",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "date_claim_settled"
},
{
"id": 1,
"type": "column",
"value": "date_claim_made"
},
{
"id": 0,
"type": "table",
"value": "settlements"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,264 | products_gen_characteristics | spider:train_spider.json:5518 | How many colors are there? | SELECT count(*) FROM ref_colors | [
"How",
"many",
"colors",
"are",
"there",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "ref_colors"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
11,265 | works_cycles | bird:train.json:7381 | What are the full names of the sales person whose bonuses are less than 1,000? | SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM SalesPerson AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Bonus < 1000 | [
"What",
"are",
"the",
"full",
"names",
"of",
"the",
"sales",
"person",
"whose",
"bonuses",
"are",
"less",
"than",
"1,000",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "businessentityid"
},
{
"id": 3,
"type": "table",
"value": "salesperson"
},
{
"id": 1,
"type": "column",
"value": "middlename"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 2,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
11,267 | car_retails | bird:train.json:1620 | How many French customers does Gerard Hernandez take care of? | SELECT COUNT(t1.customerNumber) FROM customers AS t1 INNER JOIN employees AS t2 ON t1.salesRepEmployeeNumber = t2.employeeNumber WHERE t1.country = 'France' AND t2.firstName = 'Gerard' AND t2.lastName = 'Hernandez' | [
"How",
"many",
"French",
"customers",
"does",
"Gerard",
"Hernandez",
"take",
"care",
"of",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "salesrepemployeenumber"
},
{
"id": 2,
"type": "column",
"value": "customernumber"
},
{
"id": 4,
"type": "column",
"value": "employeenumber"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 1,
... | [
{
"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",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O"
] |
11,268 | icfp_1 | spider:train_spider.json:2872 | Which institution does "Katsuhiro Ueno" belong to? | SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Katsuhiro" AND t1.lname = "Ueno" | [
"Which",
"institution",
"does",
"\"",
"Katsuhiro",
"Ueno",
"\"",
"belong",
"to",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "authorship"
},
{
"id": 6,
"type": "column",
"value": "Katsuhiro"
},
{
"id": 2,
"type": "table",
"value": "authors"
},
{
"id": 4,
"type": "column",
"value": "instid"
},
{
"id": 9,
"type": "column",
"valu... | [
{
"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": [
1
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
11,269 | shipping | bird:train.json:5578 | How many shipments were ordered by S K L Enterprises Inc in 2017? | SELECT COUNT(T2.ship_id) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'S K L Enterprises Inc' AND STRFTIME('%Y', T2.ship_date) = '2017' | [
"How",
"many",
"shipments",
"were",
"ordered",
"by",
"S",
"K",
"L",
"Enterprises",
"Inc",
"in",
"2017",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "S K L Enterprises Inc"
},
{
"id": 4,
"type": "column",
"value": "cust_name"
},
{
"id": 8,
"type": "column",
"value": "ship_date"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 1,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
6,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O"
] |
11,270 | formula_1 | bird:dev.json:910 | What's the location coordinates of Silverstone Circuit? | SELECT lat, lng FROM circuits WHERE name = 'Silverstone Circuit' | [
"What",
"'s",
"the",
"location",
"coordinates",
"of",
"Silverstone",
"Circuit",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Silverstone Circuit"
},
{
"id": 0,
"type": "table",
"value": "circuits"
},
{
"id": 3,
"type": "column",
"value": "name"
},
{
"id": 1,
"type": "column",
"value": "lat"
},
{
"id": 2,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
11,271 | codebase_community | bird:dev.json:565 | User No.23853 gave a comment to a post at 9:08:18 on 2013/7/12, was that post well-finished? | SELECT IIF(T2.ClosedDate IS NULL, 'NOT well-finished', 'well-finished') AS resylt FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 23853 AND T1.CreationDate = '2013-07-12 09:08:18.0' | [
"User",
"No.23853",
"gave",
"a",
"comment",
"to",
"a",
"post",
"at",
"9:08:18",
"on",
"2013/7/12",
",",
"was",
"that",
"post",
"well",
"-",
"finished",
"?"
] | [
{
"id": 9,
"type": "value",
"value": "2013-07-12 09:08:18.0"
},
{
"id": 2,
"type": "value",
"value": "NOT well-finished"
},
{
"id": 3,
"type": "value",
"value": "well-finished"
},
{
"id": 8,
"type": "column",
"value": "creationdate"
},
{
"id": 10,
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
16,
17,
18
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"B-COLUMN",
"B-VALUE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
11,272 | world | bird:train.json:7905 | What are the districts that belong to the country with the lowest surface area? | SELECT T1.District FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T2.SurfaceArea ASC LIMIT 1 | [
"What",
"are",
"the",
"districts",
"that",
"belong",
"to",
"the",
"country",
"with",
"the",
"lowest",
"surface",
"area",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "surfacearea"
},
{
"id": 4,
"type": "column",
"value": "countrycode"
},
{
"id": 0,
"type": "column",
"value": "district"
},
{
"id": 2,
"type": "table",
"value": "country"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
11,273 | formula_1 | bird:dev.json:859 | What's Bruno Senna's Q1 result in the qualifying race No. 354? | SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 354 AND T2.forename = 'Bruno' AND T2.surname = 'Senna' | [
"What",
"'s",
"Bruno",
"Senna",
"'s",
"Q1",
"result",
"in",
"the",
"qualifying",
"race",
"No",
".",
"354",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "qualifying"
},
{
"id": 3,
"type": "column",
"value": "driverid"
},
{
"id": 6,
"type": "column",
"value": "forename"
},
{
"id": 2,
"type": "table",
"value": "drivers"
},
{
"id": 8,
"type": "column",
"val... | [
{
"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": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-VALUE",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
11,275 | manufactory_1 | spider:train_spider.json:5348 | Select the name of each manufacturer along with the name and price of its most expensive product. | SELECT T1.Name , max(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name | [
"Select",
"the",
"name",
"of",
"each",
"manufacturer",
"along",
"with",
"the",
"name",
"and",
"price",
"of",
"its",
"most",
"expensive",
"product",
"."
] | [
{
"id": 2,
"type": "table",
"value": "manufacturers"
},
{
"id": 4,
"type": "column",
"value": "manufacturer"
},
{
"id": 1,
"type": "table",
"value": "products"
},
{
"id": 3,
"type": "column",
"value": "price"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
16
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entit... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,276 | financial | bird:dev.json:121 | List account ID and account opening date for accounts from 'Prachatice'. | SELECT T1.account_id, T1.date FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.A2 = 'Prachatice' | [
"List",
"account",
"ID",
"and",
"account",
"opening",
"date",
"for",
"accounts",
"from",
"'",
"Prachatice",
"'",
"."
] | [
{
"id": 6,
"type": "column",
"value": "district_id"
},
{
"id": 0,
"type": "column",
"value": "account_id"
},
{
"id": 5,
"type": "value",
"value": "Prachatice"
},
{
"id": 3,
"type": "table",
"value": "district"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
1,
2
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
11,277 | talkingdata | bird:train.json:1048 | How many male users are active in the events held on 5/1/2016? | SELECT COUNT(T3.gender) FROM app_events AS T1 INNER JOIN events_relevant AS T2 ON T2.event_id = T1.event_id INNER JOIN gender_age AS T3 ON T3.device_id = T2.device_id WHERE T1.is_active = 1 AND T3.gender = 'M' AND T2.timestamp LIKE '2016-05-01%' | [
"How",
"many",
"male",
"users",
"are",
"active",
"in",
"the",
"events",
"held",
"on",
"5/1/2016",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "events_relevant"
},
{
"id": 9,
"type": "value",
"value": "2016-05-01%"
},
{
"id": 0,
"type": "table",
"value": "gender_age"
},
{
"id": 2,
"type": "table",
"value": "app_events"
},
{
"id": 4,
"type": "column... | [
{
"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": [
5
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O"
] |
11,278 | superhero | bird:dev.json:724 | Please list the superhero names of all the superheroes that have blue eyes and blond hair. | SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Blond' | [
"Please",
"list",
"the",
"superhero",
"names",
"of",
"all",
"the",
"superheroes",
"that",
"have",
"blue",
"eyes",
"and",
"blond",
"hair",
"."
] | [
{
"id": 0,
"type": "column",
"value": "superhero_name"
},
{
"id": 3,
"type": "column",
"value": "hair_colour_id"
},
{
"id": 8,
"type": "column",
"value": "eye_colour_id"
},
{
"id": 2,
"type": "table",
"value": "superhero"
},
{
"id": 1,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
11,279 | retails | bird:train.json:6782 | How many orders of more than 10 items have been returned? | SELECT COUNT(l_linenumber) FROM lineitem WHERE l_quantity > 10 AND l_returnflag = 'R' | [
"How",
"many",
"orders",
"of",
"more",
"than",
"10",
"items",
"have",
"been",
"returned",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "l_linenumber"
},
{
"id": 4,
"type": "column",
"value": "l_returnflag"
},
{
"id": 2,
"type": "column",
"value": "l_quantity"
},
{
"id": 0,
"type": "table",
"value": "lineitem"
},
{
"id": 3,
"type": "value",... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O"
] |
11,280 | epinions_1 | spider:train_spider.json:1700 | Find the titles of items whose rating is higher than the average review rating of all items. | SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > (SELECT avg(rating) FROM review) | [
"Find",
"the",
"titles",
"of",
"items",
"whose",
"rating",
"is",
"higher",
"than",
"the",
"average",
"review",
"rating",
"of",
"all",
"items",
"."
] | [
{
"id": 2,
"type": "table",
"value": "review"
},
{
"id": 3,
"type": "column",
"value": "rating"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 1,
"type": "table",
"value": "item"
},
{
"id": 4,
"type": "column",
"value": "i_id"
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
11,281 | entertainment_awards | spider:train_spider.json:4609 | Show the names of artworks in ascending order of the year they are nominated in. | SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Year | [
"Show",
"the",
"names",
"of",
"artworks",
"in",
"ascending",
"order",
"of",
"the",
"year",
"they",
"are",
"nominated",
"in",
"."
] | [
{
"id": 1,
"type": "table",
"value": "festival_detail"
},
{
"id": 5,
"type": "column",
"value": "festival_id"
},
{
"id": 3,
"type": "table",
"value": "nomination"
},
{
"id": 6,
"type": "column",
"value": "artwork_id"
},
{
"id": 4,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
13,
14
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
11,282 | party_host | spider:train_spider.json:2663 | What are the themes of parties ordered by the number of hosts in ascending manner? | SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC | [
"What",
"are",
"the",
"themes",
"of",
"parties",
"ordered",
"by",
"the",
"number",
"of",
"hosts",
"in",
"ascending",
"manner",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "number_of_hosts"
},
{
"id": 1,
"type": "column",
"value": "party_theme"
},
{
"id": 0,
"type": "table",
"value": "party"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
9,
10,
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs":... | [
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O"
] |
11,283 | cre_Theme_park | spider:train_spider.json:5941 | Show the details of the top 3 most expensive hotels. | SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3 | [
"Show",
"the",
"details",
"of",
"the",
"top",
"3",
"most",
"expensive",
"hotels",
"."
] | [
{
"id": 1,
"type": "column",
"value": "other_hotel_details"
},
{
"id": 2,
"type": "column",
"value": "price_range"
},
{
"id": 0,
"type": "table",
"value": "hotels"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,284 | cre_Doc_and_collections | bird:test.json:678 | What is the unique description of every parent document? | SELECT DISTINCT T2.Description FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID | [
"What",
"is",
"the",
"unique",
"description",
"of",
"every",
"parent",
"document",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "parent_document_object_id"
},
{
"id": 3,
"type": "column",
"value": "document_object_id"
},
{
"id": 1,
"type": "table",
"value": "document_objects"
},
{
"id": 0,
"type": "column",
"value": "description"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
11,285 | cre_Doc_Workflow | bird:test.json:2056 | How many different roles does the staff with id 3 have? | SELECT count(DISTINCT staff_role_code) FROM Staff_in_processes WHERE staff_id = 3 | [
"How",
"many",
"different",
"roles",
"does",
"the",
"staff",
"with",
"i",
"d",
"3",
"have",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "staff_in_processes"
},
{
"id": 3,
"type": "column",
"value": "staff_role_code"
},
{
"id": 1,
"type": "column",
"value": "staff_id"
},
{
"id": 2,
"type": "value",
"value": "3"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"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",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
11,286 | products_gen_characteristics | spider:train_spider.json:5539 | What is the code of the category that the product with the name 'flax' belongs to? | SELECT product_category_code FROM products WHERE product_name = "flax" | [
"What",
"is",
"the",
"code",
"of",
"the",
"category",
"that",
"the",
"product",
"with",
"the",
"name",
"'",
"flax",
"'",
"belongs",
"to",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "product_category_code"
},
{
"id": 2,
"type": "column",
"value": "product_name"
},
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 3,
"type": "column",
"value": "flax"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
11,287 | car_retails | bird:train.json:1609 | How many kinds of products did order No. 10252 contain? | SELECT COUNT(t.productCode) FROM orderdetails t WHERE t.orderNumber = '10252' | [
"How",
"many",
"kinds",
"of",
"products",
"did",
"order",
"No",
".",
"10252",
"contain",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "orderdetails"
},
{
"id": 1,
"type": "column",
"value": "ordernumber"
},
{
"id": 3,
"type": "column",
"value": "productcode"
},
{
"id": 2,
"type": "value",
"value": "10252"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6,
7
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
11,288 | cars | bird:train.json:3096 | Which country produced the most fuel-efficient car? | SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country ORDER BY T1.mpg DESC LIMIT 1 | [
"Which",
"country",
"produced",
"the",
"most",
"fuel",
"-",
"efficient",
"car",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "production"
},
{
"id": 0,
"type": "column",
"value": "country"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 5,
"type": "column",
"value": "origin"
},
{
"id": 3,
"type": "table",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,289 | game_1 | spider:train_spider.json:6006 | What are the last names for all scholarship students? | SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' | [
"What",
"are",
"the",
"last",
"names",
"for",
"all",
"scholarship",
"students",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "onscholarship"
},
{
"id": 1,
"type": "table",
"value": "sportsinfo"
},
{
"id": 2,
"type": "table",
"value": "student"
},
{
"id": 0,
"type": "column",
"value": "lname"
},
{
"id": 5,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
11,290 | superstore | bird:train.json:2415 | Calculate the percentage of ordered office supplies products in the central and the south superstore. | SELECT CAST(SUM(CASE WHEN T3.Category = 'Office Supplies' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.Category) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` | [
"Calculate",
"the",
"percentage",
"of",
"ordered",
"office",
"supplies",
"products",
"in",
"the",
"central",
"and",
"the",
"south",
"superstore",
"."
] | [
{
"id": 2,
"type": "table",
"value": "central_superstore"
},
{
"id": 9,
"type": "value",
"value": "Office Supplies"
},
{
"id": 6,
"type": "column",
"value": "Customer ID"
},
{
"id": 3,
"type": "column",
"value": "Product ID"
},
{
"id": 5,
"type... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,291 | cre_Theme_park | spider:train_spider.json:5924 | Find the details of the shops that can be reached by walk. | SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk" | [
"Find",
"the",
"details",
"of",
"the",
"shops",
"that",
"can",
"be",
"reached",
"by",
"walk",
"."
] | [
{
"id": 6,
"type": "column",
"value": "tourist_attraction_id"
},
{
"id": 2,
"type": "table",
"value": "tourist_attractions"
},
{
"id": 3,
"type": "column",
"value": "how_to_get_there"
},
{
"id": 0,
"type": "column",
"value": "shop_details"
},
{
"id... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,292 | soccer_2016 | bird:train.json:2017 | How many players played as a captain in season year 2008? | SELECT COUNT(T1.Player_Id) FROM Player_Match AS T1 INNER JOIN Match AS T2 ON T1.Match_Id = T2.Match_Id INNER JOIN Rolee AS T3 ON T1.Role_Id = T3.Role_Id WHERE T3.Role_Desc = 'Captain' AND T2.Match_Date LIKE '2008%' | [
"How",
"many",
"players",
"played",
"as",
"a",
"captain",
"in",
"season",
"year",
"2008",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "player_match"
},
{
"id": 7,
"type": "column",
"value": "match_date"
},
{
"id": 1,
"type": "column",
"value": "player_id"
},
{
"id": 5,
"type": "column",
"value": "role_desc"
},
{
"id": 9,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
11,293 | shakespeare | bird:train.json:2971 | Which chapter has the most paragraphs? Give the description of the chapter. | SELECT T1.Description FROM chapters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.chapter_id ORDER BY T2.ParagraphNum DESC LIMIT 1 | [
"Which",
"chapter",
"has",
"the",
"most",
"paragraphs",
"?",
"Give",
"the",
"description",
"of",
"the",
"chapter",
"."
] | [
{
"id": 3,
"type": "column",
"value": "paragraphnum"
},
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "paragraphs"
},
{
"id": 5,
"type": "column",
"value": "chapter_id"
},
{
"id": 1,
"type": "table"... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
11,294 | baseball_1 | spider:train_spider.json:3654 | Count the number of players who were born in USA and have bats information 'R'. | SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats = 'R'; | [
"Count",
"the",
"number",
"of",
"players",
"who",
"were",
"born",
"in",
"USA",
"and",
"have",
"bats",
"information",
"'",
"R",
"'",
"."
] | [
{
"id": 1,
"type": "column",
"value": "birth_country"
},
{
"id": 0,
"type": "table",
"value": "player"
},
{
"id": 3,
"type": "column",
"value": "bats"
},
{
"id": 2,
"type": "value",
"value": "USA"
},
{
"id": 4,
"type": "value",
"value": "R"... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
11,295 | college_2 | spider:train_spider.json:1355 | What is the name of the department with an instructure who has a name like 'Soisalon'? | SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%' | [
"What",
"is",
"the",
"name",
"of",
"the",
"department",
"with",
"an",
"instructure",
"who",
"has",
"a",
"name",
"like",
"'",
"Soisalon",
"'",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "instructor"
},
{
"id": 3,
"type": "value",
"value": "%Soisalon%"
},
{
"id": 1,
"type": "column",
"value": "dept_name"
},
{
"id": 2,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
11,296 | loan_1 | spider:train_spider.json:3076 | Find the city and name of bank branches that provide business loans. | SELECT T1.bname , T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business' | [
"Find",
"the",
"city",
"and",
"name",
"of",
"bank",
"branches",
"that",
"provide",
"business",
"loans",
"."
] | [
{
"id": 4,
"type": "column",
"value": "loan_type"
},
{
"id": 6,
"type": "column",
"value": "branch_id"
},
{
"id": 5,
"type": "value",
"value": "Business"
},
{
"id": 0,
"type": "column",
"value": "bname"
},
{
"id": 1,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
11,297 | inn_1 | spider:train_spider.json:2605 | What are the first and last names of people who payed more than the rooms' base prices? | SELECT T1.firstname , T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice > 0 | [
"What",
"are",
"the",
"first",
"and",
"last",
"names",
"of",
"people",
"who",
"payed",
"more",
"than",
"the",
"rooms",
"'",
"base",
"prices",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "reservations"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 8,
"type": "column",
"value": "baseprice"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
11,298 | professional_basketball | bird:train.json:2931 | How many percent of points were scored by NBA players who belonged to 'LAL' team and had performed steals movement. | SELECT CAST(SUM(IIF(T2.steals IS NOT NULL AND T1.tmID = 'LAL', 1, 0)) AS REAL) * 100 / COUNT(T1.tmID) FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year | [
"How",
"many",
"percent",
"of",
"points",
"were",
"scored",
"by",
"NBA",
"players",
"who",
"belonged",
"to",
"'",
"LAL",
"'",
"team",
"and",
"had",
"performed",
"steals",
"movement",
"."
] | [
{
"id": 1,
"type": "table",
"value": "players_teams"
},
{
"id": 7,
"type": "column",
"value": "steals"
},
{
"id": 0,
"type": "table",
"value": "teams"
},
{
"id": 3,
"type": "column",
"value": "tmid"
},
{
"id": 4,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"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",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
11,299 | cre_Students_Information_Systems | bird:test.json:442 | What are the biographical data and student id of the students who either took two or more classes and or have less than two detentions? | SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) >= 2 UNION SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Detention AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) < 2 | [
"What",
"are",
"the",
"biographical",
"data",
"and",
"student",
"i",
"d",
"of",
"the",
"students",
"who",
"either",
"took",
"two",
"or",
"more",
"classes",
"and",
"or",
"have",
"less",
"than",
"two",
"detentions",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "student_id"
},
{
"id": 5,
"type": "table",
"value": "detention"
},
{
"id": 1,
"type": "column",
"value": "bio_data"
},
{
"id": 2,
"type": "table",
"value": "students"
},
{
"id": 3,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": [
6,
7,
8
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
18
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,300 | donor | bird:train.json:3246 | What is the short description for the title Future Einsteins Of America? | SELECT short_description FROM essays WHERE title = 'Future Einsteins Of America' | [
"What",
"is",
"the",
"short",
"description",
"for",
"the",
"title",
"Future",
"Einsteins",
"Of",
"America",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Future Einsteins Of America"
},
{
"id": 1,
"type": "column",
"value": "short_description"
},
{
"id": 0,
"type": "table",
"value": "essays"
},
{
"id": 2,
"type": "column",
"value": "title"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
8,
9,
10,
11
]
},
{
"entity_id": 4,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
11,301 | movie_platform | bird:train.json:124 | For the user who post the list that contained the most number of the movies, is he/she a paying subscriber when creating that list? | SELECT T1.user_has_payment_method FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_movie_number = ( SELECT MAX(list_movie_number) FROM lists ) | [
"For",
"the",
"user",
"who",
"post",
"the",
"list",
"that",
"contained",
"the",
"most",
"number",
"of",
"the",
"movies",
",",
"is",
"he",
"/",
"she",
"a",
"paying",
"subscriber",
"when",
"creating",
"that",
"list",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "user_has_payment_method"
},
{
"id": 3,
"type": "column",
"value": "list_movie_number"
},
{
"id": 1,
"type": "table",
"value": "lists_users"
},
{
"id": 4,
"type": "column",
"value": "list_id"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
26
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,303 | party_people | spider:train_spider.json:2039 | How many regions do we have? | SELECT count(*) FROM region | [
"How",
"many",
"regions",
"do",
"we",
"have",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "region"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
11,304 | soccer_2016 | bird:train.json:1814 | Which country does Ranchi city belong to? | SELECT T2.Country_Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.Country_Id = T2.Country_Id WHERE T1.City_Name = 'Ranchi' | [
"Which",
"country",
"does",
"Ranchi",
"city",
"belong",
"to",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "country_name"
},
{
"id": 5,
"type": "column",
"value": "country_id"
},
{
"id": 3,
"type": "column",
"value": "city_name"
},
{
"id": 2,
"type": "table",
"value": "country"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"... | [
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O"
] |
11,305 | flight_4 | spider:train_spider.json:6854 | What is the count of cities with more than 3 airports? | SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*) > 3) | [
"What",
"is",
"the",
"count",
"of",
"cities",
"with",
"more",
"than",
"3",
"airports",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "airports"
},
{
"id": 1,
"type": "column",
"value": "city"
},
{
"id": 2,
"type": "value",
"value": "3"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
11,306 | music_1 | spider:train_spider.json:3624 | What is the duration, file size, and song format for every pop song, ordered by title alphabetically? | SELECT T1.duration , T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = "pop" ORDER BY T2.song_name | [
"What",
"is",
"the",
"duration",
",",
"file",
"size",
",",
"and",
"song",
"format",
"for",
"every",
"pop",
"song",
",",
"ordered",
"by",
"title",
"alphabetically",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "file_size"
},
{
"id": 7,
"type": "column",
"value": "song_name"
},
{
"id": 0,
"type": "column",
"value": "duration"
},
{
"id": 5,
"type": "column",
"value": "genre_is"
},
{
"id": 2,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,307 | hr_1 | spider:train_spider.json:3486 | What are the employee ids for those who had two or more jobs. | SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2 | [
"What",
"are",
"the",
"employee",
"ids",
"for",
"those",
"who",
"had",
"two",
"or",
"more",
"jobs",
"."
] | [
{
"id": 0,
"type": "table",
"value": "job_history"
},
{
"id": 1,
"type": "column",
"value": "employee_id"
},
{
"id": 2,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,308 | icfp_1 | spider:train_spider.json:2879 | Who is the author of the paper titled "Binders Unbound"? Give me the last name. | SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Binders Unbound" | [
"Who",
"is",
"the",
"author",
"of",
"the",
"paper",
"titled",
"\"",
"Binders",
"Unbound",
"\"",
"?",
"Give",
"me",
"the",
"last",
"name",
"."
] | [
{
"id": 3,
"type": "column",
"value": "Binders Unbound"
},
{
"id": 5,
"type": "table",
"value": "authorship"
},
{
"id": 4,
"type": "table",
"value": "authors"
},
{
"id": 6,
"type": "column",
"value": "paperid"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
17
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,309 | book_publishing_company | bird:train.json:224 | Tell me about the information of the French publisher. | SELECT T1.pr_info FROM pub_info AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country = 'France' | [
"Tell",
"me",
"about",
"the",
"information",
"of",
"the",
"French",
"publisher",
"."
] | [
{
"id": 2,
"type": "table",
"value": "publishers"
},
{
"id": 1,
"type": "table",
"value": "pub_info"
},
{
"id": 0,
"type": "column",
"value": "pr_info"
},
{
"id": 3,
"type": "column",
"value": "country"
},
{
"id": 4,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
11,310 | store_1 | spider:train_spider.json:571 | How many albums does Billy Cobham has? | SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Billy Cobham"; | [
"How",
"many",
"albums",
"does",
"Billy",
"Cobham",
"has",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "Billy Cobham"
},
{
"id": 4,
"type": "column",
"value": "artist_id"
},
{
"id": 1,
"type": "table",
"value": "artists"
},
{
"id": 0,
"type": "table",
"value": "albums"
},
{
"id": 2,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4,
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
11,311 | food_inspection | bird:train.json:8790 | Tell the Id number of the business with the most number of violations. | SELECT business_id FROM violations GROUP BY business_id ORDER BY COUNT(business_id) DESC LIMIT 1 | [
"Tell",
"the",
"I",
"d",
"number",
"of",
"the",
"business",
"with",
"the",
"most",
"number",
"of",
"violations",
"."
] | [
{
"id": 1,
"type": "column",
"value": "business_id"
},
{
"id": 0,
"type": "table",
"value": "violations"
}
] | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,312 | world_development_indicators | bird:train.json:2123 | List the sources for the Net Migration in South American countries in 2002. | SELECT T2.Source FROM CountryNotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode INNER JOIN Country AS T3 ON T1.Countrycode = T3.CountryCode INNER JOIN SeriesNotes AS T4 ON T2.SeriesCode = T4.Seriescode WHERE T4.Year LIKE '%2002%' AND T2.IndicatorName = 'Net migration' | [
"List",
"the",
"sources",
"for",
"the",
"Net",
"Migration",
"in",
"South",
"American",
"countries",
"in",
"2002",
"."
] | [
{
"id": 6,
"type": "column",
"value": "indicatorname"
},
{
"id": 7,
"type": "value",
"value": "Net migration"
},
{
"id": 8,
"type": "table",
"value": "countrynotes"
},
{
"id": 1,
"type": "table",
"value": "seriesnotes"
},
{
"id": 10,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
12
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
11,313 | bakery_1 | bird:test.json:1563 | Which customer shopped most often? How many times? | SELECT CustomerId , count(*) FROM receipts GROUP BY CustomerId ORDER BY count(*) DESC LIMIT 1 | [
"Which",
"customer",
"shopped",
"most",
"often",
"?",
"How",
"many",
"times",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "customerid"
},
{
"id": 0,
"type": "table",
"value": "receipts"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,314 | election | spider:train_spider.json:2742 | Show all the distinct districts for elections. | SELECT DISTINCT District FROM election | [
"Show",
"all",
"the",
"distinct",
"districts",
"for",
"elections",
"."
] | [
{
"id": 0,
"type": "table",
"value": "election"
},
{
"id": 1,
"type": "column",
"value": "district"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
11,315 | cre_Theme_park | spider:train_spider.json:5911 | What are the names and opening hours of the tourist attractions that can be accessed by bus or walk? | SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" OR How_to_Get_There = "walk" | [
"What",
"are",
"the",
"names",
"and",
"opening",
"hours",
"of",
"the",
"tourist",
"attractions",
"that",
"can",
"be",
"accessed",
"by",
"bus",
"or",
"walk",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "tourist_attractions"
},
{
"id": 3,
"type": "column",
"value": "how_to_get_there"
},
{
"id": 2,
"type": "column",
"value": "opening_hours"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 5,
"type"... | [
{
"entity_id": 0,
"token_idxs": [
9,
10
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
16
]
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
11,316 | tracking_grants_for_research | spider:train_spider.json:4375 | How many patents outcomes were listed for all the projects? | SELECT count(*) FROM Project_outcomes WHERE outcome_code = 'Patent' | [
"How",
"many",
"patents",
"outcomes",
"were",
"listed",
"for",
"all",
"the",
"projects",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "project_outcomes"
},
{
"id": 1,
"type": "column",
"value": "outcome_code"
},
{
"id": 2,
"type": "value",
"value": "Patent"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,317 | driving_school | spider:train_spider.json:6634 | When did the staff member with first name as Janessa and last name as Sawayn leave the company? | SELECT date_left_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"; | [
"When",
"did",
"the",
"staff",
"member",
"with",
"first",
"name",
"as",
"Janessa",
"and",
"last",
"name",
"as",
"Sawayn",
"leave",
"the",
"company",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "date_left_staff"
},
{
"id": 2,
"type": "column",
"value": "first_name"
},
{
"id": 4,
"type": "column",
"value": "last_name"
},
{
"id": 3,
"type": "column",
"value": "Janessa"
},
{
"id": 5,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
11,
... | [
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
11,318 | computer_student | bird:train.json:972 | Provide the ID of professors who are teaching high-level or harder undergraduate course. | SELECT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_400' | [
"Provide",
"the",
"ID",
"of",
"professors",
"who",
"are",
"teaching",
"high",
"-",
"level",
"or",
"harder",
"undergraduate",
"course",
"."
] | [
{
"id": 3,
"type": "column",
"value": "courselevel"
},
{
"id": 4,
"type": "value",
"value": "Level_400"
},
{
"id": 5,
"type": "column",
"value": "course_id"
},
{
"id": 2,
"type": "table",
"value": "taughtby"
},
{
"id": 1,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,319 | human_resources | bird:train.json:8970 | Which position has the highest amount of poor performing employees? | SELECT T2.positiontitle FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.performance = 'Poor' GROUP BY T2.positiontitle ORDER BY COUNT(T2.positiontitle) DESC LIMIT 1 | [
"Which",
"position",
"has",
"the",
"highest",
"amount",
"of",
"poor",
"performing",
"employees",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "positiontitle"
},
{
"id": 3,
"type": "column",
"value": "performance"
},
{
"id": 5,
"type": "column",
"value": "positionid"
},
{
"id": 1,
"type": "table",
"value": "employee"
},
{
"id": 2,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"B-TABLE",
"O"
] |
11,320 | professional_basketball | bird:train.json:2806 | Which team(s) had 90% games won. List the coach ID for the team and year played. | SELECT DISTINCT T2.name, T1.year, T1.coachID FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID WHERE CAST(T2.won AS REAL) * 100 / T2.games > 90 | [
"Which",
"team(s",
")",
"had",
"90",
"%",
"games",
"won",
".",
"List",
"the",
"coach",
"ID",
"for",
"the",
"team",
"and",
"year",
"played",
"."
] | [
{
"id": 2,
"type": "column",
"value": "coachid"
},
{
"id": 3,
"type": "table",
"value": "coaches"
},
{
"id": 4,
"type": "table",
"value": "teams"
},
{
"id": 7,
"type": "column",
"value": "games"
},
{
"id": 0,
"type": "column",
"value": "nam... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
17
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
1
]
},
{
"entit... | [
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
11,322 | world_development_indicators | bird:train.json:2197 | What South Asian nations have low incomes? Please include the entire names of the nations in your answer. | SELECT LongName FROM Country WHERE IncomeGroup = 'Low income' AND Region = 'South Asia' | [
"What",
"South",
"Asian",
"nations",
"have",
"low",
"incomes",
"?",
"Please",
"include",
"the",
"entire",
"names",
"of",
"the",
"nations",
"in",
"your",
"answer",
"."
] | [
{
"id": 2,
"type": "column",
"value": "incomegroup"
},
{
"id": 3,
"type": "value",
"value": "Low income"
},
{
"id": 5,
"type": "value",
"value": "South Asia"
},
{
"id": 1,
"type": "column",
"value": "longname"
},
{
"id": 0,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5,
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,323 | public_review_platform | bird:train.json:4051 | Which user has done the most review on a business attributed to delivery? | SELECT T3.user_id FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Reviews AS T3 ON T2.business_id = T3.business_id WHERE T1.attribute_name = 'Delivery' GROUP BY T3.user_id ORDER BY COUNT(T2.business_id) DESC LIMIT 1 | [
"Which",
"user",
"has",
"done",
"the",
"most",
"review",
"on",
"a",
"business",
"attributed",
"to",
"delivery",
"?"
] | [
{
"id": 5,
"type": "table",
"value": "business_attributes"
},
{
"id": 2,
"type": "column",
"value": "attribute_name"
},
{
"id": 7,
"type": "column",
"value": "attribute_id"
},
{
"id": 6,
"type": "column",
"value": "business_id"
},
{
"id": 4,
"t... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entit... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
11,324 | talkingdata | bird:train.json:1216 | Calculate the average age of people who have apps installed but are not active on their devices. | SELECT AVG(T1.age) FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id INNER JOIN app_events_relevant AS T3 ON T2.event_id = T3.event_id WHERE T3.is_installed = 1 AND T3.is_active = 0 | [
"Calculate",
"the",
"average",
"age",
"of",
"people",
"who",
"have",
"apps",
"installed",
"but",
"are",
"not",
"active",
"on",
"their",
"devices",
"."
] | [
{
"id": 0,
"type": "table",
"value": "app_events_relevant"
},
{
"id": 3,
"type": "table",
"value": "events_relevant"
},
{
"id": 5,
"type": "column",
"value": "is_installed"
},
{
"id": 2,
"type": "table",
"value": "gender_age"
},
{
"id": 7,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
11,325 | hockey | bird:train.json:7701 | In the Stanley Cup finals history, how many games did player id "broadpu01" play in 1922? | SELECT GP FROM ScoringSC WHERE playerID = 'broadpu01' AND YEAR = 1922 | [
"In",
"the",
"Stanley",
"Cup",
"finals",
"history",
",",
"how",
"many",
"games",
"did",
"player",
"i",
"d",
"\"",
"broadpu01",
"\"",
"play",
"in",
"1922",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "scoringsc"
},
{
"id": 3,
"type": "value",
"value": "broadpu01"
},
{
"id": 2,
"type": "column",
"value": "playerid"
},
{
"id": 4,
"type": "column",
"value": "year"
},
{
"id": 5,
"type": "value",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12,
13
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
11,326 | store_1 | spider:train_spider.json:592 | What is Nancy Edwards's address? | SELECT address FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards"; | [
"What",
"is",
"Nancy",
"Edwards",
"'s",
"address",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "first_name"
},
{
"id": 0,
"type": "table",
"value": "employees"
},
{
"id": 4,
"type": "column",
"value": "last_name"
},
{
"id": 1,
"type": "column",
"value": "address"
},
{
"id": 5,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
11,327 | driving_school | spider:train_spider.json:6682 | List first name and last name of customers lived in city Lockmanfurt. | SELECT T1.first_name , T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt"; | [
"List",
"first",
"name",
"and",
"last",
"name",
"of",
"customers",
"lived",
"in",
"city",
"Lockmanfurt",
"."
] | [
{
"id": 6,
"type": "column",
"value": "customer_address_id"
},
{
"id": 5,
"type": "column",
"value": "Lockmanfurt"
},
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "column",
"value": "address_id"
},
{
"id": 1,
"type":... | [
{
"entity_id": 0,
"token_idxs": [
1,
2
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
11,328 | trains | bird:train.json:725 | What is the direction of the train with a diamond-shaped load in its 2nd car? | SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 2 AND T1.shape = 'diamond' | [
"What",
"is",
"the",
"direction",
"of",
"the",
"train",
"with",
"a",
"diamond",
"-",
"shaped",
"load",
"in",
"its",
"2nd",
"car",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "direction"
},
{
"id": 3,
"type": "column",
"value": "train_id"
},
{
"id": 5,
"type": "column",
"value": "position"
},
{
"id": 8,
"type": "value",
"value": "diamond"
},
{
"id": 2,
"type": "table",
"valu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
16
]
},
{
"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",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,329 | aircraft | spider:train_spider.json:4842 | What are the names of the pilots that have not won any matches in Australia? | SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia') | [
"What",
"are",
"the",
"names",
"of",
"the",
"pilots",
"that",
"have",
"not",
"won",
"any",
"matches",
"in",
"Australia",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "winning_pilot"
},
{
"id": 6,
"type": "value",
"value": "Australia"
},
{
"id": 2,
"type": "column",
"value": "pilot_id"
},
{
"id": 5,
"type": "column",
"value": "country"
},
{
"id": 0,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
11,330 | movie_3 | bird:train.json:9170 | How many times is the number of Indian cities than Italian cities? | SELECT CAST(SUM(IIF(T1.country = 'India', 1, 0)) AS REAL) / SUM(IIF(T1.country = 'Italy', 1, 0)) FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id | [
"How",
"many",
"times",
"is",
"the",
"number",
"of",
"Indian",
"cities",
"than",
"Italian",
"cities",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "country_id"
},
{
"id": 0,
"type": "table",
"value": "country"
},
{
"id": 5,
"type": "column",
"value": "country"
},
{
"id": 6,
"type": "value",
"value": "Italy"
},
{
"id": 7,
"type": "value",
"value": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O"
] |
11,331 | social_media | bird:train.json:808 | Give the gender of the user who made the highest klout tweet on Wednesdays. | SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.Weekday = 'Wednesday' ORDER BY T1.Klout DESC LIMIT 1 | [
"Give",
"the",
"gender",
"of",
"the",
"user",
"who",
"made",
"the",
"highest",
"klout",
"tweet",
"on",
"Wednesdays",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Wednesday"
},
{
"id": 1,
"type": "table",
"value": "twitter"
},
{
"id": 2,
"type": "column",
"value": "weekday"
},
{
"id": 0,
"type": "column",
"value": "gender"
},
{
"id": 5,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
11,332 | club_leader | bird:test.json:656 | Show the name of the leader of the club named "Houston". | SELECT T3.Name FROM club_leader AS T1 JOIN club AS T2 ON T1.Club_ID = T2.Club_ID JOIN member AS T3 ON T1.Member_ID = T3.Member_ID WHERE T2.Club_Name = "Houston" | [
"Show",
"the",
"name",
"of",
"the",
"leader",
"of",
"the",
"club",
"named",
"\"",
"Houston",
"\"",
"."
] | [
{
"id": 4,
"type": "table",
"value": "club_leader"
},
{
"id": 2,
"type": "column",
"value": "club_name"
},
{
"id": 6,
"type": "column",
"value": "member_id"
},
{
"id": 3,
"type": "column",
"value": "Houston"
},
{
"id": 7,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
11,333 | region_building | bird:test.json:345 | List the year in which the most buildings are completed. | SELECT Completed_Year FROM building GROUP BY Completed_Year ORDER BY COUNT(*) DESC LIMIT 1 | [
"List",
"the",
"year",
"in",
"which",
"the",
"most",
"buildings",
"are",
"completed",
"."
] | [
{
"id": 1,
"type": "column",
"value": "completed_year"
},
{
"id": 0,
"type": "table",
"value": "building"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"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",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O"
] |
11,334 | scientist_1 | spider:train_spider.json:6493 | List the names of all scientists sorted in alphabetical order. | SELECT name FROM scientists ORDER BY name | [
"List",
"the",
"names",
"of",
"all",
"scientists",
"sorted",
"in",
"alphabetical",
"order",
"."
] | [
{
"id": 0,
"type": "table",
"value": "scientists"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
11,335 | tracking_orders | spider:train_spider.json:6890 | Which order's shipment tracking number is "3452"? Give me the id of the order. | SELECT order_id FROM shipments WHERE shipment_tracking_number = "3452" | [
"Which",
"order",
"'s",
"shipment",
"tracking",
"number",
"is",
"\"",
"3452",
"\"",
"?",
"Give",
"me",
"the",
"i",
"d",
"of",
"the",
"order",
"."
] | [
{
"id": 2,
"type": "column",
"value": "shipment_tracking_number"
},
{
"id": 0,
"type": "table",
"value": "shipments"
},
{
"id": 1,
"type": "column",
"value": "order_id"
},
{
"id": 3,
"type": "column",
"value": "3452"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": [
4,
5
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
11,336 | tracking_share_transactions | spider:train_spider.json:5872 | Show the average amount of transactions for different lots, ordered by average amount of transactions. | SELECT T2.lot_id , avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY avg(amount_of_transaction) | [
"Show",
"the",
"average",
"amount",
"of",
"transactions",
"for",
"different",
"lots",
",",
"ordered",
"by",
"average",
"amount",
"of",
"transactions",
"."
] | [
{
"id": 3,
"type": "column",
"value": "amount_of_transaction"
},
{
"id": 2,
"type": "table",
"value": "transactions_lots"
},
{
"id": 4,
"type": "column",
"value": "transaction_id"
},
{
"id": 1,
"type": "table",
"value": "transactions"
},
{
"id": 0,... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
3,
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,337 | election | spider:train_spider.json:2750 | How many distinct governors are there? | SELECT count(DISTINCT Governor) FROM party | [
"How",
"many",
"distinct",
"governors",
"are",
"there",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "governor"
},
{
"id": 0,
"type": "table",
"value": "party"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
11,338 | legislator | bird:train.json:4906 | Provide the Instagram username of the legislator named Benjamin Hawkins. | SELECT T1.instagram FROM `social-media` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.first_name = 'Benjamin' AND T2.last_name = 'Hawkins' | [
"Provide",
"the",
"Instagram",
"username",
"of",
"the",
"legislator",
"named",
"Benjamin",
"Hawkins",
"."
] | [
{
"id": 1,
"type": "table",
"value": "social-media"
},
{
"id": 3,
"type": "column",
"value": "bioguide_id"
},
{
"id": 5,
"type": "column",
"value": "first_name"
},
{
"id": 0,
"type": "column",
"value": "instagram"
},
{
"id": 7,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O"
] |
11,339 | college_completion | bird:train.json:3722 | Give the name of the 4-year public school in "ID" with the lowest graduation 100 value. | SELECT T1.chronname FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'ID' AND T1.level = '4-year' AND T1.control = 'Public' GROUP BY T1.chronname ORDER BY SUM(T1.grad_100_value) ASC LIMIT 1 | [
"Give",
"the",
"name",
"of",
"the",
"4",
"-",
"year",
"public",
"school",
"in",
"\"",
"ID",
"\"",
"with",
"the",
"lowest",
"graduation",
"100",
"value",
"."
] | [
{
"id": 1,
"type": "table",
"value": "institution_details"
},
{
"id": 2,
"type": "table",
"value": "state_sector_grads"
},
{
"id": 10,
"type": "column",
"value": "grad_100_value"
},
{
"id": 4,
"type": "column",
"value": "state_abbr"
},
{
"id": 0,
... | [
{
"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": [
12
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
11,340 | donor | bird:train.json:3177 | What is the average amount of donations by people who donated in the project "Recording Rockin' Readers" | SELECT AVG(T3.donation_to_project) FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T1.title = 'Recording Rockin'' Readers' | [
"What",
"is",
"the",
"average",
"amount",
"of",
"donations",
"by",
"people",
"who",
"donated",
"in",
"the",
"project",
"\"",
"Recording",
"Rockin",
"'",
"Readers",
"\""
] | [
{
"id": 2,
"type": "value",
"value": "Recording Rockin' Readers"
},
{
"id": 3,
"type": "column",
"value": "donation_to_project"
},
{
"id": 0,
"type": "table",
"value": "donations"
},
{
"id": 6,
"type": "column",
"value": "projectid"
},
{
"id": 5,
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
15,
16,
17,
18
]
},
{
"entity_id": 3,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 4,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
11,341 | formula_1 | spider:train_spider.json:2160 | What are the unique names of all race held between 2014 and 2017? | SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017 | [
"What",
"are",
"the",
"unique",
"names",
"of",
"all",
"race",
"held",
"between",
"2014",
"and",
"2017",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "races"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "year"
},
{
"id": 3,
"type": "value",
"value": "2014"
},
{
"id": 4,
"type": "value",
"value": "2017"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
11,342 | gymnast | spider:train_spider.json:1772 | How many distinct hometowns did these people have? | SELECT count(DISTINCT Hometown) FROM people | [
"How",
"many",
"distinct",
"hometowns",
"did",
"these",
"people",
"have",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "hometown"
},
{
"id": 0,
"type": "table",
"value": "people"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
11,343 | public_review_platform | bird:train.json:3962 | Which city is the business that got a "medium" length tip with "3" likes located in? | SELECT T1.city FROM Business AS T1 INNER JOIN Tips AS T2 ON T1.business_id = T2.business_id WHERE T2.tip_length = 'Medium' AND T2.likes = 3 | [
"Which",
"city",
"is",
"the",
"business",
"that",
"got",
"a",
"\"",
"medium",
"\"",
"length",
"tip",
"with",
"\"",
"3",
"\"",
"likes",
"located",
"in",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "business_id"
},
{
"id": 4,
"type": "column",
"value": "tip_length"
},
{
"id": 1,
"type": "table",
"value": "business"
},
{
"id": 5,
"type": "value",
"value": "Medium"
},
{
"id": 6,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entit... | [
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
11,344 | car_racing | bird:test.json:1621 | What is the capital of the country where the driver with the most points is from? | SELECT T1.Capital FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country ORDER BY T2.Points DESC LIMIT 1 | [
"What",
"is",
"the",
"capital",
"of",
"the",
"country",
"where",
"the",
"driver",
"with",
"the",
"most",
"points",
"is",
"from",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "country_id"
},
{
"id": 0,
"type": "column",
"value": "capital"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 5,
"type": "column",
"value": "country"
},
{
"id": 2,
"type": "table",
"value... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.