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 |
|---|---|---|---|---|---|---|---|---|
854 | product_catalog | spider:train_spider.json:308 | What are the name and level of catalog structure with level number between 5 and 10 | SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 | [
"What",
"are",
"the",
"name",
"and",
"level",
"of",
"catalog",
"structure",
"with",
"level",
"number",
"between",
"5",
"and",
"10"
] | [
{
"id": 2,
"type": "column",
"value": "catalog_level_number"
},
{
"id": 1,
"type": "column",
"value": "catalog_level_name"
},
{
"id": 0,
"type": "table",
"value": "catalog_structure"
},
{
"id": 4,
"type": "value",
"value": "10"
},
{
"id": 3,
"t... | [
{
"entity_id": 0,
"token_idxs": [
7,
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10,
11
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
15
]... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE"
] |
855 | baseball_1 | spider:train_spider.json:3670 | Find the name and id of the team that won the most times in 2008 postseason. | SELECT T2.name , T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1; | [
"Find",
"the",
"name",
"and",
"i",
"d",
"of",
"the",
"team",
"that",
"won",
"the",
"most",
"times",
"in",
"2008",
"postseason",
"."
] | [
{
"id": 0,
"type": "column",
"value": "team_id_winner"
},
{
"id": 2,
"type": "table",
"value": "postseason"
},
{
"id": 6,
"type": "column",
"value": "team_id_br"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
16
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
856 | synthea | bird:train.json:1486 | What is the difference between average glucose reading for patients in the 20s and 50s? | SELECT SUM(CASE WHEN ROUND((strftime('%J', T2.DATE) - strftime('%J', T1.birthdate)) / 365) BETWEEN 20 AND 30 THEN T2.VALUE ELSE 0 END) / COUNT(CASE WHEN ROUND((strftime('%J', T2.DATE) - strftime('%J', T1.birthdate)) / 365) BETWEEN 20 AND 30 THEN T2.PATIENT END) - SUM(CASE WHEN ROUND((strftime('%J', T2.DATE) - strftime(... | [
"What",
"is",
"the",
"difference",
"between",
"average",
"glucose",
"reading",
"for",
"patients",
"in",
"the",
"20s",
"and",
"50s",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "observations"
},
{
"id": 2,
"type": "column",
"value": "description"
},
{
"id": 14,
"type": "column",
"value": "birthdate"
},
{
"id": 0,
"type": "table",
"value": "patients"
},
{
"id": 3,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
857 | debate | spider:train_spider.json:1497 | What is the party of the youngest people? | SELECT Party FROM people ORDER BY Age ASC LIMIT 1 | [
"What",
"is",
"the",
"party",
"of",
"the",
"youngest",
"people",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "people"
},
{
"id": 1,
"type": "column",
"value": "party"
},
{
"id": 2,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
858 | address | bird:train.json:5182 | What are the bad aliases of the postal points from East Setauket? | SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'East Setauket' | [
"What",
"are",
"the",
"bad",
"aliases",
"of",
"the",
"postal",
"points",
"from",
"East",
"Setauket",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "East Setauket"
},
{
"id": 0,
"type": "column",
"value": "bad_alias"
},
{
"id": 2,
"type": "table",
"value": "zip_data"
},
{
"id": 5,
"type": "column",
"value": "zip_code"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10,
11
]
},
{
"entity_id": 5... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
859 | movie_platform | bird:train.json:85 | How many films were released in 2007? | SELECT COUNT(*) FROM movies WHERE movie_release_year = 2007 | [
"How",
"many",
"films",
"were",
"released",
"in",
"2007",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "movie_release_year"
},
{
"id": 0,
"type": "table",
"value": "movies"
},
{
"id": 2,
"type": "value",
"value": "2007"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
860 | language_corpus | bird:train.json:5800 | How many times does the word "heròdot" appear in the Wikipedia page? | SELECT COUNT(T2.occurrences) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'heròdot' | [
"How",
"many",
"times",
"does",
"the",
"word",
"\"",
"heròdot",
"\"",
"appear",
"in",
"the",
"Wikipedia",
"page",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "pages_words"
},
{
"id": 4,
"type": "column",
"value": "occurrences"
},
{
"id": 3,
"type": "value",
"value": "heròdot"
},
{
"id": 0,
"type": "table",
"value": "words"
},
{
"id": 2,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
861 | book_publishing_company | bird:train.json:167 | Which date has the most ordered quantity? What is the total order quantity on that day? | SELECT ord_date, SUM(qty) FROM sales GROUP BY ord_date ORDER BY SUM(qty) DESC LIMIT 1 | [
"Which",
"date",
"has",
"the",
"most",
"ordered",
"quantity",
"?",
"What",
"is",
"the",
"total",
"order",
"quantity",
"on",
"that",
"day",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "ord_date"
},
{
"id": 0,
"type": "table",
"value": "sales"
},
{
"id": 2,
"type": "column",
"value": "qty"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
862 | menu | bird:train.json:5502 | Provide the sponsor and event of the menu which includes Cerealine with Milk. | SELECT T3.name, T3.event FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T4.name = 'Cerealine with Milk' | [
"Provide",
"the",
"sponsor",
"and",
"event",
"of",
"the",
"menu",
"which",
"includes",
"Cerealine",
"with",
"Milk",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Cerealine with Milk"
},
{
"id": 10,
"type": "column",
"value": "menu_page_id"
},
{
"id": 7,
"type": "table",
"value": "menuitem"
},
{
"id": 8,
"type": "table",
"value": "menupage"
},
{
"id": 5,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
863 | college_2 | spider:train_spider.json:1485 | How many instructors teach a course in the Spring of 2010? | SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010 | [
"How",
"many",
"instructors",
"teach",
"a",
"course",
"in",
"the",
"Spring",
"of",
"2010",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "semester"
},
{
"id": 0,
"type": "table",
"value": "teaches"
},
{
"id": 3,
"type": "value",
"value": "Spring"
},
{
"id": 4,
"type": "column",
"value": "year"
},
{
"id": 5,
"type": "value",
"value": "201... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
864 | mondial_geo | bird:train.json:8229 | When did 'Bulgaria' gain independence? | SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Bulgaria' | [
"When",
"did",
"'",
"Bulgaria",
"'",
"gain",
"independence",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "independence"
},
{
"id": 2,
"type": "table",
"value": "politics"
},
{
"id": 4,
"type": "value",
"value": "Bulgaria"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 6,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"O"
] |
865 | books | bird:train.json:5925 | What is the total price of all the books ordered by Lucas Wyldbore? | SELECT SUM(T1.price) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Lucas' AND T3.last_name = 'Wyldbore' | [
"What",
"is",
"the",
"total",
"price",
"of",
"all",
"the",
"books",
"ordered",
"by",
"Lucas",
"Wyldbore",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "customer_id"
},
{
"id": 2,
"type": "table",
"value": "order_line"
},
{
"id": 3,
"type": "table",
"value": "cust_order"
},
{
"id": 5,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-VALUE",
"O"
] |
866 | works_cycles | bird:train.json:7369 | What is the company's second highest salary per hour for employees who are paid monthly? | SELECT Rate FROM EmployeePayHistory WHERE PayFrequency = 1 ORDER BY Rate DESC LIMIT 1, 1 | [
"What",
"is",
"the",
"company",
"'s",
"second",
"highest",
"salary",
"per",
"hour",
"for",
"employees",
"who",
"are",
"paid",
"monthly",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "employeepayhistory"
},
{
"id": 2,
"type": "column",
"value": "payfrequency"
},
{
"id": 1,
"type": "column",
"value": "rate"
},
{
"id": 3,
"type": "value",
"value": "1"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
867 | mondial_geo | bird:train.json:8317 | Among the independent countries, how many of them has a GDP per capita of over 5000? | SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN economy AS T3 ON T3.Country = T2.Country WHERE T2.Independence IS NOT NULL AND T3.GDP > 5000 | [
"Among",
"the",
"independent",
"countries",
",",
"how",
"many",
"of",
"them",
"has",
"a",
"GDP",
"per",
"capita",
"of",
"over",
"5000",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "independence"
},
{
"id": 3,
"type": "table",
"value": "politics"
},
{
"id": 0,
"type": "table",
"value": "economy"
},
{
"id": 2,
"type": "table",
"value": "country"
},
{
"id": 4,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"token_idxs": [
2
... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
868 | synthea | bird:train.json:1418 | Among the patients with acute bronchitis, what is the percentage of Asian women? | SELECT CAST(SUM(CASE WHEN T2.gender = 'F' AND T2.race = 'asian' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.gender) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Acute bronchitis (disorder)' | [
"Among",
"the",
"patients",
"with",
"acute",
"bronchitis",
",",
"what",
"is",
"the",
"percentage",
"of",
"Asian",
"women",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Acute bronchitis (disorder)"
},
{
"id": 2,
"type": "column",
"value": "description"
},
{
"id": 0,
"type": "table",
"value": "conditions"
},
{
"id": 1,
"type": "table",
"value": "patients"
},
{
"id": 4,
"typ... | [
{
"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": [
2
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O"
] |
869 | country_language | bird:test.json:1377 | What are the names of the countries, as well as the names of their official langauges? | SELECT T1.name , T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id | [
"What",
"are",
"the",
"names",
"of",
"the",
"countries",
",",
"as",
"well",
"as",
"the",
"names",
"of",
"their",
"official",
"langauges",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "official_languages"
},
{
"id": 4,
"type": "column",
"value": "language_id"
},
{
"id": 6,
"type": "column",
"value": "country_id"
},
{
"id": 1,
"type": "table",
"value": "languages"
},
{
"id": 2,
"type": "ta... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
16
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O"
] |
870 | movielens | bird:train.json:2254 | What is the average number of casts of movies that are from the USA? | SELECT AVG(T2.cast_num) FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'USA' | [
"What",
"is",
"the",
"average",
"number",
"of",
"casts",
"of",
"movies",
"that",
"are",
"from",
"the",
"USA",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "movies2actors"
},
{
"id": 4,
"type": "column",
"value": "cast_num"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 5,
"type": "column",
"value": "movieid"
},
{
"id": 0,
"type": "table",
"v... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
871 | public_review_platform | bird:train.json:4063 | List active business ids with opening times of 7AM and closing times of 8PM. | SELECT DISTINCT T4.business_id FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business_Hours AS T3 ON T2.business_id = T3.business_id INNER JOIN Business AS T4 ON T3.business_id = T4.business_id WHERE T4.active = 'true' AND T3.opening_time = '7AM' AND T3.closing... | [
"List",
"active",
"business",
"ids",
"with",
"opening",
"times",
"of",
"7AM",
"and",
"closing",
"times",
"of",
"8PM",
"."
] | [
{
"id": 10,
"type": "table",
"value": "business_categories"
},
{
"id": 2,
"type": "table",
"value": "business_hours"
},
{
"id": 5,
"type": "column",
"value": "opening_time"
},
{
"id": 7,
"type": "column",
"value": "closing_time"
},
{
"id": 0,
"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
1
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"B-COLUMN",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
872 | cre_Doc_Control_Systems | spider:train_spider.json:2126 | Which documents have more than 1 draft copies? List document id and number of draft copies. | SELECT document_id , count(*) FROM Draft_Copies GROUP BY document_id HAVING count(*) > 1; | [
"Which",
"documents",
"have",
"more",
"than",
"1",
"draft",
"copies",
"?",
"List",
"document",
"i",
"d",
"and",
"number",
"of",
"draft",
"copies",
"."
] | [
{
"id": 0,
"type": "table",
"value": "draft_copies"
},
{
"id": 1,
"type": "column",
"value": "document_id"
},
{
"id": 2,
"type": "value",
"value": "1"
}
] | [
{
"entity_id": 0,
"token_idxs": [
16,
17
]
},
{
"entity_id": 1,
"token_idxs": [
10,
11,
12
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
874 | performance_attendance | spider:train_spider.json:1308 | List the hosts of performances in ascending order of attendance. | SELECT HOST FROM performance ORDER BY Attendance ASC | [
"List",
"the",
"hosts",
"of",
"performances",
"in",
"ascending",
"order",
"of",
"attendance",
"."
] | [
{
"id": 0,
"type": "table",
"value": "performance"
},
{
"id": 2,
"type": "column",
"value": "attendance"
},
{
"id": 1,
"type": "column",
"value": "host"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"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,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
875 | mondial_geo | bird:train.json:8492 | Which country has the 5th highest infant mortality rate? | SELECT T2.Name FROM population AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code ORDER BY T1.Infant_Mortality DESC LIMIT 4, 1 | [
"Which",
"country",
"has",
"the",
"5th",
"highest",
"infant",
"mortality",
"rate",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "infant_mortality"
},
{
"id": 1,
"type": "table",
"value": "population"
},
{
"id": 2,
"type": "table",
"value": "country"
},
{
"id": 4,
"type": "column",
"value": "country"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6,
7
]
},
{
"entity_id": 4,
"token_idxs": [
1
]
},
{
"entity_id": 5,
"toke... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O"
] |
876 | retails | bird:train.json:6876 | Among the suppliers providing parts under the type "promo brushed steel", how many of them are in debt? | SELECT COUNT(T3.s_name) FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey WHERE T3.s_acctbal < 0 AND T1.p_type = 'PROMO BRUSHED STEEL' | [
"Among",
"the",
"suppliers",
"providing",
"parts",
"under",
"the",
"type",
"\"",
"promo",
"brushed",
"steel",
"\"",
",",
"how",
"many",
"of",
"them",
"are",
"in",
"debt",
"?"
] | [
{
"id": 9,
"type": "value",
"value": "PROMO BRUSHED STEEL"
},
{
"id": 4,
"type": "column",
"value": "ps_suppkey"
},
{
"id": 11,
"type": "column",
"value": "ps_partkey"
},
{
"id": 5,
"type": "column",
"value": "s_suppkey"
},
{
"id": 6,
"type": "... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
877 | simpson_episodes | bird:train.json:4244 | Who from The simpson 20s: Season 20 cast and crew was born in October 29, 1957 in Chicago, Illinois? | SELECT name FROM Person WHERE birthdate = '1957-10-29' AND birth_place = 'Chicago' AND birth_region = 'Illinois'; | [
"Who",
"from",
"The",
"simpson",
"20s",
":",
"Season",
"20",
"cast",
"and",
"crew",
"was",
"born",
"in",
"October",
"29",
",",
"1957",
"in",
"Chicago",
",",
"Illinois",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "birth_region"
},
{
"id": 4,
"type": "column",
"value": "birth_place"
},
{
"id": 3,
"type": "value",
"value": "1957-10-29"
},
{
"id": 2,
"type": "column",
"value": "birthdate"
},
{
"id": 7,
"type": "value",... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
19
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
878 | storm_record | spider:train_spider.json:2710 | Show the name for regions not affected. | SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region) | [
"Show",
"the",
"name",
"for",
"regions",
"not",
"affected",
"."
] | [
{
"id": 3,
"type": "table",
"value": "affected_region"
},
{
"id": 1,
"type": "column",
"value": "region_name"
},
{
"id": 2,
"type": "column",
"value": "region_id"
},
{
"id": 0,
"type": "table",
"value": "region"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"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",
"B-TABLE",
"O",
"B-TABLE",
"O"
] |
879 | superstore | bird:train.json:2438 | Indicate the profit of product Sauder Camden County Barrister Bookcase, Planked Cherry Finish. | SELECT DISTINCT T1.Profit FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Sauder Camden County Barrister Bookcase, Planked Cherry Finish' | [
"Indicate",
"the",
"profit",
"of",
"product",
"Sauder",
"Camden",
"County",
"Barrister",
"Bookcase",
",",
"Planked",
"Cherry",
"Finish",
"."
] | [
{
"id": 4,
"type": "value",
"value": "Sauder Camden County Barrister Bookcase, Planked Cherry Finish"
},
{
"id": 1,
"type": "table",
"value": "south_superstore"
},
{
"id": 3,
"type": "column",
"value": "Product Name"
},
{
"id": 5,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
6,
7,
8,
9,... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
880 | formula_1 | spider:train_spider.json:2228 | What is the id, forename, and number of races for all drivers that have participated in at least 2 races? | SELECT T1.driverid , T1.forename , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) >= 2 | [
"What",
"is",
"the",
"i",
"d",
",",
"forename",
",",
"and",
"number",
"of",
"races",
"for",
"all",
"drivers",
"that",
"have",
"participated",
"in",
"at",
"least",
"2",
"races",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "driverid"
},
{
"id": 1,
"type": "column",
"value": "forename"
},
{
"id": 4,
"type": "table",
"value": "drivers"
},
{
"id": 5,
"type": "table",
"value": "results"
},
{
"id": 6,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
22
]
},
{
"entity_id": 3,
"token_idxs": [
21
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
"enti... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
881 | music_tracker | bird:train.json:2069 | Provide the name of artists who released at least two bootlegs in 2016. | SELECT artist FROM torrents WHERE groupYear = 2016 AND releaseType LIKE 'bootleg' GROUP BY artist HAVING COUNT(releaseType) > 2 | [
"Provide",
"the",
"name",
"of",
"artists",
"who",
"released",
"at",
"least",
"two",
"bootlegs",
"in",
"2016",
"."
] | [
{
"id": 5,
"type": "column",
"value": "releasetype"
},
{
"id": 3,
"type": "column",
"value": "groupyear"
},
{
"id": 0,
"type": "table",
"value": "torrents"
},
{
"id": 6,
"type": "value",
"value": "bootleg"
},
{
"id": 1,
"type": "column",
"v... | [
{
"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": [
12
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
882 | works_cycles | bird:train.json:7020 | Among the low quality product, which product has the highest line total? List the product name and its line total? | SELECT T1.Name, T2.LineTotal FROM Product AS T1 INNER JOIN PurchaseOrderDetail AS T2 ON T1.ProductID = T2.ProductID WHERE Class = 'L' ORDER BY OrderQty * UnitPrice DESC LIMIT 1 | [
"Among",
"the",
"low",
"quality",
"product",
",",
"which",
"product",
"has",
"the",
"highest",
"line",
"total",
"?",
"List",
"the",
"product",
"name",
"and",
"its",
"line",
"total",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "purchaseorderdetail"
},
{
"id": 1,
"type": "column",
"value": "linetotal"
},
{
"id": 6,
"type": "column",
"value": "productid"
},
{
"id": 8,
"type": "column",
"value": "unitprice"
},
{
"id": 7,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": [
17
]
},
{
"entity_id": 1,
"token_idxs": [
20,
21
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_i... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
883 | entrepreneur | spider:train_spider.json:2280 | Return the name of the heaviest entrepreneur. | SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 | [
"Return",
"the",
"name",
"of",
"the",
"heaviest",
"entrepreneur",
"."
] | [
{
"id": 1,
"type": "table",
"value": "entrepreneur"
},
{
"id": 4,
"type": "column",
"value": "people_id"
},
{
"id": 2,
"type": "table",
"value": "people"
},
{
"id": 3,
"type": "column",
"value": "weight"
},
{
"id": 0,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"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",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
884 | flight_company | spider:train_spider.json:6384 | which pilot is in charge of the most number of flights? | SELECT pilot FROM flight GROUP BY pilot ORDER BY count(*) DESC LIMIT 1 | [
"which",
"pilot",
"is",
"in",
"charge",
"of",
"the",
"most",
"number",
"of",
"flights",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "flight"
},
{
"id": 1,
"type": "column",
"value": "pilot"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
885 | activity_1 | spider:train_spider.json:6742 | How many faculty members do we have for each faculty rank? | SELECT rank , count(*) FROM Faculty GROUP BY rank | [
"How",
"many",
"faculty",
"members",
"do",
"we",
"have",
"for",
"each",
"faculty",
"rank",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "faculty"
},
{
"id": 1,
"type": "column",
"value": "rank"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
886 | talkingdata | bird:train.json:1078 | How many device users are male? | SELECT COUNT(device_id) FROM gender_age WHERE gender = 'M' | [
"How",
"many",
"device",
"users",
"are",
"male",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "gender_age"
},
{
"id": 3,
"type": "column",
"value": "device_id"
},
{
"id": 1,
"type": "column",
"value": "gender"
},
{
"id": 2,
"type": "value",
"value": "M"
}
] | [
{
"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"
] |
888 | world_development_indicators | bird:train.json:2175 | How many countries have country note description as "Sources: UN Energy Statistics (2014)"? List the currency of these countries. | SELECT COUNT(DISTINCT T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Sources: UN Energy Statistics (2014)' UNION SELECT DISTINCT t1.CurrencyUnit FROM country AS t1 INNER JOIN countrynotes AS t2 ON t1.CountryCode = t2.Countrycode WHERE t2.Descr... | [
"How",
"many",
"countries",
"have",
"country",
"note",
"description",
"as",
"\"",
"Sources",
":",
"UN",
"Energy",
"Statistics",
"(",
"2014",
")",
"\"",
"?",
"List",
"the",
"currency",
"of",
"these",
"countries",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Sources: UN Energy Statistics (2014)"
},
{
"id": 1,
"type": "table",
"value": "countrynotes"
},
{
"id": 4,
"type": "column",
"value": "currencyunit"
},
{
"id": 2,
"type": "column",
"value": "description"
},
{
"... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10,
11,
12,
13,
14,
15,
16
]
... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
889 | public_review_platform | bird:train.json:4125 | Among the businesses in Tempe, list the attribute of the business with a medium review count. | SELECT DISTINCT T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.city = 'Tempe' AND T1.review_count = 'Medium' | [
"Among",
"the",
"businesses",
"in",
"Tempe",
",",
"list",
"the",
"attribute",
"of",
"the",
"business",
"with",
"a",
"medium",
"review",
"count",
"."
] | [
{
"id": 3,
"type": "table",
"value": "business_attributes"
},
{
"id": 0,
"type": "column",
"value": "attribute_name"
},
{
"id": 4,
"type": "column",
"value": "attribute_id"
},
{
"id": 7,
"type": "column",
"value": "review_count"
},
{
"id": 9,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O"
] |
890 | codebase_comments | bird:train.json:624 | For the solution of the most 'sw' methods, what is its path? | SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'sw' | [
"For",
"the",
"solution",
"of",
"the",
"most",
"'",
"sw",
"'",
"methods",
",",
"what",
"is",
"its",
"path",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "solutionid"
},
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 2,
"type": "table",
"value": "method"
},
{
"id": 0,
"type": "column",
"value": "path"
},
{
"id": 3,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
891 | books | bird:train.json:6023 | Among the books that were published by Scholastic, how many were written by J.K Rowling? | SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id INNER JOIN book_author AS T3 ON T3.book_id = T1.book_id INNER JOIN author AS T4 ON T4.author_id = T3.author_id WHERE T2.publisher_name = 'Scholastic' AND T4.author_name = 'J.K. Rowling' | [
"Among",
"the",
"books",
"that",
"were",
"published",
"by",
"Scholastic",
",",
"how",
"many",
"were",
"written",
"by",
"J.K",
"Rowling",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "publisher_name"
},
{
"id": 6,
"type": "value",
"value": "J.K. Rowling"
},
{
"id": 10,
"type": "column",
"value": "publisher_id"
},
{
"id": 1,
"type": "table",
"value": "book_author"
},
{
"id": 5,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
892 | chicago_crime | bird:train.json:8602 | What is the fax number for the district with the most number of crimes in January, 2018? | SELECT T1.fax FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.date LIKE '%1/2018%' GROUP BY T2.district_no ORDER BY COUNT(case_number) DESC LIMIT 1 | [
"What",
"is",
"the",
"fax",
"number",
"for",
"the",
"district",
"with",
"the",
"most",
"number",
"of",
"crimes",
"in",
"January",
",",
"2018",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "district_no"
},
{
"id": 6,
"type": "column",
"value": "case_number"
},
{
"id": 2,
"type": "table",
"value": "district"
},
{
"id": 5,
"type": "value",
"value": "%1/2018%"
},
{
"id": 3,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
893 | public_review_platform | bird:train.json:4105 | How many reviews of businesses that are still open received an uber rating on the funny vote? | SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T2.review_votes_funny = 'Uber' AND T1.active = 'true' | [
"How",
"many",
"reviews",
"of",
"businesses",
"that",
"are",
"still",
"open",
"received",
"an",
"uber",
"rating",
"on",
"the",
"funny",
"vote",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "review_votes_funny"
},
{
"id": 2,
"type": "column",
"value": "business_id"
},
{
"id": 0,
"type": "table",
"value": "business"
},
{
"id": 1,
"type": "table",
"value": "reviews"
},
{
"id": 5,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
894 | authors | bird:train.json:3550 | Write down the author name, affiliation, jounal short name and full name of the paper "Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats". | SELECT T2.Name, T2.Affiliation, T3.ShortName, T3.FullName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T1.Title = 'Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats' | [
"Write",
"down",
"the",
"author",
"name",
",",
"affiliation",
",",
"jounal",
"short",
"name",
"and",
"full",
"name",
"of",
"the",
"paper",
"\"",
"Decreased",
"Saliva",
"Secretion",
"and",
"Down",
"-",
"Regulation",
"of",
"AQP5",
"in",
"Submandibular",
"Gland... | [
{
"id": 6,
"type": "value",
"value": "Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats"
},
{
"id": 1,
"type": "column",
"value": "affiliation"
},
{
"id": 8,
"type": "table",
"value": "paperauthor"
},
{
"id": 2,
"... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
9,
10
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
8
... | [
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
... |
895 | cre_Students_Information_Systems | bird:test.json:450 | What are the detail and id of the teacher who teaches the largest number of courses? | SELECT T1.teacher_details , T1.teacher_id FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1 | [
"What",
"are",
"the",
"detail",
"and",
"i",
"d",
"of",
"the",
"teacher",
"who",
"teaches",
"the",
"largest",
"number",
"of",
"courses",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "teacher_details"
},
{
"id": 0,
"type": "column",
"value": "teacher_id"
},
{
"id": 2,
"type": "table",
"value": "teachers"
},
{
"id": 3,
"type": "table",
"value": "classes"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
896 | movie_1 | spider:train_spider.json:2454 | What are the names of directors who directed movies with 5 star rating? Also return the title of these movies. | SELECT T1.director , T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5 | [
"What",
"are",
"the",
"names",
"of",
"directors",
"who",
"directed",
"movies",
"with",
"5",
"star",
"rating",
"?",
"Also",
"return",
"the",
"title",
"of",
"these",
"movies",
"."
] | [
{
"id": 0,
"type": "column",
"value": "director"
},
{
"id": 3,
"type": "table",
"value": "rating"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "table",
"value": "movie"
},
{
"id": 4,
"type": "column",
"value": "sta... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
17
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
897 | movie_platform | bird:train.json:147 | Who is the user who created the list titled 'Sound and Vision'? Was he a subcriber when he created the list? | SELECT T1.user_id, T1.user_subscriber FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Sound and Vision' | [
"Who",
"is",
"the",
"user",
"who",
"created",
"the",
"list",
"titled",
"'",
"Sound",
"and",
"Vision",
"'",
"?",
"Was",
"he",
"a",
"subcriber",
"when",
"he",
"created",
"the",
"list",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Sound and Vision"
},
{
"id": 1,
"type": "column",
"value": "user_subscriber"
},
{
"id": 2,
"type": "table",
"value": "lists_users"
},
{
"id": 4,
"type": "column",
"value": "list_title"
},
{
"id": 0,
"type":... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": [
1,
2
]
},
{
"entity_id": 3,
"token_idxs": [
23
]
},
{
"entity_id": 4,
"token_idxs": [
7,
... | [
"O",
"B-TABLE",
"I-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
898 | superhero | bird:dev.json:813 | Calculate the average attribute value of all neutral superheroes. | SELECT AVG(T1.attribute_value) FROM hero_attribute AS T1 INNER JOIN superhero AS T2 ON T1.hero_id = T2.id INNER JOIN alignment AS T3 ON T2.alignment_id = T3.id WHERE T3.alignment = 'Neutral' | [
"Calculate",
"the",
"average",
"attribute",
"value",
"of",
"all",
"neutral",
"superheroes",
"."
] | [
{
"id": 3,
"type": "column",
"value": "attribute_value"
},
{
"id": 4,
"type": "table",
"value": "hero_attribute"
},
{
"id": 6,
"type": "column",
"value": "alignment_id"
},
{
"id": 0,
"type": "table",
"value": "alignment"
},
{
"id": 1,
"type": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
899 | books | bird:train.json:5923 | Please list the titles of all the books that Lucas Wyldbore has ordered. | SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Lucas' AND T4.last_name = 'Wyldbore' | [
"Please",
"list",
"the",
"titles",
"of",
"all",
"the",
"books",
"that",
"Lucas",
"Wyldbore",
"has",
"ordered",
"."
] | [
{
"id": 3,
"type": "column",
"value": "customer_id"
},
{
"id": 2,
"type": "table",
"value": "cust_order"
},
{
"id": 4,
"type": "column",
"value": "first_name"
},
{
"id": 9,
"type": "table",
"value": "order_line"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
9
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-VALUE",
"O",
"B-COLUMN",
"O"
] |
900 | student_club | bird:dev.json:1379 | How many meeting events were held in 2020? | SELECT COUNT(event_id) FROM event WHERE type = 'Meeting' AND SUBSTR(event_date, 1, 4) = '2020' | [
"How",
"many",
"meeting",
"events",
"were",
"held",
"in",
"2020",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "event_date"
},
{
"id": 1,
"type": "column",
"value": "event_id"
},
{
"id": 3,
"type": "value",
"value": "Meeting"
},
{
"id": 0,
"type": "table",
"value": "event"
},
{
"id": 2,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
901 | law_episode | bird:train.json:1354 | What are the keywords of the episode "Shield"? | SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Shield' | [
"What",
"are",
"the",
"keywords",
"of",
"the",
"episode",
"\"",
"Shield",
"\"",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "episode_id"
},
{
"id": 0,
"type": "column",
"value": "keyword"
},
{
"id": 1,
"type": "table",
"value": "episode"
},
{
"id": 2,
"type": "table",
"value": "keyword"
},
{
"id": 4,
"type": "value",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O"
] |
902 | csu_1 | spider:train_spider.json:2344 | Which university is in Los Angeles county and opened after 1950? | SELECT campus FROM campuses WHERE county = "Los Angeles" AND YEAR > 1950 | [
"Which",
"university",
"is",
"in",
"Los",
"Angeles",
"county",
"and",
"opened",
"after",
"1950",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "Los Angeles"
},
{
"id": 0,
"type": "table",
"value": "campuses"
},
{
"id": 1,
"type": "column",
"value": "campus"
},
{
"id": 2,
"type": "column",
"value": "county"
},
{
"id": 4,
"type": "column",
"valu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
4,
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
903 | allergy_1 | spider:train_spider.json:526 | How old are the students with allergies to food and animal types on average? | SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "animal") | [
"How",
"old",
"are",
"the",
"students",
"with",
"allergies",
"to",
"food",
"and",
"animal",
"types",
"on",
"average",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "allergy_type"
},
{
"id": 3,
"type": "table",
"value": "has_allergy"
},
{
"id": 5,
"type": "column",
"value": "allergytype"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 8,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
904 | workshop_paper | spider:train_spider.json:5830 | Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80. | SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80 | [
"Show",
"the",
"colleges",
"that",
"have",
"both",
"authors",
"with",
"submission",
"score",
"larger",
"than",
"90",
"and",
"authors",
"with",
"submission",
"score",
"smaller",
"than",
"80",
"."
] | [
{
"id": 0,
"type": "table",
"value": "submission"
},
{
"id": 1,
"type": "column",
"value": "college"
},
{
"id": 2,
"type": "column",
"value": "scores"
},
{
"id": 3,
"type": "value",
"value": "90"
},
{
"id": 4,
"type": "value",
"value": "80"... | [
{
"entity_id": 0,
"token_idxs": [
16
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
17
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
20
]
},... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
905 | company_office | spider:train_spider.json:4566 | Which building has the largest number of company offices? Give me the building name. | SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1 | [
"Which",
"building",
"has",
"the",
"largest",
"number",
"of",
"company",
"offices",
"?",
"Give",
"me",
"the",
"building",
"name",
"."
] | [
{
"id": 3,
"type": "table",
"value": "office_locations"
},
{
"id": 0,
"type": "column",
"value": "building_id"
},
{
"id": 5,
"type": "column",
"value": "company_id"
},
{
"id": 2,
"type": "table",
"value": "companies"
},
{
"id": 4,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
14
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
1
]
},
{
"entity_id"... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
906 | wrestler | spider:train_spider.json:1870 | What are the names of wrestlers days held less than 100? | SELECT Name FROM wrestler WHERE Days_held < 100 | [
"What",
"are",
"the",
"names",
"of",
"wrestlers",
"days",
"held",
"less",
"than",
"100",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "days_held"
},
{
"id": 0,
"type": "table",
"value": "wrestler"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value",
"value": "100"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
907 | card_games | bird:dev.json:426 | Please provide top three sets that don't appear in Magic: The Gathering Online, along with their names in in alphabetical order. | SELECT name FROM sets WHERE mtgoCode IS NULL ORDER BY name LIMIT 3 | [
"Please",
"provide",
"top",
"three",
"sets",
"that",
"do",
"n't",
"appear",
"in",
"Magic",
":",
"The",
"Gathering",
"Online",
",",
"along",
"with",
"their",
"names",
"in",
"in",
"alphabetical",
"order",
"."
] | [
{
"id": 2,
"type": "column",
"value": "mtgocode"
},
{
"id": 0,
"type": "table",
"value": "sets"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
19
]
},
{
"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-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
908 | voter_2 | spider:train_spider.json:5480 | Find the distinct majors of students who have treasurer votes. | SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote | [
"Find",
"the",
"distinct",
"majors",
"of",
"students",
"who",
"have",
"treasurer",
"votes",
"."
] | [
{
"id": 4,
"type": "column",
"value": "treasurer_vote"
},
{
"id": 2,
"type": "table",
"value": "voting_record"
},
{
"id": 1,
"type": "table",
"value": "student"
},
{
"id": 0,
"type": "column",
"value": "major"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
8,
9
]
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
909 | bike_share_1 | bird:train.json:9012 | On 10/20/2014, what is the duration of the fastest trip which started from the station with latitude and longitudes of 37.789625 and -122.400811, respectively? Indicate the bike id. | SELECT MIN(T2.duration), T2.bike_id FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T2.start_date LIKE '10/20/2014%' AND T1.lat = 37.789625 AND T1.long = -122.400811 | [
"On",
"10/20/2014",
",",
"what",
"is",
"the",
"duration",
"of",
"the",
"fastest",
"trip",
"which",
"started",
"from",
"the",
"station",
"with",
"latitude",
"and",
"longitudes",
"of",
"37.789625",
"and",
"-122.400811",
",",
"respectively",
"?",
"Indicate",
"the... | [
{
"id": 4,
"type": "column",
"value": "start_station_name"
},
{
"id": 7,
"type": "value",
"value": "10/20/2014%"
},
{
"id": 11,
"type": "value",
"value": "-122.400811"
},
{
"id": 6,
"type": "column",
"value": "start_date"
},
{
"id": 9,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
29,
30,
31
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [... | [
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN"
] |
910 | pilot_1 | bird:test.json:1164 | What are the different hangar locations and how many pilots correspond to each. Also, what are their average ages? | SELECT count(T1.pilot_name) , avg(T1.age) , T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name GROUP BY T2.location | [
"What",
"are",
"the",
"different",
"hangar",
"locations",
"and",
"how",
"many",
"pilots",
"correspond",
"to",
"each",
".",
"Also",
",",
"what",
"are",
"their",
"average",
"ages",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "pilotskills"
},
{
"id": 3,
"type": "column",
"value": "pilot_name"
},
{
"id": 5,
"type": "column",
"value": "plane_name"
},
{
"id": 0,
"type": "column",
"value": "location"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
20
]
},
{
"entity... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
911 | language_corpus | bird:train.json:5764 | What is the total number of words in page containing pair of word id "100" and "317"? | SELECT words FROM langs WHERE lid = ( SELECT lid FROM biwords WHERE w1st = 100 AND w2nd = 317 ) | [
"What",
"is",
"the",
"total",
"number",
"of",
"words",
"in",
"page",
"containing",
"pair",
"of",
"word",
"i",
"d",
"\"",
"100",
"\"",
"and",
"\"",
"317",
"\"",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "biwords"
},
{
"id": 0,
"type": "table",
"value": "langs"
},
{
"id": 1,
"type": "column",
"value": "words"
},
{
"id": 4,
"type": "column",
"value": "w1st"
},
{
"id": 6,
"type": "column",
"value": "w2nd"
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
13,
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
912 | gas_company | spider:train_spider.json:2011 | Show headquarters with at least two companies in the banking industry. | SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING count(*) >= 2 | [
"Show",
"headquarters",
"with",
"at",
"least",
"two",
"companies",
"in",
"the",
"banking",
"industry",
"."
] | [
{
"id": 2,
"type": "column",
"value": "main_industry"
},
{
"id": 1,
"type": "column",
"value": "headquarters"
},
{
"id": 0,
"type": "table",
"value": "company"
},
{
"id": 3,
"type": "value",
"value": "Banking"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
913 | university | bird:train.json:8103 | Calculate the number of international students of University of Wisconsin-Madison in 2013. | SELECT CAST(T1.num_students * T1.pct_international_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2013 AND T2.university_name = 'University of Wisconsin-Madison' | [
"Calculate",
"the",
"number",
"of",
"international",
"students",
"of",
"University",
"of",
"Wisconsin",
"-",
"Madison",
"in",
"2013",
"."
] | [
{
"id": 8,
"type": "value",
"value": "University of Wisconsin-Madison"
},
{
"id": 10,
"type": "column",
"value": "pct_international_students"
},
{
"id": 0,
"type": "table",
"value": "university_year"
},
{
"id": 7,
"type": "column",
"value": "university_nam... | [
{
"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": []
},
{
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O"
] |
914 | aan_1 | bird:test.json:1038 | What are the ids and titles for papers that have never been cited? | SELECT paper_id , title FROM Paper WHERE paper_id NOT IN (SELECT cited_paper_id FROM Citation) | [
"What",
"are",
"the",
"ids",
"and",
"titles",
"for",
"papers",
"that",
"have",
"never",
"been",
"cited",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "cited_paper_id"
},
{
"id": 1,
"type": "column",
"value": "paper_id"
},
{
"id": 3,
"type": "table",
"value": "citation"
},
{
"id": 0,
"type": "table",
"value": "paper"
},
{
"id": 2,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
915 | advertising_agencies | bird:test.json:2114 | How many payments are there for each invoice? | SELECT invoice_id , count(*) FROM Payments GROUP BY invoice_id | [
"How",
"many",
"payments",
"are",
"there",
"for",
"each",
"invoice",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "invoice_id"
},
{
"id": 0,
"type": "table",
"value": "payments"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
917 | superstore | bird:train.json:2447 | What is the percentage of furniture orders that were shipped through first class in 2013 at the Central superstore? | SELECT CAST(SUM(CASE WHEN T1.`Ship Mode` = 'First Class' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Category = 'Furniture' AND STRFTIME('%Y', T1.`Ship Date`) = '2013' | [
"What",
"is",
"the",
"percentage",
"of",
"furniture",
"orders",
"that",
"were",
"shipped",
"through",
"first",
"class",
"in",
"2013",
"at",
"the",
"Central",
"superstore",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "central_superstore"
},
{
"id": 12,
"type": "value",
"value": "First Class"
},
{
"id": 2,
"type": "column",
"value": "Product ID"
},
{
"id": 4,
"type": "value",
"value": "Furniture"
},
{
"id": 8,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": [
17,
18
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
918 | soccer_2016 | bird:train.json:1887 | Is SuperSport Park located at Centurion? | SELECT T2.City_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id WHERE T1.Venue_Name LIKE 'St George%' | [
"Is",
"SuperSport",
"Park",
"located",
"at",
"Centurion",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "venue_name"
},
{
"id": 4,
"type": "value",
"value": "St George%"
},
{
"id": 0,
"type": "column",
"value": "city_name"
},
{
"id": 5,
"type": "column",
"value": "city_id"
},
{
"id": 1,
"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"
] |
919 | insurance_fnol | spider:train_spider.json:925 | Find the IDs of customers whose name contains "Diana". | SELECT customer_id FROM customers WHERE customer_name LIKE "%Diana%" | [
"Find",
"the",
"IDs",
"of",
"customers",
"whose",
"name",
"contains",
"\"",
"Diana",
"\"",
"."
] | [
{
"id": 2,
"type": "column",
"value": "customer_name"
},
{
"id": 1,
"type": "column",
"value": "customer_id"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 3,
"type": "column",
"value": "%Diana%"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
920 | epinions_1 | spider:train_spider.json:1711 | Find the name of the user who gave the highest rating. | SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id ORDER BY T2.rating DESC LIMIT 1 | [
"Find",
"the",
"name",
"of",
"the",
"user",
"who",
"gave",
"the",
"highest",
"rating",
"."
] | [
{
"id": 1,
"type": "table",
"value": "useracct"
},
{
"id": 2,
"type": "table",
"value": "review"
},
{
"id": 3,
"type": "column",
"value": "rating"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "column",
"value": "u_i... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
921 | hospital_1 | spider:train_spider.json:3957 | What is the alphabetically ordered list of all distinct medications? | SELECT DISTINCT name FROM medication ORDER BY name | [
"What",
"is",
"the",
"alphabetically",
"ordered",
"list",
"of",
"all",
"distinct",
"medications",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "medication"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
922 | loan_1 | spider:train_spider.json:3051 | What is the name, account type, and account balance corresponding to the customer with the highest credit score? | SELECT cust_name , acc_type , acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
",",
"account",
"type",
",",
"and",
"account",
"balance",
"corresponding",
"to",
"the",
"customer",
"with",
"the",
"highest",
"credit",
"score",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "credit_score"
},
{
"id": 1,
"type": "column",
"value": "cust_name"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 2,
"type": "column",
"value": "acc_type"
},
{
"id": 3,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
18,
19
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
923 | cs_semester | bird:train.json:905 | How many students taking a bachelor's degree received an A in all of the courses that they took? | SELECT COUNT(T2.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id WHERE T2.grade = 'A' AND T1.type = 'UG' | [
"How",
"many",
"students",
"taking",
"a",
"bachelor",
"'s",
"degree",
"received",
"an",
"A",
"in",
"all",
"of",
"the",
"courses",
"that",
"they",
"took",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "registration"
},
{
"id": 2,
"type": "column",
"value": "student_id"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 3,
"type": "column",
"value": "grade"
},
{
"id": 5,
"type": "column",
"va... | [
{
"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": [
10
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
924 | scientist_1 | spider:train_spider.json:6495 | Find the number of scientists involved for each project name. | SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name | [
"Find",
"the",
"number",
"of",
"scientists",
"involved",
"for",
"each",
"project",
"name",
"."
] | [
{
"id": 2,
"type": "table",
"value": "assignedto"
},
{
"id": 1,
"type": "table",
"value": "projects"
},
{
"id": 4,
"type": "column",
"value": "project"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "column",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
925 | soccer_3 | bird:test.json:11 | Return the name of the player who earns the most money. | SELECT Name FROM player ORDER BY Earnings DESC LIMIT 1 | [
"Return",
"the",
"name",
"of",
"the",
"player",
"who",
"earns",
"the",
"most",
"money",
"."
] | [
{
"id": 2,
"type": "column",
"value": "earnings"
},
{
"id": 0,
"type": "table",
"value": "player"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
926 | student_1 | spider:train_spider.json:4048 | Find the first names of the teachers that teach first grade. | SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 | [
"Find",
"the",
"first",
"names",
"of",
"the",
"teachers",
"that",
"teach",
"first",
"grade",
"."
] | [
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 5,
"type": "column",
"value": "classroom"
},
{
"id": 2,
"type": "table",
"value": "teachers"
},
{
"id": 3,
"type": "column",
"value": "grade"
},
{
"id": 1,
"type": "table",
"value... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
927 | formula_1 | spider:train_spider.json:2199 | List the forenames of all distinct drivers in alphabetical order? | SELECT DISTINCT forename FROM drivers ORDER BY forename ASC | [
"List",
"the",
"forenames",
"of",
"all",
"distinct",
"drivers",
"in",
"alphabetical",
"order",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "forename"
},
{
"id": 0,
"type": "table",
"value": "drivers"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"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",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
928 | college_1 | spider:train_spider.json:3194 | What is the course description and number of credits for QM-261? | SELECT crs_credit , crs_description FROM course WHERE crs_code = 'QM-261' | [
"What",
"is",
"the",
"course",
"description",
"and",
"number",
"of",
"credits",
"for",
"QM-261",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "crs_description"
},
{
"id": 1,
"type": "column",
"value": "crs_credit"
},
{
"id": 3,
"type": "column",
"value": "crs_code"
},
{
"id": 0,
"type": "table",
"value": "course"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
929 | language_corpus | bird:train.json:5817 | What is the title of the page on which the word "grec" has an occurrence of 52 times. | SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' AND T2.occurrences = 52 | [
"What",
"is",
"the",
"title",
"of",
"the",
"page",
"on",
"which",
"the",
"word",
"\"",
"grec",
"\"",
"has",
"an",
"occurrence",
"of",
"52",
"times",
"."
] | [
{
"id": 3,
"type": "table",
"value": "pages_words"
},
{
"id": 7,
"type": "column",
"value": "occurrences"
},
{
"id": 0,
"type": "column",
"value": "title"
},
{
"id": 1,
"type": "table",
"value": "pages"
},
{
"id": 2,
"type": "table",
"value... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
930 | loan_1 | spider:train_spider.json:3083 | What is the average credit score for customers who have taken a loan? | SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan) | [
"What",
"is",
"the",
"average",
"credit",
"score",
"for",
"customers",
"who",
"have",
"taken",
"a",
"loan",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "credit_score"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 1,
"type": "column",
"value": "cust_id"
},
{
"id": 3,
"type": "table",
"value": "loan"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4,
5
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
932 | cars | bird:train.json:3102 | What is the miles per square hour of the cheapest car produced by the USA? | SELECT T4.acceleration FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'USA' ORDER BY T1.price ASC LIMIT 1 | [
"What",
"is",
"the",
"miles",
"per",
"square",
"hour",
"of",
"the",
"cheapest",
"car",
"produced",
"by",
"the",
"USA",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "acceleration"
},
{
"id": 8,
"type": "table",
"value": "production"
},
{
"id": 2,
"type": "column",
"value": "country"
},
{
"id": 5,
"type": "table",
"value": "country"
},
{
"id": 9,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
933 | cookbook | bird:train.json:8875 | How many calories on average does a recipe that comes from "Produce for Better Health Foundation and 5 a Day" contain? | SELECT AVG(T2.calories) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.source = 'Produce for Better Health Foundation and 5 a Day' | [
"How",
"many",
"calories",
"on",
"average",
"does",
"a",
"recipe",
"that",
"comes",
"from",
"\"",
"Produce",
"for",
"Better",
"Health",
"Foundation",
"and",
"5",
"a",
"Day",
"\"",
"contain",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Produce for Better Health Foundation and 5 a Day"
},
{
"id": 1,
"type": "table",
"value": "nutrition"
},
{
"id": 5,
"type": "column",
"value": "recipe_id"
},
{
"id": 4,
"type": "column",
"value": "calories"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
13,
14,
15,
16,
17,
18,
19,
20
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
934 | movies_4 | bird:train.json:517 | What is the most common first name? | SELECT person_name FROM person GROUP BY person_name ORDER BY COUNT(person_name) DESC LIMIT 1 | [
"What",
"is",
"the",
"most",
"common",
"first",
"name",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "person_name"
},
{
"id": 0,
"type": "table",
"value": "person"
}
] | [
{
"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",
"O"
] |
935 | tracking_grants_for_research | spider:train_spider.json:4383 | What is the id of the organization with the maximum number of outcomes and how many outcomes are there? | SELECT T1.organisation_id , count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"i",
"d",
"of",
"the",
"organization",
"with",
"the",
"maximum",
"number",
"of",
"outcomes",
"and",
"how",
"many",
"outcomes",
"are",
"there",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "project_outcomes"
},
{
"id": 0,
"type": "column",
"value": "organisation_id"
},
{
"id": 3,
"type": "column",
"value": "project_id"
},
{
"id": 1,
"type": "table",
"value": "projects"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12,
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
937 | student_assessment | spider:train_spider.json:93 | Find distinct cities of address of students? | SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id | [
"Find",
"distinct",
"cities",
"of",
"address",
"of",
"students",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "people_addresses"
},
{
"id": 5,
"type": "column",
"value": "student_id"
},
{
"id": 6,
"type": "column",
"value": "address_id"
},
{
"id": 2,
"type": "table",
"value": "addresses"
},
{
"id": 4,
"type": "colum... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"B-COLUMN",
"B-TABLE",
"B-TABLE",
"O",
"B-TABLE",
"O"
] |
938 | local_govt_in_alabama | spider:train_spider.json:2138 | what are the event details of the services that have the type code 'Marriage'? | SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage' | [
"what",
"are",
"the",
"event",
"details",
"of",
"the",
"services",
"that",
"have",
"the",
"type",
"code",
"'",
"Marriage",
"'",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "service_type_code"
},
{
"id": 0,
"type": "column",
"value": "event_details"
},
{
"id": 5,
"type": "column",
"value": "service_id"
},
{
"id": 2,
"type": "table",
"value": "services"
},
{
"id": 4,
"type": "v... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": [
14
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
939 | card_games | bird:dev.json:378 | What are the foiled cards that are incredibly powerful when paired with non foiled cards? List the IDs. | SELECT id FROM cards WHERE cardKingdomId IS NOT NULL AND cardKingdomFoilId IS NOT NULL | [
"What",
"are",
"the",
"foiled",
"cards",
"that",
"are",
"incredibly",
"powerful",
"when",
"paired",
"with",
"non",
"foiled",
"cards",
"?",
"List",
"the",
"IDs",
"."
] | [
{
"id": 3,
"type": "column",
"value": "cardkingdomfoilid"
},
{
"id": 2,
"type": "column",
"value": "cardkingdomid"
},
{
"id": 0,
"type": "table",
"value": "cards"
},
{
"id": 1,
"type": "column",
"value": "id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
940 | wine_1 | spider:train_spider.json:6568 | Give the distinct names of wines made before 2000 or after 2010. | SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010 | [
"Give",
"the",
"distinct",
"names",
"of",
"wines",
"made",
"before",
"2000",
"or",
"after",
"2010",
"."
] | [
{
"id": 0,
"type": "table",
"value": "wine"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "column",
"value": "year"
},
{
"id": 3,
"type": "value",
"value": "2000"
},
{
"id": 4,
"type": "value",
"value": "2010"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
941 | address | bird:train.json:5107 | In the state where Lisa Murkowski is the representative, how many cities have zero employees? | SELECT COUNT(T3.city) FROM congress AS T1 INNER JOIN state AS T2 ON T1.abbreviation = T2.abbreviation INNER JOIN zip_data AS T3 ON T2.abbreviation = T3.state WHERE T1.first_name = 'Murkowski' AND T1.last_name = 'Lisa' AND T3.employees = 0 | [
"In",
"the",
"state",
"where",
"Lisa",
"Murkowski",
"is",
"the",
"representative",
",",
"how",
"many",
"cities",
"have",
"zero",
"employees",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "abbreviation"
},
{
"id": 6,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "value",
"value": "Murkowski"
},
{
"id": 8,
"type": "column",
"value": "last_name"
},
{
"id": 10,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
2
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
942 | sports_competition | spider:train_spider.json:3383 | which country did participated in the most number of Tournament competitions? | SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1 | [
"which",
"country",
"did",
"participated",
"in",
"the",
"most",
"number",
"of",
"Tournament",
"competitions",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "competition_type"
},
{
"id": 0,
"type": "table",
"value": "competition"
},
{
"id": 3,
"type": "value",
"value": "Tournament"
},
{
"id": 1,
"type": "column",
"value": "country"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
943 | legislator | bird:train.json:4750 | Please list the official full names of all the current legislators who were once a senator during his or her terms. | SELECT T2.official_full_name FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.state_rank IS NOT NULL | [
"Please",
"list",
"the",
"official",
"full",
"names",
"of",
"all",
"the",
"current",
"legislators",
"who",
"were",
"once",
"a",
"senator",
"during",
"his",
"or",
"her",
"terms",
"."
] | [
{
"id": 0,
"type": "column",
"value": "official_full_name"
},
{
"id": 1,
"type": "table",
"value": "current-terms"
},
{
"id": 4,
"type": "column",
"value": "bioguide_id"
},
{
"id": 3,
"type": "column",
"value": "state_rank"
},
{
"id": 5,
"type"... | [
{
"entity_id": 0,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
944 | hr_1 | spider:train_spider.json:3478 | What are the employee ids of employees who report to Payam, and what are their salaries? | SELECT employee_id , salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam' ) | [
"What",
"are",
"the",
"employee",
"ids",
"of",
"employees",
"who",
"report",
"to",
"Payam",
",",
"and",
"what",
"are",
"their",
"salaries",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "employee_id"
},
{
"id": 3,
"type": "column",
"value": "manager_id"
},
{
"id": 4,
"type": "column",
"value": "first_name"
},
{
"id": 0,
"type": "table",
"value": "employees"
},
{
"id": 2,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
16
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
945 | headphone_store | bird:test.json:928 | How many headphones cost more than 200 for each headphone class? | SELECT count(*) , CLASS FROM headphone WHERE price > 200 GROUP BY CLASS | [
"How",
"many",
"headphones",
"cost",
"more",
"than",
"200",
"for",
"each",
"headphone",
"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": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
946 | aan_1 | bird:test.json:1010 | What are the 10 most cited papers, and how many citations did each have? | SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 10 | [
"What",
"are",
"the",
"10",
"most",
"cited",
"papers",
",",
"and",
"how",
"many",
"citations",
"did",
"each",
"have",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "cited_paper_id"
},
{
"id": 0,
"type": "table",
"value": "citation"
},
{
"id": 2,
"type": "column",
"value": "paper_id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
947 | customer_deliveries | spider:train_spider.json:2855 | List the names of all routes in alphabetic order. | SELECT route_name FROM Delivery_Routes ORDER BY route_name | [
"List",
"the",
"names",
"of",
"all",
"routes",
"in",
"alphabetic",
"order",
"."
] | [
{
"id": 0,
"type": "table",
"value": "delivery_routes"
},
{
"id": 1,
"type": "column",
"value": "route_name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
948 | books | bird:train.json:5954 | What is the name of the publisher who published Agatha Christie's first book? | SELECT T4.publisher_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T3.author_name = 'Agatha Christie' ORDER BY T1.publication_date ASC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"publisher",
"who",
"published",
"Agatha",
"Christie",
"'s",
"first",
"book",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "publication_date"
},
{
"id": 3,
"type": "value",
"value": "Agatha Christie"
},
{
"id": 0,
"type": "column",
"value": "publisher_name"
},
{
"id": 6,
"type": "column",
"value": "publisher_id"
},
{
"id": 2,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
2,
3
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"e... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-TABLE",
"O"
] |
950 | language_corpus | bird:train.json:5784 | How many more times does the first word in the biwords pair "àbac-xinès" occur than the biwords pair itself? | SELECT occurrences - ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) ) AS CALUS FROM words WHERE word = 'àbac' | [
"How",
"many",
"more",
"times",
"does",
"the",
"first",
"word",
"in",
"the",
"biwords",
"pair",
"\"",
"àbac",
"-",
"xinès",
"\"",
"occur",
"than",
"the",
"biwords",
"pair",
"itself",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "occurrences"
},
{
"id": 4,
"type": "table",
"value": "biwords"
},
{
"id": 0,
"type": "table",
"value": "words"
},
{
"id": 8,
"type": "value",
"value": "xinès"
},
{
"id": 1,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": [
20
]
},
{
"enti... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
951 | card_games | bird:dev.json:494 | For all cards illustrated by Jim Pavelec. and describe the text of the ruling of these cards. Do these cards have missing or degraded properties and values. | SELECT T2.text , CASE WHEN T1.hasContentWarning = 1 THEN 'YES' ELSE 'NO' END FROM cards AS T1 INNER JOIN rulings AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Jim Pavelec' | [
"For",
"all",
"cards",
"illustrated",
"by",
"Jim",
"Pavelec",
".",
"and",
"describe",
"the",
"text",
"of",
"the",
"ruling",
"of",
"these",
"cards",
".",
"Do",
"these",
"cards",
"have",
"missing",
"or",
"degraded",
"properties",
"and",
"values",
"."
] | [
{
"id": 8,
"type": "column",
"value": "hascontentwarning"
},
{
"id": 4,
"type": "value",
"value": "Jim Pavelec"
},
{
"id": 2,
"type": "table",
"value": "rulings"
},
{
"id": 3,
"type": "column",
"value": "artist"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
17
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5,
6
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
952 | world | bird:train.json:7834 | Describe the capital city and languages used in the country with the shortest life expectancy. | SELECT T1.Capital, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode INNER JOIN City AS T3 ON T1.Code = T3.CountryCode ORDER BY T1.LifeExpectancy LIMIT 1 | [
"Describe",
"the",
"capital",
"city",
"and",
"languages",
"used",
"in",
"the",
"country",
"with",
"the",
"shortest",
"life",
"expectancy",
"."
] | [
{
"id": 5,
"type": "table",
"value": "countrylanguage"
},
{
"id": 3,
"type": "column",
"value": "lifeexpectancy"
},
{
"id": 7,
"type": "column",
"value": "countrycode"
},
{
"id": 1,
"type": "column",
"value": "language"
},
{
"id": 0,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
13,
14
]
},
{
"entity_id": 4,
"token_idxs": [
9
... | [
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
953 | decoration_competition | spider:train_spider.json:4496 | Show the names of members that have a rank in round higher than 3. | SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3 | [
"Show",
"the",
"names",
"of",
"members",
"that",
"have",
"a",
"rank",
"in",
"round",
"higher",
"than",
"3",
"."
] | [
{
"id": 3,
"type": "column",
"value": "rank_in_round"
},
{
"id": 5,
"type": "column",
"value": "member_id"
},
{
"id": 1,
"type": "table",
"value": "member"
},
{
"id": 2,
"type": "table",
"value": "round"
},
{
"id": 0,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": [
13
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
954 | cars | bird:train.json:3107 | What is the price of the car ID 15? | SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.ID = 15 | [
"What",
"is",
"the",
"price",
"of",
"the",
"car",
"ID",
"15",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "price"
},
{
"id": 2,
"type": "table",
"value": "price"
},
{
"id": 1,
"type": "table",
"value": "data"
},
{
"id": 3,
"type": "column",
"value": "id"
},
{
"id": 4,
"type": "value",
"value": "15"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
955 | soccer_2016 | bird:train.json:2006 | Provide the country ID of East London. | SELECT Country_id FROM City WHERE City_Name = 'East London' | [
"Provide",
"the",
"country",
"ID",
"of",
"East",
"London",
"."
] | [
{
"id": 3,
"type": "value",
"value": "East London"
},
{
"id": 1,
"type": "column",
"value": "country_id"
},
{
"id": 2,
"type": "column",
"value": "city_name"
},
{
"id": 0,
"type": "table",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5,
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
956 | works_cycles | bird:train.json:7417 | Please list the departments that David Bradley used to belong to. | SELECT T2.DepartmentID FROM Person AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T1.FirstName = 'David' AND T1.LastName = 'Bradley' | [
"Please",
"list",
"the",
"departments",
"that",
"David",
"Bradley",
"used",
"to",
"belong",
"to",
"."
] | [
{
"id": 3,
"type": "table",
"value": "employeedepartmenthistory"
},
{
"id": 8,
"type": "column",
"value": "businessentityid"
},
{
"id": 0,
"type": "column",
"value": "departmentid"
},
{
"id": 1,
"type": "table",
"value": "department"
},
{
"id": 4,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
5
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
957 | card_games | bird:dev.json:431 | Which set is not available outside of the United States and has foil cards with Japanese writing on them? Please include the set ID in your response. | SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Japanese' AND T1.isFoilOnly = 1 AND T1.isForeignOnly = 0 | [
"Which",
"set",
"is",
"not",
"available",
"outside",
"of",
"the",
"United",
"States",
"and",
"has",
"foil",
"cards",
"with",
"Japanese",
"writing",
"on",
"them",
"?",
"Please",
"include",
"the",
"set",
"ID",
"in",
"your",
"response",
"."
] | [
{
"id": 3,
"type": "table",
"value": "set_translations"
},
{
"id": 10,
"type": "column",
"value": "isforeignonly"
},
{
"id": 8,
"type": "column",
"value": "isfoilonly"
},
{
"id": 6,
"type": "column",
"value": "language"
},
{
"id": 7,
"type": "v... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
24
]
},
{
"entity_id": 2,
"token_idxs": [
23
]
},
{
"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",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
959 | products_gen_characteristics | spider:train_spider.json:5554 | How many characteristics does the product named "sesame" have? | SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "sesame" | [
"How",
"many",
"characteristics",
"does",
"the",
"product",
"named",
"\"",
"sesame",
"\"",
"have",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "product_characteristics"
},
{
"id": 2,
"type": "column",
"value": "product_name"
},
{
"id": 4,
"type": "column",
"value": "product_id"
},
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 3,
"type"... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
961 | restaurant | bird:train.json:1693 | On what street in Tuolumne County is Good Heavens restaurant located? | SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant INNER JOIN geographic AS T3 ON T2.city = T3.city WHERE T2.label = 'good heavens' AND T3.county = 'tuolumne county' | [
"On",
"what",
"street",
"in",
"Tuolumne",
"County",
"is",
"Good",
"Heavens",
"restaurant",
"located",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "tuolumne county"
},
{
"id": 9,
"type": "column",
"value": "id_restaurant"
},
{
"id": 6,
"type": "value",
"value": "good heavens"
},
{
"id": 0,
"type": "column",
"value": "street_name"
},
{
"id": 3,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"B-TABLE",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.