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 |
|---|---|---|---|---|---|---|---|---|
9,844 | music_2 | spider:train_spider.json:5241 | What is the last name of the artist who sang the most songs? | SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"last",
"name",
"of",
"the",
"artist",
"who",
"sang",
"the",
"most",
"songs",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "performance"
},
{
"id": 0,
"type": "column",
"value": "lastname"
},
{
"id": 5,
"type": "column",
"value": "bandmate"
},
{
"id": 4,
"type": "column",
"value": "songid"
},
{
"id": 1,
"type": "table",
"val... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
9,845 | european_football_1 | bird:train.json:2741 | What percentage of games won, games lost and games drawn does Cittadella have as a home team in total? | SELECT CAST(COUNT(CASE WHEN FTR = 'H' THEN 1 ELSE NULL END) / COUNT(HomeTeam) AS REAL) * 100, CAST(COUNT(CASE WHEN FTR = 'A' THEN 1 ELSE NULL END) AS REAL) / COUNT(HomeTeam), CAST(COUNT(CASE WHEN FTR = 'D' THEN 1 ELSE NULL END) AS REAL) / COUNT(HomeTeam) FROM matchs WHERE HomeTeam = 'Cittadella' | [
"What",
"percentage",
"of",
"games",
"won",
",",
"games",
"lost",
"and",
"games",
"drawn",
"does",
"Cittadella",
"have",
"as",
"a",
"home",
"team",
"in",
"total",
"?"
] | [
{
"id": 2,
"type": "value",
"value": "Cittadella"
},
{
"id": 1,
"type": "column",
"value": "hometeam"
},
{
"id": 0,
"type": "table",
"value": "matchs"
},
{
"id": 3,
"type": "value",
"value": "100"
},
{
"id": 5,
"type": "column",
"value": "f... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
16,
17
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"t... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
9,846 | csu_1 | spider:train_spider.json:2367 | What campuses are in Los Angeles county? | SELECT campus FROM campuses WHERE county = "Los Angeles" | [
"What",
"campuses",
"are",
"in",
"Los",
"Angeles",
"county",
"?"
] | [
{
"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"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
4,
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O"
] |
9,847 | customers_card_transactions | spider:train_spider.json:741 | Show the transaction type and the number of transactions. | SELECT transaction_type , count(*) FROM Financial_transactions GROUP BY transaction_type | [
"Show",
"the",
"transaction",
"type",
"and",
"the",
"number",
"of",
"transactions",
"."
] | [
{
"id": 0,
"type": "table",
"value": "financial_transactions"
},
{
"id": 1,
"type": "column",
"value": "transaction_type"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
9,848 | movie_3 | bird:train.json:9271 | On what date was the rented material for the movie BLOOD ARGONAUTS returned? | SELECT T1.rental_date FROM rental AS T1 INNER JOIN inventory AS T2 ON T1.inventory_id = T2.inventory_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'BLOOD ARGONAUTS' | [
"On",
"what",
"date",
"was",
"the",
"rented",
"material",
"for",
"the",
"movie",
"BLOOD",
"ARGONAUTS",
"returned",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "BLOOD ARGONAUTS"
},
{
"id": 7,
"type": "column",
"value": "inventory_id"
},
{
"id": 0,
"type": "column",
"value": "rental_date"
},
{
"id": 5,
"type": "table",
"value": "inventory"
},
{
"id": 6,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10,
11
]
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O"
] |
9,849 | department_store | spider:train_spider.json:4763 | List the name and phone number of all suppliers in the alphabetical order of their addresses. | SELECT T1.supplier_name , T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details | [
"List",
"the",
"name",
"and",
"phone",
"number",
"of",
"all",
"suppliers",
"in",
"the",
"alphabetical",
"order",
"of",
"their",
"addresses",
"."
] | [
{
"id": 5,
"type": "table",
"value": "supplier_addresses"
},
{
"id": 3,
"type": "column",
"value": "address_details"
},
{
"id": 1,
"type": "column",
"value": "supplier_phone"
},
{
"id": 0,
"type": "column",
"value": "supplier_name"
},
{
"id": 7,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"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-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
9,850 | bike_1 | spider:train_spider.json:151 | What is the average longitude of stations that never had bike availability more than 10? | SELECT avg(long) FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available) > 10) | [
"What",
"is",
"the",
"average",
"longitude",
"of",
"stations",
"that",
"never",
"had",
"bike",
"availability",
"more",
"than",
"10",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "bikes_available"
},
{
"id": 4,
"type": "column",
"value": "station_id"
},
{
"id": 0,
"type": "table",
"value": "station"
},
{
"id": 3,
"type": "table",
"value": "status"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"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-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
9,851 | books | bird:train.json:6001 | What is the second-least common method of shipping? | SELECT T2.method_name FROM cust_order AS T1 INNER JOIN shipping_method AS T2 ON T1.shipping_method_id = T2.method_id GROUP BY T2.method_name ORDER BY COUNT(T2.method_id) ASC LIMIT 1, 1 | [
"What",
"is",
"the",
"second",
"-",
"least",
"common",
"method",
"of",
"shipping",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "shipping_method_id"
},
{
"id": 2,
"type": "table",
"value": "shipping_method"
},
{
"id": 0,
"type": "column",
"value": "method_name"
},
{
"id": 1,
"type": "table",
"value": "cust_order"
},
{
"id": 4,
"type... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
9,852 | language_corpus | bird:train.json:5718 | List down the revision page id of titles where "fresc" appears. | SELECT T3.revision 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 = 'fresc' | [
"List",
"down",
"the",
"revision",
"page",
"i",
"d",
"of",
"titles",
"where",
"\"",
"fresc",
"\"",
"appears",
"."
] | [
{
"id": 5,
"type": "table",
"value": "pages_words"
},
{
"id": 0,
"type": "column",
"value": "revision"
},
{
"id": 1,
"type": "table",
"value": "pages"
},
{
"id": 3,
"type": "value",
"value": "fresc"
},
{
"id": 4,
"type": "table",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
9,853 | legislator | bird:train.json:4897 | What is the full official name of the current legislator that has served for the most number of terms? | SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide GROUP BY T1.official_full_name, T2.bioguide ORDER BY COUNT(T2.bioguide) DESC LIMIT 1 | [
"What",
"is",
"the",
"full",
"official",
"name",
"of",
"the",
"current",
"legislator",
"that",
"has",
"served",
"for",
"the",
"most",
"number",
"of",
"terms",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "official_full_name"
},
{
"id": 3,
"type": "table",
"value": "current-terms"
},
{
"id": 4,
"type": "column",
"value": "bioguide_id"
},
{
"id": 1,
"type": "column",
"value": "bioguide"
},
{
"id": 2,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
9,854 | shipping | bird:train.json:5583 | Among the customers having at least one shipment in 2017, how many of them have an annual revenue of over 30000000? | SELECT COUNT(COUNTCUSID) FROM ( SELECT COUNT(T1.cust_id) AS COUNTCUSID FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE STRFTIME('%Y', T2.ship_date) = '2017' AND T1.annual_revenue > 30000000 GROUP BY T1.cust_id HAVING COUNT(T2.ship_id) >= 1 ) T3 | [
"Among",
"the",
"customers",
"having",
"at",
"least",
"one",
"shipment",
"in",
"2017",
",",
"how",
"many",
"of",
"them",
"have",
"an",
"annual",
"revenue",
"of",
"over",
"30000000",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "annual_revenue"
},
{
"id": 0,
"type": "column",
"value": "countcusid"
},
{
"id": 10,
"type": "column",
"value": "ship_date"
},
{
"id": 2,
"type": "table",
"value": "customer"
},
{
"id": 3,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
9,855 | book_1 | bird:test.json:548 | What are the names of all the clients, and how many times has each of them ordered? | SELECT T2.name , count(*) FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient GROUP BY T1.idClient | [
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"clients",
",",
"and",
"how",
"many",
"times",
"has",
"each",
"of",
"them",
"ordered",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "idclient"
},
{
"id": 2,
"type": "table",
"value": "orders"
},
{
"id": 3,
"type": "table",
"value": "client"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
17
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
9,856 | chinook_1 | spider:train_spider.json:883 | What are the birth dates of employees living in Edmonton? | SELECT BirthDate FROM EMPLOYEE WHERE City = "Edmonton" | [
"What",
"are",
"the",
"birth",
"dates",
"of",
"employees",
"living",
"in",
"Edmonton",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "birthdate"
},
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 3,
"type": "column",
"value": "Edmonton"
},
{
"id": 2,
"type": "column",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O"
] |
9,857 | world | bird:train.json:7867 | List all the cities in the country where there is high life expectancy at birth. | SELECT T2.Name FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T1.LifeExpectancy DESC LIMIT 1 | [
"List",
"all",
"the",
"cities",
"in",
"the",
"country",
"where",
"there",
"is",
"high",
"life",
"expectancy",
"at",
"birth",
"."
] | [
{
"id": 3,
"type": "column",
"value": "lifeexpectancy"
},
{
"id": 5,
"type": "column",
"value": "countrycode"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 2,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O"
] |
9,858 | cre_Doc_Tracking_DB | spider:train_spider.json:4241 | Which employees do not authorize destruction for any document? Give me their employee ids. | SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed | [
"Which",
"employees",
"do",
"not",
"authorize",
"destruction",
"for",
"any",
"document",
"?",
"Give",
"me",
"their",
"employee",
"ids",
"."
] | [
{
"id": 3,
"type": "column",
"value": "destruction_authorised_by_employee_id"
},
{
"id": 1,
"type": "table",
"value": "documents_to_be_destroyed"
},
{
"id": 2,
"type": "column",
"value": "employee_id"
},
{
"id": 0,
"type": "table",
"value": "employees"
}... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13,
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
9,859 | hr_1 | spider:train_spider.json:3446 | What are the emails of employees with null commission, salary between 7000 and 12000, and who work in department 50? | SELECT email FROM employees WHERE commission_pct = "null" AND salary BETWEEN 7000 AND 12000 AND department_id = 50 | [
"What",
"are",
"the",
"emails",
"of",
"employees",
"with",
"null",
"commission",
",",
"salary",
"between",
"7000",
"and",
"12000",
",",
"and",
"who",
"work",
"in",
"department",
"50",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "commission_pct"
},
{
"id": 7,
"type": "column",
"value": "department_id"
},
{
"id": 0,
"type": "table",
"value": "employees"
},
{
"id": 4,
"type": "column",
"value": "salary"
},
{
"id": 1,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
9,860 | talkingdata | bird:train.json:1128 | For the event which happened at 23:33:34 on 2016/5/6, how many installed apps were involved? | SELECT COUNT(T1.event_id) FROM app_events AS T1 INNER JOIN events AS T2 ON T1.event_id = T2.event_id WHERE SUBSTR(T2.`timestamp`, 1, 10) = '2016-05-06' AND T1.is_installed = '1' | [
"For",
"the",
"event",
"which",
"happened",
"at",
"23:33:34",
"on",
"2016/5/6",
",",
"how",
"many",
"installed",
"apps",
"were",
"involved",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "is_installed"
},
{
"id": 0,
"type": "table",
"value": "app_events"
},
{
"id": 3,
"type": "value",
"value": "2016-05-06"
},
{
"id": 6,
"type": "column",
"value": "timestamp"
},
{
"id": 2,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
9,861 | device | spider:train_spider.json:5078 | Please show the software platforms of devices in descending order of the count. | SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC | [
"Please",
"show",
"the",
"software",
"platforms",
"of",
"devices",
"in",
"descending",
"order",
"of",
"the",
"count",
"."
] | [
{
"id": 1,
"type": "column",
"value": "software_platform"
},
{
"id": 0,
"type": "table",
"value": "device"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
9,862 | european_football_2 | bird:dev.json:1095 | How much is the average build up play speed of the Heart of Midlothian team? | SELECT CAST(SUM(t2.buildUpPlaySpeed) AS REAL) / COUNT(t2.id) FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Heart of Midlothian' | [
"How",
"much",
"is",
"the",
"average",
"build",
"up",
"play",
"speed",
"of",
"the",
"Heart",
"of",
"Midlothian",
"team",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Heart of Midlothian"
},
{
"id": 6,
"type": "column",
"value": "buildupplayspeed"
},
{
"id": 1,
"type": "table",
"value": "team_attributes"
},
{
"id": 2,
"type": "column",
"value": "team_long_name"
},
{
"id": 4,... | [
{
"entity_id": 0,
"token_idxs": [
14
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11,
12,
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-TABLE",
"O"
] |
9,864 | car_retails | bird:train.json:1567 | What are the total payments of customers with no credit limit in 2003? | SELECT SUM(amount) FROM payments WHERE STRFTIME('%Y', paymentDate) = '2003' AND customerNumber IN ( SELECT customerNumber FROM customers WHERE creditLimit = 0 ) | [
"What",
"are",
"the",
"total",
"payments",
"of",
"customers",
"with",
"no",
"credit",
"limit",
"in",
"2003",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "customernumber"
},
{
"id": 5,
"type": "column",
"value": "paymentdate"
},
{
"id": 7,
"type": "column",
"value": "creditlimit"
},
{
"id": 6,
"type": "table",
"value": "customers"
},
{
"id": 0,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
9,865 | formula_1 | bird:dev.json:870 | What's Lucas di Grassi's Q1 result in the race No. 345? | SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 345 AND T2.forename = 'Lucas' AND T2.surname = 'di Grassi' | [
"What",
"'s",
"Lucas",
"di",
"Grassi",
"'s",
"Q1",
"result",
"in",
"the",
"race",
"No",
".",
"345",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "qualifying"
},
{
"id": 9,
"type": "value",
"value": "di Grassi"
},
{
"id": 3,
"type": "column",
"value": "driverid"
},
{
"id": 6,
"type": "column",
"value": "forename"
},
{
"id": 2,
"type": "table",
"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": [
10
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"B-VALUE",
"B-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
9,866 | restaurant | bird:train.json:1706 | What are the most popular restaurants in San Francisco among diners? | SELECT id_restaurant, label FROM generalinfo WHERE city = 'San Francisco' AND review = ( SELECT MAX(review) FROM generalinfo WHERE city = 'San Francisco' ) | [
"What",
"are",
"the",
"most",
"popular",
"restaurants",
"in",
"San",
"Francisco",
"among",
"diners",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "id_restaurant"
},
{
"id": 4,
"type": "value",
"value": "San Francisco"
},
{
"id": 0,
"type": "table",
"value": "generalinfo"
},
{
"id": 5,
"type": "column",
"value": "review"
},
{
"id": 2,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7,
8
]
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
9,867 | works_cycles | bird:train.json:7450 | What is the cost for the sports? | SELECT T2.StandardCost FROM Product AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE '%Sport%' | [
"What",
"is",
"the",
"cost",
"for",
"the",
"sports",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "productcosthistory"
},
{
"id": 0,
"type": "column",
"value": "standardcost"
},
{
"id": 5,
"type": "column",
"value": "productid"
},
{
"id": 1,
"type": "table",
"value": "product"
},
{
"id": 4,
"type": "valu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
9,868 | donor | bird:train.json:3153 | For project titled 'Toot Your Flute!', what is the main subject of the project materials intended for? Name the other projects with the similar focus. | SELECT T2.primary_focus_subject FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title = 'Toot Your Flute!' | [
"For",
"project",
"titled",
"'",
"Toot",
"Your",
"Flute",
"!",
"'",
",",
"what",
"is",
"the",
"main",
"subject",
"of",
"the",
"project",
"materials",
"intended",
"for",
"?",
"Name",
"the",
"other",
"projects",
"with",
"the",
"similar",
"focus",
"."
] | [
{
"id": 0,
"type": "column",
"value": "primary_focus_subject"
},
{
"id": 4,
"type": "value",
"value": "Toot Your Flute!"
},
{
"id": 5,
"type": "column",
"value": "projectid"
},
{
"id": 2,
"type": "table",
"value": "projects"
},
{
"id": 1,
"type... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
25
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
4,
5,
6,
7
]
},
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
9,869 | formula_1 | bird:dev.json:936 | Which was the fastest lap for Lewis Hamilton in the 2008 Australian Grand Prix? | SELECT T1.fastestLap FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T2.name = 'Australian Grand Prix' AND T2.year = 2008 AND T3.forename = 'Lewis' AND T3.surname = 'Hamilton' | [
"Which",
"was",
"the",
"fastest",
"lap",
"for",
"Lewis",
"Hamilton",
"in",
"the",
"2008",
"Australian",
"Grand",
"Prix",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Australian Grand Prix"
},
{
"id": 0,
"type": "column",
"value": "fastestlap"
},
{
"id": 4,
"type": "column",
"value": "driverid"
},
{
"id": 9,
"type": "column",
"value": "forename"
},
{
"id": 12,
"type": "v... | [
{
"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": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"B-VALUE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
9,870 | store_1 | spider:train_spider.json:561 | List the number of invoices from Chicago, IL. | SELECT COUNT(*) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL"; | [
"List",
"the",
"number",
"of",
"invoices",
"from",
"Chicago",
",",
"IL",
"."
] | [
{
"id": 3,
"type": "column",
"value": "billing_state"
},
{
"id": 1,
"type": "column",
"value": "billing_city"
},
{
"id": 0,
"type": "table",
"value": "invoices"
},
{
"id": 2,
"type": "column",
"value": "Chicago"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
9,871 | dorm_1 | spider:train_spider.json:5748 | Find the number of female students (with F sex) living in Smith Hall | SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' AND T1.sex = 'F' | [
"Find",
"the",
"number",
"of",
"female",
"students",
"(",
"with",
"F",
"sex",
")",
"living",
"in",
"Smith",
"Hall"
] | [
{
"id": 5,
"type": "value",
"value": "Smith Hall"
},
{
"id": 4,
"type": "column",
"value": "dorm_name"
},
{
"id": 2,
"type": "table",
"value": "lives_in"
},
{
"id": 1,
"type": "table",
"value": "student"
},
{
"id": 3,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
13,
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE"
] |
9,872 | customers_and_addresses | spider:train_spider.json:6064 | What are the dates when customers with ids between 10 and 20 became customers? | SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20 | [
"What",
"are",
"the",
"dates",
"when",
"customers",
"with",
"ids",
"between",
"10",
"and",
"20",
"became",
"customers",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "date_became_customer"
},
{
"id": 2,
"type": "column",
"value": "customer_id"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 3,
"type": "value",
"value": "10"
},
{
"id": 4,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
{
"enti... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"B-COLUMN",
"B-TABLE",
"O"
] |
9,873 | movies_4 | bird:train.json:512 | List down the tagline of the Polski movies. | SELECT DISTINCT T1.tagline FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Polski' | [
"List",
"down",
"the",
"tagline",
"of",
"the",
"Polski",
"movies",
"."
] | [
{
"id": 5,
"type": "table",
"value": "movie_languages"
},
{
"id": 2,
"type": "column",
"value": "language_name"
},
{
"id": 6,
"type": "column",
"value": "language_id"
},
{
"id": 1,
"type": "table",
"value": "language"
},
{
"id": 7,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
9,874 | food_inspection_2 | bird:train.json:6240 | List down the inspection ID with the inspector's comment "A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED" and inspection category of Perso... | SELECT T2.inspection_id FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T1.category = 'Personnel' AND T2.inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAG... | [
"List",
"down",
"the",
"inspection",
"ID",
"with",
"the",
"inspector",
"'s",
"comment",
"\"",
"A",
"certified",
"food",
"service",
"manager",
"must",
"be",
"present",
"in",
"all",
"establishments",
"at",
"which",
"potentially",
"hazardous",
"food",
"is",
"prep... | [
{
"id": 7,
"type": "value",
"value": "A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION."
},
{
"id": 6,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
51
]
},
{
"entity_id": 2,
"token_idxs": [
47
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
52
]
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE"... |
9,875 | formula_1 | spider:train_spider.json:2220 | What is the average fastest lap speed for the Monaco Grand Prix in 2008? | SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix" | [
"What",
"is",
"the",
"average",
"fastest",
"lap",
"speed",
"for",
"the",
"Monaco",
"Grand",
"Prix",
"in",
"2008",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "Monaco Grand Prix"
},
{
"id": 2,
"type": "column",
"value": "fastestlapspeed"
},
{
"id": 1,
"type": "table",
"value": "results"
},
{
"id": 3,
"type": "column",
"value": "raceid"
},
{
"id": 0,
"type": "tabl... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
4,
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_id... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
9,876 | works_cycles | bird:train.json:7104 | List the name of the rates that apply to the provinces that are in the territory that obtained the greatest increase in sales with respect to the previous year. | SELECT T2.Name FROM SalesTerritory AS T1 INNER JOIN StateProvince AS T2 ON T1.CountryRegionCode = T2.CountryRegionCode INNER JOIN SalesTaxRate AS T3 ON T2.StateProvinceID = T3.StateProvinceID ORDER BY (T1.SalesYTD - T1.SalesLastYear) / T1.SalesLastYear DESC LIMIT 1 | [
"List",
"the",
"name",
"of",
"the",
"rates",
"that",
"apply",
"to",
"the",
"provinces",
"that",
"are",
"in",
"the",
"territory",
"that",
"obtained",
"the",
"greatest",
"increase",
"in",
"sales",
"with",
"respect",
"to",
"the",
"previous",
"year",
"."
] | [
{
"id": 6,
"type": "column",
"value": "countryregioncode"
},
{
"id": 4,
"type": "column",
"value": "stateprovinceid"
},
{
"id": 2,
"type": "table",
"value": "salesterritory"
},
{
"id": 3,
"type": "table",
"value": "stateprovince"
},
{
"id": 5,
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
9,877 | european_football_2 | bird:dev.json:1138 | In what country did the Poland Ekstraklasa take place? | SELECT name FROM Country WHERE id IN ( SELECT country_id FROM League WHERE name = 'Poland Ekstraklasa' ) | [
"In",
"what",
"country",
"did",
"the",
"Poland",
"Ekstraklasa",
"take",
"place",
"?"
] | [
{
"id": 5,
"type": "value",
"value": "Poland Ekstraklasa"
},
{
"id": 4,
"type": "column",
"value": "country_id"
},
{
"id": 0,
"type": "table",
"value": "country"
},
{
"id": 3,
"type": "table",
"value": "league"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
9,878 | card_games | bird:dev.json:396 | How many cards with a 1993 frame version and available on paper have a sensitive content warning? | SELECT COUNT(id) FROM cards WHERE frameVersion = 1993 AND availability = 'paper' AND hasContentWarning = 1 | [
"How",
"many",
"cards",
"with",
"a",
"1993",
"frame",
"version",
"and",
"available",
"on",
"paper",
"have",
"a",
"sensitive",
"content",
"warning",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "hascontentwarning"
},
{
"id": 2,
"type": "column",
"value": "frameversion"
},
{
"id": 4,
"type": "column",
"value": "availability"
},
{
"id": 0,
"type": "table",
"value": "cards"
},
{
"id": 5,
"type": "val... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
9,879 | aan_1 | bird:test.json:1024 | Which 3 affiliations had the most papers in 2009? | SELECT T3.name FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T1.year = 2009 GROUP BY T2.affiliation_id ORDER BY count(*) DESC LIMIT 3 | [
"Which",
"3",
"affiliations",
"had",
"the",
"most",
"papers",
"in",
"2009",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "affiliation_id"
},
{
"id": 2,
"type": "table",
"value": "affiliation"
},
{
"id": 6,
"type": "table",
"value": "author_list"
},
{
"id": 7,
"type": "column",
"value": "paper_id"
},
{
"id": 5,
"type": "table"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O"
] |
9,880 | european_football_2 | bird:dev.json:1062 | Which players had an overall rating of over 80 from 2008 to 2010? Please list player names. | SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating > 80 AND SUBSTR(t2.`date`, 1, 4) BETWEEN '2008' AND '2010' | [
"Which",
"players",
"had",
"an",
"overall",
"rating",
"of",
"over",
"80",
"from",
"2008",
"to",
"2010",
"?",
"Please",
"list",
"player",
"names",
"."
] | [
{
"id": 2,
"type": "table",
"value": "player_attributes"
},
{
"id": 4,
"type": "column",
"value": "overall_rating"
},
{
"id": 3,
"type": "column",
"value": "player_api_id"
},
{
"id": 0,
"type": "column",
"value": "player_name"
},
{
"id": 1,
"ty... | [
{
"entity_id": 0,
"token_idxs": [
17
]
},
{
"entity_id": 1,
"token_idxs": [
16
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
1,
2
]
},
{
"entity_id": 4,
"token_idxs": [
4,
5
]
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
9,881 | planet_1 | bird:test.json:1911 | Which planet has total weight of shipment greater than 30? List planet name. | SELECT T3.Name FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID GROUP BY T2.Planet HAVING sum(T1.Weight) > 30; | [
"Which",
"planet",
"has",
"total",
"weight",
"of",
"shipment",
"greater",
"than",
"30",
"?",
"List",
"planet",
"name",
"."
] | [
{
"id": 9,
"type": "column",
"value": "shipmentid"
},
{
"id": 5,
"type": "table",
"value": "shipment"
},
{
"id": 6,
"type": "column",
"value": "planetid"
},
{
"id": 8,
"type": "column",
"value": "shipment"
},
{
"id": 4,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O"
] |
9,882 | college_2 | spider:train_spider.json:1482 | Find the salaries of all distinct instructors that are less than the largest salary. | SELECT DISTINCT salary FROM instructor WHERE salary < (SELECT max(salary) FROM instructor) | [
"Find",
"the",
"salaries",
"of",
"all",
"distinct",
"instructors",
"that",
"are",
"less",
"than",
"the",
"largest",
"salary",
"."
] | [
{
"id": 0,
"type": "table",
"value": "instructor"
},
{
"id": 1,
"type": "column",
"value": "salary"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
13
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
9,884 | regional_sales | bird:train.json:2721 | In the Northeast region, what is the average household income for each city located in the state with the highest number of stores? | SELECT AVG(T2.`Household Income`) FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode WHERE T1.Region = 'Northeast' GROUP BY T2.State ORDER BY COUNT(T2.StoreID) DESC LIMIT 1 | [
"In",
"the",
"Northeast",
"region",
",",
"what",
"is",
"the",
"average",
"household",
"income",
"for",
"each",
"city",
"located",
"in",
"the",
"state",
"with",
"the",
"highest",
"number",
"of",
"stores",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "Household Income"
},
{
"id": 2,
"type": "table",
"value": "Store Locations"
},
{
"id": 4,
"type": "value",
"value": "Northeast"
},
{
"id": 6,
"type": "column",
"value": "statecode"
},
{
"id": 1,
"type": "t... | [
{
"entity_id": 0,
"token_idxs": [
17
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13,
14,
15
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": [
2
]... | [
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
9,885 | works_cycles | bird:train.json:7445 | What are locations of the work order "35493"? | SELECT T2.Name FROM WorkOrderRouting AS T1 INNER JOIN Location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.WorkOrderID = 35493 | [
"What",
"are",
"locations",
"of",
"the",
"work",
"order",
"\"",
"35493",
"\"",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "workorderrouting"
},
{
"id": 3,
"type": "column",
"value": "workorderid"
},
{
"id": 5,
"type": "column",
"value": "locationid"
},
{
"id": 2,
"type": "table",
"value": "location"
},
{
"id": 4,
"type": "value... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": [
5,
6
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
9,886 | world | bird:train.json:7893 | How many countries have a life expectancy of 75.1? | SELECT COUNT(*) FROM Country WHERE LifeExpectancy = 75.1 | [
"How",
"many",
"countries",
"have",
"a",
"life",
"expectancy",
"of",
"75.1",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "lifeexpectancy"
},
{
"id": 0,
"type": "table",
"value": "country"
},
{
"id": 2,
"type": "value",
"value": "75.1"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
9,887 | image_and_language | bird:train.json:7509 | How many objects are there in the attribute class id with the highest number of objects? | SELECT COUNT(ATT_CLASS_ID) FROM IMG_OBJ_att GROUP BY IMG_ID ORDER BY COUNT(ATT_CLASS_ID) DESC LIMIT 1 | [
"How",
"many",
"objects",
"are",
"there",
"in",
"the",
"attribute",
"class",
"i",
"d",
"with",
"the",
"highest",
"number",
"of",
"objects",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "att_class_id"
},
{
"id": 0,
"type": "table",
"value": "img_obj_att"
},
{
"id": 1,
"type": "column",
"value": "img_id"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8,
9,
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_i... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
9,888 | driving_school | spider:train_spider.json:6656 | List the states which have between 2 to 4 staffs living there. | SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4; | [
"List",
"the",
"states",
"which",
"have",
"between",
"2",
"to",
"4",
"staffs",
"living",
"there",
"."
] | [
{
"id": 0,
"type": "column",
"value": "state_province_county"
},
{
"id": 6,
"type": "column",
"value": "staff_address_id"
},
{
"id": 5,
"type": "column",
"value": "address_id"
},
{
"id": 1,
"type": "table",
"value": "addresses"
},
{
"id": 2,
"t... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": [
8
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O"
] |
9,889 | university | bird:train.json:8042 | Which universities have more than 100,000 students in 2011? | SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T1.num_students > 100000 | [
"Which",
"universities",
"have",
"more",
"than",
"100,000",
"students",
"in",
"2011",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "university_name"
},
{
"id": 1,
"type": "table",
"value": "university_year"
},
{
"id": 3,
"type": "column",
"value": "university_id"
},
{
"id": 7,
"type": "column",
"value": "num_students"
},
{
"id": 2,
"ty... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
1
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
9,890 | boat_1 | bird:test.json:848 | What is the name of the sailor who reserved boat 102? | SELECT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid WHERE T2.bid = 102 | [
"What",
"is",
"the",
"name",
"of",
"the",
"sailor",
"who",
"reserved",
"boat",
"102",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "reserves"
},
{
"id": 1,
"type": "table",
"value": "sailors"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "column",
"value": "bid"
},
{
"id": 4,
"type": "value",
"value": "102"
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
9,892 | solvency_ii | spider:train_spider.json:4585 | What are the names and type codes of products? | SELECT Product_Name , Product_Type_Code FROM Products | [
"What",
"are",
"the",
"names",
"and",
"type",
"codes",
"of",
"products",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "product_type_code"
},
{
"id": 1,
"type": "column",
"value": "product_name"
},
{
"id": 0,
"type": "table",
"value": "products"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O"
] |
9,893 | activity_1 | spider:train_spider.json:6772 | Which faculty do not participate in any activity? Find their faculty ids. | SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in | [
"Which",
"faculty",
"do",
"not",
"participate",
"in",
"any",
"activity",
"?",
"Find",
"their",
"faculty",
"ids",
"."
] | [
{
"id": 1,
"type": "table",
"value": "faculty_participates_in"
},
{
"id": 0,
"type": "table",
"value": "faculty"
},
{
"id": 2,
"type": "column",
"value": "facid"
}
] | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2,
3,
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": ... | [
"O",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"I-TABLE",
"I-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O"
] |
9,894 | card_games | bird:dev.json:500 | Tell the Japanese name of the set which card "Fellwar Stone" is in it. | SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Fellwar Stone' AND T2.language = 'Japanese' AND T2.translation IS NOT NULL | [
"Tell",
"the",
"Japanese",
"name",
"of",
"the",
"set",
"which",
"card",
"\"",
"Fellwar",
"Stone",
"\"",
"is",
"in",
"it",
"."
] | [
{
"id": 2,
"type": "table",
"value": "set_translations"
},
{
"id": 5,
"type": "value",
"value": "Fellwar Stone"
},
{
"id": 0,
"type": "column",
"value": "translation"
},
{
"id": 6,
"type": "column",
"value": "language"
},
{
"id": 7,
"type": "va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
9,895 | restaurant_1 | spider:train_spider.json:2837 | How long does student Linda Smith spend on the restaurant in total? | SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith"; | [
"How",
"long",
"does",
"student",
"Linda",
"Smith",
"spend",
"on",
"the",
"restaurant",
"in",
"total",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "visits_restaurant"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 2,
"type": "column",
"value": "spent"
},
{
"id": 3,
"type": "column",
"value": "stuid"
},
{
"id": 4,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-COLUMN",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
9,896 | allergy_1 | spider:train_spider.json:466 | What are the different majors? | SELECT DISTINCT Major FROM Student | [
"What",
"are",
"the",
"different",
"majors",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "major"
}
] | [
{
"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"
] |
9,897 | dorm_1 | spider:train_spider.json:5704 | Find the name of dorms which have TV Lounge but no Study Room as amenity. | SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid W... | [
"Find",
"the",
"name",
"of",
"dorms",
"which",
"have",
"TV",
"Lounge",
"but",
"no",
"Study",
"Room",
"as",
"amenity",
"."
] | [
{
"id": 1,
"type": "table",
"value": "dorm_amenity"
},
{
"id": 2,
"type": "column",
"value": "amenity_name"
},
{
"id": 6,
"type": "table",
"value": "has_amenity"
},
{
"id": 4,
"type": "value",
"value": "Study Room"
},
{
"id": 0,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": [
11,
12
]
},
{
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"B-COLUMN",
"O"
] |
9,898 | college_1 | spider:train_spider.json:3336 | What is the first name of the student whose last name starts with the letter S and is taking ACCT-211? | SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%' | [
"What",
"is",
"the",
"first",
"name",
"of",
"the",
"student",
"whose",
"last",
"name",
"starts",
"with",
"the",
"letter",
"S",
"and",
"is",
"taking",
"ACCT-211",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "class_code"
},
{
"id": 0,
"type": "column",
"value": "stu_fname"
},
{
"id": 7,
"type": "column",
"value": "stu_lname"
},
{
"id": 5,
"type": "column",
"value": "crs_code"
},
{
"id": 6,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
9
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
9,899 | works_cycles | bird:train.json:7236 | Where does the person with the BusinessEntityID "5555" live? | SELECT T3.City, T3.AddressLine1 FROM BusinessEntityAddress AS T1 INNER JOIN AddressType AS T2 ON T1.AddressTypeID = T2.AddressTypeID INNER JOIN Address AS T3 ON T1.AddressID = T3.AddressID WHERE T1.BusinessEntityID = 5555 AND T2.Name = 'Home' | [
"Where",
"does",
"the",
"person",
"with",
"the",
"BusinessEntityID",
"\"",
"5555",
"\"",
"live",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "businessentityaddress"
},
{
"id": 6,
"type": "column",
"value": "businessentityid"
},
{
"id": 10,
"type": "column",
"value": "addresstypeid"
},
{
"id": 1,
"type": "column",
"value": "addressline1"
},
{
"id": 4,... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O"
] |
9,900 | retail_world | bird:train.json:6468 | Please calculate the average unit price for products of Formaggi Fortini s.r.l. | SELECT SUM(T1.UnitPrice) / COUNT(T1.SupplierID) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Formaggi Fortini s.r.l.' | [
"Please",
"calculate",
"the",
"average",
"unit",
"price",
"for",
"products",
"of",
"Formaggi",
"Fortini",
"s.r.l",
"."
] | [
{
"id": 3,
"type": "value",
"value": "Formaggi Fortini s.r.l."
},
{
"id": 2,
"type": "column",
"value": "companyname"
},
{
"id": 4,
"type": "column",
"value": "supplierid"
},
{
"id": 1,
"type": "table",
"value": "suppliers"
},
{
"id": 5,
"type"... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9,
10,
11,
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"ent... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE"
] |
9,901 | csu_1 | spider:train_spider.json:2324 | Report the name of all campuses in Los Angeles county. | SELECT campus FROM campuses WHERE county = "Los Angeles" | [
"Report",
"the",
"name",
"of",
"all",
"campuses",
"in",
"Los",
"Angeles",
"county",
"."
] | [
{
"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"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O"
] |
9,902 | student_club | bird:dev.json:1404 | Identify the type of expenses and their total value approved for 'October Meeting' event. | SELECT T1.type, SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'October Meeting' | [
"Identify",
"the",
"type",
"of",
"expenses",
"and",
"their",
"total",
"value",
"approved",
"for",
"'",
"October",
"Meeting",
"'",
"event",
"."
] | [
{
"id": 3,
"type": "value",
"value": "October Meeting"
},
{
"id": 8,
"type": "column",
"value": "link_to_budget"
},
{
"id": 10,
"type": "column",
"value": "link_to_event"
},
{
"id": 2,
"type": "column",
"value": "event_name"
},
{
"id": 7,
"type... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"B-TABLE",
"O"
] |
9,903 | bike_share_1 | bird:train.json:9053 | What is the average duration of trips that ended on a foggy day? | SELECT AVG(T1.duration) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.events = 'Fog' | [
"What",
"is",
"the",
"average",
"duration",
"of",
"trips",
"that",
"ended",
"on",
"a",
"foggy",
"day",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "duration"
},
{
"id": 5,
"type": "column",
"value": "zip_code"
},
{
"id": 1,
"type": "table",
"value": "weather"
},
{
"id": 2,
"type": "column",
"value": "events"
},
{
"id": 0,
"type": "table",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
9,904 | synthea | bird:train.json:1505 | What is the percentage of Hispanic patients who stopped their care plan in 2011? | SELECT CAST(SUM(CASE WHEN T2.race = 'hispanic' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.PATIENT) FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE strftime('%Y', T1.stop) = '2011' | [
"What",
"is",
"the",
"percentage",
"of",
"Hispanic",
"patients",
"who",
"stopped",
"their",
"care",
"plan",
"in",
"2011",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "careplans"
},
{
"id": 1,
"type": "table",
"value": "patients"
},
{
"id": 10,
"type": "value",
"value": "hispanic"
},
{
"id": 3,
"type": "column",
"value": "patient"
},
{
"id": 2,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": [
10,
11
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_i... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-VALUE",
"O"
] |
9,905 | books | bird:train.json:6054 | How many orders have been cancelled in 2022? | SELECT COUNT(*) FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id WHERE T1.status_value = 'Cancelled' AND STRFTIME('%Y', T2.status_date) = '2022' | [
"How",
"many",
"orders",
"have",
"been",
"cancelled",
"in",
"2022",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "order_history"
},
{
"id": 0,
"type": "table",
"value": "order_status"
},
{
"id": 3,
"type": "column",
"value": "status_value"
},
{
"id": 7,
"type": "column",
"value": "status_date"
},
{
"id": 2,
"type": "co... | [
{
"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": [
5
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
9,906 | codebase_comments | bird:train.json:596 | What is the processed time to download the repository whose files are contained in the solution with the path "jeffdik_tachy\src\Tachy.sln". | SELECT DISTINCT T2.ProcessedTime FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'jeffdik_tachysrcTachy.sln' | [
"What",
"is",
"the",
"processed",
"time",
"to",
"download",
"the",
"repository",
"whose",
"files",
"are",
"contained",
"in",
"the",
"solution",
"with",
"the",
"path",
"\"",
"jeffdik_tachy\\src\\Tachy.sln",
"\"",
"."
] | [
{
"id": 4,
"type": "value",
"value": "jeffdik_tachysrcTachy.sln"
},
{
"id": 0,
"type": "column",
"value": "processedtime"
},
{
"id": 2,
"type": "table",
"value": "solution"
},
{
"id": 6,
"type": "column",
"value": "repoid"
},
{
"id": 1,
"type":... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": [
18
]
},
{
"entity_id": 4,
"token_idxs": [
20
]
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
9,907 | simpson_episodes | bird:train.json:4225 | Mention the episode ID, title and any three keywords of the episode which get the most number of votes in star classification of worst. | SELECT DISTINCT T3.episode_id, T2.title, T1.keyword FROM Keyword AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Vote AS T3 ON T2.episode_id = T3.episode_id WHERE T3.stars = 1 ORDER BY T3.votes DESC LIMIT 3; | [
"Mention",
"the",
"episode",
"ID",
",",
"title",
"and",
"any",
"three",
"keywords",
"of",
"the",
"episode",
"which",
"get",
"the",
"most",
"number",
"of",
"votes",
"in",
"star",
"classification",
"of",
"worst",
"."
] | [
{
"id": 0,
"type": "column",
"value": "episode_id"
},
{
"id": 2,
"type": "column",
"value": "keyword"
},
{
"id": 7,
"type": "table",
"value": "keyword"
},
{
"id": 8,
"type": "table",
"value": "episode"
},
{
"id": 1,
"type": "column",
"value... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
19
]
},
{
"entity_id": 4,
"token_idxs": [
21
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O"
] |
9,908 | app_store | bird:train.json:2550 | Which apps have been reviewed more than 75 000 000 times and the content is suitable for teenagers? | SELECT DISTINCT App FROM playstore WHERE Reviews > 75000000 AND `Content Rating` = 'Teen' | [
"Which",
"apps",
"have",
"been",
"reviewed",
"more",
"than",
"75",
"000",
"000",
"times",
"and",
"the",
"content",
"is",
"suitable",
"for",
"teenagers",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "Content Rating"
},
{
"id": 0,
"type": "table",
"value": "playstore"
},
{
"id": 3,
"type": "value",
"value": "75000000"
},
{
"id": 2,
"type": "column",
"value": "reviews"
},
{
"id": 5,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 4,
"token_idxs": [
13,
1... | [
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
9,910 | formula_1 | spider:train_spider.json:2173 | How many drivers did not participate in the races held in 2009? | SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 ) | [
"How",
"many",
"drivers",
"did",
"not",
"participate",
"in",
"the",
"races",
"held",
"in",
"2009",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "driverid"
},
{
"id": 0,
"type": "table",
"value": "results"
},
{
"id": 2,
"type": "column",
"value": "raceid"
},
{
"id": 3,
"type": "table",
"value": "races"
},
{
"id": 4,
"type": "column",
"value": "y... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
9,911 | works_cycles | bird:train.json:7440 | Is there a work order where the planned cost is different from the actual cost? | SELECT CASE WHEN ActualCost = PlannedCost THEN 'No' ELSE 'Yes' END FROM WorkOrderRouting | [
"Is",
"there",
"a",
"work",
"order",
"where",
"the",
"planned",
"cost",
"is",
"different",
"from",
"the",
"actual",
"cost",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "workorderrouting"
},
{
"id": 4,
"type": "column",
"value": "plannedcost"
},
{
"id": 3,
"type": "column",
"value": "actualcost"
},
{
"id": 1,
"type": "value",
"value": "Yes"
},
{
"id": 2,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13,
14
]
},
{
"entity_id": 4,
"token_idxs": [
7,
8
]
},
... | [
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
9,912 | boat_1 | bird:test.json:879 | What is the name of all sailors whose rating is higher than all sailors named Luis? | SELECT name FROM Sailors WHERE rating > (SELECT max(rating) FROM Sailors WHERE name = 'Luis') | [
"What",
"is",
"the",
"name",
"of",
"all",
"sailors",
"whose",
"rating",
"is",
"higher",
"than",
"all",
"sailors",
"named",
"Luis",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "sailors"
},
{
"id": 2,
"type": "column",
"value": "rating"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value",
"value": "Luis"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
9,913 | retails | bird:train.json:6768 | List the name and phone number of customers in India who have an above-average account balance. | SELECT T1.c_name, T1.c_phone FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_acctbal > ( SELECT AVG(c_acctbal) FROM customer ) ORDER BY T1.c_name | [
"List",
"the",
"name",
"and",
"phone",
"number",
"of",
"customers",
"in",
"India",
"who",
"have",
"an",
"above",
"-",
"average",
"account",
"balance",
"."
] | [
{
"id": 5,
"type": "column",
"value": "c_nationkey"
},
{
"id": 6,
"type": "column",
"value": "n_nationkey"
},
{
"id": 4,
"type": "column",
"value": "c_acctbal"
},
{
"id": 2,
"type": "table",
"value": "customer"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
16,
17
]
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
9,914 | cre_Drama_Workshop_Groups | spider:train_spider.json:5095 | What are the planned delivery date and actual delivery date for each booking? | SELECT Planned_Delivery_Date , Actual_Delivery_Date FROM BOOKINGS | [
"What",
"are",
"the",
"planned",
"delivery",
"date",
"and",
"actual",
"delivery",
"date",
"for",
"each",
"booking",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "planned_delivery_date"
},
{
"id": 2,
"type": "column",
"value": "actual_delivery_date"
},
{
"id": 0,
"type": "table",
"value": "bookings"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
9,915 | regional_sales | bird:train.json:2681 | What are the names of the sales teams that have served to customer Apotheca, Ltd? | SELECT DISTINCT T3.`Sales Team` FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID INNER JOIN `Sales Team` AS T3 ON T3.SalesTeamID = T2._SalesTeamID WHERE T1.`Customer Names` = 'Apotheca, Ltd' | [
"What",
"are",
"the",
"names",
"of",
"the",
"sales",
"teams",
"that",
"have",
"served",
"to",
"customer",
"Apotheca",
",",
"Ltd",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "Customer Names"
},
{
"id": 3,
"type": "value",
"value": "Apotheca, Ltd"
},
{
"id": 5,
"type": "table",
"value": "Sales Orders"
},
{
"id": 7,
"type": "column",
"value": "_salesteamid"
},
{
"id": 6,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6,
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13,
14,
15
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
}... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
9,916 | retail_world | bird:train.json:6449 | What are the prices on cheese products? | SELECT T2.UnitPrice FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.Description = 'Cheeses' | [
"What",
"are",
"the",
"prices",
"on",
"cheese",
"products",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "description"
},
{
"id": 1,
"type": "table",
"value": "categories"
},
{
"id": 5,
"type": "column",
"value": "categoryid"
},
{
"id": 0,
"type": "column",
"value": "unitprice"
},
{
"id": 2,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
5
]
},
{
"entity_... | [
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
9,917 | music_platform_2 | bird:train.json:7951 | What are the titles of the podcasts whose reviews were created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00? | SELECT DISTINCT T1.title FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.created_at BETWEEN '2018-08-22T11:53:16-07:00' AND '2018-11-20T11:14:20-07:00' | [
"What",
"are",
"the",
"titles",
"of",
"the",
"podcasts",
"whose",
"reviews",
"were",
"created",
"between",
"2018",
"-",
"08",
"-",
"22T11:53:16",
"-",
"07:00",
"and",
"2018",
"-",
"11",
"-",
"20T11:14:20",
"-",
"07:00",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "2018-08-22T11:53:16-07:00"
},
{
"id": 5,
"type": "value",
"value": "2018-11-20T11:14:20-07:00"
},
{
"id": 3,
"type": "column",
"value": "created_at"
},
{
"id": 6,
"type": "column",
"value": "podcast_id"
},
{
"i... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": [
12,
13,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O"
] |
9,918 | customer_complaints | spider:train_spider.json:5799 | What are the last names of staff with email addressed containing the substring "wrau"? | SELECT last_name FROM staff WHERE email_address LIKE "%wrau%" | [
"What",
"are",
"the",
"last",
"names",
"of",
"staff",
"with",
"email",
"addressed",
"containing",
"the",
"substring",
"\"",
"wrau",
"\"",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "email_address"
},
{
"id": 1,
"type": "column",
"value": "last_name"
},
{
"id": 3,
"type": "column",
"value": "%wrau%"
},
{
"id": 0,
"type": "table",
"value": "staff"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
8,
9
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
9,919 | talkingdata | bird:train.json:1045 | What is the name of the category which most users belong to? | SELECT T.category FROM ( SELECT T2.category, COUNT(T1.app_id) AS num FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T2.label_id = T1.label_id GROUP BY T1.app_id, T2.category ) AS T ORDER BY T.num DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"the",
"category",
"which",
"most",
"users",
"belong",
"to",
"?"
] | [
{
"id": 4,
"type": "table",
"value": "label_categories"
},
{
"id": 3,
"type": "table",
"value": "app_labels"
},
{
"id": 0,
"type": "column",
"value": "category"
},
{
"id": 5,
"type": "column",
"value": "label_id"
},
{
"id": 2,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
9,920 | party_people | spider:train_spider.json:2082 | Count the number of Annual Meeting events that took place in the region of the United Kingdom. | SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = "United Kingdom" AND t3.Event_Name = "Annaual Meeting" | [
"Count",
"the",
"number",
"of",
"Annual",
"Meeting",
"events",
"that",
"took",
"place",
"in",
"the",
"region",
"of",
"the",
"United",
"Kingdom",
"."
] | [
{
"id": 7,
"type": "column",
"value": "Annaual Meeting"
},
{
"id": 5,
"type": "column",
"value": "United Kingdom"
},
{
"id": 0,
"type": "table",
"value": "party_events"
},
{
"id": 4,
"type": "column",
"value": "region_name"
},
{
"id": 6,
"type"... | [
{
"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": [
15,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
9,921 | regional_sales | bird:train.json:2644 | How many sales team were from Northeast? | SELECT SUM(CASE WHEN Region = 'Northeast' THEN 1 ELSE 0 END) FROM `Sales Team` | [
"How",
"many",
"sales",
"team",
"were",
"from",
"Northeast",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "Sales Team"
},
{
"id": 4,
"type": "value",
"value": "Northeast"
},
{
"id": 3,
"type": "column",
"value": "region"
},
{
"id": 1,
"type": "value",
"value": "0"
},
{
"id": 2,
"type": "value",
"value": "1"
... | [
{
"entity_id": 0,
"token_idxs": [
2,
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
9,922 | student_loan | bird:train.json:4435 | What is the percentage of unemployed students who have been absent for 5 months from school? | SELECT CAST(SUM(IIF(T1.month > 5, 1, 0)) AS REAL) * 100 / COUNT(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name | [
"What",
"is",
"the",
"percentage",
"of",
"unemployed",
"students",
"who",
"have",
"been",
"absent",
"for",
"5",
"months",
"from",
"school",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "longest_absense_from_school"
},
{
"id": 1,
"type": "table",
"value": "unemployed"
},
{
"id": 4,
"type": "column",
"value": "month"
},
{
"id": 2,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "valu... | [
{
"entity_id": 0,
"token_idxs": [
14,
15
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_i... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"B-TABLE",
"I-TABLE",
"O"
] |
9,923 | flight_1 | spider:train_spider.json:395 | Show origin and destination for flights with price higher than 300. | SELECT origin , destination FROM Flight WHERE price > 300 | [
"Show",
"origin",
"and",
"destination",
"for",
"flights",
"with",
"price",
"higher",
"than",
"300",
"."
] | [
{
"id": 2,
"type": "column",
"value": "destination"
},
{
"id": 0,
"type": "table",
"value": "flight"
},
{
"id": 1,
"type": "column",
"value": "origin"
},
{
"id": 3,
"type": "column",
"value": "price"
},
{
"id": 4,
"type": "value",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": [
10
]
},
... | [
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
9,924 | chinook_1 | spider:train_spider.json:869 | Please show the employee first names and ids of employees who serve at least 10 customers. | SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10 | [
"Please",
"show",
"the",
"employee",
"first",
"names",
"and",
"ids",
"of",
"employees",
"who",
"serve",
"at",
"least",
"10",
"customers",
"."
] | [
{
"id": 0,
"type": "column",
"value": "supportrepid"
},
{
"id": 5,
"type": "column",
"value": "employeeid"
},
{
"id": 1,
"type": "column",
"value": "firstname"
},
{
"id": 2,
"type": "table",
"value": "customer"
},
{
"id": 3,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
... | [
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O"
] |
9,925 | customers_and_products_contacts | spider:train_spider.json:5660 | Show the name, phone, and payment method code for all customers in descending order of customer number. | SELECT customer_name , customer_phone , payment_method_code FROM customers ORDER BY customer_number DESC | [
"Show",
"the",
"name",
",",
"phone",
",",
"and",
"payment",
"method",
"code",
"for",
"all",
"customers",
"in",
"descending",
"order",
"of",
"customer",
"number",
"."
] | [
{
"id": 3,
"type": "column",
"value": "payment_method_code"
},
{
"id": 4,
"type": "column",
"value": "customer_number"
},
{
"id": 2,
"type": "column",
"value": "customer_phone"
},
{
"id": 1,
"type": "column",
"value": "customer_name"
},
{
"id": 0,
... | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
17,
18
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 4,
"token_idxs": []
},... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
9,926 | storm_record | spider:train_spider.json:2706 | List name and damage for all storms in a descending order of max speed. | SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC | [
"List",
"name",
"and",
"damage",
"for",
"all",
"storms",
"in",
"a",
"descending",
"order",
"of",
"max",
"speed",
"."
] | [
{
"id": 2,
"type": "column",
"value": "damage_millions_usd"
},
{
"id": 3,
"type": "column",
"value": "max_speed"
},
{
"id": 0,
"type": "table",
"value": "storm"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
9,927 | student_loan | bird:train.json:4487 | Among students who have been absent for nine months, how many of them are disabled? | SELECT COUNT(T1.name) FROM disabled AS T1 LEFT JOIN longest_absense_from_school AS T2 ON T2.name = T1.name WHERE T2.month = 9 | [
"Among",
"students",
"who",
"have",
"been",
"absent",
"for",
"nine",
"months",
",",
"how",
"many",
"of",
"them",
"are",
"disabled",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "longest_absense_from_school"
},
{
"id": 0,
"type": "table",
"value": "disabled"
},
{
"id": 2,
"type": "column",
"value": "month"
},
{
"id": 4,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value"... | [
{
"entity_id": 0,
"token_idxs": [
15
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
9,928 | music_tracker | bird:train.json:2061 | Among the releases that were released in 2000, how many of them were released as an album and tagged "pop"? | SELECT COUNT(T1.groupName) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'pop' AND T1.releaseType = 'album' AND T1.groupYear = 2000 | [
"Among",
"the",
"releases",
"that",
"were",
"released",
"in",
"2000",
",",
"how",
"many",
"of",
"them",
"were",
"released",
"as",
"an",
"album",
"and",
"tagged",
"\"",
"pop",
"\"",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "releasetype"
},
{
"id": 2,
"type": "column",
"value": "groupname"
},
{
"id": 8,
"type": "column",
"value": "groupyear"
},
{
"id": 0,
"type": "table",
"value": "torrents"
},
{
"id": 7,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
19
]
},
{
"entity_id": 5,
"token_idxs": [
21
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O"
] |
9,929 | disney | bird:train.json:4645 | Who is the director of the adventure movie which was released on 2007/3/30? | SELECT T1.director FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.name WHERE T2.genre = 'Adventure' AND T2.release_date = 'Mar 30, 2007' | [
"Who",
"is",
"the",
"director",
"of",
"the",
"adventure",
"movie",
"which",
"was",
"released",
"on",
"2007/3/30",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "movies_total_gross"
},
{
"id": 7,
"type": "column",
"value": "release_date"
},
{
"id": 8,
"type": "value",
"value": "Mar 30, 2007"
},
{
"id": 3,
"type": "column",
"value": "movie_title"
},
{
"id": 6,
"type"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
9,930 | movie_3 | bird:train.json:9112 | Please give the full names of all the active staff. | SELECT first_name, last_name FROM staff WHERE active = 1 | [
"Please",
"give",
"the",
"full",
"names",
"of",
"all",
"the",
"active",
"staff",
"."
] | [
{
"id": 1,
"type": "column",
"value": "first_name"
},
{
"id": 2,
"type": "column",
"value": "last_name"
},
{
"id": 3,
"type": "column",
"value": "active"
},
{
"id": 0,
"type": "table",
"value": "staff"
},
{
"id": 4,
"type": "value",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"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",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O"
] |
9,931 | farm | spider:train_spider.json:42 | Please show the different statuses of cities and the average population of cities with each status. | SELECT Status , avg(Population) FROM city GROUP BY Status | [
"Please",
"show",
"the",
"different",
"statuses",
"of",
"cities",
"and",
"the",
"average",
"population",
"of",
"cities",
"with",
"each",
"status",
"."
] | [
{
"id": 2,
"type": "column",
"value": "population"
},
{
"id": 1,
"type": "column",
"value": "status"
},
{
"id": 0,
"type": "table",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
9,933 | address_1 | bird:test.json:784 | Give the state that has the most cities. | SELECT state FROM City GROUP BY state ORDER BY count(*) DESC LIMIT 1 | [
"Give",
"the",
"state",
"that",
"has",
"the",
"most",
"cities",
"."
] | [
{
"id": 1,
"type": "column",
"value": "state"
},
{
"id": 0,
"type": "table",
"value": "city"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
9,934 | shipping | bird:train.json:5596 | Give the name of the driver of shipment no.1021. | SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = '1021' | [
"Give",
"the",
"name",
"of",
"the",
"driver",
"of",
"shipment",
"no.1021",
"."
] | [
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 1,
"type": "column",
"value": "last_name"
},
{
"id": 6,
"type": "column",
"value": "driver_id"
},
{
"id": 2,
"type": "table",
"value": "shipment"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-VALUE",
"O"
] |
9,935 | pilot_1 | bird:test.json:1144 | What are the names of pilots who have flown Piper Cub but not the B-52 Bomber? | SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub' EXCEPT SELECT pilot_name FROM pilotskills WHERE plane_name = 'B-52 Bomber' | [
"What",
"are",
"the",
"names",
"of",
"pilots",
"who",
"have",
"flown",
"Piper",
"Cub",
"but",
"not",
"the",
"B-52",
"Bomber",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "pilotskills"
},
{
"id": 4,
"type": "value",
"value": "B-52 Bomber"
},
{
"id": 1,
"type": "column",
"value": "pilot_name"
},
{
"id": 2,
"type": "column",
"value": "plane_name"
},
{
"id": 3,
"type": "value",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": [
14,
15
]
},
{
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
9,936 | student_club | bird:dev.json:1313 | How many students in the Student_Club are from the College of Engineering? | SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.college = 'College of Engineering' | [
"How",
"many",
"students",
"in",
"the",
"Student_Club",
"are",
"from",
"the",
"College",
"of",
"Engineering",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "College of Engineering"
},
{
"id": 5,
"type": "column",
"value": "link_to_major"
},
{
"id": 4,
"type": "column",
"value": "member_id"
},
{
"id": 6,
"type": "column",
"value": "major_id"
},
{
"id": 2,
"type"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
10,
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"to... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"I-VALUE",
"O"
] |
9,937 | movie_3 | bird:train.json:9297 | Who is the customer that is active and lives at 1795 Santiago de Compostela Way, Texas? | SELECT T1.first_name, T1.last_name FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T2.address = '1795 Santiago de Compostela Way' AND T1.active = 1 | [
"Who",
"is",
"the",
"customer",
"that",
"is",
"active",
"and",
"lives",
"at",
"1795",
"Santiago",
"de",
"Compostela",
"Way",
",",
"Texas",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "1795 Santiago de Compostela Way"
},
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 4,
"type": "column",
"value": "address_id"
},
{
"id": 1,
"type": "column",
"value": "last_name"
},
{
"id": 2,
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O"
] |
9,940 | european_football_2 | bird:dev.json:1145 | Which top 4 leagues had the most games in the 2015-2016 season? | SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2015/2016' GROUP BY t1.name ORDER BY COUNT(t2.id) DESC LIMIT 4 | [
"Which",
"top",
"4",
"leagues",
"had",
"the",
"most",
"games",
"in",
"the",
"2015",
"-",
"2016",
"season",
"?"
] | [
{
"id": 4,
"type": "value",
"value": "2015/2016"
},
{
"id": 6,
"type": "column",
"value": "league_id"
},
{
"id": 1,
"type": "table",
"value": "league"
},
{
"id": 3,
"type": "column",
"value": "season"
},
{
"id": 2,
"type": "table",
"value":... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": [
10,
11,
12
]... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-COLUMN",
"O"
] |
9,941 | cre_Doc_and_collections | bird:test.json:683 | How many child documents does each parent document has? List the document id and the number. | SELECT T2.Document_Object_ID , count(*) FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID GROUP BY T2.Document_Object_ID; | [
"How",
"many",
"child",
"documents",
"does",
"each",
"parent",
"document",
"has",
"?",
"List",
"the",
"document",
"i",
"d",
"and",
"the",
"number",
"."
] | [
{
"id": 2,
"type": "column",
"value": "parent_document_object_id"
},
{
"id": 0,
"type": "column",
"value": "document_object_id"
},
{
"id": 1,
"type": "table",
"value": "document_objects"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12,
13,
14
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs"... | [
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O"
] |
9,942 | simpson_episodes | bird:train.json:4174 | What is the percentage of Primetime Emmy nominated episodes with a rating over 7 to all the episodes that have a rating over 7? | SELECT CAST(SUM(CASE WHEN T1.award_category = 'Primetime Emmy' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T2.rating > 7 AND T1.result = 'Nominee'; | [
"What",
"is",
"the",
"percentage",
"of",
"Primetime",
"Emmy",
"nominated",
"episodes",
"with",
"a",
"rating",
"over",
"7",
"to",
"all",
"the",
"episodes",
"that",
"have",
"a",
"rating",
"over",
"7",
"?"
] | [
{
"id": 10,
"type": "column",
"value": "award_category"
},
{
"id": 11,
"type": "value",
"value": "Primetime Emmy"
},
{
"id": 2,
"type": "column",
"value": "episode_id"
},
{
"id": 1,
"type": "table",
"value": "episode"
},
{
"id": 6,
"type": "val... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
17
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
9,943 | device | spider:train_spider.json:5088 | Show the carriers of devices in stock at more than one shop. | SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1 | [
"Show",
"the",
"carriers",
"of",
"devices",
"in",
"stock",
"at",
"more",
"than",
"one",
"shop",
"."
] | [
{
"id": 0,
"type": "column",
"value": "device_id"
},
{
"id": 1,
"type": "column",
"value": "carrier"
},
{
"id": 3,
"type": "table",
"value": "device"
},
{
"id": 2,
"type": "table",
"value": "stock"
},
{
"id": 4,
"type": "value",
"value": "1... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
9,944 | chicago_crime | bird:train.json:8737 | How many crime cases have been classified as "Weapons Violation" by the FBI? | SELECT SUM(CASE WHEN T2.title = 'Weapons Violation' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no | [
"How",
"many",
"crime",
"cases",
"have",
"been",
"classified",
"as",
"\"",
"Weapons",
"Violation",
"\"",
"by",
"the",
"FBI",
"?"
] | [
{
"id": 6,
"type": "value",
"value": "Weapons Violation"
},
{
"id": 2,
"type": "column",
"value": "fbi_code_no"
},
{
"id": 1,
"type": "table",
"value": "fbi_code"
},
{
"id": 0,
"type": "table",
"value": "crime"
},
{
"id": 5,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"O"
] |
9,945 | movie_3 | bird:train.json:9216 | List the films' titles which were rented by Brian Wyman in July, 2005. | SELECT T4.title FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'BRIAN' AND T1.last_name = 'WYMAN' AND STRFTIME('%Y', T2.rental_date) = '2005' AND STRFTIM... | [
"List",
"the",
"films",
"'",
"titles",
"which",
"were",
"rented",
"by",
"Brian",
"Wyman",
"in",
"July",
",",
"2005",
"."
] | [
{
"id": 12,
"type": "column",
"value": "inventory_id"
},
{
"id": 14,
"type": "column",
"value": "rental_date"
},
{
"id": 16,
"type": "column",
"value": "customer_id"
},
{
"id": 4,
"type": "column",
"value": "first_name"
},
{
"id": 2,
"type": "t... | [
{
"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": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
9,946 | vehicle_rent | bird:test.json:430 | What is the name and model year of the vehicle which has been rented the most times? | SELECT T2.name , T2.model_year FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"and",
"model",
"year",
"of",
"the",
"vehicle",
"which",
"has",
"been",
"rented",
"the",
"most",
"times",
"?"
] | [
{
"id": 3,
"type": "table",
"value": "renting_history"
},
{
"id": 5,
"type": "column",
"value": "vehicles_id"
},
{
"id": 2,
"type": "column",
"value": "model_year"
},
{
"id": 4,
"type": "table",
"value": "vehicles"
},
{
"id": 1,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5,
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
9
]
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
9,947 | party_people | spider:train_spider.json:2078 | Return the name of the member who is in charge of the most events. | SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1 | [
"Return",
"the",
"name",
"of",
"the",
"member",
"who",
"is",
"in",
"charge",
"of",
"the",
"most",
"events",
"."
] | [
{
"id": 0,
"type": "column",
"value": "member_in_charge_id"
},
{
"id": 3,
"type": "table",
"value": "party_events"
},
{
"id": 1,
"type": "column",
"value": "member_name"
},
{
"id": 4,
"type": "column",
"value": "member_id"
},
{
"id": 2,
"type":... | [
{
"entity_id": 0,
"token_idxs": [
6,
7,
8,
9
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
13
]
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
9,948 | e_learning | spider:train_spider.json:3834 | List the dates of enrollment and completion of the student with family name "Zieme" and personal name "Bernie". | SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = "Zieme" AND T2.personal_name = "Bernie" | [
"List",
"the",
"dates",
"of",
"enrollment",
"and",
"completion",
"of",
"the",
"student",
"with",
"family",
"name",
"\"",
"Zieme",
"\"",
"and",
"personal",
"name",
"\"",
"Bernie",
"\"",
"."
] | [
{
"id": 2,
"type": "table",
"value": "student_course_enrolment"
},
{
"id": 1,
"type": "column",
"value": "date_of_completion"
},
{
"id": 0,
"type": "column",
"value": "date_of_enrolment"
},
{
"id": 7,
"type": "column",
"value": "personal_name"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"en... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O"
] |
9,949 | voter_2 | spider:train_spider.json:5498 | Find the distinct last names of all the students who have president votes and whose advisor is 8741. | SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "8741" | [
"Find",
"the",
"distinct",
"last",
"names",
"of",
"all",
"the",
"students",
"who",
"have",
"president",
"votes",
"and",
"whose",
"advisor",
"is",
"8741",
"."
] | [
{
"id": 6,
"type": "column",
"value": "president_vote"
},
{
"id": 2,
"type": "table",
"value": "voting_record"
},
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 3,
"type": "column",
"value": "advisor"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
17
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O"
] |
9,950 | codebase_community | bird:dev.json:715 | In comments with score between 1 to 5, list down the display names of the users with 0 down votes. | SELECT T2.DisplayName FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Score BETWEEN 1 AND 5 AND T2.DownVotes = 0 | [
"In",
"comments",
"with",
"score",
"between",
"1",
"to",
"5",
",",
"list",
"down",
"the",
"display",
"names",
"of",
"the",
"users",
"with",
"0",
"down",
"votes",
"."
] | [
{
"id": 0,
"type": "column",
"value": "displayname"
},
{
"id": 8,
"type": "column",
"value": "downvotes"
},
{
"id": 1,
"type": "table",
"value": "comments"
},
{
"id": 3,
"type": "column",
"value": "userid"
},
{
"id": 2,
"type": "table",
"va... | [
{
"entity_id": 0,
"token_idxs": [
12,
13
]
},
{
"entity_id": 1,
"token_idxs": [
1
]
},
{
"entity_id": 2,
"token_idxs": [
16
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_i... | [
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.