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
|
|---|---|---|---|---|---|---|---|---|
14,010
|
retail_world
|
bird:train.json:6511
|
Which company placed the order with the id 10257?
|
SELECT T1.CompanyName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.OrderID = 10257
|
[
"Which",
"company",
"placed",
"the",
"order",
"with",
"the",
"i",
"d",
"10257",
"?"
] |
[
{
"id": 0,
"type": "column",
"value": "companyname"
},
{
"id": 5,
"type": "column",
"value": "customerid"
},
{
"id": 1,
"type": "table",
"value": "customers"
},
{
"id": 3,
"type": "column",
"value": "orderid"
},
{
"id": 2,
"type": "table",
"value": "orders"
},
{
"id": 4,
"type": "value",
"value": "10257"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
14,011
|
perpetrator
|
spider:train_spider.json:2317
|
What are the countries that have at least two perpetrators?
|
SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*) >= 2
|
[
"What",
"are",
"the",
"countries",
"that",
"have",
"at",
"least",
"two",
"perpetrators",
"?"
] |
[
{
"id": 0,
"type": "table",
"value": "perpetrator"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 2,
"type": "value",
"value": "2"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"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": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
14,012
|
car_road_race
|
bird:test.json:1315
|
Count the number of races.
|
SELECT count(*) FROM race
|
[
"Count",
"the",
"number",
"of",
"races",
"."
] |
[
{
"id": 0,
"type": "table",
"value": "race"
}
] |
[
{
"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": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
14,014
|
sales
|
bird:train.json:5439
|
List the sales ID of the product with a quantity of 590 and named "External Lock Washer 7".
|
SELECT T1.SalesID FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'External Lock Washer 7' AND T1.Quantity = 590
|
[
"List",
"the",
"sales",
"ID",
"of",
"the",
"product",
"with",
"a",
"quantity",
"of",
"590",
"and",
"named",
"\"",
"External",
"Lock",
"Washer",
"7",
"\"",
"."
] |
[
{
"id": 5,
"type": "value",
"value": "External Lock Washer 7"
},
{
"id": 3,
"type": "column",
"value": "productid"
},
{
"id": 2,
"type": "table",
"value": "products"
},
{
"id": 6,
"type": "column",
"value": "quantity"
},
{
"id": 0,
"type": "column",
"value": "salesid"
},
{
"id": 1,
"type": "table",
"value": "sales"
},
{
"id": 4,
"type": "column",
"value": "name"
},
{
"id": 7,
"type": "value",
"value": "590"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_id": 5,
"token_idxs": [
15,
16,
17,
18
]
},
{
"entity_id": 6,
"token_idxs": [
9
]
},
{
"entity_id": 7,
"token_idxs": [
11
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O"
] |
14,015
|
student_club
|
bird:dev.json:1331
|
What is the amount of the funds that the Vice President received?
|
SELECT T2.amount FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President'
|
[
"What",
"is",
"the",
"amount",
"of",
"the",
"funds",
"that",
"the",
"Vice",
"President",
"received",
"?"
] |
[
{
"id": 4,
"type": "value",
"value": "Vice President"
},
{
"id": 6,
"type": "column",
"value": "link_to_member"
},
{
"id": 5,
"type": "column",
"value": "member_id"
},
{
"id": 3,
"type": "column",
"value": "position"
},
{
"id": 0,
"type": "column",
"value": "amount"
},
{
"id": 1,
"type": "table",
"value": "member"
},
{
"id": 2,
"type": "table",
"value": "income"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"O",
"O"
] |
14,016
|
retail_world
|
bird:train.json:6493
|
What is the contact name and phone number of the customer who has made the most total payment on the order to date?
|
SELECT T1.ContactName, T1.Phone FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID GROUP BY T2.OrderID, T1.ContactName, T1.Phone ORDER BY SUM(T3.UnitPrice * T3.Quantity * (1 - T3.Discount)) DESC LIMIT 1
|
[
"What",
"is",
"the",
"contact",
"name",
"and",
"phone",
"number",
"of",
"the",
"customer",
"who",
"has",
"made",
"the",
"most",
"total",
"payment",
"on",
"the",
"order",
"to",
"date",
"?"
] |
[
{
"id": 3,
"type": "table",
"value": "Order Details"
},
{
"id": 1,
"type": "column",
"value": "contactname"
},
{
"id": 6,
"type": "column",
"value": "customerid"
},
{
"id": 4,
"type": "table",
"value": "customers"
},
{
"id": 7,
"type": "column",
"value": "unitprice"
},
{
"id": 8,
"type": "column",
"value": "quantity"
},
{
"id": 10,
"type": "column",
"value": "discount"
},
{
"id": 0,
"type": "column",
"value": "orderid"
},
{
"id": 5,
"type": "table",
"value": "orders"
},
{
"id": 2,
"type": "column",
"value": "phone"
},
{
"id": 9,
"type": "value",
"value": "1"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
21
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
"token_idxs": [
20
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O"
] |
14,017
|
human_resources
|
bird:train.json:8964
|
How many positions have a maximum salary of no more than US$1000,000?
|
SELECT COUNT(*) FROM position WHERE CAST(REPLACE(SUBSTR(maxsalary, 4), ',', '') AS REAL) < 100000
|
[
"How",
"many",
"positions",
"have",
"a",
"maximum",
"salary",
"of",
"no",
"more",
"than",
"US$",
"1000,000",
"?"
] |
[
{
"id": 3,
"type": "column",
"value": "maxsalary"
},
{
"id": 0,
"type": "table",
"value": "position"
},
{
"id": 1,
"type": "value",
"value": "100000"
},
{
"id": 2,
"type": "value",
"value": ","
},
{
"id": 4,
"type": "value",
"value": "4"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
14,018
|
menu
|
bird:train.json:5510
|
List down the menu page IDs for menu sponsored by Occidental & Oriental?
|
SELECT T2.id FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.sponsor = 'Occidental & Oriental'
|
[
"List",
"down",
"the",
"menu",
"page",
"IDs",
"for",
"menu",
"sponsored",
"by",
"Occidental",
"&",
"Oriental",
"?"
] |
[
{
"id": 4,
"type": "value",
"value": "Occidental & Oriental"
},
{
"id": 1,
"type": "table",
"value": "menupage"
},
{
"id": 3,
"type": "column",
"value": "sponsor"
},
{
"id": 5,
"type": "column",
"value": "menu_id"
},
{
"id": 2,
"type": "table",
"value": "menu"
},
{
"id": 0,
"type": "column",
"value": "id"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 5,
"token_idxs": [
7
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
14,019
|
beer_factory
|
bird:train.json:5330
|
How many transactions were made in Sac State Union using the American Express credit card in 2014?
|
SELECT COUNT(T1.TransactionID) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.LocationName = 'Sac State Union' AND T1.CreditCardType = 'American Express' AND T1.TransactionDate BETWEEN '2014-01-01' AND '2014-12-31'
|
[
"How",
"many",
"transactions",
"were",
"made",
"in",
"Sac",
"State",
"Union",
"using",
"the",
"American",
"Express",
"credit",
"card",
"in",
"2014",
"?"
] |
[
{
"id": 7,
"type": "value",
"value": "American Express"
},
{
"id": 5,
"type": "value",
"value": "Sac State Union"
},
{
"id": 8,
"type": "column",
"value": "transactiondate"
},
{
"id": 6,
"type": "column",
"value": "creditcardtype"
},
{
"id": 2,
"type": "column",
"value": "transactionid"
},
{
"id": 4,
"type": "column",
"value": "locationname"
},
{
"id": 0,
"type": "table",
"value": "transaction"
},
{
"id": 3,
"type": "column",
"value": "locationid"
},
{
"id": 9,
"type": "value",
"value": "2014-01-01"
},
{
"id": 10,
"type": "value",
"value": "2014-12-31"
},
{
"id": 1,
"type": "table",
"value": "location"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
6,
7,
8
]
},
{
"entity_id": 6,
"token_idxs": [
13,
14
]
},
{
"entity_id": 7,
"token_idxs": [
11,
12
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
14,020
|
online_exams
|
bird:test.json:206
|
Count the number of different comments for student answers.
|
SELECT count(DISTINCT Comments) FROM Student_Answers
|
[
"Count",
"the",
"number",
"of",
"different",
"comments",
"for",
"student",
"answers",
"."
] |
[
{
"id": 0,
"type": "table",
"value": "student_answers"
},
{
"id": 1,
"type": "column",
"value": "comments"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
7,
8
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
14,021
|
student_loan
|
bird:train.json:4531
|
How many students have been absent less than 4 months?
|
SELECT COUNT(name) FROM longest_absense_from_school WHERE month < 4
|
[
"How",
"many",
"students",
"have",
"been",
"absent",
"less",
"than",
"4",
"months",
"?"
] |
[
{
"id": 0,
"type": "table",
"value": "longest_absense_from_school"
},
{
"id": 1,
"type": "column",
"value": "month"
},
{
"id": 3,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "value",
"value": "4"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
14,022
|
card_games
|
bird:dev.json:438
|
Point out the language of set id "174"?
|
SELECT language FROM set_translations WHERE id = 174
|
[
"Point",
"out",
"the",
"language",
"of",
"set",
"i",
"d",
"\"",
"174",
"\"",
"?"
] |
[
{
"id": 0,
"type": "table",
"value": "set_translations"
},
{
"id": 1,
"type": "column",
"value": "language"
},
{
"id": 3,
"type": "value",
"value": "174"
},
{
"id": 2,
"type": "column",
"value": "id"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
14,023
|
customers_campaigns_ecommerce
|
spider:train_spider.json:4625
|
Show the name and phone of the customer without any mailshot.
|
SELECT customer_name , customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers)
|
[
"Show",
"the",
"name",
"and",
"phone",
"of",
"the",
"customer",
"without",
"any",
"mailshot",
"."
] |
[
{
"id": 4,
"type": "table",
"value": "mailshot_customers"
},
{
"id": 2,
"type": "column",
"value": "customer_phone"
},
{
"id": 1,
"type": "column",
"value": "customer_name"
},
{
"id": 3,
"type": "column",
"value": "customer_id"
},
{
"id": 0,
"type": "table",
"value": "customers"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O"
] |
14,025
|
codebase_community
|
bird:dev.json:714
|
List the comments commented by the user with a username of Harvey Motulsky.
|
SELECT T1.Text FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Harvey Motulsky'
|
[
"List",
"the",
"comments",
"commented",
"by",
"the",
"user",
"with",
"a",
"username",
"of",
"Harvey",
"Motulsky",
"."
] |
[
{
"id": 4,
"type": "value",
"value": "Harvey Motulsky"
},
{
"id": 3,
"type": "column",
"value": "displayname"
},
{
"id": 1,
"type": "table",
"value": "comments"
},
{
"id": 5,
"type": "column",
"value": "userid"
},
{
"id": 2,
"type": "table",
"value": "users"
},
{
"id": 0,
"type": "column",
"value": "text"
},
{
"id": 6,
"type": "column",
"value": "id"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11,
12
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
14,026
|
climbing
|
spider:train_spider.json:1127
|
What are the different ranges of the 3 mountains with the highest prominence?
|
SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3
|
[
"What",
"are",
"the",
"different",
"ranges",
"of",
"the",
"3",
"mountains",
"with",
"the",
"highest",
"prominence",
"?"
] |
[
{
"id": 2,
"type": "column",
"value": "prominence"
},
{
"id": 0,
"type": "table",
"value": "mountain"
},
{
"id": 1,
"type": "column",
"value": "range"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
14,027
|
products_gen_characteristics
|
spider:train_spider.json:5569
|
What are the names of the products that have a color description of 'red' and the 'fast' characteristic?
|
SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "fast"
|
[
"What",
"are",
"the",
"names",
"of",
"the",
"products",
"that",
"have",
"a",
"color",
"description",
"of",
"'",
"red",
"'",
"and",
"the",
"'",
"fast",
"'",
"characteristic",
"?"
] |
[
{
"id": 9,
"type": "table",
"value": "product_characteristics"
},
{
"id": 6,
"type": "column",
"value": "characteristic_name"
},
{
"id": 4,
"type": "column",
"value": "color_description"
},
{
"id": 10,
"type": "column",
"value": "characteristic_id"
},
{
"id": 2,
"type": "table",
"value": "characteristics"
},
{
"id": 0,
"type": "column",
"value": "product_name"
},
{
"id": 1,
"type": "table",
"value": "ref_colors"
},
{
"id": 3,
"type": "column",
"value": "color_code"
},
{
"id": 11,
"type": "column",
"value": "product_id"
},
{
"id": 8,
"type": "table",
"value": "products"
},
{
"id": 7,
"type": "column",
"value": "fast"
},
{
"id": 5,
"type": "column",
"value": "red"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
21
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
"token_idxs": [
14
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": [
19
]
},
{
"entity_id": 8,
"token_idxs": [
6
]
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
14,028
|
product_catalog
|
spider:train_spider.json:318
|
Find the entry name of the catalog with the highest price (in USD).
|
SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1
|
[
"Find",
"the",
"entry",
"name",
"of",
"the",
"catalog",
"with",
"the",
"highest",
"price",
"(",
"in",
"USD",
")",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "catalog_entry_name"
},
{
"id": 0,
"type": "table",
"value": "catalog_contents"
},
{
"id": 2,
"type": "column",
"value": "price_in_dollars"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,029
|
aan_1
|
bird:test.json:1006
|
Give the id and the number of citations of the most cited paper.
|
SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 1
|
[
"Give",
"the",
"i",
"d",
"and",
"the",
"number",
"of",
"citations",
"of",
"the",
"most",
"cited",
"paper",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "cited_paper_id"
},
{
"id": 0,
"type": "table",
"value": "citation"
},
{
"id": 2,
"type": "column",
"value": "paper_id"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
14,030
|
hockey
|
bird:train.json:7788
|
What is the number of players whose last name is Green that played in the league but not coached?
|
SELECT COUNT(playerID) FROM Master WHERE lastName = 'Green' AND coachID IS NULL
|
[
"What",
"is",
"the",
"number",
"of",
"players",
"whose",
"last",
"name",
"is",
"Green",
"that",
"played",
"in",
"the",
"league",
"but",
"not",
"coached",
"?"
] |
[
{
"id": 1,
"type": "column",
"value": "playerid"
},
{
"id": 2,
"type": "column",
"value": "lastname"
},
{
"id": 4,
"type": "column",
"value": "coachid"
},
{
"id": 0,
"type": "table",
"value": "master"
},
{
"id": 3,
"type": "value",
"value": "Green"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
18
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
14,031
|
video_games
|
bird:train.json:3456
|
How many games were published by Activision?
|
SELECT COUNT(DISTINCT T3.id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id WHERE T2.publisher_name = 'Activision'
|
[
"How",
"many",
"games",
"were",
"published",
"by",
"Activision",
"?"
] |
[
{
"id": 1,
"type": "column",
"value": "publisher_name"
},
{
"id": 4,
"type": "table",
"value": "game_publisher"
},
{
"id": 7,
"type": "column",
"value": "publisher_id"
},
{
"id": 2,
"type": "value",
"value": "Activision"
},
{
"id": 5,
"type": "table",
"value": "publisher"
},
{
"id": 6,
"type": "column",
"value": "game_id"
},
{
"id": 0,
"type": "table",
"value": "game"
},
{
"id": 3,
"type": "column",
"value": "id"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"token_idxs": [
4
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"B-TABLE",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
14,032
|
olympics
|
bird:train.json:4940
|
What is the percentage of male athletes from Estonia?
|
SELECT CAST(COUNT(CASE WHEN T3.gender = 'M' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.person_id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Estonia'
|
[
"What",
"is",
"the",
"percentage",
"of",
"male",
"athletes",
"from",
"Estonia",
"?"
] |
[
{
"id": 4,
"type": "table",
"value": "person_region"
},
{
"id": 1,
"type": "column",
"value": "region_name"
},
{
"id": 3,
"type": "table",
"value": "noc_region"
},
{
"id": 5,
"type": "column",
"value": "person_id"
},
{
"id": 8,
"type": "column",
"value": "region_id"
},
{
"id": 2,
"type": "value",
"value": "Estonia"
},
{
"id": 0,
"type": "table",
"value": "person"
},
{
"id": 10,
"type": "column",
"value": "gender"
},
{
"id": 7,
"type": "value",
"value": "100"
},
{
"id": 6,
"type": "column",
"value": "id"
},
{
"id": 9,
"type": "value",
"value": "1"
},
{
"id": 11,
"type": "value",
"value": "M"
}
] |
[
{
"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": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
14,033
|
movie_3
|
bird:train.json:9223
|
Provide the email, address, city, and country of the customer Lillie Kim.
|
SELECT T1.email, T2.address, T3.city, T4.country FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id INNER JOIN city AS T3 ON T2.city_id = T3.city_id INNER JOIN country AS T4 ON T3.country_id = T4.country_id WHERE T1.first_name = 'Lillie' AND T1.last_name = 'Kim'
|
[
"Provide",
"the",
"email",
",",
"address",
",",
"city",
",",
"and",
"country",
"of",
"the",
"customer",
"Lillie",
"Kim",
"."
] |
[
{
"id": 6,
"type": "column",
"value": "country_id"
},
{
"id": 7,
"type": "column",
"value": "first_name"
},
{
"id": 14,
"type": "column",
"value": "address_id"
},
{
"id": 9,
"type": "column",
"value": "last_name"
},
{
"id": 11,
"type": "table",
"value": "customer"
},
{
"id": 1,
"type": "column",
"value": "address"
},
{
"id": 3,
"type": "column",
"value": "country"
},
{
"id": 4,
"type": "table",
"value": "country"
},
{
"id": 12,
"type": "table",
"value": "address"
},
{
"id": 13,
"type": "column",
"value": "city_id"
},
{
"id": 8,
"type": "value",
"value": "Lillie"
},
{
"id": 0,
"type": "column",
"value": "email"
},
{
"id": 2,
"type": "column",
"value": "city"
},
{
"id": 5,
"type": "table",
"value": "city"
},
{
"id": 10,
"type": "value",
"value": "Kim"
}
] |
[
{
"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": [
6
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": [
13
]
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": [
14
]
},
{
"entity_id": 11,
"token_idxs": [
12
]
},
{
"entity_id": 12,
"token_idxs": [
4
]
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-VALUE",
"B-VALUE",
"O"
] |
14,034
|
conference
|
bird:test.json:1055
|
List all distinct conference names.
|
SELECT DISTINCT conference_name FROM conference
|
[
"List",
"all",
"distinct",
"conference",
"names",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "conference_name"
},
{
"id": 0,
"type": "table",
"value": "conference"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
14,035
|
hospital_1
|
spider:train_spider.json:3954
|
Find the names of nurses who are nursing an undergoing treatment.
|
SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID
|
[
"Find",
"the",
"names",
"of",
"nurses",
"who",
"are",
"nursing",
"an",
"undergoing",
"treatment",
"."
] |
[
{
"id": 3,
"type": "column",
"value": "assistingnurse"
},
{
"id": 4,
"type": "column",
"value": "employeeid"
},
{
"id": 1,
"type": "table",
"value": "undergoes"
},
{
"id": 2,
"type": "table",
"value": "nurse"
},
{
"id": 0,
"type": "column",
"value": "name"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
14,037
|
university
|
bird:train.json:8080
|
Among the universities with a score in teaching of over 90 in 2011, how many of them are in the United States of America?
|
SELECT COUNT(*) FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score > 90
|
[
"Among",
"the",
"universities",
"with",
"a",
"score",
"in",
"teaching",
"of",
"over",
"90",
"in",
"2011",
",",
"how",
"many",
"of",
"them",
"are",
"in",
"the",
"United",
"States",
"of",
"America",
"?"
] |
[
{
"id": 2,
"type": "table",
"value": "university_ranking_year"
},
{
"id": 11,
"type": "column",
"value": "ranking_criteria_id"
},
{
"id": 1,
"type": "table",
"value": "ranking_criteria"
},
{
"id": 4,
"type": "column",
"value": "university_id"
},
{
"id": 5,
"type": "column",
"value": "criteria_name"
},
{
"id": 0,
"type": "table",
"value": "university"
},
{
"id": 6,
"type": "value",
"value": "Teaching"
},
{
"id": 9,
"type": "column",
"value": "score"
},
{
"id": 7,
"type": "column",
"value": "year"
},
{
"id": 8,
"type": "value",
"value": "2011"
},
{
"id": 3,
"type": "column",
"value": "id"
},
{
"id": 10,
"type": "value",
"value": "90"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": [
7
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": [
12
]
},
{
"entity_id": 9,
"token_idxs": [
5
]
},
{
"entity_id": 10,
"token_idxs": [
10
]
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,038
|
voter_2
|
spider:train_spider.json:5500
|
For each advisor, report the total number of students advised by him or her.
|
SELECT Advisor , count(*) FROM STUDENT GROUP BY Advisor
|
[
"For",
"each",
"advisor",
",",
"report",
"the",
"total",
"number",
"of",
"students",
"advised",
"by",
"him",
"or",
"her",
"."
] |
[
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "advisor"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,039
|
advertising_agencies
|
bird:test.json:2101
|
Show all meeting outcomes and purposes.
|
SELECT meeting_outcome , purpose_of_meeting FROM meetings
|
[
"Show",
"all",
"meeting",
"outcomes",
"and",
"purposes",
"."
] |
[
{
"id": 2,
"type": "column",
"value": "purpose_of_meeting"
},
{
"id": 1,
"type": "column",
"value": "meeting_outcome"
},
{
"id": 0,
"type": "table",
"value": "meetings"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O"
] |
14,040
|
government_shift
|
bird:test.json:376
|
What are the details of the customers who have "Kutch" in part of their details?
|
SELECT customer_details FROM customers WHERE customer_details LIKE "%Kutch%"
|
[
"What",
"are",
"the",
"details",
"of",
"the",
"customers",
"who",
"have",
"\"",
"Kutch",
"\"",
"in",
"part",
"of",
"their",
"details",
"?"
] |
[
{
"id": 1,
"type": "column",
"value": "customer_details"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 2,
"type": "column",
"value": "%Kutch%"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,041
|
movie_3
|
bird:train.json:9312
|
Which category is the most common?
|
SELECT T.name FROM ( SELECT T2.name, COUNT(T2.name) AS num FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T2.name ) AS T ORDER BY T.num DESC LIMIT 1
|
[
"Which",
"category",
"is",
"the",
"most",
"common",
"?"
] |
[
{
"id": 2,
"type": "table",
"value": "film_category"
},
{
"id": 4,
"type": "column",
"value": "category_id"
},
{
"id": 3,
"type": "table",
"value": "category"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 1,
"type": "column",
"value": "num"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
1
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
14,042
|
food_inspection_2
|
bird:train.json:6172
|
Among the establishments that failed in the inspection, what is the percentage of establishments with the highest risk level?
|
SELECT CAST(COUNT(CASE WHEN T1.risk_level = 3 THEN T1.license_no END) AS REAL) * 100 / COUNT(T1.risk_level) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.results = 'Fail'
|
[
"Among",
"the",
"establishments",
"that",
"failed",
"in",
"the",
"inspection",
",",
"what",
"is",
"the",
"percentage",
"of",
"establishments",
"with",
"the",
"highest",
"risk",
"level",
"?"
] |
[
{
"id": 0,
"type": "table",
"value": "establishment"
},
{
"id": 1,
"type": "table",
"value": "inspection"
},
{
"id": 4,
"type": "column",
"value": "license_no"
},
{
"id": 6,
"type": "column",
"value": "risk_level"
},
{
"id": 2,
"type": "column",
"value": "results"
},
{
"id": 3,
"type": "value",
"value": "Fail"
},
{
"id": 5,
"type": "value",
"value": "100"
},
{
"id": 7,
"type": "value",
"value": "3"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": [
18,
19
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
14,043
|
authors
|
bird:train.json:3631
|
How many authors finished the paper "An Improved Active Suspension Model for Attitude Control of Electric Vehicles" together?
|
SELECT COUNT(T2.AuthorId) FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles'
|
[
"How",
"many",
"authors",
"finished",
"the",
"paper",
"\"",
"An",
"Improved",
"Active",
"Suspension",
"Model",
"for",
"Attitude",
"Control",
"of",
"Electric",
"Vehicles",
"\"",
"together",
"?"
] |
[
{
"id": 3,
"type": "value",
"value": "An Improved Active Suspension Model for Attitude Control of Electric Vehicles"
},
{
"id": 1,
"type": "table",
"value": "paperauthor"
},
{
"id": 4,
"type": "column",
"value": "authorid"
},
{
"id": 6,
"type": "column",
"value": "paperid"
},
{
"id": 0,
"type": "table",
"value": "paper"
},
{
"id": 2,
"type": "column",
"value": "title"
},
{
"id": 5,
"type": "column",
"value": "id"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8,
9,
10,
11,
12,
14,
15,
16,
17
]
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
14,044
|
game_1
|
spider:train_spider.json:5993
|
Show first name for all students with major 600.
|
SELECT Fname FROM Student WHERE Major = 600
|
[
"Show",
"first",
"name",
"for",
"all",
"students",
"with",
"major",
"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": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
14,045
|
coinmarketcap
|
bird:train.json:6272
|
Had Bitcoin's price increased or decreased on 2013/5/5 compared with the price 7 days before?
|
SELECT (CASE WHEN T2.percent_change_7d > 0 THEN 'INCREASED' ELSE 'DECREASED' END) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-05-05' AND T1.name = 'Bitcoin'
|
[
"Had",
"Bitcoin",
"'s",
"price",
"increased",
"or",
"decreased",
"on",
"2013/5/5",
"compared",
"with",
"the",
"price",
"7",
"days",
"before",
"?"
] |
[
{
"id": 10,
"type": "column",
"value": "percent_change_7d"
},
{
"id": 1,
"type": "table",
"value": "historical"
},
{
"id": 6,
"type": "value",
"value": "2013-05-05"
},
{
"id": 2,
"type": "value",
"value": "DECREASED"
},
{
"id": 9,
"type": "value",
"value": "INCREASED"
},
{
"id": 4,
"type": "column",
"value": "coin_id"
},
{
"id": 8,
"type": "value",
"value": "Bitcoin"
},
{
"id": 0,
"type": "table",
"value": "coins"
},
{
"id": 5,
"type": "column",
"value": "date"
},
{
"id": 7,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "column",
"value": "id"
},
{
"id": 11,
"type": "value",
"value": "0"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
1,
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": [
8
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": [
4
]
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,046
|
retail_complains
|
bird:train.json:392
|
In 2014, what is the percentage of complaints from consumers in Houston that the delay was over 5 days?
|
SELECT CAST((SUM(CASE WHEN strftime('%J', T2.`Date sent to company`) - strftime('%J', T2.`Date received`) > 5 THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'Houston' AND strftime('%Y', T2.`Date received`) = '2014'
|
[
"In",
"2014",
",",
"what",
"is",
"the",
"percentage",
"of",
"complaints",
"from",
"consumers",
"in",
"Houston",
"that",
"the",
"delay",
"was",
"over",
"5",
"days",
"?"
] |
[
{
"id": 13,
"type": "column",
"value": "Date sent to company"
},
{
"id": 8,
"type": "column",
"value": "Date received"
},
{
"id": 2,
"type": "column",
"value": "client_id"
},
{
"id": 4,
"type": "value",
"value": "Houston"
},
{
"id": 0,
"type": "table",
"value": "client"
},
{
"id": 1,
"type": "table",
"value": "events"
},
{
"id": 3,
"type": "column",
"value": "city"
},
{
"id": 5,
"type": "value",
"value": "2014"
},
{
"id": 6,
"type": "value",
"value": "100"
},
{
"id": 7,
"type": "value",
"value": "%Y"
},
{
"id": 12,
"type": "value",
"value": "%J"
},
{
"id": 9,
"type": "value",
"value": "0"
},
{
"id": 10,
"type": "value",
"value": "1"
},
{
"id": 11,
"type": "value",
"value": "5"
}
] |
[
{
"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": [
12
]
},
{
"entity_id": 5,
"token_idxs": [
1
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": [
18
]
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": [
5,
6,
7
]
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
14,047
|
donor
|
bird:train.json:3191
|
How many donors from New Jersey have made a donation for an honoree?
|
SELECT COUNT(donationid) FROM donations WHERE for_honoree = 't' AND donor_state = 'NJ'
|
[
"How",
"many",
"donors",
"from",
"New",
"Jersey",
"have",
"made",
"a",
"donation",
"for",
"an",
"honoree",
"?"
] |
[
{
"id": 2,
"type": "column",
"value": "for_honoree"
},
{
"id": 4,
"type": "column",
"value": "donor_state"
},
{
"id": 1,
"type": "column",
"value": "donationid"
},
{
"id": 0,
"type": "table",
"value": "donations"
},
{
"id": 5,
"type": "value",
"value": "NJ"
},
{
"id": 3,
"type": "value",
"value": "t"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
14,048
|
movie_platform
|
bird:train.json:16
|
What is the name of the most followed list?
|
SELECT list_title FROM lists ORDER BY list_followers DESC LIMIT 1
|
[
"What",
"is",
"the",
"name",
"of",
"the",
"most",
"followed",
"list",
"?"
] |
[
{
"id": 2,
"type": "column",
"value": "list_followers"
},
{
"id": 1,
"type": "column",
"value": "list_title"
},
{
"id": 0,
"type": "table",
"value": "lists"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O"
] |
14,049
|
warehouse_1
|
bird:test.json:1708
|
What is the total value of boxes located in Chicago or New York?
|
SELECT sum(T1.value) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago' OR T2.location = 'New York'
|
[
"What",
"is",
"the",
"total",
"value",
"of",
"boxes",
"located",
"in",
"Chicago",
"or",
"New",
"York",
"?"
] |
[
{
"id": 1,
"type": "table",
"value": "warehouses"
},
{
"id": 3,
"type": "column",
"value": "warehouse"
},
{
"id": 5,
"type": "column",
"value": "location"
},
{
"id": 7,
"type": "value",
"value": "New York"
},
{
"id": 6,
"type": "value",
"value": "Chicago"
},
{
"id": 0,
"type": "table",
"value": "boxes"
},
{
"id": 2,
"type": "column",
"value": "value"
},
{
"id": 4,
"type": "column",
"value": "code"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
7,
8
]
},
{
"entity_id": 6,
"token_idxs": [
9
]
},
{
"entity_id": 7,
"token_idxs": [
11,
12
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
14,050
|
club_leader
|
bird:test.json:650
|
Show different nationalities along with the number of members of each nationality.
|
SELECT Nationality , COUNT(*) FROM member GROUP BY Nationality
|
[
"Show",
"different",
"nationalities",
"along",
"with",
"the",
"number",
"of",
"members",
"of",
"each",
"nationality",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "nationality"
},
{
"id": 0,
"type": "table",
"value": "member"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"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": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O"
] |
14,051
|
works_cycles
|
bird:train.json:7394
|
What is the company's profit on the product that was rated second-highest by David?
|
SELECT T2.ListPrice - T2.StandardCost FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ReviewerName = 'David' ORDER BY T1.Rating DESC LIMIT 1
|
[
"What",
"is",
"the",
"company",
"'s",
"profit",
"on",
"the",
"product",
"that",
"was",
"rated",
"second",
"-",
"highest",
"by",
"David",
"?"
] |
[
{
"id": 0,
"type": "table",
"value": "productreview"
},
{
"id": 2,
"type": "column",
"value": "reviewername"
},
{
"id": 6,
"type": "column",
"value": "standardcost"
},
{
"id": 5,
"type": "column",
"value": "listprice"
},
{
"id": 7,
"type": "column",
"value": "productid"
},
{
"id": 1,
"type": "table",
"value": "product"
},
{
"id": 4,
"type": "column",
"value": "rating"
},
{
"id": 3,
"type": "value",
"value": "David"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
16
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
14,052
|
codebase_comments
|
bird:train.json:593
|
Among the solutions that contain files within the repository followed by over 1000 people, how many of them can be
implemented without needs of compilation?
|
SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks > 1000 AND T2.WasCompiled = 1
|
[
"Among",
"the",
"solutions",
"that",
"contain",
"files",
"within",
"the",
"repository",
"followed",
"by",
"over",
"1000",
"people",
",",
"how",
"many",
"of",
"them",
"can",
"be",
"\n",
"implemented",
"without",
"needs",
"of",
"compilation",
"?"
] |
[
{
"id": 6,
"type": "column",
"value": "wascompiled"
},
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 2,
"type": "column",
"value": "repoid"
},
{
"id": 4,
"type": "column",
"value": "forks"
},
{
"id": 0,
"type": "table",
"value": "repo"
},
{
"id": 5,
"type": "value",
"value": "1000"
},
{
"id": 3,
"type": "column",
"value": "id"
},
{
"id": 7,
"type": "value",
"value": "1"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
12
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,053
|
disney
|
bird:train.json:4719
|
Name the first movie released by Disney.
|
SELECT movie_title FROM characters ORDER BY SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) ASC LIMIT 1
|
[
"Name",
"the",
"first",
"movie",
"released",
"by",
"Disney",
"."
] |
[
{
"id": 2,
"type": "column",
"value": "release_date"
},
{
"id": 1,
"type": "column",
"value": "movie_title"
},
{
"id": 0,
"type": "table",
"value": "characters"
},
{
"id": 3,
"type": "value",
"value": "1"
}
] |
[
{
"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": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O"
] |
14,054
|
airline
|
bird:train.json:5827
|
Among the flights departing from John F. Kennedy International, how many of them arrived earlier than scheduled?
|
SELECT SUM(CASE WHEN T2.ARR_DELAY < 0 THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'New York, NY: John F. Kennedy International'
|
[
"Among",
"the",
"flights",
"departing",
"from",
"John",
"F.",
"Kennedy",
"International",
",",
"how",
"many",
"of",
"them",
"arrived",
"earlier",
"than",
"scheduled",
"?"
] |
[
{
"id": 3,
"type": "value",
"value": "New York, NY: John F. Kennedy International"
},
{
"id": 2,
"type": "column",
"value": "description"
},
{
"id": 8,
"type": "column",
"value": "arr_delay"
},
{
"id": 0,
"type": "table",
"value": "airports"
},
{
"id": 1,
"type": "table",
"value": "airlines"
},
{
"id": 5,
"type": "column",
"value": "origin"
},
{
"id": 4,
"type": "column",
"value": "code"
},
{
"id": 6,
"type": "value",
"value": "0"
},
{
"id": 7,
"type": "value",
"value": "1"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
5,
6,
7,
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
14,055
|
student_club
|
bird:dev.json:1321
|
How many events of the Student_Club did Sacha Harrison attend in 2019?
|
SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Sacha' AND T3.last_name = 'Harrison' AND SUBSTR(T1.event_date, 1, 4) = '2019'
|
[
"How",
"many",
"events",
"of",
"the",
"Student_Club",
"did",
"Sacha",
"Harrison",
"attend",
"in",
"2019",
"?"
] |
[
{
"id": 4,
"type": "column",
"value": "link_to_member"
},
{
"id": 11,
"type": "column",
"value": "link_to_event"
},
{
"id": 3,
"type": "table",
"value": "attendance"
},
{
"id": 6,
"type": "column",
"value": "first_name"
},
{
"id": 12,
"type": "column",
"value": "event_date"
},
{
"id": 5,
"type": "column",
"value": "member_id"
},
{
"id": 8,
"type": "column",
"value": "last_name"
},
{
"id": 1,
"type": "column",
"value": "event_id"
},
{
"id": 9,
"type": "value",
"value": "Harrison"
},
{
"id": 0,
"type": "table",
"value": "member"
},
{
"id": 2,
"type": "table",
"value": "event"
},
{
"id": 7,
"type": "value",
"value": "Sacha"
},
{
"id": 10,
"type": "value",
"value": "2019"
},
{
"id": 13,
"type": "value",
"value": "1"
},
{
"id": 14,
"type": "value",
"value": "4"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": [
7
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": [
8
]
},
{
"entity_id": 10,
"token_idxs": [
11
]
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
14,056
|
legislator
|
bird:train.json:4798
|
When was the last serving date of Matt Salmon?
|
SELECT T1.END FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.official_full_name = 'Matt Salmon'
|
[
"When",
"was",
"the",
"last",
"serving",
"date",
"of",
"Matt",
"Salmon",
"?"
] |
[
{
"id": 3,
"type": "column",
"value": "official_full_name"
},
{
"id": 1,
"type": "table",
"value": "historical-terms"
},
{
"id": 4,
"type": "value",
"value": "Matt Salmon"
},
{
"id": 5,
"type": "column",
"value": "bioguide_id"
},
{
"id": 2,
"type": "table",
"value": "historical"
},
{
"id": 6,
"type": "column",
"value": "bioguide"
},
{
"id": 0,
"type": "column",
"value": "end"
}
] |
[
{
"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": [
7,
8
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
14,057
|
thrombosis_prediction
|
bird:dev.json:1206
|
When is the laboratory examination of patient '48473' where his/her AST glutamic oxaloacetic transaminase (GOT) index is above the normal range.
|
SELECT Date FROM Laboratory WHERE ID = 48473 AND GOT >= 60
|
[
"When",
"is",
"the",
"laboratory",
"examination",
"of",
"patient",
"'",
"48473",
"'",
"where",
"his",
"/",
"her",
"AST",
"glutamic",
"oxaloacetic",
"transaminase",
"(",
"GOT",
")",
"index",
"is",
"above",
"the",
"normal",
"range",
"."
] |
[
{
"id": 0,
"type": "table",
"value": "laboratory"
},
{
"id": 3,
"type": "value",
"value": "48473"
},
{
"id": 1,
"type": "column",
"value": "date"
},
{
"id": 4,
"type": "column",
"value": "got"
},
{
"id": 2,
"type": "column",
"value": "id"
},
{
"id": 5,
"type": "value",
"value": "60"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
19
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,058
|
legislator
|
bird:train.json:4795
|
How old was Jr. F. James Sensenbrenner when he first started as a legislator?
|
SELECT CAST(MIN(T2.start) - T1.birthday_bio AS DATE) AS AGE FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'F. James Sensenbrenner, Jr.'
|
[
"How",
"old",
"was",
"Jr.",
"F.",
"James",
"Sensenbrenner",
"when",
"he",
"first",
"started",
"as",
"a",
"legislator",
"?"
] |
[
{
"id": 3,
"type": "value",
"value": "F. James Sensenbrenner, Jr."
},
{
"id": 2,
"type": "column",
"value": "official_full_name"
},
{
"id": 1,
"type": "table",
"value": "current-terms"
},
{
"id": 6,
"type": "column",
"value": "birthday_bio"
},
{
"id": 4,
"type": "column",
"value": "bioguide_id"
},
{
"id": 5,
"type": "column",
"value": "bioguide"
},
{
"id": 0,
"type": "table",
"value": "current"
},
{
"id": 7,
"type": "column",
"value": "start"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": [
10
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
14,059
|
musical
|
spider:train_spider.json:272
|
Show the musical nominee with award "Bob Fosse" or "Cleavant Derricks".
|
SELECT Nominee FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks"
|
[
"Show",
"the",
"musical",
"nominee",
"with",
"award",
"\"",
"Bob",
"Fosse",
"\"",
"or",
"\"",
"Cleavant",
"Derricks",
"\"",
"."
] |
[
{
"id": 4,
"type": "column",
"value": "Cleavant Derricks"
},
{
"id": 3,
"type": "column",
"value": "Tony Award"
},
{
"id": 0,
"type": "table",
"value": "musical"
},
{
"id": 1,
"type": "column",
"value": "nominee"
},
{
"id": 2,
"type": "column",
"value": "award"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
12,
13
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
14,060
|
chicago_crime
|
bird:train.json:8656
|
How many percent of domestic violence cases were arrested in West Pullman?
|
SELECT CAST(COUNT(CASE WHEN T2.arrest = 'TRUE' THEN T2.report_no END) AS REAL) * 100 / COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'West Pullman' AND T2.domestic = 'TRUE'
|
[
"How",
"many",
"percent",
"of",
"domestic",
"violence",
"cases",
"were",
"arrested",
"in",
"West",
"Pullman",
"?"
] |
[
{
"id": 3,
"type": "column",
"value": "community_area_name"
},
{
"id": 2,
"type": "column",
"value": "community_area_no"
},
{
"id": 0,
"type": "table",
"value": "community_area"
},
{
"id": 4,
"type": "value",
"value": "West Pullman"
},
{
"id": 8,
"type": "column",
"value": "report_no"
},
{
"id": 5,
"type": "column",
"value": "domestic"
},
{
"id": 9,
"type": "column",
"value": "arrest"
},
{
"id": 1,
"type": "table",
"value": "crime"
},
{
"id": 6,
"type": "value",
"value": "TRUE"
},
{
"id": 7,
"type": "value",
"value": "100"
}
] |
[
{
"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": [
10,
11
]
},
{
"entity_id": 5,
"token_idxs": [
4
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": [
8
]
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
14,061
|
movie_platform
|
bird:train.json:163
|
What is the average number of number of movies added to the lists of user 8516503? Indicate how many movies did he/she give a rating score of 5.
|
SELECT AVG(T3.list_movie_number) , SUM(CASE WHEN T1.rating_score = 5 THEN 1 ELSE 0 END) FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id INNER JOIN lists AS T3 ON T2.user_id = T3.user_id WHERE T1.user_id = 8516503
|
[
"What",
"is",
"the",
"average",
"number",
"of",
"number",
"of",
"movies",
"added",
"to",
"the",
"lists",
"of",
"user",
"8516503",
"?",
"Indicate",
"how",
"many",
"movies",
"did",
"he",
"/",
"she",
"give",
"a",
"rating",
"score",
"of",
"5",
"."
] |
[
{
"id": 3,
"type": "column",
"value": "list_movie_number"
},
{
"id": 8,
"type": "column",
"value": "rating_score"
},
{
"id": 5,
"type": "table",
"value": "lists_users"
},
{
"id": 1,
"type": "column",
"value": "user_id"
},
{
"id": 2,
"type": "value",
"value": "8516503"
},
{
"id": 4,
"type": "table",
"value": "ratings"
},
{
"id": 0,
"type": "table",
"value": "lists"
},
{
"id": 6,
"type": "value",
"value": "0"
},
{
"id": 7,
"type": "value",
"value": "1"
},
{
"id": 9,
"type": "value",
"value": "5"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": [
1,
2,
3,
4
]
},
{
"entity_id": 4,
"token_idxs": [
27
]
},
{
"entity_id": 5,
"token_idxs": [
13
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": [
28
]
},
{
"entity_id": 9,
"token_idxs": [
30
]
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
14,062
|
codebase_comments
|
bird:train.json:671
|
Please state the API calls for method number 10 and its intended course of action.
|
SELECT T2.ApiCalls, T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 10
|
[
"Please",
"state",
"the",
"API",
"calls",
"for",
"method",
"number",
"10",
"and",
"its",
"intended",
"course",
"of",
"action",
"."
] |
[
{
"id": 6,
"type": "column",
"value": "solutionid"
},
{
"id": 0,
"type": "column",
"value": "apicalls"
},
{
"id": 2,
"type": "table",
"value": "solution"
},
{
"id": 3,
"type": "table",
"value": "method"
},
{
"id": 1,
"type": "column",
"value": "path"
},
{
"id": 4,
"type": "column",
"value": "id"
},
{
"id": 5,
"type": "value",
"value": "10"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13,
14
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
8
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
14,063
|
sports_competition
|
spider:train_spider.json:3346
|
What are the different years for all competitions that are not of type equal to tournament?
|
SELECT DISTINCT YEAR FROM competition WHERE Competition_type != "Tournament"
|
[
"What",
"are",
"the",
"different",
"years",
"for",
"all",
"competitions",
"that",
"are",
"not",
"of",
"type",
"equal",
"to",
"tournament",
"?"
] |
[
{
"id": 2,
"type": "column",
"value": "competition_type"
},
{
"id": 0,
"type": "table",
"value": "competition"
},
{
"id": 3,
"type": "column",
"value": "Tournament"
},
{
"id": 1,
"type": "column",
"value": "year"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
14,064
|
video_game
|
bird:test.json:1944
|
Count the number of players that have a rank of year of at most 3.
|
SELECT count(*) FROM player WHERE Rank_of_the_year <= 3
|
[
"Count",
"the",
"number",
"of",
"players",
"that",
"have",
"a",
"rank",
"of",
"year",
"of",
"at",
"most",
"3",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "rank_of_the_year"
},
{
"id": 0,
"type": "table",
"value": "player"
},
{
"id": 2,
"type": "value",
"value": "3"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
8,
9,
10
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
14,065
|
cre_Drama_Workshop_Groups
|
spider:train_spider.json:5090
|
How many bookings do we have?
|
SELECT count(*) FROM BOOKINGS
|
[
"How",
"many",
"bookings",
"do",
"we",
"have",
"?"
] |
[
{
"id": 0,
"type": "table",
"value": "bookings"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
14,066
|
insurance_policies
|
spider:train_spider.json:3866
|
Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.
|
SELECT T1.claim_id , T1.date_claim_made , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1
|
[
"Which",
"claim",
"incurred",
"the",
"most",
"number",
"of",
"settlements",
"?",
"List",
"the",
"claim",
"i",
"d",
",",
"the",
"date",
"the",
"claim",
"was",
"made",
",",
"and",
"the",
"number",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "date_claim_made"
},
{
"id": 3,
"type": "table",
"value": "settlements"
},
{
"id": 0,
"type": "column",
"value": "claim_id"
},
{
"id": 2,
"type": "table",
"value": "claims"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
12,
13
]
},
{
"entity_id": 1,
"token_idxs": [
16,
17,
18,
19,
20
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
14,068
|
university
|
bird:train.json:7993
|
Give the name of the country that has the most universities.
|
SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id GROUP BY T2.country_name ORDER BY COUNT(T1.university_name) DESC LIMIT 1
|
[
"Give",
"the",
"name",
"of",
"the",
"country",
"that",
"has",
"the",
"most",
"universities",
"."
] |
[
{
"id": 5,
"type": "column",
"value": "university_name"
},
{
"id": 0,
"type": "column",
"value": "country_name"
},
{
"id": 1,
"type": "table",
"value": "university"
},
{
"id": 3,
"type": "column",
"value": "country_id"
},
{
"id": 2,
"type": "table",
"value": "country"
},
{
"id": 4,
"type": "column",
"value": "id"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
14,069
|
debit_card_specializing
|
bird:dev.json:1472
|
In 2012, who had the least consumption in LAM?
|
SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'LAM' AND SUBSTR(T2.Date, 1, 4) = '2012' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) ASC LIMIT 1
|
[
"In",
"2012",
",",
"who",
"had",
"the",
"least",
"consumption",
"in",
"LAM",
"?"
] |
[
{
"id": 6,
"type": "column",
"value": "consumption"
},
{
"id": 0,
"type": "column",
"value": "customerid"
},
{
"id": 1,
"type": "table",
"value": "customers"
},
{
"id": 2,
"type": "table",
"value": "yearmonth"
},
{
"id": 3,
"type": "column",
"value": "segment"
},
{
"id": 5,
"type": "value",
"value": "2012"
},
{
"id": 7,
"type": "column",
"value": "date"
},
{
"id": 4,
"type": "value",
"value": "LAM"
},
{
"id": 8,
"type": "value",
"value": "1"
},
{
"id": 9,
"type": "value",
"value": "4"
}
] |
[
{
"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": [
9
]
},
{
"entity_id": 5,
"token_idxs": [
1
]
},
{
"entity_id": 6,
"token_idxs": [
7
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
14,070
|
hockey
|
bird:train.json:7758
|
What is the name of the team that got more wins than loses in the Stanley Cup finals in 1917?
|
SELECT T2.name FROM TeamsSC AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = '1917' AND T1.W > T1.L
|
[
"What",
"is",
"the",
"name",
"of",
"the",
"team",
"that",
"got",
"more",
"wins",
"than",
"loses",
"in",
"the",
"Stanley",
"Cup",
"finals",
"in",
"1917",
"?"
] |
[
{
"id": 1,
"type": "table",
"value": "teamssc"
},
{
"id": 2,
"type": "table",
"value": "teams"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "column",
"value": "year"
},
{
"id": 4,
"type": "value",
"value": "1917"
},
{
"id": 7,
"type": "column",
"value": "tmid"
},
{
"id": 5,
"type": "column",
"value": "w"
},
{
"id": 6,
"type": "column",
"value": "l"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
19
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
14,071
|
legislator
|
bird:train.json:4837
|
What is the party of the legislator named Susan M. Collins?
|
SELECT T2.party FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Susan M. Collins' GROUP BY T2.party
|
[
"What",
"is",
"the",
"party",
"of",
"the",
"legislator",
"named",
"Susan",
"M.",
"Collins",
"?"
] |
[
{
"id": 3,
"type": "column",
"value": "official_full_name"
},
{
"id": 4,
"type": "value",
"value": "Susan M. Collins"
},
{
"id": 2,
"type": "table",
"value": "current-terms"
},
{
"id": 5,
"type": "column",
"value": "bioguide_id"
},
{
"id": 6,
"type": "column",
"value": "bioguide"
},
{
"id": 1,
"type": "table",
"value": "current"
},
{
"id": 0,
"type": "column",
"value": "party"
}
] |
[
{
"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": [
8,
9,
10
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
14,072
|
retail_world
|
bird:train.json:6548
|
List the territory IDs, description and region description under the in-charge of Mrs. Margaret Peacock.
|
SELECT T3.TerritoryID, T3.TerritoryDescription, T4.RegionDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID WHERE T1.TitleOfCourtesy = 'Mrs.' AND T1.LastName = 'Peacock' AND T1.FirstName = 'Margaret'
|
[
"List",
"the",
"territory",
"IDs",
",",
"description",
"and",
"region",
"description",
"under",
"the",
"in",
"-",
"charge",
"of",
"Mrs.",
"Margaret",
"Peacock",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "territorydescription"
},
{
"id": 13,
"type": "table",
"value": "employeeterritories"
},
{
"id": 2,
"type": "column",
"value": "regiondescription"
},
{
"id": 6,
"type": "column",
"value": "titleofcourtesy"
},
{
"id": 0,
"type": "column",
"value": "territoryid"
},
{
"id": 4,
"type": "table",
"value": "territories"
},
{
"id": 14,
"type": "column",
"value": "employeeid"
},
{
"id": 10,
"type": "column",
"value": "firstname"
},
{
"id": 12,
"type": "table",
"value": "employees"
},
{
"id": 5,
"type": "column",
"value": "regionid"
},
{
"id": 8,
"type": "column",
"value": "lastname"
},
{
"id": 11,
"type": "value",
"value": "Margaret"
},
{
"id": 9,
"type": "value",
"value": "Peacock"
},
{
"id": 3,
"type": "table",
"value": "region"
},
{
"id": 7,
"type": "value",
"value": "Mrs."
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
2,
3
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": [
15
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": [
17
]
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": [
16
]
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"B-VALUE",
"O"
] |
14,073
|
student_loan
|
bird:train.json:4481
|
Calculate the percentage of students who have never been absent.
|
SELECT CAST(SUM(IIF(month = 0, 1, 0)) AS REAL) * 100 / COUNT(name) FROM longest_absense_from_school
|
[
"Calculate",
"the",
"percentage",
"of",
"students",
"who",
"have",
"never",
"been",
"absent",
"."
] |
[
{
"id": 0,
"type": "table",
"value": "longest_absense_from_school"
},
{
"id": 5,
"type": "column",
"value": "month"
},
{
"id": 2,
"type": "column",
"value": "name"
},
{
"id": 1,
"type": "value",
"value": "100"
},
{
"id": 3,
"type": "value",
"value": "1"
},
{
"id": 4,
"type": "value",
"value": "0"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,074
|
college_completion
|
bird:train.json:3716
|
How many 2-year public schools are there in "California"?
|
SELECT COUNT(stateid) FROM state_sector_details WHERE state = 'California' AND level = '2-year' AND control = 'Public'
|
[
"How",
"many",
"2",
"-",
"year",
"public",
"schools",
"are",
"there",
"in",
"\"",
"California",
"\"",
"?"
] |
[
{
"id": 0,
"type": "table",
"value": "state_sector_details"
},
{
"id": 3,
"type": "value",
"value": "California"
},
{
"id": 1,
"type": "column",
"value": "stateid"
},
{
"id": 6,
"type": "column",
"value": "control"
},
{
"id": 5,
"type": "value",
"value": "2-year"
},
{
"id": 7,
"type": "value",
"value": "Public"
},
{
"id": 2,
"type": "column",
"value": "state"
},
{
"id": 4,
"type": "column",
"value": "level"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": [
5
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
14,075
|
student_club
|
bird:dev.json:1409
|
Mention the total expense used on 8/20/2019.
|
SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20'
|
[
"Mention",
"the",
"total",
"expense",
"used",
"on",
"8/20/2019",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "expense_date"
},
{
"id": 2,
"type": "value",
"value": "2019-08-20"
},
{
"id": 0,
"type": "table",
"value": "expense"
},
{
"id": 3,
"type": "column",
"value": "cost"
}
] |
[
{
"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": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
14,076
|
food_inspection_2
|
bird:train.json:6140
|
What is the assumed name of the business located at 2903 W Irving Park Rd?
|
SELECT DISTINCT dba_name FROM establishment WHERE address = '2903 W IRVING PARK RD '
|
[
"What",
"is",
"the",
"assumed",
"name",
"of",
"the",
"business",
"located",
"at",
"2903",
"W",
"Irving",
"Park",
"Rd",
"?"
] |
[
{
"id": 3,
"type": "value",
"value": "2903 W IRVING PARK RD "
},
{
"id": 0,
"type": "table",
"value": "establishment"
},
{
"id": 1,
"type": "column",
"value": "dba_name"
},
{
"id": 2,
"type": "column",
"value": "address"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10,
11,
12,
13,
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
14,077
|
card_games
|
bird:dev.json:528
|
List the names of all the cards in the set Hour of Devastation and find the formats in which these cards are legal.
|
SELECT DISTINCT T2.name , CASE WHEN T1.status = 'Legal' THEN T1.format ELSE NULL END FROM legalities AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid WHERE T2.setCode IN ( SELECT code FROM sets WHERE name = 'Hour of Devastation' )
|
[
"List",
"the",
"names",
"of",
"all",
"the",
"cards",
"in",
"the",
"set",
"Hour",
"of",
"Devastation",
"and",
"find",
"the",
"formats",
"in",
"which",
"these",
"cards",
"are",
"legal",
"."
] |
[
{
"id": 8,
"type": "value",
"value": "Hour of Devastation"
},
{
"id": 1,
"type": "table",
"value": "legalities"
},
{
"id": 3,
"type": "column",
"value": "setcode"
},
{
"id": 6,
"type": "column",
"value": "format"
},
{
"id": 9,
"type": "column",
"value": "status"
},
{
"id": 2,
"type": "table",
"value": "cards"
},
{
"id": 10,
"type": "value",
"value": "Legal"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "column",
"value": "uuid"
},
{
"id": 5,
"type": "table",
"value": "sets"
},
{
"id": 7,
"type": "column",
"value": "code"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
20
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
9
]
},
{
"entity_id": 6,
"token_idxs": [
16
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": [
22
]
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
14,078
|
car_retails
|
bird:train.json:1549
|
Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.
|
SELECT T1.employeeNumber FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T1.reportsTo = 1143 AND T2.city = 'NYC'
|
[
"Which",
"sales",
"representatives",
"in",
"New",
"York",
"city",
"whose",
"leader",
"is",
"Anthony",
"Bow",
"with",
"the",
"employee",
"number",
"is",
"1143",
"?",
"Indicate",
"their",
"employee",
"numbers",
"."
] |
[
{
"id": 0,
"type": "column",
"value": "employeenumber"
},
{
"id": 3,
"type": "column",
"value": "officecode"
},
{
"id": 1,
"type": "table",
"value": "employees"
},
{
"id": 4,
"type": "column",
"value": "reportsto"
},
{
"id": 2,
"type": "table",
"value": "offices"
},
{
"id": 5,
"type": "value",
"value": "1143"
},
{
"id": 6,
"type": "column",
"value": "city"
},
{
"id": 7,
"type": "value",
"value": "NYC"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
15
]
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
17
]
},
{
"entity_id": 6,
"token_idxs": [
6
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,079
|
insurance_policies
|
spider:train_spider.json:3856
|
Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.
|
SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1
|
[
"Among",
"all",
"the",
"claims",
",",
"what",
"is",
"the",
"settlement",
"amount",
"of",
"the",
"claim",
"with",
"the",
"largest",
"claim",
"amount",
"?",
"List",
"both",
"the",
"settlement",
"amount",
"and",
"claim",
"amount",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "amount_settled"
},
{
"id": 2,
"type": "column",
"value": "amount_claimed"
},
{
"id": 0,
"type": "table",
"value": "claims"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
17,
18,
19
]
},
{
"entity_id": 2,
"token_idxs": [
23,
24,
25
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O"
] |
14,080
|
movie
|
bird:train.json:767
|
Count the male actors born in USA that starred in Ghost.
|
SELECT COUNT(*) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Ghost' AND T3.Gender = 'Male' AND T3.`Birth Country` = 'USA'
|
[
"Count",
"the",
"male",
"actors",
"born",
"in",
"USA",
"that",
"starred",
"in",
"Ghost",
"."
] |
[
{
"id": 8,
"type": "column",
"value": "Birth Country"
},
{
"id": 2,
"type": "table",
"value": "characters"
},
{
"id": 3,
"type": "column",
"value": "actorid"
},
{
"id": 10,
"type": "column",
"value": "movieid"
},
{
"id": 6,
"type": "column",
"value": "gender"
},
{
"id": 0,
"type": "table",
"value": "actor"
},
{
"id": 1,
"type": "table",
"value": "movie"
},
{
"id": 4,
"type": "column",
"value": "title"
},
{
"id": 5,
"type": "value",
"value": "Ghost"
},
{
"id": 7,
"type": "value",
"value": "Male"
},
{
"id": 9,
"type": "value",
"value": "USA"
}
] |
[
{
"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": [
10
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": [
2
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": [
6
]
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
14,081
|
language_corpus
|
bird:train.json:5693
|
Show all the title of pages and number of occurences for each page where the word 'quipu' appears.
|
SELECT T1.title, T2.occurrences FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid INNER JOIN words AS T3 ON T2.wid = T3.wid WHERE T3.word = 'quipu'
|
[
"Show",
"all",
"the",
"title",
"of",
"pages",
"and",
"number",
"of",
"occurences",
"for",
"each",
"page",
"where",
"the",
"word",
"'",
"quipu",
"'",
"appears",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "occurrences"
},
{
"id": 6,
"type": "table",
"value": "pages_words"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "table",
"value": "words"
},
{
"id": 4,
"type": "value",
"value": "quipu"
},
{
"id": 5,
"type": "table",
"value": "pages"
},
{
"id": 3,
"type": "column",
"value": "word"
},
{
"id": 7,
"type": "column",
"value": "wid"
},
{
"id": 8,
"type": "column",
"value": "pid"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
{
"entity_id": 5,
"token_idxs": [
5
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
14,082
|
toxicology
|
bird:dev.json:272
|
List down two molecule id of triple bond non carcinogenic molecules with element carbon.
|
SELECT DISTINCT T2.molecule_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T3.bond_type = '#' AND T1.element = 'c' AND T2.label = '-'
|
[
"List",
"down",
"two",
"molecule",
"i",
"d",
"of",
"triple",
"bond",
"non",
"carcinogenic",
"molecules",
"with",
"element",
"carbon",
"."
] |
[
{
"id": 0,
"type": "column",
"value": "molecule_id"
},
{
"id": 4,
"type": "column",
"value": "bond_type"
},
{
"id": 3,
"type": "table",
"value": "molecule"
},
{
"id": 6,
"type": "column",
"value": "element"
},
{
"id": 8,
"type": "column",
"value": "label"
},
{
"id": 1,
"type": "table",
"value": "bond"
},
{
"id": 2,
"type": "table",
"value": "atom"
},
{
"id": 5,
"type": "value",
"value": "#"
},
{
"id": 7,
"type": "value",
"value": "c"
},
{
"id": 9,
"type": "value",
"value": "-"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": [
13
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
14,083
|
advertising_agencies
|
bird:test.json:2063
|
List all client ids and client details.
|
SELECT client_id , client_details FROM Clients
|
[
"List",
"all",
"client",
"ids",
"and",
"client",
"details",
"."
] |
[
{
"id": 2,
"type": "column",
"value": "client_details"
},
{
"id": 1,
"type": "column",
"value": "client_id"
},
{
"id": 0,
"type": "table",
"value": "clients"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
14,085
|
college_2
|
spider:train_spider.json:1449
|
How many instructors are in the department with the highest budget, and what is their average salary?
|
SELECT avg(T1.salary) , count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1
|
[
"How",
"many",
"instructors",
"are",
"in",
"the",
"department",
"with",
"the",
"highest",
"budget",
",",
"and",
"what",
"is",
"their",
"average",
"salary",
"?"
] |
[
{
"id": 0,
"type": "table",
"value": "instructor"
},
{
"id": 1,
"type": "table",
"value": "department"
},
{
"id": 4,
"type": "column",
"value": "dept_name"
},
{
"id": 2,
"type": "column",
"value": "budget"
},
{
"id": 3,
"type": "column",
"value": "salary"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
14,086
|
art_1
|
bird:test.json:1239
|
What are the first and last names of artists who have painted using both oil and lithographic mediums?
|
SELECT T1.lname , T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = "oil" INTERSECT SELECT T3.lname , T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID = T4.painterID WHERE T4.medium = "lithograph"
|
[
"What",
"are",
"the",
"first",
"and",
"last",
"names",
"of",
"artists",
"who",
"have",
"painted",
"using",
"both",
"oil",
"and",
"lithographic",
"mediums",
"?"
] |
[
{
"id": 6,
"type": "column",
"value": "lithograph"
},
{
"id": 3,
"type": "table",
"value": "paintings"
},
{
"id": 8,
"type": "column",
"value": "painterid"
},
{
"id": 7,
"type": "column",
"value": "artistid"
},
{
"id": 2,
"type": "table",
"value": "artists"
},
{
"id": 4,
"type": "column",
"value": "medium"
},
{
"id": 0,
"type": "column",
"value": "lname"
},
{
"id": 1,
"type": "column",
"value": "fname"
},
{
"id": 5,
"type": "column",
"value": "oil"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
{
"entity_id": 5,
"token_idxs": [
14
]
},
{
"entity_id": 6,
"token_idxs": [
16
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": [
11
]
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
14,087
|
tv_shows
|
bird:test.json:149
|
Show the transmitters of the radios and the number of city channels they are associated with.
|
SELECT T2.Transmitter , COUNT(*) FROM city_channel_radio AS T1 JOIN radio AS T2 ON T1.Radio_ID = T2.Radio_ID GROUP BY T2.Transmitter
|
[
"Show",
"the",
"transmitters",
"of",
"the",
"radios",
"and",
"the",
"number",
"of",
"city",
"channels",
"they",
"are",
"associated",
"with",
"."
] |
[
{
"id": 1,
"type": "table",
"value": "city_channel_radio"
},
{
"id": 0,
"type": "column",
"value": "transmitter"
},
{
"id": 3,
"type": "column",
"value": "radio_id"
},
{
"id": 2,
"type": "table",
"value": "radio"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
10,
11
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
14,088
|
donor
|
bird:train.json:3292
|
What is the average amount of resources from projects that have received donations per honoree?
|
SELECT AVG(T1.item_quantity) FROM resources AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.for_honoree = 't'
|
[
"What",
"is",
"the",
"average",
"amount",
"of",
"resources",
"from",
"projects",
"that",
"have",
"received",
"donations",
"per",
"honoree",
"?"
] |
[
{
"id": 4,
"type": "column",
"value": "item_quantity"
},
{
"id": 2,
"type": "column",
"value": "for_honoree"
},
{
"id": 0,
"type": "table",
"value": "resources"
},
{
"id": 1,
"type": "table",
"value": "donations"
},
{
"id": 5,
"type": "column",
"value": "projectid"
},
{
"id": 3,
"type": "value",
"value": "t"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
8
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O"
] |
14,089
|
bike_share_1
|
bird:train.json:9011
|
Which year experienced the most rain?
|
SELECT SUBSTR(CAST(date AS TEXT), -4) FROM weather GROUP BY SUBSTR(CAST(date AS TEXT), -4) ORDER BY SUM(CASE WHEN events LIKE '%Rain%' OR events LIKE '%rain%' THEN 1 ELSE 0 END) DESC LIMIT 1
|
[
"Which",
"year",
"experienced",
"the",
"most",
"rain",
"?"
] |
[
{
"id": 0,
"type": "table",
"value": "weather"
},
{
"id": 5,
"type": "column",
"value": "events"
},
{
"id": 6,
"type": "value",
"value": "%Rain%"
},
{
"id": 7,
"type": "value",
"value": "%rain%"
},
{
"id": 2,
"type": "column",
"value": "date"
},
{
"id": 1,
"type": "value",
"value": "-4"
},
{
"id": 3,
"type": "value",
"value": "0"
},
{
"id": 4,
"type": "value",
"value": "1"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": [
5
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
14,090
|
synthea
|
bird:train.json:1403
|
Among the patients who were immunized with meningococcal MCV4P, how many have viral sinusitis disorder after getting the immunization?
|
SELECT COUNT(DISTINCT T1.patient) FROM immunizations AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.DESCRIPTION = 'meningococcal MCV4P' AND T2.DESCRIPTION = 'Viral sinusitis (disorder)'
|
[
"Among",
"the",
"patients",
"who",
"were",
"immunized",
"with",
"meningococcal",
"MCV4P",
",",
"how",
"many",
"have",
"viral",
"sinusitis",
"disorder",
"after",
"getting",
"the",
"immunization",
"?"
] |
[
{
"id": 5,
"type": "value",
"value": "Viral sinusitis (disorder)"
},
{
"id": 4,
"type": "value",
"value": "meningococcal MCV4P"
},
{
"id": 0,
"type": "table",
"value": "immunizations"
},
{
"id": 3,
"type": "column",
"value": "description"
},
{
"id": 1,
"type": "table",
"value": "conditions"
},
{
"id": 2,
"type": "column",
"value": "patient"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
19
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7,
8
]
},
{
"entity_id": 5,
"token_idxs": [
13,
14,
15
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
14,091
|
synthea
|
bird:train.json:1382
|
Describe the encounter of Mr. Hubert Baumbach on 2008/10/25.
|
SELECT T2.description FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mr.' AND T1.first = 'Hubert' AND T1.last = 'Baumbach' AND T2.date = '2008-10-25'
|
[
"Describe",
"the",
"encounter",
"of",
"Mr.",
"Hubert",
"Baumbach",
"on",
"2008/10/25",
"."
] |
[
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 2,
"type": "table",
"value": "encounters"
},
{
"id": 11,
"type": "value",
"value": "2008-10-25"
},
{
"id": 1,
"type": "table",
"value": "patients"
},
{
"id": 9,
"type": "value",
"value": "Baumbach"
},
{
"id": 3,
"type": "column",
"value": "patient"
},
{
"id": 4,
"type": "column",
"value": "prefix"
},
{
"id": 7,
"type": "value",
"value": "Hubert"
},
{
"id": 6,
"type": "column",
"value": "first"
},
{
"id": 8,
"type": "column",
"value": "last"
},
{
"id": 10,
"type": "column",
"value": "date"
},
{
"id": 5,
"type": "value",
"value": "Mr."
}
] |
[
{
"entity_id": 0,
"token_idxs": [
0
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
4
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": [
5
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": [
6
]
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": [
8
]
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-VALUE",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
14,092
|
formula_1
|
bird:dev.json:912
|
What's the reference name of Marina Bay Street Circuit?
|
SELECT circuitRef FROM circuits WHERE name = 'Marina Bay Street Circuit'
|
[
"What",
"'s",
"the",
"reference",
"name",
"of",
"Marina",
"Bay",
"Street",
"Circuit",
"?"
] |
[
{
"id": 3,
"type": "value",
"value": "Marina Bay Street Circuit"
},
{
"id": 1,
"type": "column",
"value": "circuitref"
},
{
"id": 0,
"type": "table",
"value": "circuits"
},
{
"id": 2,
"type": "column",
"value": "name"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
6,
7,
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-TABLE",
"O"
] |
14,093
|
car_retails
|
bird:train.json:1638
|
Name the product from the 'Classic Cars' production line that has the greatest expected profit.
|
SELECT t.productName, t.MSRP - t.buyPrice FROM products AS t WHERE t.productLine = 'Classic Cars' ORDER BY t.MSRP - t.buyPrice DESC LIMIT 1
|
[
"Name",
"the",
"product",
"from",
"the",
"'",
"Classic",
"Cars",
"'",
"production",
"line",
"that",
"has",
"the",
"greatest",
"expected",
"profit",
"."
] |
[
{
"id": 3,
"type": "value",
"value": "Classic Cars"
},
{
"id": 1,
"type": "column",
"value": "productname"
},
{
"id": 2,
"type": "column",
"value": "productline"
},
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 5,
"type": "column",
"value": "buyprice"
},
{
"id": 4,
"type": "column",
"value": "msrp"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
6,
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,094
|
behavior_monitoring
|
spider:train_spider.json:3121
|
What is the zip code of the address where the teacher with first name "Lyla" lives?
|
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = "Lyla"
|
[
"What",
"is",
"the",
"zip",
"code",
"of",
"the",
"address",
"where",
"the",
"teacher",
"with",
"first",
"name",
"\"",
"Lyla",
"\"",
"lives",
"?"
] |
[
{
"id": 0,
"type": "column",
"value": "zip_postcode"
},
{
"id": 3,
"type": "column",
"value": "first_name"
},
{
"id": 5,
"type": "column",
"value": "address_id"
},
{
"id": 1,
"type": "table",
"value": "addresses"
},
{
"id": 2,
"type": "table",
"value": "teachers"
},
{
"id": 4,
"type": "column",
"value": "Lyla"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
14,095
|
food_inspection
|
bird:train.json:8800
|
For the business which got the most number of violations, how many inspections did it have?
|
SELECT COUNT(T2.business_id) FROM violations AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id GROUP BY T1.business_id ORDER BY COUNT(T1.business_id) DESC LIMIT 1
|
[
"For",
"the",
"business",
"which",
"got",
"the",
"most",
"number",
"of",
"violations",
",",
"how",
"many",
"inspections",
"did",
"it",
"have",
"?"
] |
[
{
"id": 0,
"type": "column",
"value": "business_id"
},
{
"id": 2,
"type": "table",
"value": "inspections"
},
{
"id": 1,
"type": "table",
"value": "violations"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
14,096
|
retail_world
|
bird:train.json:6406
|
How many non-discontinued products are there in the dairy category?
|
SELECT COUNT(T1.CategoryID) FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.CategoryName = 'Dairy Products' AND T2.Discontinued = 0
|
[
"How",
"many",
"non",
"-",
"discontinued",
"products",
"are",
"there",
"in",
"the",
"dairy",
"category",
"?"
] |
[
{
"id": 4,
"type": "value",
"value": "Dairy Products"
},
{
"id": 3,
"type": "column",
"value": "categoryname"
},
{
"id": 5,
"type": "column",
"value": "discontinued"
},
{
"id": 0,
"type": "table",
"value": "categories"
},
{
"id": 2,
"type": "column",
"value": "categoryid"
},
{
"id": 1,
"type": "table",
"value": "products"
},
{
"id": 6,
"type": "value",
"value": "0"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
4
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
14,098
|
train_station
|
spider:train_spider.json:6601
|
What are all locations of train stations?
|
SELECT DISTINCT LOCATION FROM station
|
[
"What",
"are",
"all",
"locations",
"of",
"train",
"stations",
"?"
] |
[
{
"id": 1,
"type": "column",
"value": "location"
},
{
"id": 0,
"type": "table",
"value": "station"
}
] |
[
{
"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": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
14,099
|
sales
|
bird:train.json:5448
|
What is the name of the sales person who handled the highest number of sales?
|
SELECT T1.FirstName, T1.MiddleInitial, T1.LastName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T2.SalesPersonID = T1.EmployeeID GROUP BY T2.SalesPersonID, T1.FirstName, T1.MiddleInitial, T1.LastName ORDER BY COUNT(T2.SalesID) DESC LIMIT 1
|
[
"What",
"is",
"the",
"name",
"of",
"the",
"sales",
"person",
"who",
"handled",
"the",
"highest",
"number",
"of",
"sales",
"?"
] |
[
{
"id": 0,
"type": "column",
"value": "salespersonid"
},
{
"id": 2,
"type": "column",
"value": "middleinitial"
},
{
"id": 6,
"type": "column",
"value": "employeeid"
},
{
"id": 1,
"type": "column",
"value": "firstname"
},
{
"id": 4,
"type": "table",
"value": "employees"
},
{
"id": 3,
"type": "column",
"value": "lastname"
},
{
"id": 7,
"type": "column",
"value": "salesid"
},
{
"id": 5,
"type": "table",
"value": "sales"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
6,
7
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
14
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
14,100
|
apartment_rentals
|
spider:train_spider.json:1206
|
What is the minimum and maximum number of bathrooms of all the apartments?
|
SELECT min(bathroom_count) , max(bathroom_count) FROM Apartments
|
[
"What",
"is",
"the",
"minimum",
"and",
"maximum",
"number",
"of",
"bathrooms",
"of",
"all",
"the",
"apartments",
"?"
] |
[
{
"id": 1,
"type": "column",
"value": "bathroom_count"
},
{
"id": 0,
"type": "table",
"value": "apartments"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
14,102
|
inn_1
|
spider:train_spider.json:2602
|
List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.
|
SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.maxOccupancy = T1.Adults + T1.Kids;
|
[
"List",
"how",
"many",
"times",
"the",
"number",
"of",
"people",
"in",
"the",
"room",
"reached",
"the",
"maximum",
"occupancy",
"of",
"the",
"room",
".",
"The",
"number",
"of",
"people",
"include",
"adults",
"and",
"kids",
"."
] |
[
{
"id": 0,
"type": "table",
"value": "reservations"
},
{
"id": 2,
"type": "column",
"value": "maxoccupancy"
},
{
"id": 4,
"type": "column",
"value": "roomid"
},
{
"id": 5,
"type": "column",
"value": "adults"
},
{
"id": 1,
"type": "table",
"value": "rooms"
},
{
"id": 3,
"type": "column",
"value": "room"
},
{
"id": 6,
"type": "column",
"value": "kids"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
24
]
},
{
"entity_id": 6,
"token_idxs": [
26
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
14,104
|
public_review_platform
|
bird:train.json:3850
|
Please list the IDs of the users who have a high number of followers.
|
SELECT user_id FROM Users WHERE user_fans LIKE 'High' GROUP BY user_id
|
[
"Please",
"list",
"the",
"IDs",
"of",
"the",
"users",
"who",
"have",
"a",
"high",
"number",
"of",
"followers",
"."
] |
[
{
"id": 2,
"type": "column",
"value": "user_fans"
},
{
"id": 1,
"type": "column",
"value": "user_id"
},
{
"id": 0,
"type": "table",
"value": "users"
},
{
"id": 3,
"type": "value",
"value": "High"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O"
] |
14,105
|
retail_world
|
bird:train.json:6488
|
Tally the customer ID of orders that were shipped to Brazil by Margaret Peacock from 3/31/97 to 12/10/97.
|
SELECT DISTINCT T2.CustomerID FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.LastName = 'Peacock' AND T1.FirstName = 'Margaret' AND T2.ShipCountry = 'Brazil' AND T2.ShippedDate BETWEEN '1997-03-31 00:00:00' AND '1997-12-10 23:59:59'
|
[
"Tally",
"the",
"customer",
"ID",
"of",
"orders",
"that",
"were",
"shipped",
"to",
"Brazil",
"by",
"Margaret",
"Peacock",
"from",
"3/31/97",
"to",
"12/10/97",
"."
] |
[
{
"id": 11,
"type": "value",
"value": "1997-03-31 00:00:00"
},
{
"id": 12,
"type": "value",
"value": "1997-12-10 23:59:59"
},
{
"id": 8,
"type": "column",
"value": "shipcountry"
},
{
"id": 10,
"type": "column",
"value": "shippeddate"
},
{
"id": 0,
"type": "column",
"value": "customerid"
},
{
"id": 3,
"type": "column",
"value": "employeeid"
},
{
"id": 1,
"type": "table",
"value": "employees"
},
{
"id": 6,
"type": "column",
"value": "firstname"
},
{
"id": 4,
"type": "column",
"value": "lastname"
},
{
"id": 7,
"type": "value",
"value": "Margaret"
},
{
"id": 5,
"type": "value",
"value": "Peacock"
},
{
"id": 2,
"type": "table",
"value": "orders"
},
{
"id": 9,
"type": "value",
"value": "Brazil"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
13
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": [
12
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": [
10
]
},
{
"entity_id": 10,
"token_idxs": [
8
]
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
14,106
|
superhero
|
bird:dev.json:717
|
Please list all the superpowers of 3-D Man.
|
SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T1.superhero_name = '3-D Man'
|
[
"Please",
"list",
"all",
"the",
"superpowers",
"of",
"3",
"-",
"D",
"Man",
"."
] |
[
{
"id": 2,
"type": "column",
"value": "superhero_name"
},
{
"id": 0,
"type": "column",
"value": "power_name"
},
{
"id": 1,
"type": "table",
"value": "superpower"
},
{
"id": 5,
"type": "table",
"value": "hero_power"
},
{
"id": 4,
"type": "table",
"value": "superhero"
},
{
"id": 6,
"type": "column",
"value": "power_id"
},
{
"id": 3,
"type": "value",
"value": "3-D Man"
},
{
"id": 8,
"type": "column",
"value": "hero_id"
},
{
"id": 7,
"type": "column",
"value": "id"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6,
7,
9
]
},
{
"entity_id": 4,
"token_idxs": [
4,
5
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": [
8
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"B-VALUE",
"O"
] |
14,107
|
icfp_1
|
spider:train_spider.json:2866
|
Find all the papers published by "Aaron Turon".
|
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Aaron" AND t1.lname = "Turon"
|
[
"Find",
"all",
"the",
"papers",
"published",
"by",
"\"",
"Aaron",
"Turon",
"\"",
"."
] |
[
{
"id": 3,
"type": "table",
"value": "authorship"
},
{
"id": 2,
"type": "table",
"value": "authors"
},
{
"id": 4,
"type": "column",
"value": "paperid"
},
{
"id": 1,
"type": "table",
"value": "papers"
},
{
"id": 9,
"type": "column",
"value": "authid"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 5,
"type": "column",
"value": "fname"
},
{
"id": 6,
"type": "column",
"value": "Aaron"
},
{
"id": 7,
"type": "column",
"value": "lname"
},
{
"id": 8,
"type": "column",
"value": "Turon"
}
] |
[
{
"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": []
},
{
"entity_id": 6,
"token_idxs": [
7
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": [
8
]
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O"
] |
14,109
|
book_1
|
bird:test.json:531
|
Show all order ids and their client names.
|
SELECT T1.idOrder , T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient
|
[
"Show",
"all",
"order",
"ids",
"and",
"their",
"client",
"names",
"."
] |
[
{
"id": 4,
"type": "column",
"value": "idclient"
},
{
"id": 0,
"type": "column",
"value": "idorder"
},
{
"id": 2,
"type": "table",
"value": "orders"
},
{
"id": 3,
"type": "table",
"value": "client"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
14,110
|
retail_world
|
bird:train.json:6610
|
What is the full name of the employee who is in charge of the territory of Denver?
|
SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T3.TerritoryDescription = 'Denver'
|
[
"What",
"is",
"the",
"full",
"name",
"of",
"the",
"employee",
"who",
"is",
"in",
"charge",
"of",
"the",
"territory",
"of",
"Denver",
"?"
] |
[
{
"id": 3,
"type": "column",
"value": "territorydescription"
},
{
"id": 6,
"type": "table",
"value": "employeeterritories"
},
{
"id": 2,
"type": "table",
"value": "territories"
},
{
"id": 7,
"type": "column",
"value": "territoryid"
},
{
"id": 8,
"type": "column",
"value": "employeeid"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 5,
"type": "table",
"value": "employees"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 4,
"type": "value",
"value": "Denver"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
{
"entity_id": 5,
"token_idxs": [
7
]
},
{
"entity_id": 6,
"token_idxs": [
8,
9
]
},
{
"entity_id": 7,
"token_idxs": [
14
]
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-VALUE",
"O"
] |
14,111
|
address
|
bird:train.json:5179
|
List all the counties in Georgia.
|
SELECT T2.county FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Georgia' GROUP BY T2.county
|
[
"List",
"all",
"the",
"counties",
"in",
"Georgia",
"."
] |
[
{
"id": 5,
"type": "column",
"value": "abbreviation"
},
{
"id": 2,
"type": "table",
"value": "country"
},
{
"id": 4,
"type": "value",
"value": "Georgia"
},
{
"id": 0,
"type": "column",
"value": "county"
},
{
"id": 1,
"type": "table",
"value": "state"
},
{
"id": 6,
"type": "column",
"value": "state"
},
{
"id": 3,
"type": "column",
"value": "name"
}
] |
[
{
"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": [
5
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": [
0,
1,
2
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
14,113
|
bakery_1
|
bird:test.json:1551
|
Find the first name and last name of a customer who visited on the earliest date.
|
SELECT T1.FirstName , T1.LastName FROM customers AS T1 JOIN receipts AS T2 ON T1.id = T2.CustomerId ORDER BY T2.date LIMIT 1
|
[
"Find",
"the",
"first",
"name",
"and",
"last",
"name",
"of",
"a",
"customer",
"who",
"visited",
"on",
"the",
"earliest",
"date",
"."
] |
[
{
"id": 6,
"type": "column",
"value": "customerid"
},
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 2,
"type": "table",
"value": "customers"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 3,
"type": "table",
"value": "receipts"
},
{
"id": 4,
"type": "column",
"value": "date"
},
{
"id": 5,
"type": "column",
"value": "id"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id": 5,
"token_idxs": [
0
]
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
14,115
|
social_media
|
bird:train.json:845
|
How many more tweets with a positive sentiment than the tweets with a neutral sentiment were posted by male users?
|
SELECT SUM(CASE WHEN T1.Sentiment > 0 THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.Sentiment = 0 THEN 1 ELSE 0 END) AS diff FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Male'
|
[
"How",
"many",
"more",
"tweets",
"with",
"a",
"positive",
"sentiment",
"than",
"the",
"tweets",
"with",
"a",
"neutral",
"sentiment",
"were",
"posted",
"by",
"male",
"users",
"?"
] |
[
{
"id": 6,
"type": "column",
"value": "sentiment"
},
{
"id": 0,
"type": "table",
"value": "twitter"
},
{
"id": 1,
"type": "column",
"value": "gender"
},
{
"id": 3,
"type": "column",
"value": "userid"
},
{
"id": 2,
"type": "value",
"value": "Male"
},
{
"id": 4,
"type": "value",
"value": "0"
},
{
"id": 5,
"type": "value",
"value": "1"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
18
]
},
{
"entity_id": 3,
"token_idxs": [
19
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": [
14
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
14,116
|
chicago_crime
|
bird:train.json:8734
|
What are the neighborhoods that are located in the North Center community area?
|
SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name = 'North Center'
|
[
"What",
"are",
"the",
"neighborhoods",
"that",
"are",
"located",
"in",
"the",
"North",
"Center",
"community",
"area",
"?"
] |
[
{
"id": 3,
"type": "column",
"value": "community_area_name"
},
{
"id": 0,
"type": "column",
"value": "neighborhood_name"
},
{
"id": 5,
"type": "column",
"value": "community_area_no"
},
{
"id": 1,
"type": "table",
"value": "community_area"
},
{
"id": 2,
"type": "table",
"value": "neighborhood"
},
{
"id": 4,
"type": "value",
"value": "North Center"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
11,
12
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9,
10
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"I-TABLE",
"O"
] |
14,119
|
college_2
|
spider:train_spider.json:1453
|
What are the names of students who haven't taken any Biology courses?
|
SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology')
|
[
"What",
"are",
"the",
"names",
"of",
"students",
"who",
"have",
"n't",
"taken",
"any",
"Biology",
"courses",
"?"
] |
[
{
"id": 5,
"type": "column",
"value": "dept_name"
},
{
"id": 7,
"type": "column",
"value": "course_id"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 6,
"type": "value",
"value": "Biology"
},
{
"id": 4,
"type": "table",
"value": "course"
},
{
"id": 3,
"type": "table",
"value": "takes"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "id"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": [
11
]
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
14,121
|
works_cycles
|
bird:train.json:7340
|
Which three sales regions have generated the most revenue thus far?
|
SELECT TerritoryID FROM SalesTerritory ORDER BY SalesYTD DESC LIMIT 3
|
[
"Which",
"three",
"sales",
"regions",
"have",
"generated",
"the",
"most",
"revenue",
"thus",
"far",
"?"
] |
[
{
"id": 0,
"type": "table",
"value": "salesterritory"
},
{
"id": 1,
"type": "column",
"value": "territoryid"
},
{
"id": 2,
"type": "column",
"value": "salesytd"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
14,122
|
sakila_1
|
spider:train_spider.json:2929
|
Return the most common full name among all actors.
|
SELECT first_name , last_name FROM actor GROUP BY first_name , last_name ORDER BY count(*) DESC LIMIT 1
|
[
"Return",
"the",
"most",
"common",
"full",
"name",
"among",
"all",
"actors",
"."
] |
[
{
"id": 1,
"type": "column",
"value": "first_name"
},
{
"id": 2,
"type": "column",
"value": "last_name"
},
{
"id": 0,
"type": "table",
"value": "actor"
}
] |
[
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
14,123
|
pilot_1
|
bird:test.json:1160
|
Return the names of the different planes, as well as the names of the oldest pilots who flew each.
|
SELECT pilot_name , plane_name , max(age) FROM pilotskills GROUP BY plane_name
|
[
"Return",
"the",
"names",
"of",
"the",
"different",
"planes",
",",
"as",
"well",
"as",
"the",
"names",
"of",
"the",
"oldest",
"pilots",
"who",
"flew",
"each",
"."
] |
[
{
"id": 0,
"type": "table",
"value": "pilotskills"
},
{
"id": 1,
"type": "column",
"value": "plane_name"
},
{
"id": 2,
"type": "column",
"value": "pilot_name"
},
{
"id": 3,
"type": "column",
"value": "age"
}
] |
[
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
16
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id": 6,
"token_idxs": []
},
{
"entity_id": 7,
"token_idxs": []
},
{
"entity_id": 8,
"token_idxs": []
},
{
"entity_id": 9,
"token_idxs": []
},
{
"entity_id": 10,
"token_idxs": []
},
{
"entity_id": 11,
"token_idxs": []
},
{
"entity_id": 12,
"token_idxs": []
},
{
"entity_id": 13,
"token_idxs": []
},
{
"entity_id": 14,
"token_idxs": []
},
{
"entity_id": 15,
"token_idxs": []
},
{
"entity_id": 16,
"token_idxs": []
},
{
"entity_id": 17,
"token_idxs": []
},
{
"entity_id": 18,
"token_idxs": []
},
{
"entity_id": 19,
"token_idxs": []
}
] |
[
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.