question_id int64 0 16.1k | db_id stringclasses 259
values | dber_id stringlengths 15 29 | question stringlengths 16 325 | SQL stringlengths 18 1.25k | tokens listlengths 4 62 | entities listlengths 0 21 | entity_to_token listlengths 20 20 | dber_tags listlengths 4 62 |
|---|---|---|---|---|---|---|---|---|
11,986 | aan_1 | bird:test.json:994 | What are the names of all authors who have more than 50 papers? | SELECT T1.name FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_id HAVING count(*) > 50 | [
"What",
"are",
"the",
"names",
"of",
"all",
"authors",
"who",
"have",
"more",
"than",
"50",
"papers",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "author_list"
},
{
"id": 0,
"type": "column",
"value": "author_id"
},
{
"id": 2,
"type": "table",
"value": "author"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "value",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
11,987 | loan_1 | spider:train_spider.json:3069 | What is the name of the bank branch that has lended the largest total amount in loans, specifically to customers with credit scores below 100? | SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY sum(T1.amount) DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"bank",
"branch",
"that",
"has",
"lended",
"the",
"largest",
"total",
"amount",
"in",
"loans",
",",
"specifically",
"to",
"customers",
"with",
"credit",
"scores",
"below",
"100",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "credit_score"
},
{
"id": 8,
"type": "column",
"value": "branch_id"
},
{
"id": 1,
"type": "table",
"value": "customer"
},
{
"id": 6,
"type": "column",
"value": "cust_id"
},
{
"id": 7,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
20
]
},
{
"entity_id": 2,
"token_idxs": [
22,
23
]
},
{
"entity_id": 3,
"token_idxs": [
25
]
},
{
"entity_id": 4,
"token_idxs": [
16
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
11,988 | social_media | bird:train.json:844 | Among all the tweets with a positive sentiment, how many of them were posted by male users in Australia? | SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID INNER JOIN user AS T3 ON T3.UserID = T1.UserID WHERE T2.Country = 'Australia' AND T3.Gender = 'Male' AND T1.Sentiment > 0 | [
"Among",
"all",
"the",
"tweets",
"with",
"a",
"positive",
"sentiment",
",",
"how",
"many",
"of",
"them",
"were",
"posted",
"by",
"male",
"users",
"in",
"Australia",
"?"
] | [
{
"id": 10,
"type": "column",
"value": "locationid"
},
{
"id": 5,
"type": "value",
"value": "Australia"
},
{
"id": 8,
"type": "column",
"value": "sentiment"
},
{
"id": 2,
"type": "table",
"value": "location"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
11,989 | address | bird:train.json:5201 | Name the country with the largest number of households in a residential area. | SELECT T1.county FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code GROUP BY T1.county ORDER BY T2.households DESC LIMIT 1 | [
"Name",
"the",
"country",
"with",
"the",
"largest",
"number",
"of",
"households",
"in",
"a",
"residential",
"area",
"."
] | [
{
"id": 3,
"type": "column",
"value": "households"
},
{
"id": 2,
"type": "table",
"value": "zip_data"
},
{
"id": 4,
"type": "column",
"value": "zip_code"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 0,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
11,990 | works_cycles | bird:train.json:7124 | How many people work in the finance department? | SELECT COUNT(T2.BusinessEntityID) FROM Department AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.DepartmentID = T2.DepartmentID WHERE T1.Name = 'Finance' | [
"How",
"many",
"people",
"work",
"in",
"the",
"finance",
"department",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "employeedepartmenthistory"
},
{
"id": 4,
"type": "column",
"value": "businessentityid"
},
{
"id": 5,
"type": "column",
"value": "departmentid"
},
{
"id": 0,
"type": "table",
"value": "department"
},
{
"id": 3,
... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
11,992 | cre_Students_Information_Systems | bird:test.json:455 | List the the address details and the biographical information of the students. | SELECT T1.address_details , T3.bio_data FROM Addresses AS T1 JOIN Students_Addresses AS T2 ON T1.address_id = T2.address_id JOIN Students AS T3 ON T2.student_id = T3.student_id | [
"List",
"the",
"the",
"address",
"details",
"and",
"the",
"biographical",
"information",
"of",
"the",
"students",
"."
] | [
{
"id": 4,
"type": "table",
"value": "students_addresses"
},
{
"id": 0,
"type": "column",
"value": "address_details"
},
{
"id": 5,
"type": "column",
"value": "student_id"
},
{
"id": 6,
"type": "column",
"value": "address_id"
},
{
"id": 3,
"type... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
11,993 | music_2 | spider:train_spider.json:5226 | Find the number of vocal types used in song "Demon Kitty Rag"? | SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag" | [
"Find",
"the",
"number",
"of",
"vocal",
"types",
"used",
"in",
"song",
"\"",
"Demon",
"Kitty",
"Rag",
"\"",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "Demon Kitty Rag"
},
{
"id": 0,
"type": "table",
"value": "vocals"
},
{
"id": 4,
"type": "column",
"value": "songid"
},
{
"id": 1,
"type": "table",
"value": "songs"
},
{
"id": 2,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O"
] |
11,994 | activity_1 | spider:train_spider.json:6749 | What are the first name and last name of Linda Smith's advisor? | SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = "Linda" AND T2.lname = "Smith" | [
"What",
"are",
"the",
"first",
"name",
"and",
"last",
"name",
"of",
"Linda",
"Smith",
"'s",
"advisor",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "faculty"
},
{
"id": 3,
"type": "table",
"value": "student"
},
{
"id": 5,
"type": "column",
"value": "advisor"
},
{
"id": 0,
"type": "column",
"value": "fname"
},
{
"id": 1,
"type": "column",
"value": "l... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
12
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
11,995 | superstore | bird:train.json:2440 | What is the highest profit order in the East superstore of customers from Houston, Texas? | SELECT T1.`Order ID` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T2.City = 'Houston' AND T2.State = 'Texas' ORDER BY T1.Profit DESC LIMIT 1 | [
"What",
"is",
"the",
"highest",
"profit",
"order",
"in",
"the",
"East",
"superstore",
"of",
"customers",
"from",
"Houston",
",",
"Texas",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "east_superstore"
},
{
"id": 4,
"type": "column",
"value": "Customer ID"
},
{
"id": 0,
"type": "column",
"value": "Order ID"
},
{
"id": 6,
"type": "value",
"value": "Houston"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
8,
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
11,996 | cars | bird:train.json:3103 | Which country produced the highest number of cars? Calculate the annual average number of cars that the said country produced from the very start to the present. | SELECT T2.country, CAST(COUNT(T1.ID) AS REAL) / COUNT(DISTINCT T1.model_year) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin GROUP BY T2.country ORDER BY COUNT(T2.country) DESC LIMIT 1 | [
"Which",
"country",
"produced",
"the",
"highest",
"number",
"of",
"cars",
"?",
"Calculate",
"the",
"annual",
"average",
"number",
"of",
"cars",
"that",
"the",
"said",
"country",
"produced",
"from",
"the",
"very",
"start",
"to",
"the",
"present",
"."
] | [
{
"id": 1,
"type": "table",
"value": "production"
},
{
"id": 4,
"type": "column",
"value": "model_year"
},
{
"id": 0,
"type": "column",
"value": "country"
},
{
"id": 2,
"type": "table",
"value": "country"
},
{
"id": 3,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
11,997 | bike_1 | spider:train_spider.json:126 | How many different bike ids are there? | SELECT count(DISTINCT bike_id) FROM trip | [
"How",
"many",
"different",
"bike",
"ids",
"are",
"there",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "bike_id"
},
{
"id": 0,
"type": "table",
"value": "trip"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
11,998 | hockey | bird:train.json:7692 | Which player who showed as the third goalie in a game has the biggest weight? Give the full name of the player. | SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.stint = 3 ORDER BY T1.weight DESC LIMIT 1 | [
"Which",
"player",
"who",
"showed",
"as",
"the",
"third",
"goalie",
"in",
"a",
"game",
"has",
"the",
"biggest",
"weight",
"?",
"Give",
"the",
"full",
"name",
"of",
"the",
"player",
"."
] | [
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 7,
"type": "column",
"value": "playerid"
},
{
"id": 3,
"type": "table",
"value": "goalies"
},
{
"id": 2,
"type": "table",
"valu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
19
]
},
{
"entity_id": 2,
"token_idxs": [
4,
5
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
11,999 | legislator | bird:train.json:4774 | Calculate the percentage of the total number of current female legislators and past female legislators. State which one has the highest value. | SELECT CAST(COUNT(CASE WHEN current.gender_bio = 'F' THEN current.bioguide_id ELSE NULL END) AS REAL) * 100 / ( SELECT COUNT(CASE WHEN historical.gender_bio = 'F' THEN historical.bioguide_id ELSE NULL END) FROM historical ) FROM current | [
"Calculate",
"the",
"percentage",
"of",
"the",
"total",
"number",
"of",
"current",
"female",
"legislators",
"and",
"past",
"female",
"legislators",
".",
"State",
"which",
"one",
"has",
"the",
"highest",
"value",
"."
] | [
{
"id": 3,
"type": "column",
"value": "bioguide_id"
},
{
"id": 2,
"type": "table",
"value": "historical"
},
{
"id": 4,
"type": "column",
"value": "gender_bio"
},
{
"id": 0,
"type": "table",
"value": "current"
},
{
"id": 1,
"type": "value",
... | [
{
"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": [
3
... | [
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,000 | toxicology | bird:dev.json:290 | Which toxic element can be found in the molecule TR151? | SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR151' | [
"Which",
"toxic",
"element",
"can",
"be",
"found",
"in",
"the",
"molecule",
"TR151",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "molecule_id"
},
{
"id": 1,
"type": "column",
"value": "element"
},
{
"id": 3,
"type": "value",
"value": "TR151"
},
{
"id": 0,
"type": "table",
"value": "atom"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
12,001 | ice_hockey_draft | bird:train.json:6974 | How many players were drafted by Arizona Coyotes whose height reaches 195 centimeters? | SELECT COUNT(T2.ELITEID) FROM height_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.height_id = T2.height WHERE T2.overallby = 'Arizona Coyotes' AND T1.height_in_cm = 195 | [
"How",
"many",
"players",
"were",
"drafted",
"by",
"Arizona",
"Coyotes",
"whose",
"height",
"reaches",
"195",
"centimeters",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Arizona Coyotes"
},
{
"id": 7,
"type": "column",
"value": "height_in_cm"
},
{
"id": 0,
"type": "table",
"value": "height_info"
},
{
"id": 1,
"type": "table",
"value": "playerinfo"
},
{
"id": 3,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
12,002 | books | bird:train.json:6094 | Among the books published by Birlinn in 2008, how many books have pages around 600 to 700? | SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Birlinn' AND STRFTIME('%Y', T1.publication_date) = '2008' AND T1.num_pages BETWEEN 600 AND 700 | [
"Among",
"the",
"books",
"published",
"by",
"Birlinn",
"in",
"2008",
",",
"how",
"many",
"books",
"have",
"pages",
"around",
"600",
"to",
"700",
"?"
] | [
{
"id": 10,
"type": "column",
"value": "publication_date"
},
{
"id": 3,
"type": "column",
"value": "publisher_name"
},
{
"id": 2,
"type": "column",
"value": "publisher_id"
},
{
"id": 1,
"type": "table",
"value": "publisher"
},
{
"id": 6,
"type"... | [
{
"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": [
5
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
12,003 | california_schools | bird:dev.json:58 | What is the phone number and extension number for the school with the zip code 95203-3704? Indicate the school's name. | SELECT Phone, Ext, School FROM schools WHERE Zip = '95203-3704' | [
"What",
"is",
"the",
"phone",
"number",
"and",
"extension",
"number",
"for",
"the",
"school",
"with",
"the",
"zip",
"code",
"95203",
"-",
"3704",
"?",
"Indicate",
"the",
"school",
"'s",
"name",
"."
] | [
{
"id": 5,
"type": "value",
"value": "95203-3704"
},
{
"id": 0,
"type": "table",
"value": "schools"
},
{
"id": 3,
"type": "column",
"value": "school"
},
{
"id": 1,
"type": "column",
"value": "phone"
},
{
"id": 2,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
22
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
21
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"enti... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O"
] |
12,004 | world_development_indicators | bird:train.json:2153 | List out the country name of lower earning countries | SELECT DISTINCT T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Low income' | [
"List",
"out",
"the",
"country",
"name",
"of",
"lower",
"earning",
"countries"
] | [
{
"id": 0,
"type": "column",
"value": "countryname"
},
{
"id": 3,
"type": "column",
"value": "incomegroup"
},
{
"id": 5,
"type": "column",
"value": "countrycode"
},
{
"id": 2,
"type": "table",
"value": "indicators"
},
{
"id": 4,
"type": "value"... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
12,005 | menu | bird:train.json:5518 | List down the name of dishes from menu created in April. | SELECT T2.name FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE SUBSTR(T1.created_at, 7, 1) = '4' | [
"List",
"down",
"the",
"name",
"of",
"dishes",
"from",
"menu",
"created",
"in",
"April",
"."
] | [
{
"id": 6,
"type": "column",
"value": "created_at"
},
{
"id": 1,
"type": "table",
"value": "menuitem"
},
{
"id": 5,
"type": "column",
"value": "dish_id"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "table",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O"
] |
12,006 | e_commerce | bird:test.json:97 | What are the addresses, towns, and county information for all customers who live in the United States? | SELECT address_line_1 , town_city , county FROM Customers WHERE Country = 'USA' | [
"What",
"are",
"the",
"addresses",
",",
"towns",
",",
"and",
"county",
"information",
"for",
"all",
"customers",
"who",
"live",
"in",
"the",
"United",
"States",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "address_line_1"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 2,
"type": "column",
"value": "town_city"
},
{
"id": 4,
"type": "column",
"value": "country"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,007 | machine_repair | spider:train_spider.json:2261 | Show the starting years shared by technicians from team "CLE" and "CWS". | SELECT Starting_Year FROM technician WHERE Team = "CLE" INTERSECT SELECT Starting_Year FROM technician WHERE Team = "CWS" | [
"Show",
"the",
"starting",
"years",
"shared",
"by",
"technicians",
"from",
"team",
"\"",
"CLE",
"\"",
"and",
"\"",
"CWS",
"\"",
"."
] | [
{
"id": 1,
"type": "column",
"value": "starting_year"
},
{
"id": 0,
"type": "table",
"value": "technician"
},
{
"id": 2,
"type": "column",
"value": "team"
},
{
"id": 3,
"type": "column",
"value": "CLE"
},
{
"id": 4,
"type": "column",
"value... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
14
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
12,008 | olympics | bird:train.json:5067 | In which city was the game held where the oldest competitor participated? | SELECT T4.city_name FROM games_competitor AS T1 INNER JOIN games AS T2 ON T1.games_id = T2.id INNER JOIN games_city AS T3 ON T1.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id ORDER BY T1.age DESC LIMIT 1 | [
"In",
"which",
"city",
"was",
"the",
"game",
"held",
"where",
"the",
"oldest",
"competitor",
"participated",
"?"
] | [
{
"id": 6,
"type": "table",
"value": "games_competitor"
},
{
"id": 3,
"type": "table",
"value": "games_city"
},
{
"id": 0,
"type": "column",
"value": "city_name"
},
{
"id": 8,
"type": "column",
"value": "games_id"
},
{
"id": 4,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
12,009 | customers_card_transactions | spider:train_spider.json:672 | What are the other account details for the account with the name 338? | SELECT other_account_details FROM Accounts WHERE account_name = "338" | [
"What",
"are",
"the",
"other",
"account",
"details",
"for",
"the",
"account",
"with",
"the",
"name",
"338",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "other_account_details"
},
{
"id": 2,
"type": "column",
"value": "account_name"
},
{
"id": 0,
"type": "table",
"value": "accounts"
},
{
"id": 3,
"type": "column",
"value": "338"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
3,
5
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
12,010 | art_1 | bird:test.json:1267 | What are the names of paintings and scupltures created between 1900 and 1950? | SELECT title FROM paintings WHERE YEAR BETWEEN 1900 AND 1950 UNION SELECT title FROM sculptures WHERE YEAR BETWEEN 1900 AND 1950 | [
"What",
"are",
"the",
"names",
"of",
" ",
"paintings",
"and",
"scupltures",
"created",
"between",
"1900",
"and",
"1950",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "sculptures"
},
{
"id": 0,
"type": "table",
"value": "paintings"
},
{
"id": 2,
"type": "column",
"value": "title"
},
{
"id": 3,
"type": "column",
"value": "year"
},
{
"id": 4,
"type": "value",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
12,011 | codebase_comments | bird:train.json:687 | How many solution path does the repository with 111 stars, 58 forks, and 111 watchers? | SELECT COUNT(T2.Path) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 111 AND T1.Forks = 58 AND T1.Watchers = 111 | [
"How",
"many",
"solution",
"path",
"does",
"the",
"repository",
"with",
"111",
"stars",
",",
"58",
"forks",
",",
"and",
"111",
"watchers",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 9,
"type": "column",
"value": "watchers"
},
{
"id": 4,
"type": "column",
"value": "repoid"
},
{
"id": 5,
"type": "column",
"value": "stars"
},
{
"id": 7,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
12,012 | address | bird:train.json:5208 | Among the cities with alias St Thomas, provide the type of postal point for each city. | SELECT DISTINCT T2.type FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.alias = 'St Thomas' | [
"Among",
"the",
"cities",
"with",
"alias",
"St",
"Thomas",
",",
"provide",
"the",
"type",
"of",
"postal",
"point",
"for",
"each",
"city",
"."
] | [
{
"id": 4,
"type": "value",
"value": "St Thomas"
},
{
"id": 2,
"type": "table",
"value": "zip_data"
},
{
"id": 5,
"type": "column",
"value": "zip_code"
},
{
"id": 1,
"type": "table",
"value": "alias"
},
{
"id": 3,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
5,
6
]
},
{
"entity_id"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,013 | student_assessment | spider:train_spider.json:67 | What is detail of the student who most recently registered course? | SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1 | [
"What",
"is",
"detail",
"of",
"the",
"student",
"who",
"most",
"recently",
"registered",
"course",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "student_course_registrations"
},
{
"id": 3,
"type": "column",
"value": "registration_date"
},
{
"id": 0,
"type": "column",
"value": "student_details"
},
{
"id": 4,
"type": "column",
"value": "student_id"
},
{
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
12,014 | social_media | bird:train.json:776 | How many tweets are in English? | SELECT COUNT(TweetID) AS tweet_number FROM twitter WHERE Lang = 'en' | [
"How",
"many",
"tweets",
"are",
"in",
"English",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "twitter"
},
{
"id": 3,
"type": "column",
"value": "tweetid"
},
{
"id": 1,
"type": "column",
"value": "lang"
},
{
"id": 2,
"type": "value",
"value": "en"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
12,015 | mondial_geo | bird:train.json:8417 | In which city is the sea whose depth is 4232 meters less than that of the Bay of Bengal? | SELECT T2.City FROM sea AS T1 INNER JOIN located AS T2 ON T1.Name = T2.Sea INNER JOIN city AS T3 ON T3.Name = T2.City WHERE ( SELECT Depth FROM sea WHERE Name LIKE '%Bengal%' ) - T1.Depth = 4235 | [
"In",
"which",
"city",
"is",
"the",
"sea",
"whose",
"depth",
"is",
"4232",
"meters",
"less",
"than",
"that",
"of",
"the",
"Bay",
"of",
"Bengal",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "%Bengal%"
},
{
"id": 4,
"type": "table",
"value": "located"
},
{
"id": 6,
"type": "column",
"value": "depth"
},
{
"id": 0,
"type": "column",
"value": "city"
},
{
"id": 1,
"type": "table",
"value": "city... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
12,016 | retail_world | bird:train.json:6327 | Who is the supplier of the product with the highest unit price? | SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.UnitPrice = ( SELECT MAX(UnitPrice) FROM Products ) | [
"Who",
"is",
"the",
"supplier",
"of",
"the",
"product",
"with",
"the",
"highest",
"unit",
"price",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "companyname"
},
{
"id": 4,
"type": "column",
"value": "supplierid"
},
{
"id": 2,
"type": "table",
"value": "suppliers"
},
{
"id": 3,
"type": "column",
"value": "unitprice"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
10,
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
12,017 | retail_world | bird:train.json:6324 | Please list the names of all the products whose supplier is in Japan. | SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.Country = 'Japan' | [
"Please",
"list",
"the",
"names",
"of",
"all",
"the",
"products",
"whose",
"supplier",
"is",
"in",
"Japan",
"."
] | [
{
"id": 0,
"type": "column",
"value": "productname"
},
{
"id": 5,
"type": "column",
"value": "supplierid"
},
{
"id": 2,
"type": "table",
"value": "suppliers"
},
{
"id": 1,
"type": "table",
"value": "products"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
12,018 | formula_1 | bird:dev.json:917 | Which website should I go to if I want to know more about Anthony Davidson? | SELECT url FROM drivers WHERE forename = 'Anthony' AND surname = 'Davidson' | [
"Which",
"website",
"should",
"I",
"go",
"to",
"if",
"I",
"want",
"to",
"know",
"more",
"about",
"Anthony",
"Davidson",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "forename"
},
{
"id": 5,
"type": "value",
"value": "Davidson"
},
{
"id": 0,
"type": "table",
"value": "drivers"
},
{
"id": 3,
"type": "value",
"value": "Anthony"
},
{
"id": 4,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
14
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O"
] |
12,019 | election | spider:train_spider.json:2788 | Show the name of the party that has at least two records. | SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2 | [
"Show",
"the",
"name",
"of",
"the",
"party",
"that",
"has",
"at",
"least",
"two",
"records",
"."
] | [
{
"id": 0,
"type": "table",
"value": "party"
},
{
"id": 1,
"type": "column",
"value": "party"
},
{
"id": 2,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,020 | olympics | bird:train.json:4920 | Among all the Olympic competitors from Finland, how many of them are female? | SELECT COUNT(T3.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 = 'Finland' AND T3.gender = 'F' | [
"Among",
"all",
"the",
"Olympic",
"competitors",
"from",
"Finland",
",",
"how",
"many",
"of",
"them",
"are",
"female",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "person_region"
},
{
"id": 5,
"type": "column",
"value": "region_name"
},
{
"id": 2,
"type": "table",
"value": "noc_region"
},
{
"id": 4,
"type": "column",
"value": "person_id"
},
{
"id": 9,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O"
] |
12,021 | boat_1 | bird:test.json:849 | Return the unique boat ids (bid) of all reserved boats. | SELECT DISTINCT bid FROM Reserves | [
"Return",
"the",
"unique",
"boat",
"ids",
"(",
"bid",
")",
"of",
"all",
"reserved",
"boats",
"."
] | [
{
"id": 0,
"type": "table",
"value": "reserves"
},
{
"id": 1,
"type": "column",
"value": "bid"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
12,022 | movie_3 | bird:train.json:9182 | List the name of the films that can only be found in store id 2. | SELECT T1.title FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.store_id = 2 | [
"List",
"the",
"name",
"of",
"the",
"films",
"that",
"can",
"only",
"be",
"found",
"in",
"store",
"i",
"d",
"2",
"."
] | [
{
"id": 2,
"type": "table",
"value": "inventory"
},
{
"id": 3,
"type": "column",
"value": "store_id"
},
{
"id": 5,
"type": "column",
"value": "film_id"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 1,
"type": "table",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
12,
13,
14
]
},
{
"entity_id": 4,
"token_idxs": [
15
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
12,023 | european_football_1 | bird:train.json:2782 | For all the games ended up with 1-1, what percentage of them are from Liga NOS division? | SELECT CAST(COUNT(CASE WHEN T2.name = 'Liga NOS' THEN T1.Div ELSE NULL END) AS REAL) * 100 / COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.FTHG = 1 AND FTAG = 1 | [
"For",
"all",
"the",
"games",
"ended",
"up",
"with",
"1",
"-",
"1",
",",
"what",
"percentage",
"of",
"them",
"are",
"from",
"Liga",
"NOS",
"division",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "divisions"
},
{
"id": 3,
"type": "column",
"value": "division"
},
{
"id": 9,
"type": "value",
"value": "Liga NOS"
},
{
"id": 0,
"type": "table",
"value": "matchs"
},
{
"id": 4,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
19
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
7
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"O"
] |
12,024 | video_games | bird:train.json:3318 | Please list the names of the publishers of all the puzzle games. | SELECT DISTINCT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T4.genre_name = 'Puzzle' | [
"Please",
"list",
"the",
"names",
"of",
"the",
"publishers",
"of",
"all",
"the",
"puzzle",
"games",
"."
] | [
{
"id": 0,
"type": "column",
"value": "publisher_name"
},
{
"id": 8,
"type": "table",
"value": "game_publisher"
},
{
"id": 9,
"type": "column",
"value": "publisher_id"
},
{
"id": 2,
"type": "column",
"value": "genre_name"
},
{
"id": 4,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
12,025 | cars | bird:train.json:3136 | List the price of Ford cars from model 1970 to 1980. | SELECT DISTINCT T3.price FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN price AS T3 ON T3.ID = T2.ID WHERE T1.car_name LIKE 'ford%' AND T2.model_year BETWEEN 1970 AND 1980 | [
"List",
"the",
"price",
"of",
"Ford",
"cars",
"from",
"model",
"1970",
"to",
"1980",
"."
] | [
{
"id": 3,
"type": "table",
"value": "production"
},
{
"id": 7,
"type": "column",
"value": "model_year"
},
{
"id": 5,
"type": "column",
"value": "car_name"
},
{
"id": 0,
"type": "column",
"value": "price"
},
{
"id": 1,
"type": "table",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
12,026 | book_1 | bird:test.json:537 | Show all book isbns and the total amount ordered for each. | SELECT isbn , sum(amount) FROM Books_Order GROUP BY isbn | [
"Show",
"all",
"book",
"isbns",
"and",
"the",
"total",
"amount",
"ordered",
"for",
"each",
"."
] | [
{
"id": 0,
"type": "table",
"value": "books_order"
},
{
"id": 2,
"type": "column",
"value": "amount"
},
{
"id": 1,
"type": "column",
"value": "isbn"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
12,027 | sales | bird:train.json:5462 | Among the employee names, what is the most common middle initial? | SELECT MiddleInitial FROM Employees GROUP BY MiddleInitial ORDER BY COUNT(MiddleInitial) DESC LIMIT 1 | [
"Among",
"the",
"employee",
"names",
",",
"what",
"is",
"the",
"most",
"common",
"middle",
"initial",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "middleinitial"
},
{
"id": 0,
"type": "table",
"value": "employees"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
10,
11
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
12,028 | election | spider:train_spider.json:2795 | Which people severed as comptroller most frequently? Give me the name of the person and the frequency count. | SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1 | [
"Which",
"people",
"severed",
"as",
"comptroller",
"most",
"frequently",
"?",
"Give",
"me",
"the",
"name",
"of",
"the",
"person",
"and",
"the",
"frequency",
"count",
"."
] | [
{
"id": 1,
"type": "column",
"value": "comptroller"
},
{
"id": 0,
"type": "table",
"value": "party"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,029 | flight_4 | spider:train_spider.json:6879 | Find the name of airline which runs the most number of routes. | SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1 | [
"Find",
"the",
"name",
"of",
"airline",
"which",
"runs",
"the",
"most",
"number",
"of",
"routes",
"."
] | [
{
"id": 1,
"type": "table",
"value": "airlines"
},
{
"id": 2,
"type": "table",
"value": "routes"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "column",
"value": "alid"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,030 | donor | bird:train.json:3183 | How many donors in Los Angeles donated to school in another city? | SELECT COUNT(T2.schoolid) FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.donor_city = 'Los Angeles' AND T2.school_city NOT LIKE 'Los Angeles' | [
"How",
"many",
"donors",
"in",
"Los",
"Angeles",
"donated",
"to",
"school",
"in",
"another",
"city",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Los Angeles"
},
{
"id": 6,
"type": "column",
"value": "school_city"
},
{
"id": 4,
"type": "column",
"value": "donor_city"
},
{
"id": 0,
"type": "table",
"value": "donations"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10,
11
]
},
{
"entity_id... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
12,031 | cre_Doc_and_collections | bird:test.json:692 | What are the names of the collections that are not the parent of the other collections? | SELECT Collection_Name FROM Collections EXCEPT SELECT T2.Collection_Name FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID; | [
"What",
"are",
"the",
"names",
"of",
"the",
"collections",
"that",
"are",
"not",
"the",
"parent",
"of",
"the",
"other",
"collections",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "parent_collection_id"
},
{
"id": 1,
"type": "column",
"value": "collection_name"
},
{
"id": 3,
"type": "column",
"value": "collection_id"
},
{
"id": 0,
"type": "table",
"value": "collections"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
12,032 | image_and_language | bird:train.json:7522 | Give all the bounding boxes for image 2222 whose object classes are feathers. | SELECT T2.X, T2.Y, T2.H, T2.W FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 2222 AND T1.OBJ_CLASS = 'feathers' | [
"Give",
"all",
"the",
"bounding",
"boxes",
"for",
"image",
"2222",
"whose",
"object",
"classes",
"are",
"feathers",
"."
] | [
{
"id": 6,
"type": "column",
"value": "obj_class_id"
},
{
"id": 4,
"type": "table",
"value": "obj_classes"
},
{
"id": 9,
"type": "column",
"value": "obj_class"
},
{
"id": 10,
"type": "value",
"value": "feathers"
},
{
"id": 5,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
12,033 | cre_Docs_and_Epenses | spider:train_spider.json:6441 | List all budget type codes and descriptions. | SELECT budget_type_code , budget_type_description FROM Ref_budget_codes | [
"List",
"all",
"budget",
"type",
"codes",
"and",
"descriptions",
"."
] | [
{
"id": 2,
"type": "column",
"value": "budget_type_description"
},
{
"id": 0,
"type": "table",
"value": "ref_budget_codes"
},
{
"id": 1,
"type": "column",
"value": "budget_type_code"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O"
] |
12,034 | retail_world | bird:train.json:6381 | Among the seafood products, which product have the highest total production of the production? | SELECT T1.ProductName FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.CategoryName = 'Seafood' ORDER BY T1.UnitsInStock + T1.UnitsOnOrder DESC LIMIT 1 | [
"Among",
"the",
"seafood",
"products",
",",
"which",
"product",
"have",
"the",
"highest",
"total",
"production",
"of",
"the",
"production",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "categoryname"
},
{
"id": 6,
"type": "column",
"value": "unitsinstock"
},
{
"id": 7,
"type": "column",
"value": "unitsonorder"
},
{
"id": 0,
"type": "column",
"value": "productname"
},
{
"id": 2,
"type": "t... | [
{
"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": [
2
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,035 | donor | bird:train.json:3199 | Who is the vendor of the resources needed by the project that had the highest cost of optional tip? | SELECT T1.vendor_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid ORDER BY T2.total_price_including_optional_support - T2.total_price_including_optional_support DESC LIMIT 1 | [
"Who",
"is",
"the",
"vendor",
"of",
"the",
"resources",
"needed",
"by",
"the",
"project",
"that",
"had",
"the",
"highest",
"cost",
"of",
"optional",
"tip",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "total_price_including_optional_support"
},
{
"id": 0,
"type": "column",
"value": "vendor_name"
},
{
"id": 1,
"type": "table",
"value": "resources"
},
{
"id": 3,
"type": "column",
"value": "projectid"
},
{
"id"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,037 | law_episode | bird:train.json:1289 | How many people were not credited at the end of the "Admissions" episode? | SELECT COUNT(T2.person_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Admissions' AND T2.credited = 'false' | [
"How",
"many",
"people",
"were",
"not",
"credited",
"at",
"the",
"end",
"of",
"the",
"\"",
"Admissions",
"\"",
"episode",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "episode_id"
},
{
"id": 5,
"type": "value",
"value": "Admissions"
},
{
"id": 2,
"type": "column",
"value": "person_id"
},
{
"id": 6,
"type": "column",
"value": "credited"
},
{
"id": 0,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O"
] |
12,038 | small_bank_1 | spider:train_spider.json:1811 | What is the savings balance of the account belonging to the customer with the highest checking balance? | SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1 | [
"What",
"is",
"the",
"savings",
"balance",
"of",
"the",
"account",
"belonging",
"to",
"the",
"customer",
"with",
"the",
"highest",
"checking",
"balance",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "accounts"
},
{
"id": 3,
"type": "table",
"value": "checking"
},
{
"id": 0,
"type": "column",
"value": "balance"
},
{
"id": 1,
"type": "table",
"value": "savings"
},
{
"id": 4,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O"
] |
12,039 | sing_contest | bird:test.json:756 | What are the average rhythm scores for the songs in each different language? | SELECT avg(T2.rhythm_tempo) , T1.language FROM songs AS T1 JOIN performance_score AS T2 ON T2.songs_id = T1.id GROUP BY T1.language | [
"What",
"are",
"the",
"average",
"rhythm",
"scores",
"for",
"the",
"songs",
"in",
"each",
"different",
"language",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "performance_score"
},
{
"id": 3,
"type": "column",
"value": "rhythm_tempo"
},
{
"id": 0,
"type": "column",
"value": "language"
},
{
"id": 4,
"type": "column",
"value": "songs_id"
},
{
"id": 1,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
12,040 | thrombosis_prediction | bird:dev.json:1264 | Among the patients have blood clots in veins, how many of them have a normal level of complement 4? | SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.C4 > 10 AND T1.Diagnosis = 'APS' | [
"Among",
"the",
"patients",
"have",
"blood",
"clots",
"in",
"veins",
",",
"how",
"many",
"of",
"them",
"have",
"a",
"normal",
"level",
"of",
"complement",
"4",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "laboratory"
},
{
"id": 5,
"type": "column",
"value": "diagnosis"
},
{
"id": 0,
"type": "table",
"value": "patient"
},
{
"id": 6,
"type": "value",
"value": "APS"
},
{
"id": 2,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
19
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
12,041 | institution_sports | bird:test.json:1677 | Show the provinces that have both institutions founded before 1920 and institutions founded after 1950. | SELECT Province FROM institution WHERE Founded < 1920 INTERSECT SELECT Province FROM institution WHERE Founded > 1950 | [
"Show",
"the",
"provinces",
"that",
"have",
"both",
"institutions",
"founded",
"before",
"1920",
"and",
"institutions",
"founded",
"after",
"1950",
"."
] | [
{
"id": 0,
"type": "table",
"value": "institution"
},
{
"id": 1,
"type": "column",
"value": "province"
},
{
"id": 2,
"type": "column",
"value": "founded"
},
{
"id": 3,
"type": "value",
"value": "1920"
},
{
"id": 4,
"type": "value",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
12,042 | formula_1 | bird:dev.json:907 | List all races in 2017 and the hosting country order by date of the event. | SELECT DISTINCT T2.name, T1.country FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2017 ORDER BY T2.date ASC | [
"List",
"all",
"races",
"in",
"2017",
"and",
"the",
"hosting",
"country",
"order",
"by",
"date",
"of",
"the",
"event",
"."
] | [
{
"id": 7,
"type": "column",
"value": "circuitid"
},
{
"id": 2,
"type": "table",
"value": "circuits"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 3,
"type": "table",
"value": "races"
},
{
"id": 0,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
12,044 | cre_Docs_and_Epenses | spider:train_spider.json:6428 | Return the description of the document type name 'Film'. | SELECT document_type_description FROM Ref_document_types WHERE document_type_name = "Film" | [
"Return",
"the",
"description",
"of",
"the",
"document",
"type",
"name",
"'",
"Film",
"'",
"."
] | [
{
"id": 1,
"type": "column",
"value": "document_type_description"
},
{
"id": 0,
"type": "table",
"value": "ref_document_types"
},
{
"id": 2,
"type": "column",
"value": "document_type_name"
},
{
"id": 3,
"type": "column",
"value": "Film"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
12,045 | warehouse_1 | bird:test.json:1684 | What are all the different contents stored in boxes in New York? | SELECT DISTINCT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE LOCATION = 'New York' | [
"What",
"are",
"all",
"the",
"different",
"contents",
"stored",
"in",
"boxes",
"in",
"New",
"York",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "warehouses"
},
{
"id": 5,
"type": "column",
"value": "warehouse"
},
{
"id": 0,
"type": "column",
"value": "contents"
},
{
"id": 3,
"type": "column",
"value": "location"
},
{
"id": 4,
"type": "value",
"v... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10,
11
]
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
12,046 | image_and_language | bird:train.json:7542 | How many attribute classes are there for image id 5? | SELECT COUNT(ATT_CLASS_ID) FROM IMG_OBJ_ATT WHERE IMG_ID = 5 | [
"How",
"many",
"attribute",
"classes",
"are",
"there",
"for",
"image",
"i",
"d",
"5",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "att_class_id"
},
{
"id": 0,
"type": "table",
"value": "img_obj_att"
},
{
"id": 1,
"type": "column",
"value": "img_id"
},
{
"id": 2,
"type": "value",
"value": "5"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
12,047 | college_2 | spider:train_spider.json:1356 | How many rooms whose capacity is less than 50 does the Lamberton building have? | SELECT count(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50 | [
"How",
"many",
"rooms",
"whose",
"capacity",
"is",
"less",
"than",
"50",
"does",
"the",
"Lamberton",
"building",
"have",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "classroom"
},
{
"id": 2,
"type": "value",
"value": "Lamberton"
},
{
"id": 1,
"type": "column",
"value": "building"
},
{
"id": 3,
"type": "column",
"value": "capacity"
},
{
"id": 4,
"type": "value",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O"
] |
12,048 | medicine_enzyme_interaction | spider:train_spider.json:943 | What are the names of enzymes who does not produce 'Heme'? | SELECT name FROM enzyme WHERE product != 'Heme' | [
"What",
"are",
"the",
"names",
"of",
"enzymes",
"who",
"does",
"not",
"produce",
"'",
"Heme",
"'",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "product"
},
{
"id": 0,
"type": "table",
"value": "enzyme"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value",
"value": "Heme"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
12,049 | warehouse_1 | bird:test.json:1753 | Find the number of distinct types of contents in each warehouse. | SELECT count(DISTINCT CONTENTS) , warehouse FROM boxes GROUP BY warehouse | [
"Find",
"the",
"number",
"of",
"distinct",
"types",
"of",
"contents",
"in",
"each",
"warehouse",
"."
] | [
{
"id": 1,
"type": "column",
"value": "warehouse"
},
{
"id": 2,
"type": "column",
"value": "contents"
},
{
"id": 0,
"type": "table",
"value": "boxes"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
12,050 | school_player | spider:train_spider.json:4868 | What is the average enrollment of schools? | SELECT avg(Enrollment) FROM school | [
"What",
"is",
"the",
"average",
"enrollment",
"of",
"schools",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "enrollment"
},
{
"id": 0,
"type": "table",
"value": "school"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
12,051 | department_store | spider:train_spider.json:4773 | What are the average amount purchased and value purchased for the supplier who supplies the most products. | SELECT avg(total_amount_purchased) , avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1) | [
"What",
"are",
"the",
"average",
"amount",
"purchased",
"and",
"value",
"purchased",
"for",
"the",
"supplier",
"who",
"supplies",
"the",
"most",
"products",
"."
] | [
{
"id": 2,
"type": "column",
"value": "total_amount_purchased"
},
{
"id": 3,
"type": "column",
"value": "total_value_purchased"
},
{
"id": 0,
"type": "table",
"value": "product_suppliers"
},
{
"id": 1,
"type": "column",
"value": "supplier_id"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
4,
5
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"e... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,052 | apartment_rentals | spider:train_spider.json:1196 | Show the start dates and end dates of all the apartment bookings. | SELECT booking_start_date , booking_end_date FROM Apartment_Bookings | [
"Show",
"the",
"start",
"dates",
"and",
"end",
"dates",
"of",
"all",
"the",
"apartment",
"bookings",
"."
] | [
{
"id": 0,
"type": "table",
"value": "apartment_bookings"
},
{
"id": 1,
"type": "column",
"value": "booking_start_date"
},
{
"id": 2,
"type": "column",
"value": "booking_end_date"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
12,053 | soccer_2016 | bird:train.json:1879 | How many matches have Mumbai Indians won? | SELECT SUM(CASE WHEN T2.Team_Name = 'Mumbai Indians' THEN 1 ELSE 0 END) FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Match_Winner | [
"How",
"many",
"matches",
"have",
"Mumbai",
"Indians",
"won",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "Mumbai Indians"
},
{
"id": 3,
"type": "column",
"value": "match_winner"
},
{
"id": 6,
"type": "column",
"value": "team_name"
},
{
"id": 2,
"type": "column",
"value": "team_id"
},
{
"id": 0,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
12,055 | college_2 | spider:train_spider.json:1491 | What are the names of all instructors with a higher salary than any of the instructors in the Biology department? | SELECT name FROM instructor WHERE salary > (SELECT max(salary) FROM instructor WHERE dept_name = 'Biology') | [
"What",
"are",
"the",
"names",
"of",
"all",
"instructors",
"with",
"a",
"higher",
"salary",
"than",
"any",
"of",
"the",
"instructors",
"in",
"the",
"Biology",
"department",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "instructor"
},
{
"id": 3,
"type": "column",
"value": "dept_name"
},
{
"id": 4,
"type": "value",
"value": "Biology"
},
{
"id": 2,
"type": "column",
"value": "salary"
},
{
"id": 1,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
19
]
},
{
"entity_id": 4,
"token_idxs": [
18
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
12,056 | books | bird:train.json:6079 | What is the average of English books among all books published by Carole Marsh Mysteries? | SELECT CAST(SUM(CASE WHEN T1.language_name = 'English' THEN 1 ELSE 0 END) AS REAL) / COUNT(*) FROM book_language AS T1 INNER JOIN book AS T2 ON T1.language_id = T2.language_id INNER JOIN publisher AS T3 ON T3.publisher_id = T2.publisher_id WHERE T3.publisher_name = 'Carole Marsh Mysteries' | [
"What",
"is",
"the",
"average",
"of",
"English",
"books",
"among",
"all",
"books",
"published",
"by",
"Carole",
"Marsh",
"Mysteries",
"?"
] | [
{
"id": 2,
"type": "value",
"value": "Carole Marsh Mysteries"
},
{
"id": 1,
"type": "column",
"value": "publisher_name"
},
{
"id": 3,
"type": "table",
"value": "book_language"
},
{
"id": 9,
"type": "column",
"value": "language_name"
},
{
"id": 5,
... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12,
13,
14
]
},
{
"entity_id": 3,
"token_idxs": [
6,
7
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"I-TABLE",
"O",
"B-TABLE",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
12,058 | game_1 | spider:train_spider.json:6042 | What are the ids of all students and number of hours played? | SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid | [
"What",
"are",
"the",
"ids",
"of",
"all",
"students",
"and",
"number",
"of",
"hours",
"played",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "hours_played"
},
{
"id": 0,
"type": "table",
"value": "plays_games"
},
{
"id": 1,
"type": "column",
"value": "stuid"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
12,059 | headphone_store | bird:test.json:927 | Find the number of headphones with a price higher than 200 for each class. | SELECT count(*) , CLASS FROM headphone WHERE price > 200 GROUP BY CLASS | [
"Find",
"the",
"number",
"of",
"headphones",
"with",
"a",
"price",
"higher",
"than",
"200",
"for",
"each",
"class",
"."
] | [
{
"id": 0,
"type": "table",
"value": "headphone"
},
{
"id": 1,
"type": "column",
"value": "class"
},
{
"id": 2,
"type": "column",
"value": "price"
},
{
"id": 3,
"type": "value",
"value": "200"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O"
] |
12,060 | flight_1 | spider:train_spider.json:387 | Show origins of all flights with destination Honolulu. | SELECT origin FROM Flight WHERE destination = "Honolulu" | [
"Show",
"origins",
"of",
"all",
"flights",
"with",
"destination",
"Honolulu",
"."
] | [
{
"id": 2,
"type": "column",
"value": "destination"
},
{
"id": 3,
"type": "column",
"value": "Honolulu"
},
{
"id": 0,
"type": "table",
"value": "flight"
},
{
"id": 1,
"type": "column",
"value": "origin"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
12,061 | match_season | spider:train_spider.json:1095 | What are all the players who played in match season, sorted by college in ascending alphabetical order? | SELECT player FROM match_season ORDER BY College ASC | [
"What",
"are",
"all",
"the",
"players",
"who",
"played",
"in",
"match",
"season",
",",
"sorted",
"by",
"college",
"in",
"ascending",
"alphabetical",
"order",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "match_season"
},
{
"id": 2,
"type": "column",
"value": "college"
},
{
"id": 1,
"type": "column",
"value": "player"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8,
9
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
12,062 | world_development_indicators | bird:train.json:2148 | How many country uses the 2008 System of National Accounts methodology? List our their table name. | SELECT TableName FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 2008 System of National Accounts methodology.' | [
"How",
"many",
"country",
"uses",
"the",
"2008",
"System",
"of",
"National",
"Accounts",
"methodology",
"?",
"List",
"our",
"their",
"table",
"name",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Country uses the 2008 System of National Accounts methodology."
},
{
"id": 2,
"type": "column",
"value": "systemofnationalaccounts"
},
{
"id": 1,
"type": "column",
"value": "tablename"
},
{
"id": 0,
"type": "table",
"v... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
15,
16
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7,
8,
9
]
},
{
"entity_id": 3,
"token_idxs": [
3,
4,
5,
10
]
},
... | [
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
12,063 | public_review_platform | bird:train.json:4131 | What is the closing and opening time of businesses located at Glendale with highest star rating? | SELECT T2.opening_time, T2.closing_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Glendale' ORDER BY T1.stars DESC LIMIT 1 | [
"What",
"is",
"the",
"closing",
"and",
"opening",
"time",
"of",
"businesses",
"located",
"at",
"Glendale",
"with",
"highest",
"star",
"rating",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "business_hours"
},
{
"id": 0,
"type": "column",
"value": "opening_time"
},
{
"id": 1,
"type": "column",
"value": "closing_time"
},
{
"id": 7,
"type": "column",
"value": "business_id"
},
{
"id": 2,
"type": "... | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
12,064 | computer_student | bird:train.json:1036 | Which professor taught the most courses and what is the position of this person in the university? | SELECT T1.p_id, T1.hasPosition FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id GROUP BY T1.p_id ORDER BY COUNT(T2.course_id) DESC LIMIT 1 | [
"Which",
"professor",
"taught",
"the",
"most",
"courses",
"and",
"what",
"is",
"the",
"position",
"of",
"this",
"person",
"in",
"the",
"university",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "hasposition"
},
{
"id": 4,
"type": "column",
"value": "course_id"
},
{
"id": 3,
"type": "table",
"value": "taughtby"
},
{
"id": 2,
"type": "table",
"value": "person"
},
{
"id": 0,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entit... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
12,065 | food_inspection | bird:train.json:8828 | Mention the violation type ID and description of high risk category for STARBUCKS. | SELECT DISTINCT T1.violation_type_id, T1.description FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'STARBUCKS' AND T1.risk_category = 'High Risk' | [
"Mention",
"the",
"violation",
"type",
"ID",
"and",
"description",
"of",
"high",
"risk",
"category",
"for",
"STARBUCKS",
"."
] | [
{
"id": 0,
"type": "column",
"value": "violation_type_id"
},
{
"id": 7,
"type": "column",
"value": "risk_category"
},
{
"id": 1,
"type": "column",
"value": "description"
},
{
"id": 4,
"type": "column",
"value": "business_id"
},
{
"id": 2,
"type... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
12,068 | products_gen_characteristics | spider:train_spider.json:5597 | Give the names, details, and data types of characteristics that are not found in any product. | SELECT characteristic_name , other_characteristic_details , characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_i... | [
"Give",
"the",
"names",
",",
"details",
",",
"and",
"data",
"types",
"of",
"characteristics",
"that",
"are",
"not",
"found",
"in",
"any",
"product",
"."
] | [
{
"id": 2,
"type": "column",
"value": "other_characteristic_details"
},
{
"id": 3,
"type": "column",
"value": "characteristic_data_type"
},
{
"id": 4,
"type": "table",
"value": "product_characteristics"
},
{
"id": 1,
"type": "column",
"value": "characteris... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,069 | public_review_platform | bird:train.json:4134 | Find the location of businesses that has business hours from 7 am to 7 pm every Wednesday. | SELECT DISTINCT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.opening_time = '7AM' AND T2.closing_time = '7PM' AND T3.day_of_week = 'Wednesday' | [
"Find",
"the",
"location",
"of",
"businesses",
"that",
"has",
"business",
"hours",
"from",
"7",
"am",
"to",
"7",
"pm",
"every",
"Wednesday",
"."
] | [
{
"id": 3,
"type": "table",
"value": "business_hours"
},
{
"id": 5,
"type": "column",
"value": "opening_time"
},
{
"id": 7,
"type": "column",
"value": "closing_time"
},
{
"id": 9,
"type": "column",
"value": "day_of_week"
},
{
"id": 11,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O"
] |
12,070 | codebase_comments | bird:train.json:649 | Please list the names of methods with the solution path "wallerdev_htmlsharp\HtmlSharp.sln". | SELECT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'wallerdev_htmlsharpHtmlSharp.sln' | [
"Please",
"list",
"the",
"names",
"of",
"methods",
"with",
"the",
"solution",
"path",
"\"",
"wallerdev_htmlsharp\\HtmlSharp.sln",
"\"",
"."
] | [
{
"id": 4,
"type": "value",
"value": "wallerdev_htmlsharpHtmlSharp.sln"
},
{
"id": 6,
"type": "column",
"value": "solutionid"
},
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 2,
"type": "table",
"value": "method"
},
{
"id": 0,
"typ... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
12,071 | movie_3 | bird:train.json:9275 | How many customers did not rent material at Mike's store? | SELECT COUNT(T1.customer_id) FROM customer AS T1 INNER JOIN store AS T2 ON T1.store_id = T2.store_id INNER JOIN staff AS T3 ON T2.manager_staff_id = T3.staff_id WHERE T3.first_name != 'Mike' | [
"How",
"many",
"customers",
"did",
"not",
"rent",
"material",
"at",
"Mike",
"'s",
"store",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "manager_staff_id"
},
{
"id": 3,
"type": "column",
"value": "customer_id"
},
{
"id": 1,
"type": "column",
"value": "first_name"
},
{
"id": 4,
"type": "table",
"value": "customer"
},
{
"id": 7,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O"
] |
12,072 | retails | bird:train.json:6711 | In which country do most of the customers come from? | SELECT T.n_name FROM ( SELECT T2.n_name, COUNT(T1.c_custkey) AS num FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey GROUP BY T2.n_name ) AS T ORDER BY T.num DESC LIMIT 1 | [
"In",
"which",
"country",
"do",
"most",
"of",
"the",
"customers",
"come",
"from",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "c_nationkey"
},
{
"id": 6,
"type": "column",
"value": "n_nationkey"
},
{
"id": 4,
"type": "column",
"value": "c_custkey"
},
{
"id": 2,
"type": "table",
"value": "customer"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
12,073 | cs_semester | bird:train.json:861 | How many research assistants of Ogdon Zywicki have an average salary? | SELECT COUNT(T1.prof_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.first_name = 'Ogdon' AND T1.salary = 'med' AND T2.last_name = 'Zywicki' | [
"How",
"many",
"research",
"assistants",
"of",
"Ogdon",
"Zywicki",
"have",
"an",
"average",
"salary",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "column",
"value": "last_name"
},
{
"id": 2,
"type": "column",
"value": "prof_id"
},
{
"id": 8,
"type": "value",
"value": "Zywicki"
},
{
"id": 5,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
12,074 | movie_1 | spider:train_spider.json:2442 | How many reviewers listed? | SELECT count(*) FROM Reviewer | [
"How",
"many",
"reviewers",
"listed",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "reviewer"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O"
] |
12,076 | book_publishing_company | bird:train.json:191 | Among all employees, who have job level greater than 200. State the employee name and job description. | SELECT T1.fname, T1.lname, T2.job_desc FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.job_lvl > 200 | [
"Among",
"all",
"employees",
",",
"who",
"have",
"job",
"level",
"greater",
"than",
"200",
".",
"State",
"the",
"employee",
"name",
"and",
"job",
"description",
"."
] | [
{
"id": 2,
"type": "column",
"value": "job_desc"
},
{
"id": 3,
"type": "table",
"value": "employee"
},
{
"id": 5,
"type": "column",
"value": "job_lvl"
},
{
"id": 7,
"type": "column",
"value": "job_id"
},
{
"id": 0,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
18
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"enti... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
12,077 | mondial_geo | bird:train.json:8301 | Among the independent countries whose type of government is republic, what is the biggest number of deserts they have? | SELECT COUNT(T3.Desert) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN geo_desert AS T3 ON T3.Country = T2.Country WHERE T2.Government = 'republic' | [
"Among",
"the",
"independent",
"countries",
"whose",
"type",
"of",
"government",
"is",
"republic",
",",
"what",
"is",
"the",
"biggest",
"number",
"of",
"deserts",
"they",
"have",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "geo_desert"
},
{
"id": 1,
"type": "column",
"value": "government"
},
{
"id": 2,
"type": "value",
"value": "republic"
},
{
"id": 5,
"type": "table",
"value": "politics"
},
{
"id": 4,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
12,078 | books | bird:train.json:6026 | Indicate the complete address of customers located in Lazaro Cardenas. | SELECT street_number, street_name, city, country_id FROM address WHERE city = 'Lazaro Cardenas' | [
"Indicate",
"the",
"complete",
"address",
"of",
"customers",
"located",
"in",
"Lazaro",
"Cardenas",
"."
] | [
{
"id": 5,
"type": "value",
"value": "Lazaro Cardenas"
},
{
"id": 1,
"type": "column",
"value": "street_number"
},
{
"id": 2,
"type": "column",
"value": "street_name"
},
{
"id": 4,
"type": "column",
"value": "country_id"
},
{
"id": 0,
"type": "... | [
{
"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": [
8,
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
12,079 | real_estate_rentals | bird:test.json:1450 | How many photos does each owner has of his or her properties? List user id and number of photos. | SELECT T1.owner_user_id , count(*) FROM Properties AS T1 JOIN Property_Photos AS T2 ON T1.property_id = T2.property_id GROUP BY T1.owner_user_id; | [
"How",
"many",
"photos",
"does",
"each",
"owner",
"has",
"of",
"his",
"or",
"her",
"properties",
"?",
"List",
"user",
"i",
"d",
"and",
"number",
"of",
"photos",
"."
] | [
{
"id": 2,
"type": "table",
"value": "property_photos"
},
{
"id": 0,
"type": "column",
"value": "owner_user_id"
},
{
"id": 3,
"type": "column",
"value": "property_id"
},
{
"id": 1,
"type": "table",
"value": "properties"
}
] | [
{
"entity_id": 0,
"token_idxs": [
14,
15,
16
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
12,080 | soccer_2016 | bird:train.json:1942 | From 2011 to 2012, how many Australian players became the "Man of the Match"? | SELECT SUM(CASE WHEN T1.Match_Date BETWEEN '2011%' AND '2012%' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Player AS T2 ON T2.Player_Id = T1.Man_of_the_Match INNER JOIN Country AS T3 ON T3.Country_Id = T2.Country_Name WHERE T3.Country_Name = 'Australia' | [
"From",
"2011",
"to",
"2012",
",",
"how",
"many",
"Australian",
"players",
"became",
"the",
"\"",
"Man",
"of",
"the",
"Match",
"\"",
"?"
] | [
{
"id": 8,
"type": "column",
"value": "man_of_the_match"
},
{
"id": 1,
"type": "column",
"value": "country_name"
},
{
"id": 5,
"type": "column",
"value": "country_id"
},
{
"id": 10,
"type": "column",
"value": "match_date"
},
{
"id": 2,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
... | [
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O"
] |
12,081 | formula_1 | bird:dev.json:867 | For the driver who set the fastest lap speed in race No.933, where does he come from? | SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 933 AND T2.fastestLapTime IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1 | [
"For",
"the",
"driver",
"who",
"set",
"the",
"fastest",
"lap",
"speed",
"in",
"race",
"No.933",
",",
"where",
"does",
"he",
"come",
"from",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "fastestlapspeed"
},
{
"id": 7,
"type": "column",
"value": "fastestlaptime"
},
{
"id": 0,
"type": "column",
"value": "nationality"
},
{
"id": 4,
"type": "column",
"value": "driverid"
},
{
"id": 1,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,082 | simpson_episodes | bird:train.json:4331 | How many episodes have the keyword "2d animation"? | SELECT COUNT(episode_id) FROM Keyword WHERE keyword = '2d animation'; | [
"How",
"many",
"episodes",
"have",
"the",
"keyword",
"\"",
"2d",
"animation",
"\"",
"?"
] | [
{
"id": 2,
"type": "value",
"value": "2d animation"
},
{
"id": 3,
"type": "column",
"value": "episode_id"
},
{
"id": 0,
"type": "table",
"value": "keyword"
},
{
"id": 1,
"type": "column",
"value": "keyword"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
12,083 | art_1 | bird:test.json:1279 | What are the ids of paintings that are taller than 500 and shorter than 2000? | SELECT paintingID FROM paintings WHERE height_mm > 500 AND height_mm < 2000 | [
"What",
"are",
"the",
"ids",
"of",
"paintings",
"that",
"are",
"taller",
"than",
"500",
"and",
"shorter",
"than",
"2000",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "paintingid"
},
{
"id": 0,
"type": "table",
"value": "paintings"
},
{
"id": 2,
"type": "column",
"value": "height_mm"
},
{
"id": 4,
"type": "value",
"value": "2000"
},
{
"id": 3,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
12,084 | food_inspection | bird:train.json:8775 | Among the inspections carried out in 2016, how many of them are routine? | SELECT COUNT(`date`) FROM inspections WHERE STRFTIME('%Y', `date`) = '2016' AND type = 'Routine - Unscheduled' | [
"Among",
"the",
"inspections",
"carried",
"out",
"in",
"2016",
",",
"how",
"many",
"of",
"them",
"are",
"routine",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "Routine - Unscheduled"
},
{
"id": 0,
"type": "table",
"value": "inspections"
},
{
"id": 1,
"type": "column",
"value": "date"
},
{
"id": 2,
"type": "value",
"value": "2016"
},
{
"id": 3,
"type": "column",
... | [
{
"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": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
12,085 | station_weather | spider:train_spider.json:3157 | list the local authorities and services provided by all stations. | SELECT local_authority , services FROM station | [
"list",
"the",
"local",
"authorities",
"and",
"services",
"provided",
"by",
"all",
"stations",
"."
] | [
{
"id": 1,
"type": "column",
"value": "local_authority"
},
{
"id": 2,
"type": "column",
"value": "services"
},
{
"id": 0,
"type": "table",
"value": "station"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,086 | superhero | bird:dev.json:804 | Provide the name of superhero with superhero ID 294. | SELECT superhero_name FROM superhero WHERE id = 294 | [
"Provide",
"the",
"name",
"of",
"superhero",
"with",
"superhero",
"ID",
"294",
"."
] | [
{
"id": 1,
"type": "column",
"value": "superhero_name"
},
{
"id": 0,
"type": "table",
"value": "superhero"
},
{
"id": 3,
"type": "value",
"value": "294"
},
{
"id": 2,
"type": "column",
"value": "id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
12,087 | soccer_3 | bird:test.json:28 | List the manufacturers that are associated with more than one club. | SELECT Manufacturer FROM club GROUP BY Manufacturer HAVING COUNT(*) > 1 | [
"List",
"the",
"manufacturers",
"that",
"are",
"associated",
"with",
"more",
"than",
"one",
"club",
"."
] | [
{
"id": 1,
"type": "column",
"value": "manufacturer"
},
{
"id": 0,
"type": "table",
"value": "club"
},
{
"id": 2,
"type": "value",
"value": "1"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
12,088 | music_platform_2 | bird:train.json:7972 | What are the titles and categories of all the podcasts with a review that has "Absolutely fantastic" in it? | SELECT T2.title, T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id WHERE T3.content LIKE '%Absolutely fantastic%' | [
"What",
"are",
"the",
"titles",
"and",
"categories",
"of",
"all",
"the",
"podcasts",
"with",
"a",
"review",
"that",
"has",
"\"",
"Absolutely",
"fantastic",
"\"",
"in",
"it",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "%Absolutely fantastic%"
},
{
"id": 5,
"type": "table",
"value": "categories"
},
{
"id": 7,
"type": "column",
"value": "podcast_id"
},
{
"id": 1,
"type": "column",
"value": "category"
},
{
"id": 6,
"type": "... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
16,
17
]
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O"
] |
12,089 | public_review_platform | bird:train.json:3970 | Calculate the percentage of running business among all business. | SELECT CAST(SUM(CASE WHEN active = 'true' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(business_id) FROM Business | [
"Calculate",
"the",
"percentage",
"of",
"running",
"business",
"among",
"all",
"business",
"."
] | [
{
"id": 2,
"type": "column",
"value": "business_id"
},
{
"id": 0,
"type": "table",
"value": "business"
},
{
"id": 5,
"type": "column",
"value": "active"
},
{
"id": 6,
"type": "value",
"value": "true"
},
{
"id": 1,
"type": "value",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
12,090 | book_1 | bird:test.json:541 | Show the book title and purchase price of the book that has had the greatest amount in orders. | SELECT T2.title , T2.PurchasePrice FROM Books_Order AS T1 JOIN BOOk AS T2 ON T1.isbn = T2.isbn GROUP BY T1.isbn ORDER BY sum(amount) DESC LIMIT 1 | [
"Show",
"the",
"book",
"title",
"and",
"purchase",
"price",
"of",
"the",
"book",
"that",
"has",
"had",
"the",
"greatest",
"amount",
"in",
"orders",
"."
] | [
{
"id": 2,
"type": "column",
"value": "purchaseprice"
},
{
"id": 3,
"type": "table",
"value": "books_order"
},
{
"id": 5,
"type": "column",
"value": "amount"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 0,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": [
9
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-TABLE",
"O"
] |
12,091 | retail_world | bird:train.json:6628 | Which employee has created the least order and please indicates the employee's title? | SELECT T1.Title FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID GROUP BY T1.Title ORDER BY COUNT(T2.OrderID) LIMIT 1 | [
"Which",
"employee",
"has",
"created",
"the",
"least",
"order",
"and",
"please",
"indicates",
"the",
"employee",
"'s",
"title",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "employeeid"
},
{
"id": 1,
"type": "table",
"value": "employees"
},
{
"id": 4,
"type": "column",
"value": "orderid"
},
{
"id": 2,
"type": "table",
"value": "orders"
},
{
"id": 0,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
11,
12
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_i... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O"
] |
12,092 | e_commerce | bird:test.json:50 | Which orders have at least 2 products on it? List the order id and date. | SELECT T1.order_id , T1.date_order_placed FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id HAVING count(*) >= 2 | [
"Which",
"orders",
"have",
"at",
"least",
"2",
"products",
"on",
"it",
"?",
"List",
"the",
"order",
"i",
"d",
"and",
"date",
"."
] | [
{
"id": 1,
"type": "column",
"value": "date_order_placed"
},
{
"id": 3,
"type": "table",
"value": "order_items"
},
{
"id": 0,
"type": "column",
"value": "order_id"
},
{
"id": 2,
"type": "table",
"value": "orders"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
12,
13,
14
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
12,093 | school_finance | spider:train_spider.json:1889 | What are the mascots for schools with enrollments above the average? | SELECT mascot FROM school WHERE enrollment > (SELECT avg(enrollment) FROM school) | [
"What",
"are",
"the",
"mascots",
"for",
"schools",
"with",
"enrollments",
"above",
"the",
"average",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "enrollment"
},
{
"id": 0,
"type": "table",
"value": "school"
},
{
"id": 1,
"type": "column",
"value": "mascot"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"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.