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 |
|---|---|---|---|---|---|---|---|---|
12,094 | club_1 | spider:train_spider.json:4301 | Count the number of members in club "Bootup Baltimore" whose age is above 18. | SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.age > 18 | [
"Count",
"the",
"number",
"of",
"members",
"in",
"club",
"\"",
"Bootup",
"Baltimore",
"\"",
"whose",
"age",
"is",
"above",
"18",
"."
] | [
{
"id": 5,
"type": "column",
"value": "Bootup Baltimore"
},
{
"id": 2,
"type": "table",
"value": "member_of_club"
},
{
"id": 4,
"type": "column",
"value": "clubname"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 8,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
4,
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
12,095 | formula_1 | spider:train_spider.json:2231 | Find the id and surname of the driver who participated the most number of races? | SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1 | [
"Find",
"the",
"i",
"d",
"and",
"surname",
"of",
"the",
"driver",
"who",
"participated",
"the",
"most",
"number",
"of",
"races",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "driverid"
},
{
"id": 1,
"type": "column",
"value": "surname"
},
{
"id": 3,
"type": "table",
"value": "drivers"
},
{
"id": 4,
"type": "table",
"value": "results"
},
{
"id": 5,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,096 | european_football_1 | bird:train.json:2775 | Which division had the most games with more than 5 total field goals on 2020/2/22? Give the full name of the division? | SELECT T2.division, T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-02-22' AND T1.FTAG + T1.FTHG > 5 ORDER BY T1.FTAG + T1.FTHG DESC LIMIT 1 | [
"Which",
"division",
"had",
"the",
"most",
"games",
"with",
"more",
"than",
"5",
"total",
"field",
"goals",
"on",
"2020/2/22",
"?",
"Give",
"the",
"full",
"name",
"of",
"the",
"division",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "2020-02-22"
},
{
"id": 3,
"type": "table",
"value": "divisions"
},
{
"id": 0,
"type": "column",
"value": "division"
},
{
"id": 2,
"type": "table",
"value": "matchs"
},
{
"id": 1,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
19
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
22
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O"
] |
12,097 | pilot_1 | bird:test.json:1099 | What are the names of pilots whose age is below the average age, ordered by age? | SELECT pilot_name FROM PilotSkills WHERE age < (SELECT avg(age) FROM PilotSkills) ORDER BY age | [
"What",
"are",
"the",
"names",
"of",
"pilots",
"whose",
"age",
"is",
"below",
"the",
"average",
"age",
",",
"ordered",
"by",
"age",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "pilotskills"
},
{
"id": 1,
"type": "column",
"value": "pilot_name"
},
{
"id": 2,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
12,098 | citeseer | bird:train.json:4145 | Which paper ID cited the most word? In which class label does it belongs to? | SELECT T1.paper_id, T1.class_label FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id GROUP BY T1.paper_id, T1.class_label ORDER BY COUNT(T2.word_cited_id) DESC LIMIT 1 | [
"Which",
"paper",
"ID",
"cited",
"the",
"most",
"word",
"?",
"In",
"which",
"class",
"label",
"does",
"it",
"belongs",
"to",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "word_cited_id"
},
{
"id": 1,
"type": "column",
"value": "class_label"
},
{
"id": 0,
"type": "column",
"value": "paper_id"
},
{
"id": 3,
"type": "table",
"value": "content"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
10,
11
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
12,099 | european_football_2 | bird:dev.json:1087 | Among the players whose height is over 180, how many of them have a volley score of over 70? | SELECT COUNT(DISTINCT t1.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height > 180 AND t2.volleys > 70 | [
"Among",
"the",
"players",
"whose",
"height",
"is",
"over",
"180",
",",
"how",
"many",
"of",
"them",
"have",
"a",
"volley",
"score",
"of",
"over",
"70",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "player_attributes"
},
{
"id": 3,
"type": "column",
"value": "player_api_id"
},
{
"id": 6,
"type": "column",
"value": "volleys"
},
{
"id": 0,
"type": "table",
"value": "player"
},
{
"id": 4,
"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": [
4
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
12,100 | human_resources | bird:train.json:8954 | How many employees are there in the "Miami" office? | SELECT COUNT(*) FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T2.locationcity = 'Miami' | [
"How",
"many",
"employees",
"are",
"there",
"in",
"the",
"\"",
"Miami",
"\"",
"office",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "locationcity"
},
{
"id": 4,
"type": "column",
"value": "locationid"
},
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 1,
"type": "table",
"value": "location"
},
{
"id": 3,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
12,101 | government_shift | bird:test.json:369 | Find the details of the customer who has never used any services . | select customer_details from customers where customer_id not in (select customer_id from customers_and_services) | [
"Find",
"the",
"details",
"of",
"the",
"customer",
"who",
"has",
"never",
"used",
"any",
"services",
"."
] | [
{
"id": 3,
"type": "table",
"value": "customers_and_services"
},
{
"id": 1,
"type": "column",
"value": "customer_details"
},
{
"id": 2,
"type": "column",
"value": "customer_id"
},
{
"id": 0,
"type": "table",
"value": "customers"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9,
10,
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"O"
] |
12,102 | regional_sales | bird:train.json:2617 | What is the region of stores which have type of "Town" in the list? | SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.Type = 'Town' THEN T1.Region END AS T FROM Regions T1 INNER JOIN `Store Locations` T2 ON T2.StateCode = T1.StateCode ) WHERE T IS NOT NULL | [
"What",
"is",
"the",
"region",
"of",
"stores",
"which",
"have",
"type",
"of",
"\"",
"Town",
"\"",
"in",
"the",
"list",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "Store Locations"
},
{
"id": 3,
"type": "column",
"value": "statecode"
},
{
"id": 1,
"type": "table",
"value": "regions"
},
{
"id": 4,
"type": "column",
"value": "region"
},
{
"id": 5,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"token_idxs": [
8
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
12,103 | superstore | bird:train.json:2411 | What product category got the least sales in the west superstore? | SELECT T2.Category FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` ORDER BY T1.Sales LIMIT 1 | [
"What",
"product",
"category",
"got",
"the",
"least",
"sales",
"in",
"the",
"west",
"superstore",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "west_superstore"
},
{
"id": 4,
"type": "column",
"value": "Product ID"
},
{
"id": 0,
"type": "column",
"value": "category"
},
{
"id": 2,
"type": "table",
"value": "product"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
9,
10
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
12,104 | talkingdata | bird:train.json:1094 | Among the users who uses a vivo device, how many of them are female and under 30? | SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'F' AND T2.phone_brand = 'vivo' AND T1.age < 30 | [
"Among",
"the",
"users",
"who",
"uses",
"a",
"vivo",
"device",
",",
"how",
"many",
"of",
"them",
"are",
"female",
"and",
"under",
"30",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "phone_brand_device_model2"
},
{
"id": 5,
"type": "column",
"value": "phone_brand"
},
{
"id": 0,
"type": "table",
"value": "gender_age"
},
{
"id": 2,
"type": "column",
"value": "device_id"
},
{
"id": 3,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
12,105 | books | bird:train.json:6065 | List all books published by ADV Manga. | SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'ADV Manga' | [
"List",
"all",
"books",
"published",
"by",
"ADV",
"Manga",
"."
] | [
{
"id": 3,
"type": "column",
"value": "publisher_name"
},
{
"id": 5,
"type": "column",
"value": "publisher_id"
},
{
"id": 2,
"type": "table",
"value": "publisher"
},
{
"id": 4,
"type": "value",
"value": "ADV Manga"
},
{
"id": 0,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5,
6
]
},
{
"entity_id":... | [
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
12,106 | decoration_competition | spider:train_spider.json:4495 | Show the names of members and the decoration themes they have. | SELECT T1.Name , T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID | [
"Show",
"the",
"names",
"of",
"members",
"and",
"the",
"decoration",
"themes",
"they",
"have",
"."
] | [
{
"id": 1,
"type": "column",
"value": "decoration_theme"
},
{
"id": 4,
"type": "column",
"value": "member_id"
},
{
"id": 2,
"type": "table",
"value": "member"
},
{
"id": 3,
"type": "table",
"value": "round"
},
{
"id": 0,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
7,
8
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
12,107 | car_retails | bird:train.json:1546 | Who is the sales agent of the distinct customer who paid the highest amount in the year 2004? | SELECT DISTINCT T3.lastName, T3.firstName FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber INNER JOIN employees AS T3 ON T2.salesRepEmployeeNumber = T3.employeeNumber WHERE STRFTIME('%Y', T1.paymentDate) = '2004' ORDER BY T1.amount DESC LIMIT 1 | [
"Who",
"is",
"the",
"sales",
"agent",
"of",
"the",
"distinct",
"customer",
"who",
"paid",
"the",
"highest",
"amount",
"in",
"the",
"year",
"2004",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "salesrepemployeenumber"
},
{
"id": 8,
"type": "column",
"value": "employeenumber"
},
{
"id": 11,
"type": "column",
"value": "customernumber"
},
{
"id": 10,
"type": "column",
"value": "paymentdate"
},
{
"id": 1... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
12,108 | mental_health_survey | bird:train.json:4589 | How many users lived in Canada according to 2018's survey? | SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2018 AND T1.questiontext = 'What country do you live in?' AND T2.AnswerText = 'Canada' | [
"How",
"many",
"users",
"lived",
"in",
"Canada",
"according",
"to",
"2018",
"'s",
"survey",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "What country do you live in?"
},
{
"id": 6,
"type": "column",
"value": "questiontext"
},
{
"id": 3,
"type": "column",
"value": "questionid"
},
{
"id": 8,
"type": "column",
"value": "answertext"
},
{
"id": 0,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O"
] |
12,109 | books | bird:train.json:6034 | What is the email of the customers who place their orders with priority method? | SELECT T1.email FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id INNER JOIN shipping_method AS T3 ON T3.method_id = T2.shipping_method_id WHERE T3.method_name = 'Priority' | [
"What",
"is",
"the",
"email",
"of",
"the",
"customers",
"who",
"place",
"their",
"orders",
"with",
"priority",
"method",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "shipping_method_id"
},
{
"id": 1,
"type": "table",
"value": "shipping_method"
},
{
"id": 2,
"type": "column",
"value": "method_name"
},
{
"id": 8,
"type": "column",
"value": "customer_id"
},
{
"id": 5,
"ty... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
12,110 | movie_3 | bird:train.json:9116 | How many films are in English? | SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T2.name = 'English' | [
"How",
"many",
"films",
"are",
"in",
"English",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "language_id"
},
{
"id": 1,
"type": "table",
"value": "language"
},
{
"id": 3,
"type": "value",
"value": "English"
},
{
"id": 4,
"type": "column",
"value": "film_id"
},
{
"id": 0,
"type": "table",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
12,111 | department_store | spider:train_spider.json:4747 | Find the product type whose average price is higher than the average price of all products. | SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg(product_price) > (SELECT avg(product_price) FROM products) | [
"Find",
"the",
"product",
"type",
"whose",
"average",
"price",
"is",
"higher",
"than",
"the",
"average",
"price",
"of",
"all",
"products",
"."
] | [
{
"id": 1,
"type": "column",
"value": "product_type_code"
},
{
"id": 2,
"type": "column",
"value": "product_price"
},
{
"id": 0,
"type": "table",
"value": "products"
}
] | [
{
"entity_id": 0,
"token_idxs": [
15
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2,
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,112 | ice_hockey_draft | bird:train.json:6953 | How tall is the player from Yale University who picked up 28 penalty minutes in the 2005-2006 season? | SELECT T3.height_in_cm FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID INNER JOIN height_info AS T3 ON T2.height = T3.height_id WHERE T1.SEASON = '2005-2006' AND T1.TEAM = 'Yale Univ.' AND T1.PIM = 28 | [
"How",
"tall",
"is",
"the",
"player",
"from",
"Yale",
"University",
"who",
"picked",
"up",
"28",
"penalty",
"minutes",
"in",
"the",
"2005",
"-",
"2006",
"season",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "height_in_cm"
},
{
"id": 2,
"type": "table",
"value": "seasonstatus"
},
{
"id": 1,
"type": "table",
"value": "height_info"
},
{
"id": 3,
"type": "table",
"value": "playerinfo"
},
{
"id": 9,
"type": "value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"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,
"token_idxs": []
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"O"
] |
12,113 | cars | bird:train.json:3135 | Which country does Chevy C20 come from? | 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 WHERE T1.car_name = 'chevy c20' | [
"Which",
"country",
"does",
"Chevy",
"C20",
"come",
"from",
"?"
] | [
{
"id": 5,
"type": "table",
"value": "production"
},
{
"id": 3,
"type": "value",
"value": "chevy c20"
},
{
"id": 2,
"type": "column",
"value": "car_name"
},
{
"id": 0,
"type": "column",
"value": "country"
},
{
"id": 1,
"type": "table",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
3,
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
12,114 | public_review_platform | bird:train.json:3856 | Among the Yelp_Businesses which are still running, how many of them fall under the category of "Food"? | SELECT COUNT(T3.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Tips AS T4 ON T3.business_id = T4.business_id WHERE T1.category_name LIKE 'Food' AND T3.active LIKE 'TRUE' | [
"Among",
"the",
"Yelp_Businesses",
"which",
"are",
"still",
"running",
",",
"how",
"many",
"of",
"them",
"fall",
"under",
"the",
"category",
"of",
"\"",
"Food",
"\"",
"?"
] | [
{
"id": 8,
"type": "table",
"value": "business_categories"
},
{
"id": 3,
"type": "column",
"value": "category_name"
},
{
"id": 1,
"type": "column",
"value": "business_id"
},
{
"id": 9,
"type": "column",
"value": "category_id"
},
{
"id": 7,
"typ... | [
{
"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": [
18
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
12,115 | entrepreneur | spider:train_spider.json:2270 | Return the average money requested across all entrepreneurs. | SELECT avg(Money_Requested) FROM entrepreneur | [
"Return",
"the",
"average",
"money",
"requested",
"across",
"all",
"entrepreneurs",
"."
] | [
{
"id": 1,
"type": "column",
"value": "money_requested"
},
{
"id": 0,
"type": "table",
"value": "entrepreneur"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
12,116 | college_3 | spider:train_spider.json:4665 | Find the last name of female (sex is F) students in the descending order of age. | SELECT LName FROM STUDENT WHERE Sex = "F" ORDER BY Age DESC | [
"Find",
"the",
"last",
"name",
"of",
"female",
"(",
"sex",
"is",
"F",
")",
"students",
"in",
"the",
"descending",
"order",
"of",
"age",
"."
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "lname"
},
{
"id": 2,
"type": "column",
"value": "sex"
},
{
"id": 4,
"type": "column",
"value": "age"
},
{
"id": 3,
"type": "column",
"value": "F"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
12,117 | country_language | bird:test.json:1390 | Show the name of the country that has the greatest number of official languages. | SELECT T1.Name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1 | [
"Show",
"the",
"name",
"of",
"the",
"country",
"that",
"has",
"the",
"greatest",
"number",
"of",
"official",
"languages",
"."
] | [
{
"id": 3,
"type": "table",
"value": "official_languages"
},
{
"id": 4,
"type": "column",
"value": "country_id"
},
{
"id": 2,
"type": "table",
"value": "countries"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
12,118 | local_govt_mdm | spider:train_spider.json:2658 | Which cmi cross reference id is not related to any parking taxes? | SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines | [
"Which",
"cmi",
"cross",
"reference",
"i",
"d",
"is",
"not",
"related",
"to",
"any",
"parking",
"taxes",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "cmi_cross_references"
},
{
"id": 2,
"type": "column",
"value": "cmi_cross_ref_id"
},
{
"id": 1,
"type": "table",
"value": "parking_fines"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
1,
2,
3,
4,
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
12,119 | cre_Drama_Workshop_Groups | spider:train_spider.json:5140 | What are the total order quantities of photo products? | SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = "photo" | [
"What",
"are",
"the",
"total",
"order",
"quantities",
"of",
"photo",
"products",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "order_quantity"
},
{
"id": 2,
"type": "column",
"value": "product_name"
},
{
"id": 0,
"type": "table",
"value": "order_items"
},
{
"id": 5,
"type": "column",
"value": "product_id"
},
{
"id": 1,
"type": "ta... | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
12,120 | program_share | spider:train_spider.json:3753 | Which programs are never broadcasted in the morning? Give me the names of the programs. | SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" | [
"Which",
"programs",
"are",
"never",
"broadcasted",
"in",
"the",
"morning",
"?",
"Give",
"me",
"the",
"names",
"of",
"the",
"programs",
"."
] | [
{
"id": 3,
"type": "column",
"value": "time_of_day"
},
{
"id": 5,
"type": "column",
"value": "program_id"
},
{
"id": 2,
"type": "table",
"value": "broadcast"
},
{
"id": 0,
"type": "table",
"value": "program"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity... | [
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
12,121 | retail_world | bird:train.json:6419 | Of all the shipments made by United Package throughout the year 1996, what percentage correspond to the month of September? | SELECT CAST(COUNT(CASE WHEN T1.ShippedDate LIKE '1996-09%' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.ShipVia) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'United Package' AND T1.ShippedDate LIKE '1996%' | [
"Of",
"all",
"the",
"shipments",
"made",
"by",
"United",
"Package",
"throughout",
"the",
"year",
"1996",
",",
"what",
"percentage",
"correspond",
"to",
"the",
"month",
"of",
"September",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "United Package"
},
{
"id": 4,
"type": "column",
"value": "companyname"
},
{
"id": 6,
"type": "column",
"value": "shippeddate"
},
{
"id": 3,
"type": "column",
"value": "shipperid"
},
{
"id": 1,
"type": "tabl... | [
{
"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": [
6,
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,122 | program_share | spider:train_spider.json:3739 | What are the name, origin and owner of each program? | SELECT name , origin , OWNER FROM program | [
"What",
"are",
"the",
"name",
",",
"origin",
"and",
"owner",
"of",
"each",
"program",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "program"
},
{
"id": 2,
"type": "column",
"value": "origin"
},
{
"id": 3,
"type": "column",
"value": "owner"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
12,123 | public_review_platform | bird:train.json:3805 | Please list the businesses names whose length of user review is long with business id from 1 to 20. | SELECT T4.category_name FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T1.review_length LIKE 'Long' AND T3.category_id BETWEEN 1 AND 20 GROUP BY T... | [
"Please",
"list",
"the",
"businesses",
"names",
"whose",
"length",
"of",
"user",
"review",
"is",
"long",
"with",
"business",
"i",
"d",
"from",
"1",
"to",
"20",
"."
] | [
{
"id": 2,
"type": "table",
"value": "business_categories"
},
{
"id": 0,
"type": "column",
"value": "category_name"
},
{
"id": 4,
"type": "column",
"value": "review_length"
},
{
"id": 3,
"type": "column",
"value": "category_id"
},
{
"id": 10,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10,
12
]
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"B-COLUMN",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
12,124 | boat_1 | bird:test.json:868 | What are the names and ids of sailors who reserved red and blue boats? | SELECT DISTINCT T2.sid , T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid JOIN Sailors AS T3 ON T2.sid = T3.sid WHERE T1.color = 'red' INTERSECT SELECT DISTINCT T2.sid , T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid JOIN Sailors AS T3 ON T2.sid = T3.sid WHERE T1.color = ... | [
"What",
"are",
"the",
"names",
"and",
"ids",
"of",
"sailors",
"who",
"reserved",
"red",
"and",
"blue",
"boats",
"?"
] | [
{
"id": 7,
"type": "table",
"value": "reserves"
},
{
"id": 2,
"type": "table",
"value": "sailors"
},
{
"id": 3,
"type": "column",
"value": "color"
},
{
"id": 6,
"type": "table",
"value": "boats"
},
{
"id": 1,
"type": "column",
"value": "nam... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-VALUE",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
12,125 | student_club | bird:dev.json:1418 | Mention the category of events which were held at MU 215. | SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215' | [
"Mention",
"the",
"category",
"of",
"events",
"which",
"were",
"held",
"at",
"MU",
"215",
"."
] | [
{
"id": 6,
"type": "column",
"value": "link_to_event"
},
{
"id": 0,
"type": "column",
"value": "category"
},
{
"id": 3,
"type": "column",
"value": "location"
},
{
"id": 5,
"type": "column",
"value": "event_id"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9,
10
]
},
{
"entity_id"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
12,126 | shop_membership | spider:train_spider.json:5438 | What is the total number of purchases for members with level 6? | SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6 | [
"What",
"is",
"the",
"total",
"number",
"of",
"purchases",
"for",
"members",
"with",
"level",
"6",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "member_id"
},
{
"id": 0,
"type": "table",
"value": "purchase"
},
{
"id": 1,
"type": "table",
"value": "member"
},
{
"id": 2,
"type": "column",
"value": "level"
},
{
"id": 3,
"type": "value",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
12,127 | works_cycles | bird:train.json:7431 | For all the employees that have left the Engineering Department, what is the average time of their stay? | SELECT CAST(SUM(365 * (STRFTIME('%Y', T1.EndDate) - STRFTIME('%Y', T1.StartDate)) + 30 * (STRFTIME('%m', T1.EndDate) - STRFTIME('%m', T1.StartDate)) + STRFTIME('%d', T1.EndDate) - STRFTIME('%d', T1.StartDate)) AS REAL) / COUNT(T1.BusinessEntityID) FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.D... | [
"For",
"all",
"the",
"employees",
"that",
"have",
"left",
"the",
"Engineering",
"Department",
",",
"what",
"is",
"the",
"average",
"time",
"of",
"their",
"stay",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "employeedepartmenthistory"
},
{
"id": 6,
"type": "column",
"value": "businessentityid"
},
{
"id": 2,
"type": "column",
"value": "departmentid"
},
{
"id": 4,
"type": "value",
"value": "Engineering"
},
{
"id": 1,... | [
{
"entity_id": 0,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,128 | cre_Doc_Tracking_DB | spider:train_spider.json:4198 | Show the name, role code, and date of birth for the employee with name 'Armani'. | SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani' | [
"Show",
"the",
"name",
",",
"role",
"code",
",",
"and",
"date",
"of",
"birth",
"for",
"the",
"employee",
"with",
"name",
"'",
"Armani",
"'",
"."
] | [
{
"id": 1,
"type": "column",
"value": "employee_name"
},
{
"id": 3,
"type": "column",
"value": "date_of_birth"
},
{
"id": 0,
"type": "table",
"value": "employees"
},
{
"id": 2,
"type": "column",
"value": "role_code"
},
{
"id": 4,
"type": "value... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
14,
15
]
},
{
"entity_id": 2,
"token_idxs": [
4,
5
]
},
{
"entity_id": 3,
"token_idxs": [
8,
9,
10
]
},
{
"entity_id": 4,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
12,129 | retails | bird:train.json:6774 | List the name of the top ten items with the most quantity available in the descending order of availability. | SELECT T1.p_name FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey ORDER BY T2.ps_availqty DESC LIMIT 10 | [
"List",
"the",
"name",
"of",
"the",
"top",
"ten",
"items",
"with",
"the",
"most",
"quantity",
"available",
"in",
"the",
"descending",
"order",
"of",
"availability",
"."
] | [
{
"id": 3,
"type": "column",
"value": "ps_availqty"
},
{
"id": 5,
"type": "column",
"value": "ps_partkey"
},
{
"id": 4,
"type": "column",
"value": "p_partkey"
},
{
"id": 2,
"type": "table",
"value": "partsupp"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
18
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
12,130 | headphone_store | bird:test.json:940 | Find all earpads that do not use plastic construction. | SELECT earpads FROM headphone EXCEPT SELECT earpads FROM headphone WHERE construction = 'Plastic' | [
"Find",
"all",
"earpads",
"that",
"do",
"not",
"use",
"plastic",
"construction",
"."
] | [
{
"id": 2,
"type": "column",
"value": "construction"
},
{
"id": 0,
"type": "table",
"value": "headphone"
},
{
"id": 1,
"type": "column",
"value": "earpads"
},
{
"id": 3,
"type": "value",
"value": "Plastic"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
12,131 | behavior_monitoring | spider:train_spider.json:3100 | List all information about the assessment notes sorted by date in ascending order. | SELECT * FROM Assessment_Notes ORDER BY date_of_notes ASC | [
"List",
"all",
"information",
"about",
"the",
"assessment",
"notes",
"sorted",
"by",
"date",
"in",
"ascending",
"order",
"."
] | [
{
"id": 0,
"type": "table",
"value": "assessment_notes"
},
{
"id": 1,
"type": "column",
"value": "date_of_notes"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,132 | movies_4 | bird:train.json:464 | How many films released between 1/2/1990 and 12/30/2000 starred Uma Thurman? | SELECT COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Uma Thurman' AND T1.release_date BETWEEN '1990-01-01' AND '2000-12-31' | [
"How",
"many",
"films",
"released",
"between",
"1/2/1990",
"and",
"12/30/2000",
"starred",
"Uma",
"Thurman",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "release_date"
},
{
"id": 5,
"type": "column",
"value": "person_name"
},
{
"id": 6,
"type": "value",
"value": "Uma Thurman"
},
{
"id": 3,
"type": "table",
"value": "movie_cast"
},
{
"id": 8,
"type": "value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
12,133 | law_episode | bird:train.json:1257 | Was Anthony Azzara's role in episode tt0629204 displayed in the credits at the end of the episode? | SELECT T1.credited FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Anthony Azzara' AND T1.episode_id = 'tt0629204' | [
"Was",
"Anthony",
"Azzara",
"'s",
"role",
"in",
"episode",
"tt0629204",
"displayed",
"in",
"the",
"credits",
"at",
"the",
"end",
"of",
"the",
"episode",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Anthony Azzara"
},
{
"id": 6,
"type": "column",
"value": "episode_id"
},
{
"id": 3,
"type": "column",
"value": "person_id"
},
{
"id": 7,
"type": "value",
"value": "tt0629204"
},
{
"id": 0,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
1,
... | [
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
12,134 | codebase_community | bird:dev.json:592 | How many users are awarded with more than 5 badges? | SELECT COUNT(UserId) FROM ( SELECT UserId, COUNT(Name) AS num FROM badges GROUP BY UserId ) T WHERE T.num > 5 | [
"How",
"many",
"users",
"are",
"awarded",
"with",
"more",
"than",
"5",
"badges",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "userid"
},
{
"id": 3,
"type": "table",
"value": "badges"
},
{
"id": 4,
"type": "column",
"value": "name"
},
{
"id": 0,
"type": "column",
"value": "num"
},
{
"id": 1,
"type": "value",
"value": "5"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
12,136 | wine_1 | spider:train_spider.json:6579 | Find the wineries that have at least four wines. | SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4 | [
"Find",
"the",
"wineries",
"that",
"have",
"at",
"least",
"four",
"wines",
"."
] | [
{
"id": 1,
"type": "column",
"value": "winery"
},
{
"id": 0,
"type": "table",
"value": "wine"
},
{
"id": 2,
"type": "value",
"value": "4"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,137 | club_1 | spider:train_spider.json:4304 | Find the names of all the clubs that have at least a member from the city with city code "BAL". | SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = "BAL" | [
"Find",
"the",
"names",
"of",
"all",
"the",
"clubs",
"that",
"have",
"at",
"least",
"a",
"member",
"from",
"the",
"city",
"with",
"city",
"code",
"\"",
"BAL",
"\"",
"."
] | [
{
"id": 5,
"type": "table",
"value": "member_of_club"
},
{
"id": 2,
"type": "column",
"value": "city_code"
},
{
"id": 0,
"type": "column",
"value": "clubname"
},
{
"id": 1,
"type": "table",
"value": "student"
},
{
"id": 7,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
17,
18
]
},
{
"entity_id": 3,
"token_idxs": [
20
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_i... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
12,138 | candidate_poll | spider:train_spider.json:2422 | Find the names of the candidates whose support percentage is lower than their oppose rate. | SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate | [
"Find",
"the",
"names",
"of",
"the",
"candidates",
"whose",
"support",
"percentage",
"is",
"lower",
"than",
"their",
"oppose",
"rate",
"."
] | [
{
"id": 3,
"type": "column",
"value": "support_rate"
},
{
"id": 4,
"type": "column",
"value": "oppose_rate"
},
{
"id": 2,
"type": "table",
"value": "candidate"
},
{
"id": 5,
"type": "column",
"value": "people_id"
},
{
"id": 1,
"type": "table",
... | [
{
"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": [
13,
14
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
12,139 | shipping | bird:train.json:5630 | How many cities which belong to New Jersey have transported weight greater than 20000? | SELECT COUNT(*) FROM ( SELECT T2.city_id AS CITYID FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.state = 'New Jersey' GROUP BY T2.city_id HAVING SUM(T1.weight) > 20000 ) | [
"How",
"many",
"cities",
"which",
"belong",
"to",
"New",
"Jersey",
"have",
"transported",
"weight",
"greater",
"than",
"20000",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "New Jersey"
},
{
"id": 1,
"type": "table",
"value": "shipment"
},
{
"id": 0,
"type": "column",
"value": "city_id"
},
{
"id": 6,
"type": "column",
"value": "weight"
},
{
"id": 3,
"type": "column",
"value... | [
{
"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": [
6,
7
]
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
12,140 | video_games | bird:train.json:3327 | Which genre has the most games? Show its id. | SELECT genre_id FROM ( SELECT T.genre_id, COUNT(T.id) FROM game AS T GROUP BY T.genre_id ORDER BY COUNT(T.id) DESC LIMIT 1 ) | [
"Which",
"genre",
"has",
"the",
"most",
"games",
"?",
"Show",
"its",
"i",
"d."
] | [
{
"id": 0,
"type": "column",
"value": "genre_id"
},
{
"id": 1,
"type": "table",
"value": "game"
},
{
"id": 2,
"type": "column",
"value": "id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN"
] |
12,141 | food_inspection_2 | bird:train.json:6231 | Provide the facility type and license number of establishments with the lowest risk level but failed the inspection. | SELECT DISTINCT T1.facility_type, T1.license_no FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.risk_level = 1 AND T2.results = 'Fail' | [
"Provide",
"the",
"facility",
"type",
"and",
"license",
"number",
"of",
"establishments",
"with",
"the",
"lowest",
"risk",
"level",
"but",
"failed",
"the",
"inspection",
"."
] | [
{
"id": 0,
"type": "column",
"value": "facility_type"
},
{
"id": 2,
"type": "table",
"value": "establishment"
},
{
"id": 1,
"type": "column",
"value": "license_no"
},
{
"id": 3,
"type": "table",
"value": "inspection"
},
{
"id": 4,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": [
12,
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O"
] |
12,142 | works_cycles | bird:train.json:7382 | When did the Senior Tool Designer, who was 33 years old at the time he was hired, stopped working in the Engineering department? | SELECT T2.EndDate FROM Employee AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T1.JobTitle = 'Senior Tool Designer' AND STRFTIME('%Y', T1.HireDate) - STRFTIME('%Y', T1.BirthDate) = 33 AND T2.EndDate IS ... | [
"When",
"did",
"the",
"Senior",
"Tool",
"Designer",
",",
"who",
"was",
"33",
"years",
"old",
"at",
"the",
"time",
"he",
"was",
"hired",
",",
"stopped",
"working",
"in",
"the",
"Engineering",
"department",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "employeedepartmenthistory"
},
{
"id": 6,
"type": "value",
"value": "Senior Tool Designer"
},
{
"id": 8,
"type": "column",
"value": "businessentityid"
},
{
"id": 4,
"type": "column",
"value": "departmentid"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
0,
1,
2
]
},
{
"entity_id": 1,
"token_idxs": [
24
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,... | [
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,143 | movie_1 | spider:train_spider.json:2530 | What are the names of movies that get 3 star and 4 star? | SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4 | [
"What",
"are",
"the",
"names",
"of",
"movies",
"that",
"get",
"3",
"star",
"and",
"4",
"star",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "rating"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "table",
"value": "movie"
},
{
"id": 3,
"type": "column",
"value": "stars"
},
{
"id": 6,
"type": "column",
"value": "mid"
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
12,145 | game_1 | spider:train_spider.json:5994 | What are the first names for all students who are from the major numbered 600? | SELECT Fname FROM Student WHERE Major = 600 | [
"What",
"are",
"the",
"first",
"names",
"for",
"all",
"students",
"who",
"are",
"from",
"the",
"major",
"numbered",
"600",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "fname"
},
{
"id": 2,
"type": "column",
"value": "major"
},
{
"id": 3,
"type": "value",
"value": "600"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
12,146 | olympics | bird:train.json:5047 | Which city were the Olympic games held in 1992? | SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_year = 1992 | [
"Which",
"city",
"were",
"the",
"Olympic",
"games",
"held",
"in",
"1992",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "games_year"
},
{
"id": 4,
"type": "table",
"value": "games_city"
},
{
"id": 0,
"type": "column",
"value": "city_name"
},
{
"id": 6,
"type": "column",
"value": "games_id"
},
{
"id": 8,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
12,147 | law_episode | bird:train.json:1262 | Describe what happened in the episode of award no.296. | SELECT T1.summary FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.award_id = 296 | [
"Describe",
"what",
"happened",
"in",
"the",
"episode",
"of",
"award",
"no.296",
"."
] | [
{
"id": 5,
"type": "column",
"value": "episode_id"
},
{
"id": 3,
"type": "column",
"value": "award_id"
},
{
"id": 0,
"type": "column",
"value": "summary"
},
{
"id": 1,
"type": "table",
"value": "episode"
},
{
"id": 2,
"type": "table",
"valu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-VALUE",
"O"
] |
12,148 | pilot_1 | bird:test.json:1150 | Give the names of pilots who have planes in Austin and Boston. | SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = "Austin" INTERSECT SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.LOCATION = "Boston" | [
"Give",
"the",
"names",
"of",
"pilots",
"who",
"have",
"planes",
"in",
"Austin",
"and",
"Boston",
"."
] | [
{
"id": 1,
"type": "table",
"value": "pilotskills"
},
{
"id": 0,
"type": "column",
"value": "pilot_name"
},
{
"id": 6,
"type": "column",
"value": "plane_name"
},
{
"id": 3,
"type": "column",
"value": "location"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
12,150 | computer_student | bird:train.json:975 | Which level of courses is taught by professor ID 297? | SELECT T1.courseLevel FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T2.p_id = 297 | [
"Which",
"level",
"of",
"courses",
"is",
"taught",
"by",
"professor",
"ID",
"297",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "courselevel"
},
{
"id": 5,
"type": "column",
"value": "course_id"
},
{
"id": 2,
"type": "table",
"value": "taughtby"
},
{
"id": 1,
"type": "table",
"value": "course"
},
{
"id": 3,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
12,151 | app_store | bird:train.json:2566 | List the top 5 lowest rated puzzle games and count the number of negative sentiments the games received. | SELECT T1.App, COUNT(T1.App) COUNTNUMBER FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Sentiment = 'Negative' GROUP BY T1.App ORDER BY T1.Rating LIMIT 5 | [
"List",
"the",
"top",
"5",
"lowest",
"rated",
"puzzle",
"games",
"and",
"count",
"the",
"number",
"of",
"negative",
"sentiments",
"the",
"games",
"received",
"."
] | [
{
"id": 2,
"type": "table",
"value": "user_reviews"
},
{
"id": 1,
"type": "table",
"value": "playstore"
},
{
"id": 3,
"type": "column",
"value": "sentiment"
},
{
"id": 4,
"type": "value",
"value": "Negative"
},
{
"id": 5,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
12,152 | airline | bird:train.json:5866 | Give the name of the airline to which tail number N202NN belongs to. | SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.TAIL_NUM = 'N202NN' GROUP BY T2.Description | [
"Give",
"the",
"name",
"of",
"the",
"airline",
"to",
"which",
"tail",
"number",
"N202NN",
"belongs",
"to",
"."
] | [
{
"id": 5,
"type": "column",
"value": "op_carrier_airline_id"
},
{
"id": 2,
"type": "table",
"value": "Air Carriers"
},
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 1,
"type": "table",
"value": "airlines"
},
{
"id": 3,
"type":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id"... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"O",
"O"
] |
12,153 | formula_1 | spider:train_spider.json:2155 | What is the name and date of the most recent race? | SELECT name , date FROM races ORDER BY date DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"and",
"date",
"of",
"the",
"most",
"recent",
"race",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "races"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "date"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,154 | movie_3 | bird:train.json:9133 | How many films rented to the customer RUTH MARTINEZ were returned in August, 2005? | SELECT COUNT(T1.customer_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'RUTH' AND T1.last_name = 'MARTINEZ' AND STRFTIME('%m',T2.return_date) = '8' AND STRFTIME('%Y', T2.return_date) = '2005' | [
"How",
"many",
"films",
"rented",
"to",
"the",
"customer",
"RUTH",
"MARTINEZ",
"were",
"returned",
"in",
"August",
",",
"2005",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "customer_id"
},
{
"id": 10,
"type": "column",
"value": "return_date"
},
{
"id": 3,
"type": "column",
"value": "first_name"
},
{
"id": 5,
"type": "column",
"value": "last_name"
},
{
"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": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-VALUE",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
12,155 | movie_1 | spider:train_spider.json:2493 | What are the names of all directors who have made one movie except for the director named NULL? | SELECT director FROM Movie WHERE director != "null" GROUP BY director HAVING count(*) = 1 | [
"What",
"are",
"the",
"names",
"of",
"all",
"directors",
"who",
"have",
"made",
"one",
"movie",
"except",
"for",
"the",
"director",
"named",
"NULL",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "director"
},
{
"id": 0,
"type": "table",
"value": "movie"
},
{
"id": 2,
"type": "column",
"value": "null"
},
{
"id": 3,
"type": "value",
"value": "1"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
17
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
12,157 | cinema | spider:train_spider.json:1953 | Show cinema name, film title, date, and price for each record in schedule. | SELECT T3.name , T2.title , T1.date , T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_id | [
"Show",
"cinema",
"name",
",",
"film",
"title",
",",
"date",
",",
"and",
"price",
"for",
"each",
"record",
"in",
"schedule",
"."
] | [
{
"id": 7,
"type": "column",
"value": "cinema_id"
},
{
"id": 5,
"type": "table",
"value": "schedule"
},
{
"id": 8,
"type": "column",
"value": "film_id"
},
{
"id": 4,
"type": "table",
"value": "cinema"
},
{
"id": 1,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
1
]
},
... | [
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,158 | superstore | bird:train.json:2387 | What are the order date and product name of the order ID CA-2011-137274 from the Central region? | SELECT T1.`Order Date`, T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Order ID` = 'CA-2011-137274' AND T2.Region = 'Central' | [
"What",
"are",
"the",
"order",
"date",
"and",
"product",
"name",
"of",
"the",
"order",
"ID",
"CA-2011",
"-",
"137274",
"from",
"the",
"Central",
"region",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "central_superstore"
},
{
"id": 6,
"type": "value",
"value": "CA-2011-137274"
},
{
"id": 1,
"type": "column",
"value": "Product Name"
},
{
"id": 0,
"type": "column",
"value": "Order Date"
},
{
"id": 4,
"type... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
12,159 | planet_1 | bird:test.json:1894 | What are the dates of every shipment in the database? | SELECT Date FROM Shipment; | [
"What",
"are",
"the",
"dates",
"of",
"every",
"shipment",
"in",
"the",
"database",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "shipment"
},
{
"id": 1,
"type": "column",
"value": "date"
}
] | [
{
"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",
"O",
"O"
] |
12,160 | cre_Drama_Workshop_Groups | spider:train_spider.json:5118 | What is the payment method code used by the most orders? | SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"payment",
"method",
"code",
"used",
"by",
"the",
"most",
"orders",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "payment_method_code"
},
{
"id": 0,
"type": "table",
"value": "invoices"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_id... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,161 | olympics | bird:train.json:5021 | How many Summer games are there that were held in Paris? | SELECT COUNT(T3.id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'Paris' AND T3.season = 'Summer' | [
"How",
"many",
"Summer",
"games",
"are",
"there",
"that",
"were",
"held",
"in",
"Paris",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "games_city"
},
{
"id": 5,
"type": "column",
"value": "city_name"
},
{
"id": 4,
"type": "column",
"value": "games_id"
},
{
"id": 9,
"type": "column",
"value": "city_id"
},
{
"id": 7,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
12,162 | works_cycles | bird:train.json:7129 | Please list the various phone number types in the following order, from most to least common among businesses. | SELECT T2.Name FROM PersonPhone AS T1 INNER JOIN PhoneNumberType AS T2 ON T1.PhoneNumberTypeID = T2.PhoneNumberTypeID GROUP BY T2.Name ORDER BY COUNT(T2.Name) DESC | [
"Please",
"list",
"the",
"various",
"phone",
"number",
"types",
"in",
"the",
"following",
"order",
",",
"from",
"most",
"to",
"least",
"common",
"among",
"businesses",
"."
] | [
{
"id": 3,
"type": "column",
"value": "phonenumbertypeid"
},
{
"id": 2,
"type": "table",
"value": "phonenumbertype"
},
{
"id": 1,
"type": "table",
"value": "personphone"
},
{
"id": 0,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,164 | csu_1 | spider:train_spider.json:2378 | List the campus that have between 600 and 1000 faculty lines in year 2004. | SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004 | [
"List",
"the",
"campus",
"that",
"have",
"between",
"600",
"and",
"1000",
"faculty",
"lines",
"in",
"year",
"2004",
"."
] | [
{
"id": 1,
"type": "table",
"value": "campuses"
},
{
"id": 2,
"type": "table",
"value": "faculty"
},
{
"id": 4,
"type": "column",
"value": "faculty"
},
{
"id": 0,
"type": "column",
"value": "campus"
},
{
"id": 6,
"type": "value",
"value": "... | [
{
"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": [
9
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
12,165 | works_cycles | bird:train.json:7175 | What is the number of the sub categories for bikes? | SELECT COUNT(*) FROM ProductCategory AS T1 INNER JOIN ProductSubcategory AS T2 ON T1.ProductCategoryID = T2.ProductCategoryID WHERE T1.Name = 'Bikes' | [
"What",
"is",
"the",
"number",
"of",
"the",
"sub",
"categories",
"for",
"bikes",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "productsubcategory"
},
{
"id": 4,
"type": "column",
"value": "productcategoryid"
},
{
"id": 0,
"type": "table",
"value": "productcategory"
},
{
"id": 3,
"type": "value",
"value": "Bikes"
},
{
"id": 2,
"type... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
}... | [
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
12,166 | student_1 | spider:train_spider.json:4033 | What are the first names of students in room 108? | SELECT firstname FROM list WHERE classroom = 108 | [
"What",
"are",
"the",
"first",
"names",
"of",
"students",
"in",
"room",
"108",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "firstname"
},
{
"id": 2,
"type": "column",
"value": "classroom"
},
{
"id": 0,
"type": "table",
"value": "list"
},
{
"id": 3,
"type": "value",
"value": "108"
}
] | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
12,167 | allergy_1 | spider:train_spider.json:451 | How many allergies have type animal? | SELECT count(*) FROM Allergy_type WHERE allergytype = "animal" | [
"How",
"many",
"allergies",
"have",
"type",
"animal",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "allergy_type"
},
{
"id": 1,
"type": "column",
"value": "allergytype"
},
{
"id": 2,
"type": "column",
"value": "animal"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
12,168 | public_review_platform | bird:train.json:3882 | In users yelping since 2011 to 2013, how many of them have high count of fans? | SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year BETWEEN 2011 AND 2013 AND user_fans LIKE 'High' | [
"In",
"users",
"yelping",
"since",
"2011",
"to",
"2013",
",",
"how",
"many",
"of",
"them",
"have",
"high",
"count",
"of",
"fans",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "user_yelping_since_year"
},
{
"id": 5,
"type": "column",
"value": "user_fans"
},
{
"id": 1,
"type": "column",
"value": "user_id"
},
{
"id": 0,
"type": "table",
"value": "users"
},
{
"id": 3,
"type": "value... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2,
3
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
... | [
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O"
] |
12,169 | books | bird:train.json:6055 | List all the books published by BBC Audiobooks. | SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'BBC Audiobooks' | [
"List",
"all",
"the",
"books",
"published",
"by",
"BBC",
"Audiobooks",
"."
] | [
{
"id": 3,
"type": "column",
"value": "publisher_name"
},
{
"id": 4,
"type": "value",
"value": "BBC Audiobooks"
},
{
"id": 5,
"type": "column",
"value": "publisher_id"
},
{
"id": 2,
"type": "table",
"value": "publisher"
},
{
"id": 0,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6,
7
]
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
12,170 | bike_1 | spider:train_spider.json:153 | When and in what zip code did max temperature reach 80? | SELECT date , zip_code FROM weather WHERE max_temperature_f >= 80 | [
"When",
"and",
"in",
"what",
"zip",
"code",
"did",
"max",
"temperature",
"reach",
"80",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "max_temperature_f"
},
{
"id": 2,
"type": "column",
"value": "zip_code"
},
{
"id": 0,
"type": "table",
"value": "weather"
},
{
"id": 1,
"type": "column",
"value": "date"
},
{
"id": 4,
"type": "value",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4,
5
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"e... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
12,171 | university | bird:train.json:8135 | Calculate the difference between the total number of students and the number of international international students in Univeristy of Tokyo from 2011 to 2014. | SELECT SUM(T1.num_students) - SUM(CAST(T1.num_students * T1.pct_international_students AS REAL) / 100) FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year BETWEEN 2011 AND 2014 AND T2.university_name = 'University of Tokyo' | [
"Calculate",
"the",
"difference",
"between",
"the",
"total",
"number",
"of",
"students",
"and",
"the",
"number",
"of",
"international",
"international",
"students",
"in",
"Univeristy",
"of",
"Tokyo",
"from",
"2011",
"to",
"2014",
"."
] | [
{
"id": 11,
"type": "column",
"value": "pct_international_students"
},
{
"id": 8,
"type": "value",
"value": "University of Tokyo"
},
{
"id": 0,
"type": "table",
"value": "university_year"
},
{
"id": 7,
"type": "column",
"value": "university_name"
},
{
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
17
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
21
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
12,172 | card_games | bird:dev.json:374 | How many black border cards are only available on mtgo? | SELECT COUNT(id) FROM cards WHERE availability = 'mtgo' AND borderColor = 'black' | [
"How",
"many",
"black",
"border",
"cards",
"are",
"only",
"available",
"on",
"mtgo",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "availability"
},
{
"id": 4,
"type": "column",
"value": "bordercolor"
},
{
"id": 0,
"type": "table",
"value": "cards"
},
{
"id": 5,
"type": "value",
"value": "black"
},
{
"id": 3,
"type": "value",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_... | [
"O",
"O",
"B-VALUE",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
12,173 | store_product | spider:train_spider.json:4935 | What are all of the products whose name includes the substring "Scanner"? | SELECT product FROM product WHERE product LIKE "%Scanner%" | [
"What",
"are",
"all",
"of",
"the",
"products",
"whose",
"name",
"includes",
"the",
"substring",
"\"",
"Scanner",
"\"",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "%Scanner%"
},
{
"id": 0,
"type": "table",
"value": "product"
},
{
"id": 1,
"type": "column",
"value": "product"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
12,174 | image_and_language | bird:train.json:7605 | What is the predicate class of image ID 68? | SELECT T2.PRED_CLASS FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.IMG_ID = 68 | [
"What",
"is",
"the",
"predicate",
"class",
"of",
"image",
"ID",
"68",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "pred_class_id"
},
{
"id": 2,
"type": "table",
"value": "pred_classes"
},
{
"id": 0,
"type": "column",
"value": "pred_class"
},
{
"id": 1,
"type": "table",
"value": "img_rel"
},
{
"id": 3,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6,
7
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"en... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
12,175 | public_review_platform | bird:train.json:3875 | How many stars on average does a Yelp_Business in Anthem get from a user review? | SELECT AVG(T2.review_stars) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Anthem' | [
"How",
"many",
"stars",
"on",
"average",
"does",
"a",
"Yelp_Business",
"in",
"Anthem",
"get",
"from",
"a",
"user",
"review",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "review_stars"
},
{
"id": 5,
"type": "column",
"value": "business_id"
},
{
"id": 0,
"type": "table",
"value": "business"
},
{
"id": 1,
"type": "table",
"value": "reviews"
},
{
"id": 3,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,176 | college_1 | spider:train_spider.json:3183 | What is the code of the school where the accounting department belongs to? | SELECT school_code FROM department WHERE dept_name = "Accounting" | [
"What",
"is",
"the",
"code",
"of",
"the",
"school",
"where",
"the",
"accounting",
"department",
"belongs",
"to",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "school_code"
},
{
"id": 0,
"type": "table",
"value": "department"
},
{
"id": 3,
"type": "column",
"value": "Accounting"
},
{
"id": 2,
"type": "column",
"value": "dept_name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O"
] |
12,177 | european_football_1 | bird:train.json:2789 | Of the matches in all seasons of the Bundesliga division, how many of them ended with a tie? | SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'D' | [
"Of",
"the",
"matches",
"in",
"all",
"seasons",
"of",
"the",
"Bundesliga",
"division",
",",
"how",
"many",
"of",
"them",
"ended",
"with",
"a",
"tie",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Bundesliga"
},
{
"id": 1,
"type": "table",
"value": "divisions"
},
{
"id": 3,
"type": "column",
"value": "division"
},
{
"id": 0,
"type": "table",
"value": "matchs"
},
{
"id": 4,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,178 | movie_3 | bird:train.json:9136 | Which film is rented for the most times by the customers? Please give its title. | SELECT T.title FROM ( SELECT T1.title, COUNT(T3.rental_id) AS num FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id INNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T1.title ) AS T ORDER BY T.num DESC LIMIT 1 | [
"Which",
"film",
"is",
"rented",
"for",
"the",
"most",
"times",
"by",
"the",
"customers",
"?",
"Please",
"give",
"its",
"title",
"."
] | [
{
"id": 6,
"type": "column",
"value": "inventory_id"
},
{
"id": 3,
"type": "column",
"value": "rental_id"
},
{
"id": 5,
"type": "table",
"value": "inventory"
},
{
"id": 7,
"type": "column",
"value": "film_id"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
15
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
1
]
},
{
"entity_id": 5,
... | [
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
12,179 | aan_1 | bird:test.json:1035 | Find the id of the papers whose title has the key word 'translation'. | SELECT paper_id FROM Paper WHERE title LIKE "%translation%" | [
"Find",
"the",
"i",
"d",
"of",
"the",
"papers",
"whose",
"title",
"has",
"the",
"key",
"word",
"'",
"translation",
"'",
"."
] | [
{
"id": 3,
"type": "column",
"value": "%translation%"
},
{
"id": 1,
"type": "column",
"value": "paper_id"
},
{
"id": 0,
"type": "table",
"value": "paper"
},
{
"id": 2,
"type": "column",
"value": "title"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
12,180 | soccer_2016 | bird:train.json:1857 | Describe any five matches IDs that reached over ID 20. | SELECT Match_Id FROM Ball_by_Ball WHERE Over_Id = 20 GROUP BY Match_Id LIMIT 5 | [
"Describe",
"any",
"five",
"matches",
"IDs",
"that",
"reached",
"over",
"ID",
"20",
"."
] | [
{
"id": 0,
"type": "table",
"value": "ball_by_ball"
},
{
"id": 1,
"type": "column",
"value": "match_id"
},
{
"id": 2,
"type": "column",
"value": "over_id"
},
{
"id": 3,
"type": "value",
"value": "20"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"en... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
12,181 | address_1 | bird:test.json:819 | Show me the city code of two cities with a distance greater than the average. | SELECT city1_code , city2_code FROM Direct_distance WHERE distance > (SELECT avg(distance) FROM Direct_distance) | [
"Show",
"me",
"the",
"city",
"code",
"of",
"two",
"cities",
"with",
"a",
"distance",
"greater",
"than",
"the",
"average",
"."
] | [
{
"id": 0,
"type": "table",
"value": "direct_distance"
},
{
"id": 1,
"type": "column",
"value": "city1_code"
},
{
"id": 2,
"type": "column",
"value": "city2_code"
},
{
"id": 3,
"type": "column",
"value": "distance"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3,
4
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
12,182 | public_review_platform | bird:train.json:4108 | How many stars does each of the 3 top users with the most likes in their reviews have? | SELECT T2.user_average_stars FROM Tips AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id GROUP BY T2.user_id ORDER BY SUM(T1.likes) DESC LIMIT 3 | [
"How",
"many",
"stars",
"does",
"each",
"of",
"the",
"3",
"top",
"users",
"with",
"the",
"most",
"likes",
"in",
"their",
"reviews",
"have",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "user_average_stars"
},
{
"id": 0,
"type": "column",
"value": "user_id"
},
{
"id": 3,
"type": "table",
"value": "users"
},
{
"id": 4,
"type": "column",
"value": "likes"
},
{
"id": 2,
"type": "table",
"v... | [
{
"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": [
13
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
12,183 | address | bird:train.json:5213 | List the area code of the city with the highest Hispanic population. | SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.hispanic_population = ( SELECT MAX(hispanic_population) FROM zip_data ) | [
"List",
"the",
"area",
"code",
"of",
"the",
"city",
"with",
"the",
"highest",
"Hispanic",
"population",
"."
] | [
{
"id": 3,
"type": "column",
"value": "hispanic_population"
},
{
"id": 0,
"type": "column",
"value": "area_code"
},
{
"id": 1,
"type": "table",
"value": "area_code"
},
{
"id": 2,
"type": "table",
"value": "zip_data"
},
{
"id": 4,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10,
11
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
12,185 | donor | bird:train.json:3255 | List the school districts that have bought resources from Barnes and Noble. | SELECT T2.school_district FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.vendor_name = 'Barnes and Noble' | [
"List",
"the",
"school",
"districts",
"that",
"have",
"bought",
"resources",
"from",
"Barnes",
"and",
"Noble",
"."
] | [
{
"id": 4,
"type": "value",
"value": "Barnes and Noble"
},
{
"id": 0,
"type": "column",
"value": "school_district"
},
{
"id": 3,
"type": "column",
"value": "vendor_name"
},
{
"id": 1,
"type": "table",
"value": "resources"
},
{
"id": 5,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9,
10,
11
]
},
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
12,186 | works_cycles | bird:train.json:7323 | What is the average age of employee in Adventure Works? | SELECT AVG(STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', BirthDate)) FROM Employee | [
"What",
"is",
"the",
"average",
"age",
"of",
"employee",
"in",
"Adventure",
"Works",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "birthdate"
},
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 1,
"type": "value",
"value": "%Y"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
12,187 | regional_sales | bird:train.json:2690 | What type of store is most popular in the South? | SELECT DISTINCT CASE WHEN MAX(T2.Population) THEN T2.Type END FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode | [
"What",
"type",
"of",
"store",
"is",
"most",
"popular",
"in",
"the",
"South",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "Store Locations"
},
{
"id": 4,
"type": "column",
"value": "population"
},
{
"id": 2,
"type": "column",
"value": "statecode"
},
{
"id": 0,
"type": "table",
"value": "regions"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
1
]
},
{
"entity_id": 4,
"token_idxs": [
6,
7
]
},
{
"en... | [
"O",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
12,188 | music_1 | spider:train_spider.json:3539 | List the file size and format for all songs that have resolution lower than 800. | SELECT DISTINCT T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800 | [
"List",
"the",
"file",
"size",
"and",
"format",
"for",
"all",
"songs",
"that",
"have",
"resolution",
"lower",
"than",
"800",
"."
] | [
{
"id": 4,
"type": "column",
"value": "resolution"
},
{
"id": 0,
"type": "column",
"value": "file_size"
},
{
"id": 1,
"type": "column",
"value": "formats"
},
{
"id": 2,
"type": "table",
"value": "files"
},
{
"id": 3,
"type": "table",
"value... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
12,189 | works_cycles | bird:train.json:7389 | What is the full name of the non-sales employee who made the most number of rejected purchase orders? | SELECT T2.FirstName, T2.LastName FROM PurchaseOrderHeader AS T1 INNER JOIN Person AS T2 ON T1.EmployeeID = T2.BusinessEntityID WHERE T2.PersonType = 'EM' AND T1.Status = 3 GROUP BY T2.FirstName, T2.LastName ORDER BY COUNT(T1.PurchaseOrderID) DESC LIMIT 1 | [
"What",
"is",
"the",
"full",
"name",
"of",
"the",
"non",
"-",
"sales",
"employee",
"who",
"made",
"the",
"most",
"number",
"of",
"rejected",
"purchase",
"orders",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "purchaseorderheader"
},
{
"id": 5,
"type": "column",
"value": "businessentityid"
},
{
"id": 10,
"type": "column",
"value": "purchaseorderid"
},
{
"id": 4,
"type": "column",
"value": "employeeid"
},
{
"id": 6,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
12,190 | disney | bird:train.json:4627 | Who is the voice actor for the villain of the movie "Alice in Wonderland"? | SELECT T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title WHERE T1.character LIKE '%' OR T2.villian OR '%' AND T2.movie_title = 'Alice in Wonderland' | [
"Who",
"is",
"the",
"voice",
"actor",
"for",
"the",
"villain",
"of",
"the",
"movie",
"\"",
"Alice",
"in",
"Wonderland",
"\"",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "Alice in Wonderland"
},
{
"id": 1,
"type": "table",
"value": "voice-actors"
},
{
"id": 0,
"type": "column",
"value": "voice-actor"
},
{
"id": 5,
"type": "column",
"value": "movie_title"
},
{
"id": 2,
"type"... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id"... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
12,191 | cre_Docs_and_Epenses | spider:train_spider.json:6442 | What are the type codes and descriptions of each budget type? | SELECT budget_type_code , budget_type_description FROM Ref_budget_codes | [
"What",
"are",
"the",
"type",
"codes",
"and",
"descriptions",
"of",
"each",
"budget",
"type",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "budget_type_description"
},
{
"id": 0,
"type": "table",
"value": "ref_budget_codes"
},
{
"id": 1,
"type": "column",
"value": "budget_type_code"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9,
10
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
12,192 | law_episode | bird:train.json:1319 | Who is the winner of the Best Television Episode award for the Edgar category in 2000? Include his or her name and role. | SELECT T1.name, T2.role FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.year = 2000 AND T2.award_category = 'Edgar' AND T2.award = 'Best Television Episode' | [
"Who",
"is",
"the",
"winner",
"of",
"the",
"Best",
"Television",
"Episode",
"award",
"for",
"the",
"Edgar",
"category",
"in",
"2000",
"?",
"Include",
"his",
"or",
"her",
"name",
"and",
"role",
"."
] | [
{
"id": 10,
"type": "value",
"value": "Best Television Episode"
},
{
"id": 7,
"type": "column",
"value": "award_category"
},
{
"id": 4,
"type": "column",
"value": "person_id"
},
{
"id": 2,
"type": "table",
"value": "person"
},
{
"id": 3,
"type"... | [
{
"entity_id": 0,
"token_idxs": [
21
]
},
{
"entity_id": 1,
"token_idxs": [
23
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
12,193 | soccer_3 | bird:test.json:33 | What are the names of clubs that do not have any players? | SELECT Name FROM club WHERE Club_ID NOT IN (SELECT Club_ID FROM player) | [
"What",
"are",
"the",
"names",
"of",
"clubs",
"that",
"do",
"not",
"have",
"any",
"players",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "club_id"
},
{
"id": 3,
"type": "table",
"value": "player"
},
{
"id": 0,
"type": "table",
"value": "club"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,194 | cre_Doc_Workflow | bird:test.json:2035 | List the codes and descriptions for all process outcomes. | SELECT process_outcome_code , process_outcome_description FROM Process_outcomes | [
"List",
"the",
"codes",
"and",
"descriptions",
"for",
"all",
"process",
"outcomes",
"."
] | [
{
"id": 2,
"type": "column",
"value": "process_outcome_description"
},
{
"id": 1,
"type": "column",
"value": "process_outcome_code"
},
{
"id": 0,
"type": "table",
"value": "process_outcomes"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7,
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
12,195 | address | bird:train.json:5162 | What is the difference in the number of cities with P.O. box only and cities with Post Office among the cities with area code 787? | SELECT COUNT(CASE WHEN T2.type = 'P.O. Box Only' THEN 1 ELSE NULL END) - COUNT(CASE WHEN T2.type = 'Post Office' THEN 1 ELSE NULL END) AS DIFFERENCE FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 787 | [
"What",
"is",
"the",
"difference",
"in",
"the",
"number",
"of",
"cities",
"with",
"P.O.",
"box",
"only",
"and",
"cities",
"with",
"Post",
"Office",
"among",
"the",
"cities",
"with",
"area",
"code",
"787",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "P.O. Box Only"
},
{
"id": 8,
"type": "value",
"value": "Post Office"
},
{
"id": 0,
"type": "table",
"value": "area_code"
},
{
"id": 2,
"type": "column",
"value": "area_code"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
22
]
},
{
"entity_id": 3,
"token_idxs": [
24
]
},
{
"entity_id": 4,
"token_idxs": [
23
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-VALUE",
"O"
] |
12,196 | works_cycles | bird:train.json:7226 | What proportion of sales orders are made from the United Kingdom? | SELECT CAST(SUM(CASE WHEN T2.Name = 'United Kingdom' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.SalesOrderID) FROM SalesOrderHeader AS T1 INNER JOIN SalesTerritory AS T2 ON T1.TerritoryID = T2.TerritoryID | [
"What",
"proportion",
"of",
"sales",
"orders",
"are",
"made",
"from",
"the",
"United",
"Kingdom",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "salesorderheader"
},
{
"id": 1,
"type": "table",
"value": "salesterritory"
},
{
"id": 8,
"type": "value",
"value": "United Kingdom"
},
{
"id": 4,
"type": "column",
"value": "salesorderid"
},
{
"id": 2,
"typ... | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3,
4
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
12,197 | institution_sports | bird:test.json:1659 | What is the nickname of the institution with the smallest enrollment? | SELECT T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID ORDER BY T2.Enrollment ASC LIMIT 1 | [
"What",
"is",
"the",
"nickname",
"of",
"the",
"institution",
"with",
"the",
"smallest",
"enrollment",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "institution_id"
},
{
"id": 1,
"type": "table",
"value": "championship"
},
{
"id": 2,
"type": "table",
"value": "institution"
},
{
"id": 3,
"type": "column",
"value": "enrollment"
},
{
"id": 0,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
12,198 | apartment_rentals | spider:train_spider.json:1230 | Show the average room count of the apartments that have booking status code "Provisional". | SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Provisional" | [
"Show",
"the",
"average",
"room",
"count",
"of",
"the",
"apartments",
"that",
"have",
"booking",
"status",
"code",
"\"",
"Provisional",
"\"",
"."
] | [
{
"id": 2,
"type": "column",
"value": "booking_status_code"
},
{
"id": 0,
"type": "table",
"value": "apartment_bookings"
},
{
"id": 3,
"type": "column",
"value": "Provisional"
},
{
"id": 1,
"type": "table",
"value": "apartments"
},
{
"id": 4,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": [
3,
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
12,199 | talkingdata | bird:train.json:1135 | How many devices are of the brand vivo? | SELECT COUNT(device_id) FROM phone_brand_device_model2 WHERE phone_brand = 'vivo' | [
"How",
"many",
"devices",
"are",
"of",
"the",
"brand",
"vivo",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "phone_brand_device_model2"
},
{
"id": 1,
"type": "column",
"value": "phone_brand"
},
{
"id": 3,
"type": "column",
"value": "device_id"
},
{
"id": 2,
"type": "value",
"value": "vivo"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.