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 |
|---|---|---|---|---|---|---|---|---|
4,516 | aan_1 | bird:test.json:988 | What are the titles and paper ids for papers that have Mckeown, Kathleen or Rambow, Owen in their author list? | SELECT DISTINCT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE "%Mckeown , Kathleen%" OR T3.name LIKE "%Rambow , Owen%" | [
"What",
"are",
"the",
"titles",
"and",
"paper",
"ids",
"for",
"papers",
"that",
"have",
"Mckeown",
",",
"Kathleen",
"or",
"Rambow",
",",
"Owen",
"in",
"their",
"author",
"list",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "%Mckeown , Kathleen%"
},
{
"id": 8,
"type": "column",
"value": "%Rambow , Owen%"
},
{
"id": 4,
"type": "table",
"value": "author_list"
},
{
"id": 5,
"type": "column",
"value": "author_id"
},
{
"id": 1,
"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
20
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
21
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"B-TABLE",
"O"
] |
4,517 | customers_and_products_contacts | spider:train_spider.json:5656 | Show names and phones of customers who do not have address information. | SELECT customer_name , customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM customer_address_history) | [
"Show",
"names",
"and",
"phones",
"of",
"customers",
"who",
"do",
"not",
"have",
"address",
"information",
"."
] | [
{
"id": 4,
"type": "table",
"value": "customer_address_history"
},
{
"id": 2,
"type": "column",
"value": "customer_phone"
},
{
"id": 1,
"type": "column",
"value": "customer_name"
},
{
"id": 3,
"type": "column",
"value": "customer_id"
},
{
"id": 0,
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,518 | superstore | bird:train.json:2400 | Calculate the total cost of the orders by Brad Thomas in 2016. | SELECT SUM((T1.Sales / (1 - T1.Discount)) * T1.Quantity - T1.Profit) AS cost FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T1.`Product ID` = T3.`Product ID` AND T1.Region = T3.Region WHERE T1.Region = 'East' AND T2.`Customer Name` = 'Brad Thomas' A... | [
"Calculate",
"the",
"total",
"cost",
"of",
"the",
"orders",
"by",
"Brad",
"Thomas",
"in",
"2016",
"."
] | [
{
"id": 1,
"type": "table",
"value": "east_superstore"
},
{
"id": 5,
"type": "column",
"value": "Customer Name"
},
{
"id": 6,
"type": "value",
"value": "Brad Thomas"
},
{
"id": 9,
"type": "column",
"value": "Customer ID"
},
{
"id": 10,
"type": ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"O",
"B-VALUE",
"O"
] |
4,519 | ice_hockey_draft | bird:train.json:6945 | Identify the players who weigh 120 kg. | SELECT T2.PlayerName FROM weight_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.weight_id = T2.weight WHERE T1.weight_in_kg = 120 | [
"Identify",
"the",
"players",
"who",
"weigh",
"120",
"kg",
"."
] | [
{
"id": 3,
"type": "column",
"value": "weight_in_kg"
},
{
"id": 1,
"type": "table",
"value": "weight_info"
},
{
"id": 0,
"type": "column",
"value": "playername"
},
{
"id": 2,
"type": "table",
"value": "playerinfo"
},
{
"id": 5,
"type": "column"... | [
{
"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": [
5
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O"
] |
4,520 | disney | bird:train.json:4646 | Wolfgang Reitherman has directed several Disney movies, which one has the highest grossing after accounting for inflation? | SELECT T1.movie_title FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Wolfgang Reitherman' ORDER BY CAST(REPLACE(SUBSTR(inflation_adjusted_gross, 2), ',', '') AS REAL) DESC LIMIT 1 | [
"Wolfgang",
"Reitherman",
"has",
"directed",
"several",
"Disney",
"movies",
",",
"which",
"one",
"has",
"the",
"highest",
"grossing",
"after",
"accounting",
"for",
"inflation",
"?"
] | [
{
"id": 7,
"type": "column",
"value": "inflation_adjusted_gross"
},
{
"id": 4,
"type": "value",
"value": "Wolfgang Reitherman"
},
{
"id": 1,
"type": "table",
"value": "movies_total_gross"
},
{
"id": 0,
"type": "column",
"value": "movie_title"
},
{
... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": [
0,
1
]
},
{
"entity_id":... | [
"B-VALUE",
"I-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,521 | performance_attendance | spider:train_spider.json:1315 | Show the locations that have at least two performances. | SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*) >= 2 | [
"Show",
"the",
"locations",
"that",
"have",
"at",
"least",
"two",
"performances",
"."
] | [
{
"id": 0,
"type": "table",
"value": "performance"
},
{
"id": 1,
"type": "column",
"value": "location"
},
{
"id": 2,
"type": "value",
"value": "2"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,522 | student_1 | spider:train_spider.json:4077 | What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER? | SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER" | [
"What",
"are",
"the",
"first",
"and",
"last",
"names",
"of",
"the",
"first",
"-",
"grade",
"students",
"who",
"are",
"NOT",
"taught",
"by",
"teacher",
"OTHA",
"MOYER",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "firstname"
},
{
"id": 6,
"type": "column",
"value": "classroom"
},
{
"id": 1,
"type": "column",
"value": "lastname"
},
{
"id": 3,
"type": "table",
"value": "teachers"
},
{
"id": 4,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
9
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
18
]
},
{
"entity_id": 4,
"token_idxs": [
11
]
},
... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-COLUMN",
"O"
] |
4,523 | debit_card_specializing | bird:dev.json:1525 | What is the percentage of the customers who used EUR in 2012/8/25? | SELECT CAST(SUM(IIF(T2.Currency = 'EUR', 1, 0)) AS FLOAT) * 100 / COUNT(T1.CustomerID) FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date = '2012-08-25' | [
"What",
"is",
"the",
"percentage",
"of",
"the",
"customers",
"who",
"used",
"EUR",
"in",
"2012/8/25",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "transactions_1k"
},
{
"id": 3,
"type": "value",
"value": "2012-08-25"
},
{
"id": 4,
"type": "column",
"value": "customerid"
},
{
"id": 1,
"type": "table",
"value": "customers"
},
{
"id": 8,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
4,524 | sales | bird:train.json:5425 | Calculate the quantity percentage of the gift products in the total trading quantity. | SELECT CAST(SUM(IIF(T1.Price = 0, T2.Quantity, 0)) AS REAL) * 100 / SUM(T2.Quantity)FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID | [
"Calculate",
"the",
"quantity",
"percentage",
"of",
"the",
"gift",
"products",
"in",
"the",
"total",
"trading",
"quantity",
"."
] | [
{
"id": 2,
"type": "column",
"value": "productid"
},
{
"id": 0,
"type": "table",
"value": "products"
},
{
"id": 4,
"type": "column",
"value": "quantity"
},
{
"id": 1,
"type": "table",
"value": "sales"
},
{
"id": 6,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,525 | cs_semester | bird:train.json:949 | List the full name of the professors who advised students with intelligence 1. | SELECT T1.first_name, T1.last_name FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.intelligence = 1 | [
"List",
"the",
"full",
"name",
"of",
"the",
"professors",
"who",
"advised",
"students",
"with",
"intelligence",
"1",
"."
] | [
{
"id": 3,
"type": "column",
"value": "intelligence"
},
{
"id": 0,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "column",
"value": "student_id"
},
{
"id": 1,
"type": "column",
"value": "last_name"
},
{
"id": 2,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entit... | [
"O",
"O",
"O",
"B-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-VALUE",
"O"
] |
4,526 | store_product | spider:train_spider.json:4940 | Find the total population of the districts where the area is bigger than the average city area. | SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district) | [
"Find",
"the",
"total",
"population",
"of",
"the",
"districts",
"where",
"the",
"area",
"is",
"bigger",
"than",
"the",
"average",
"city",
"area",
"."
] | [
{
"id": 2,
"type": "column",
"value": "city_population"
},
{
"id": 1,
"type": "column",
"value": "city_area"
},
{
"id": 0,
"type": "table",
"value": "district"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
15,
16
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
4,527 | allergy_1 | spider:train_spider.json:461 | Show first name and last name for all students. | SELECT Fname , Lname FROM Student | [
"Show",
"first",
"name",
"and",
"last",
"name",
"for",
"all",
"students",
"."
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "fname"
},
{
"id": 2,
"type": "column",
"value": "lname"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
4,528 | shipping | bird:train.json:5674 | Provide the destination city of the shipment shipped by January 16, 2017. | SELECT T2.city_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_date = '2017-01-16' | [
"Provide",
"the",
"destination",
"city",
"of",
"the",
"shipment",
"shipped",
"by",
"January",
"16",
",",
"2017",
"."
] | [
{
"id": 4,
"type": "value",
"value": "2017-01-16"
},
{
"id": 0,
"type": "column",
"value": "city_name"
},
{
"id": 3,
"type": "column",
"value": "ship_date"
},
{
"id": 1,
"type": "table",
"value": "shipment"
},
{
"id": 5,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
3
]
},
{
"entity_id": 3,
"token_idxs": [
7
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,529 | movie_3 | bird:train.json:9402 | Calculate the average rate of renting the film that Lucille Tracy got starred. | SELECT AVG(T3.rental_rate) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'LUCILLE' AND T1.last_name = 'TRACY' | [
"Calculate",
"the",
"average",
"rate",
"of",
"renting",
"the",
"film",
"that",
"Lucille",
"Tracy",
"got",
"starred",
"."
] | [
{
"id": 1,
"type": "column",
"value": "rental_rate"
},
{
"id": 3,
"type": "table",
"value": "film_actor"
},
{
"id": 5,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "column",
"value": "last_name"
},
{
"id": 9,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"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",
"B-TABLE",
"B-TABLE",
"B-VALUE",
"B-VALUE",
"O",
"O",
"O"
] |
4,530 | formula_1 | bird:dev.json:909 | Among all European Grand Prix races, what is the percentage of the races were hosted in Germany? | SELECT CAST(COUNT(CASE WHEN T1.country = 'Germany' THEN T2.circuitID END) AS REAL) * 100 / COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix' | [
"Among",
"all",
"European",
"Grand",
"Prix",
"races",
",",
"what",
"is",
"the",
"percentage",
"of",
"the",
"races",
"were",
"hosted",
"in",
"Germany",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "European Grand Prix"
},
{
"id": 4,
"type": "column",
"value": "circuitid"
},
{
"id": 0,
"type": "table",
"value": "circuits"
},
{
"id": 6,
"type": "column",
"value": "country"
},
{
"id": 7,
"type": "value",... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
4,531 | chicago_crime | bird:train.json:8618 | Tell the number of cases with arrests in North Lawndale community. | SELECT SUM(CASE WHEN T1.community_area_name = 'North Lawndale' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.arrest = 'TRUE' | [
"Tell",
"the",
"number",
"of",
"cases",
"with",
"arrests",
"in",
"North",
"Lawndale",
"community",
"."
] | [
{
"id": 7,
"type": "column",
"value": "community_area_name"
},
{
"id": 4,
"type": "column",
"value": "community_area_no"
},
{
"id": 0,
"type": "table",
"value": "community_area"
},
{
"id": 8,
"type": "value",
"value": "North Lawndale"
},
{
"id": 2,... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"B-TABLE",
"O"
] |
4,532 | shipping | bird:train.json:5604 | Calculate the population density of the city as the destination of shipment no.1369. | SELECT T2.area / T2.population FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1369' | [
"Calculate",
"the",
"population",
"density",
"of",
"the",
"city",
"as",
"the",
"destination",
"of",
"shipment",
"no.1369",
"."
] | [
{
"id": 5,
"type": "column",
"value": "population"
},
{
"id": 0,
"type": "table",
"value": "shipment"
},
{
"id": 2,
"type": "column",
"value": "ship_id"
},
{
"id": 6,
"type": "column",
"value": "city_id"
},
{
"id": 1,
"type": "table",
"valu... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"O"
] |
4,534 | retail_complains | bird:train.json:321 | How long was Kendall Allen's complaint about her credit card? | SELECT T3.ser_time FROM events AS T1 INNER JOIN client AS T2 ON T1.Client_ID = T2.client_id INNER JOIN callcenterlogs AS T3 ON T1.`Complaint ID` = T3.`Complaint ID` WHERE T2.first = 'Kendall' AND T2.last = 'Allen' AND T2.sex = 'Female' AND T1.Product = 'Credit card' | [
"How",
"long",
"was",
"Kendall",
"Allen",
"'s",
"complaint",
"about",
"her",
"credit",
"card",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "callcenterlogs"
},
{
"id": 4,
"type": "column",
"value": "Complaint ID"
},
{
"id": 12,
"type": "value",
"value": "Credit card"
},
{
"id": 13,
"type": "column",
"value": "client_id"
},
{
"id": 0,
"type": "co... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
6
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
4,535 | party_people | spider:train_spider.json:2059 | What is the name of party with most number of members? | SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"name",
"of",
"party",
"with",
"most",
"number",
"of",
"members",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "party_name"
},
{
"id": 0,
"type": "column",
"value": "party_id"
},
{
"id": 2,
"type": "table",
"value": "member"
},
{
"id": 3,
"type": "table",
"value": "party"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,536 | tracking_share_transactions | spider:train_spider.json:5856 | Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000. | SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > 100 OR amount_of_transaction > 1000 | [
"Show",
"the",
"dates",
"of",
"transactions",
"if",
"the",
"share",
"count",
"is",
"bigger",
"than",
"100",
"or",
"the",
"amount",
"is",
"bigger",
"than",
"1000",
"."
] | [
{
"id": 4,
"type": "column",
"value": "amount_of_transaction"
},
{
"id": 1,
"type": "column",
"value": "date_of_transaction"
},
{
"id": 0,
"type": "table",
"value": "transactions"
},
{
"id": 2,
"type": "column",
"value": "share_count"
},
{
"id": 5,... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": []
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
4,537 | mondial_geo | bird:train.json:8217 | In which country does Polish found least in? | SELECT T2.Name FROM ethnicGroup AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'Polish' GROUP BY T2.Name, T1.Percentage ORDER BY T1.Percentage ASC LIMIT 1 | [
"In",
"which",
"country",
"does",
"Polish",
"found",
"least",
"in",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "ethnicgroup"
},
{
"id": 1,
"type": "column",
"value": "percentage"
},
{
"id": 3,
"type": "table",
"value": "country"
},
{
"id": 5,
"type": "column",
"value": "country"
},
{
"id": 4,
"type": "value",
"va... | [
{
"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": [
4
]
},
{
"entity_id": 5,
"token_idxs": [
2
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"O"
] |
4,538 | cre_Docs_and_Epenses | spider:train_spider.json:6419 | What is the document type code with most number of documents? | SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"document",
"type",
"code",
"with",
"most",
"number",
"of",
"documents",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "document_type_code"
},
{
"id": 0,
"type": "table",
"value": "documents"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,539 | dorm_1 | spider:train_spider.json:5732 | Find the first and last name of students who are not in the largest major. | SELECT fname , lname FROM student WHERE major != (SELECT major FROM student GROUP BY major ORDER BY count(*) DESC LIMIT 1) | [
"Find",
"the",
"first",
"and",
"last",
"name",
"of",
"students",
"who",
"are",
"not",
"in",
"the",
"largest",
"major",
"."
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "fname"
},
{
"id": 2,
"type": "column",
"value": "lname"
},
{
"id": 3,
"type": "column",
"value": "major"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,540 | music_1 | spider:train_spider.json:3542 | What are the names of the artists who sang the shortest song? | SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1 | [
"What",
"are",
"the",
"names",
"of",
"the",
"artists",
"who",
"sang",
"the",
"shortest",
"song",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "artist_name"
},
{
"id": 3,
"type": "column",
"value": "duration"
},
{
"id": 2,
"type": "table",
"value": "files"
},
{
"id": 1,
"type": "table",
"value": "song"
},
{
"id": 4,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,541 | works_cycles | bird:train.json:7254 | To which group does the department with the least amount of workers belong to? Indicate the name of the department as well. | SELECT T2.GroupName FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID GROUP BY T2.GroupName ORDER BY COUNT(T1.BusinessEntityID) LIMIT 1 | [
"To",
"which",
"group",
"does",
"the",
"department",
"with",
"the",
"least",
"amount",
"of",
"workers",
"belong",
"to",
"?",
"Indicate",
"the",
"name",
"of",
"the",
"department",
"as",
"well",
"."
] | [
{
"id": 1,
"type": "table",
"value": "employeedepartmenthistory"
},
{
"id": 4,
"type": "column",
"value": "businessentityid"
},
{
"id": 3,
"type": "column",
"value": "departmentid"
},
{
"id": 2,
"type": "table",
"value": "department"
},
{
"id": 0,
... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4,
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
20
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
... | [
"O",
"O",
"B-COLUMN",
"B-TABLE",
"I-TABLE",
"I-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O"
] |
4,542 | culture_company | spider:train_spider.json:6983 | What are the titles, years, and directors of all movies, ordered by budget in millions? | SELECT title , YEAR , director FROM movie ORDER BY budget_million | [
"What",
"are",
"the",
"titles",
",",
"years",
",",
"and",
"directors",
"of",
"all",
"movies",
",",
"ordered",
"by",
"budget",
"in",
"millions",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "budget_million"
},
{
"id": 3,
"type": "column",
"value": "director"
},
{
"id": 0,
"type": "table",
"value": "movie"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 2,
"type": "column",
"val... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": [
15,
16,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
4,544 | driving_school | spider:train_spider.json:6669 | When did Carole Bernhard first become a customer? | SELECT date_became_customer FROM Customers WHERE first_name = "Carole" AND last_name = "Bernhard"; | [
"When",
"did",
"Carole",
"Bernhard",
"first",
"become",
"a",
"customer",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "date_became_customer"
},
{
"id": 2,
"type": "column",
"value": "first_name"
},
{
"id": 0,
"type": "table",
"value": "customers"
},
{
"id": 4,
"type": "column",
"value": "last_name"
},
{
"id": 5,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
5,
6
]
},
{
"entity_id": 2,
"token_idxs": [
4
]
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O"
] |
4,545 | cs_semester | bird:train.json:948 | What is the average capability of students with less than a 2.5 GPA? | SELECT CAST(SUM(T1.capability) AS REAL) / COUNT(T1.student_id) FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T2.gpa < 2.5 | [
"What",
"is",
"the",
"average",
"capability",
"of",
"students",
"with",
"less",
"than",
"a",
"2.5",
"GPA",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "student_id"
},
{
"id": 5,
"type": "column",
"value": "capability"
},
{
"id": 1,
"type": "table",
"value": "student"
},
{
"id": 2,
"type": "column",
"value": "gpa"
},
{
"id": 3,
"type": "value",
"value"... | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
12
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"enti... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"B-VALUE",
"B-COLUMN",
"O"
] |
4,546 | bike_share_1 | bird:train.json:9075 | How many rainy days were recorded in Mountain View? | SELECT SUM(IIF(zip_code = 94041 AND events = 'Rain', 1, 0)) FROM weather | [
"How",
"many",
"rainy",
"days",
"were",
"recorded",
"in",
"Mountain",
"View",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "zip_code"
},
{
"id": 0,
"type": "table",
"value": "weather"
},
{
"id": 5,
"type": "column",
"value": "events"
},
{
"id": 4,
"type": "value",
"value": "94041"
},
{
"id": 6,
"type": "value",
"value": "Ra... | [
{
"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",
"B-VALUE",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,547 | voter_2 | spider:train_spider.json:5458 | What is the average age of female (sex is F) students? | SELECT avg(Age) FROM STUDENT WHERE Sex = "F" | [
"What",
"is",
"the",
"average",
"age",
"of",
"female",
"(",
"sex",
"is",
"F",
")",
"students",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "student"
},
{
"id": 1,
"type": "column",
"value": "sex"
},
{
"id": 3,
"type": "column",
"value": "age"
},
{
"id": 2,
"type": "column",
"value": "F"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
4,548 | college_1 | spider:train_spider.json:3299 | What is the department name of the students with lowest gpa belongs to? | SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1 | [
"What",
"is",
"the",
"department",
"name",
"of",
"the",
"students",
"with",
"lowest",
"gpa",
"belongs",
"to",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "department"
},
{
"id": 0,
"type": "column",
"value": "dept_name"
},
{
"id": 4,
"type": "column",
"value": "dept_code"
},
{
"id": 1,
"type": "table",
"value": "student"
},
{
"id": 3,
"type": "column",
"v... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": [
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
4,549 | student_club | bird:dev.json:1427 | What are the budget category of the events located at MU 215 and a guest speaker type with a 0 budget spent? | SELECT DISTINCT T2.category, T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215' AND T2.spent = 0 AND T1.type = 'Guest Speaker' | [
"What",
"are",
"the",
"budget",
"category",
"of",
"the",
"events",
"located",
"at",
"MU",
"215",
"and",
"a",
"guest",
"speaker",
"type",
"with",
"a",
"0",
"budget",
"spent",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "link_to_event"
},
{
"id": 10,
"type": "value",
"value": "Guest Speaker"
},
{
"id": 0,
"type": "column",
"value": "category"
},
{
"id": 4,
"type": "column",
"value": "event_id"
},
{
"id": 6,
"type": "column... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
16
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
20
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-VALUE",
"I-VALUE",
"O",
"O",
"B-VALUE",
"I-VALUE",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"B-TABLE",
"B-COLUMN",
"O"
] |
4,550 | address | bird:train.json:5228 | Who is the CBSA officer of the post point in the area with the highest number of employees? | SELECT T1.CBSA_name FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.employees = ( SELECT MAX(employees) FROM zip_data ) | [
"Who",
"is",
"the",
"CBSA",
"officer",
"of",
"the",
"post",
"point",
"in",
"the",
"area",
"with",
"the",
"highest",
"number",
"of",
"employees",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "cbsa_name"
},
{
"id": 3,
"type": "column",
"value": "employees"
},
{
"id": 2,
"type": "table",
"value": "zip_data"
},
{
"id": 1,
"type": "table",
"value": "cbsa"
},
{
"id": 4,
"type": "column",
"value"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,551 | thrombosis_prediction | bird:dev.json:1166 | What are the symptoms observed by the youngest patient to ever did a medical examination? Identify their diagnosis. | SELECT T2.Symptoms, T1.Diagnosis FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.Symptoms IS NOT NULL ORDER BY T1.Birthday DESC LIMIT 1 | [
"What",
"are",
"the",
"symptoms",
"observed",
"by",
"the",
"youngest",
"patient",
"to",
"ever",
"did",
"a",
"medical",
"examination",
"?",
"Identify",
"their",
"diagnosis",
"."
] | [
{
"id": 3,
"type": "table",
"value": "examination"
},
{
"id": 1,
"type": "column",
"value": "diagnosis"
},
{
"id": 0,
"type": "column",
"value": "symptoms"
},
{
"id": 4,
"type": "column",
"value": "birthday"
},
{
"id": 2,
"type": "table",
"... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": [
18
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
14
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entit... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,553 | simpson_episodes | bird:train.json:4227 | Describe the award title, person and character name of the award ID 326. | SELECT DISTINCT T1.award, T1.person, T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T2.award_id = 326; | [
"Describe",
"the",
"award",
"title",
",",
"person",
"and",
"character",
"name",
"of",
"the",
"award",
"ID",
"326",
"."
] | [
{
"id": 4,
"type": "table",
"value": "character_award"
},
{
"id": 2,
"type": "column",
"value": "character"
},
{
"id": 5,
"type": "column",
"value": "award_id"
},
{
"id": 1,
"type": "column",
"value": "person"
},
{
"id": 0,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
5
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"B-VALUE",
"O"
] |
4,555 | movie_2 | bird:test.json:1843 | Select the name of all movie theaters that are not currently showing a movie. | SELECT DISTINCT name FROM MovieTheaters WHERE Movie = 'null' | [
"Select",
"the",
"name",
"of",
"all",
"movie",
"theaters",
"that",
"are",
"not",
"currently",
"showing",
"a",
"movie",
"."
] | [
{
"id": 0,
"type": "table",
"value": "movietheaters"
},
{
"id": 2,
"type": "column",
"value": "movie"
},
{
"id": 1,
"type": "column",
"value": "name"
},
{
"id": 3,
"type": "value",
"value": "null"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
13
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,556 | student_club | bird:dev.json:1435 | List the names of closed event as "game" that was closed from 3/15/2019 to 3/20/2020. | SELECT DISTINCT event_name FROM event WHERE type = 'Game' AND date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-03-15' AND '2020-03-20' AND status = 'Closed' | [
"List",
"the",
"names",
"of",
"closed",
"event",
"as",
"\"",
"game",
"\"",
"that",
"was",
"closed",
"from",
"3/15/2019",
"to",
"3/20/2020",
"."
] | [
{
"id": 1,
"type": "column",
"value": "event_name"
},
{
"id": 4,
"type": "value",
"value": "2019-03-15"
},
{
"id": 5,
"type": "value",
"value": "2020-03-20"
},
{
"id": 8,
"type": "column",
"value": "event_date"
},
{
"id": 6,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
6,
7
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
4,559 | game_injury | spider:train_spider.json:1286 | How many games are free of injury accidents? | SELECT count(*) FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident ) | [
"How",
"many",
"games",
"are",
"free",
"of",
"injury",
"accidents",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "injury_accident"
},
{
"id": 3,
"type": "column",
"value": "game_id"
},
{
"id": 0,
"type": "table",
"value": "game"
},
{
"id": 1,
"type": "column",
"value": "id"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O"
] |
4,560 | retail_world | bird:train.json:6393 | List the top five most costly products in 1998. | SELECT T3.ProductName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.OrderDate LIKE '1998%' ORDER BY T3.UnitPrice + T1.Freight DESC LIMIT 5 | [
"List",
"the",
"top",
"five",
"most",
"costly",
"products",
"in",
"1998",
"."
] | [
{
"id": 5,
"type": "table",
"value": "Order Details"
},
{
"id": 0,
"type": "column",
"value": "productname"
},
{
"id": 2,
"type": "column",
"value": "orderdate"
},
{
"id": 6,
"type": "column",
"value": "productid"
},
{
"id": 7,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"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",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
4,561 | address | bird:train.json:5120 | Tell the name of the county which is represented by Hartzler Vicky. | SELECT T1.county FROM country AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T3.first_name = 'Hartzler' AND T3.last_name = 'Vicky' GROUP BY T1.county | [
"Tell",
"the",
"name",
"of",
"the",
"county",
"which",
"is",
"represented",
"by",
"Hartzler",
"Vicky",
"."
] | [
{
"id": 5,
"type": "column",
"value": "cognress_rep_id"
},
{
"id": 3,
"type": "table",
"value": "zip_congress"
},
{
"id": 6,
"type": "column",
"value": "first_name"
},
{
"id": 8,
"type": "column",
"value": "last_name"
},
{
"id": 1,
"type": "tab... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
},
{
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-VALUE",
"O"
] |
4,565 | mondial_geo | bird:train.json:8289 | For the third largest country, which ethinic group has the most population? | SELECT T2.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Name = ( SELECT Name FROM country ORDER BY Area DESC LIMIT 2, 1 ) GROUP BY T2.Name ORDER BY T2.Percentage * T1.Population DESC LIMIT 1 | [
"For",
"the",
"third",
"largest",
"country",
",",
"which",
"ethinic",
"group",
"has",
"the",
"most",
"population",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "ethnicgroup"
},
{
"id": 5,
"type": "column",
"value": "percentage"
},
{
"id": 6,
"type": "column",
"value": "population"
},
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 4,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,566 | department_store | spider:train_spider.json:4734 | What are the distinct names of customers with an order status of Pending, sorted by customer id? | SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = "Pending" ORDER BY T2.customer_id | [
"What",
"are",
"the",
"distinct",
"names",
"of",
"customers",
"with",
"an",
"order",
"status",
"of",
"Pending",
",",
"sorted",
"by",
"customer",
"i",
"d",
"?"
] | [
{
"id": 3,
"type": "column",
"value": "order_status_code"
},
{
"id": 2,
"type": "table",
"value": "customer_orders"
},
{
"id": 0,
"type": "column",
"value": "customer_name"
},
{
"id": 5,
"type": "column",
"value": "customer_id"
},
{
"id": 1,
"t... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9,
10
]
},
{
"entity_id": 4,
"token_idxs": [
12
]
},
{
"entity_id... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O"
] |
4,567 | culture_company | spider:train_spider.json:6986 | What is the title and director for the movie with highest worldwide gross in the year 2000 or before? | SELECT title , director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1 | [
"What",
"is",
"the",
"title",
"and",
"director",
"for",
"the",
"movie",
"with",
"highest",
"worldwide",
"gross",
"in",
"the",
"year",
"2000",
"or",
"before",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "gross_worldwide"
},
{
"id": 2,
"type": "column",
"value": "director"
},
{
"id": 0,
"type": "table",
"value": "movie"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 3,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
16
]
},
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"B-VALUE",
"O",
"O",
"O"
] |
4,568 | works_cycles | bird:train.json:7391 | How much are the minimum orders of the vendors that are no longer used by the company? | SELECT T2.MinOrderQty FROM Vendor AS T1 INNER JOIN ProductVendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.ActiveFlag = 0 ORDER BY T2.MinOrderQty LIMIT 1 | [
"How",
"much",
"are",
"the",
"minimum",
"orders",
"of",
"the",
"vendors",
"that",
"are",
"no",
"longer",
"used",
"by",
"the",
"company",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "businessentityid"
},
{
"id": 2,
"type": "table",
"value": "productvendor"
},
{
"id": 0,
"type": "column",
"value": "minorderqty"
},
{
"id": 3,
"type": "column",
"value": "activeflag"
},
{
"id": 1,
"type": ... | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"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"
] |
4,569 | aircraft | spider:train_spider.json:4800 | What are the descriptions for the aircrafts? | SELECT Description FROM aircraft | [
"What",
"are",
"the",
"descriptions",
"for",
"the",
"aircrafts",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "description"
},
{
"id": 0,
"type": "table",
"value": "aircraft"
}
] | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
4,570 | movie_platform | bird:train.json:110 | What percentage of users rated the movie "Patti Smith: Dream of Life" by more than 3? | SELECT CAST(SUM(CASE WHEN T1.rating_score > 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title LIKE 'Patti Smith: Dream of Life' | [
"What",
"percentage",
"of",
"users",
"rated",
"the",
"movie",
"\"",
"Patti",
"Smith",
":",
"Dream",
"of",
"Life",
"\"",
"by",
"more",
"than",
"3",
"?"
] | [
{
"id": 3,
"type": "value",
"value": "Patti Smith: Dream of Life"
},
{
"id": 6,
"type": "column",
"value": "rating_score"
},
{
"id": 2,
"type": "column",
"value": "movie_title"
},
{
"id": 4,
"type": "column",
"value": "movie_id"
},
{
"id": 0,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9,
10,
11,
12,
13
]
},
{
"entity_id": 4,
"token_idxs": [... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"O",
"B-VALUE",
"O"
] |
4,571 | movie_3 | bird:train.json:9300 | Please list any two films that Penelope Guiness acted in. | SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Penelope' AND T1.last_name = 'Guiness' LIMIT 2 | [
"Please",
"list",
"any",
"two",
"films",
"that",
"Penelope",
"Guiness",
"acted",
"in",
"."
] | [
{
"id": 3,
"type": "table",
"value": "film_actor"
},
{
"id": 5,
"type": "column",
"value": "first_name"
},
{
"id": 7,
"type": "column",
"value": "last_name"
},
{
"id": 6,
"type": "value",
"value": "Penelope"
},
{
"id": 9,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"B-TABLE",
"B-VALUE",
"B-VALUE",
"B-TABLE",
"O",
"O"
] |
4,572 | match_season | spider:train_spider.json:1058 | Show all distinct positions of matches. | SELECT DISTINCT POSITION FROM match_season | [
"Show",
"all",
"distinct",
"positions",
"of",
"matches",
"."
] | [
{
"id": 0,
"type": "table",
"value": "match_season"
},
{
"id": 1,
"type": "column",
"value": "position"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O"
] |
4,574 | customers_card_transactions | spider:train_spider.json:680 | What is the customer id of the customer with the most accounts, and how many accounts does this person have? | SELECT customer_id , count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1 | [
"What",
"is",
"the",
"customer",
"i",
"d",
"of",
"the",
"customer",
"with",
"the",
"most",
"accounts",
",",
"and",
"how",
"many",
"accounts",
"does",
"this",
"person",
"have",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "customer_id"
},
{
"id": 0,
"type": "table",
"value": "accounts"
}
] | [
{
"entity_id": 0,
"token_idxs": [
12
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,575 | planet_1 | bird:test.json:1863 | What is the average salary of all intern jobs? | SELECT avg(Salary) FROM Employee WHERE POSITION = "Intern"; | [
"What",
"is",
"the",
"average",
"salary",
"of",
"all",
"intern",
"jobs",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "employee"
},
{
"id": 1,
"type": "column",
"value": "position"
},
{
"id": 2,
"type": "column",
"value": "Intern"
},
{
"id": 3,
"type": "column",
"value": "salary"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O"
] |
4,576 | retail_world | bird:train.json:6560 | Among the supplied products from Australia, describe the discontinued products and the category. | SELECT T2.ProductName, T3.CategoryName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN Categories AS T3 ON T2.CategoryID = T3.CategoryID WHERE T1.Country = 'Australia' AND T2.Discontinued = 1 | [
"Among",
"the",
"supplied",
"products",
"from",
"Australia",
",",
"describe",
"the",
"discontinued",
"products",
"and",
"the",
"category",
"."
] | [
{
"id": 1,
"type": "column",
"value": "categoryname"
},
{
"id": 8,
"type": "column",
"value": "discontinued"
},
{
"id": 0,
"type": "column",
"value": "productname"
},
{
"id": 2,
"type": "table",
"value": "categories"
},
{
"id": 5,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-TABLE",
"B-TABLE",
"O",
"B-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,577 | party_people | spider:train_spider.json:2060 | Return the name of the party with the most members. | SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1 | [
"Return",
"the",
"name",
"of",
"the",
"party",
"with",
"the",
"most",
"members",
"."
] | [
{
"id": 1,
"type": "column",
"value": "party_name"
},
{
"id": 0,
"type": "column",
"value": "party_id"
},
{
"id": 2,
"type": "table",
"value": "member"
},
{
"id": 3,
"type": "table",
"value": "party"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,578 | student_club | bird:dev.json:1325 | What is the most expensive item that was spent in support of club events? | SELECT expense_description FROM expense ORDER BY cost DESC LIMIT 1 | [
"What",
"is",
"the",
"most",
"expensive",
"item",
"that",
"was",
"spent",
"in",
"support",
"of",
"club",
"events",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "expense_description"
},
{
"id": 0,
"type": "table",
"value": "expense"
},
{
"id": 2,
"type": "column",
"value": "cost"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"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-COLUMN",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,579 | mondial_geo | bird:train.json:8437 | Which nation has the highest GDP? Please give the nation's full name. | SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC LIMIT 1 | [
"Which",
"nation",
"has",
"the",
"highest",
"GDP",
"?",
"Please",
"give",
"the",
"nation",
"'s",
"full",
"name",
"."
] | [
{
"id": 1,
"type": "table",
"value": "country"
},
{
"id": 2,
"type": "table",
"value": "economy"
},
{
"id": 5,
"type": "column",
"value": "country"
},
{
"id": 0,
"type": "column",
"value": "name"
},
{
"id": 4,
"type": "column",
"value": "co... | [
{
"entity_id": 0,
"token_idxs": [
13
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,580 | olympics | bird:train.json:5063 | Calculate the average age of the competitors who participated in the 1924 Winter. | SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '1924 Winter' | [
"Calculate",
"the",
"average",
"age",
"of",
"the",
"competitors",
"who",
"participated",
"in",
"the",
"1924",
"Winter",
"."
] | [
{
"id": 1,
"type": "table",
"value": "games_competitor"
},
{
"id": 3,
"type": "value",
"value": "1924 Winter"
},
{
"id": 2,
"type": "column",
"value": "games_name"
},
{
"id": 6,
"type": "column",
"value": "games_id"
},
{
"id": 0,
"type": "table... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
11,
12
]
},
{
"entity_id": 4,
"token_idxs": [
3
]
},
{
"entity_id... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
4,581 | apartment_rentals | spider:train_spider.json:1224 | What are the booking start and end dates of the apartments with more than 2 bedrooms? | SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2 | [
"What",
"are",
"the",
"booking",
"start",
"and",
"end",
"dates",
"of",
"the",
"apartments",
"with",
"more",
"than",
"2",
"bedrooms",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "booking_start_date"
},
{
"id": 1,
"type": "table",
"value": "apartment_bookings"
},
{
"id": 3,
"type": "column",
"value": "bedroom_count"
},
{
"id": 2,
"type": "table",
"value": "apartments"
},
{
"id": 5,
... | [
{
"entity_id": 0,
"token_idxs": [
3,
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
10
]
},
{
"entity_id": 3,
"token_idxs": [
15
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
{
... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
4,582 | movie_platform | bird:train.json:95 | How many users have more than 100 followers in the list created by users in 2009? | SELECT COUNT(T1.user_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers > 100 AND T1.list_creation_date_utc LIKE '2009%' | [
"How",
"many",
"users",
"have",
"more",
"than",
"100",
"followers",
"in",
"the",
"list",
"created",
"by",
"users",
"in",
"2009",
"?"
] | [
{
"id": 6,
"type": "column",
"value": "list_creation_date_utc"
},
{
"id": 4,
"type": "column",
"value": "list_followers"
},
{
"id": 0,
"type": "table",
"value": "lists_users"
},
{
"id": 2,
"type": "column",
"value": "user_id"
},
{
"id": 3,
"typ... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
10
]
},
{
"entity_id": 2,
"token_idxs": [
13,
14
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_i... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
4,583 | chicago_crime | bird:train.json:8689 | What is the average number of less severe crimes reported a day in February of 2018? | SELECT CAST(COUNT(T2.case_number) AS REAL) / 28 FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no WHERE T2.date LIKE '2/%/2018%' AND T1.index_code = 'N' | [
"What",
"is",
"the",
"average",
"number",
"of",
"less",
"severe",
"crimes",
"reported",
"a",
"day",
"in",
"February",
"of",
"2018",
"?"
] | [
{
"id": 8,
"type": "column",
"value": "case_number"
},
{
"id": 6,
"type": "column",
"value": "index_code"
},
{
"id": 5,
"type": "value",
"value": "2/%/2018%"
},
{
"id": 3,
"type": "column",
"value": "iucr_no"
},
{
"id": 1,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
15
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs":... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-VALUE",
"O"
] |
4,584 | real_estate_rentals | bird:test.json:1414 | List the average room count of the properties with gardens. | SELECT avg(T3.room_count) FROM Property_Features AS T1 JOIN Features AS T2 ON T1.feature_id = T2.feature_id JOIN Properties AS T3 ON T1.property_id = T3.property_id WHERE T2.feature_name = 'garden'; | [
"List",
"the",
"average",
"room",
"count",
"of",
"the",
"properties",
"with",
"gardens",
"."
] | [
{
"id": 4,
"type": "table",
"value": "property_features"
},
{
"id": 1,
"type": "column",
"value": "feature_name"
},
{
"id": 6,
"type": "column",
"value": "property_id"
},
{
"id": 0,
"type": "table",
"value": "properties"
},
{
"id": 3,
"type": "... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
3,
4
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"O"
] |
4,585 | regional_sales | bird:train.json:2611 | State the delivery date of cookware. | SELECT T FROM ( SELECT DISTINCT IIF(T2.`Product Name` = 'Cookware', T1.DeliveryDate, NULL) AS T FROM `Sales Orders` T1 INNER JOIN Products T2 ON T2.ProductID = T1._ProductID ) WHERE T IS NOT NULL | [
"State",
"the",
"delivery",
"date",
"of",
"cookware",
"."
] | [
{
"id": 1,
"type": "table",
"value": "Sales Orders"
},
{
"id": 3,
"type": "column",
"value": "deliverydate"
},
{
"id": 6,
"type": "column",
"value": "Product Name"
},
{
"id": 5,
"type": "column",
"value": "_productid"
},
{
"id": 4,
"type": "col... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2,
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": []
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-VALUE",
"O"
] |
4,586 | book_press | bird:test.json:1984 | Count the number of authors of age below 30. | SELECT count(*) FROM author WHERE age < 30 | [
"Count",
"the",
"number",
"of",
"authors",
"of",
"age",
"below",
"30",
"."
] | [
{
"id": 0,
"type": "table",
"value": "author"
},
{
"id": 1,
"type": "column",
"value": "age"
},
{
"id": 2,
"type": "value",
"value": "30"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
8
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
4,587 | game_1 | spider:train_spider.json:6046 | What are the names of all the games that have been played for at least 1000 hours? | SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum(hours_played) >= 1000 | [
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"games",
"that",
"have",
"been",
"played",
"for",
"at",
"least",
"1000",
"hours",
"?"
] | [
{
"id": 5,
"type": "column",
"value": "hours_played"
},
{
"id": 2,
"type": "table",
"value": "plays_games"
},
{
"id": 3,
"type": "table",
"value": "video_games"
},
{
"id": 0,
"type": "column",
"value": "gameid"
},
{
"id": 1,
"type": "column",
... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
15
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
4,588 | farm | spider:train_spider.json:18 | List the total number of horses on farms in ascending order. | SELECT Total_Horses FROM farm ORDER BY Total_Horses ASC | [
"List",
"the",
"total",
"number",
"of",
"horses",
"on",
"farms",
"in",
"ascending",
"order",
"."
] | [
{
"id": 1,
"type": "column",
"value": "total_horses"
},
{
"id": 0,
"type": "table",
"value": "farm"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
4,589 | tracking_software_problems | spider:train_spider.json:5365 | How many problems did the product called "voluptatem" have in record? | SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = "voluptatem" | [
"How",
"many",
"problems",
"did",
"the",
"product",
"called",
"\"",
"voluptatem",
"\"",
"have",
"in",
"record",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "product_name"
},
{
"id": 3,
"type": "column",
"value": "voluptatem"
},
{
"id": 4,
"type": "column",
"value": "product_id"
},
{
"id": 1,
"type": "table",
"value": "problems"
},
{
"id": 0,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O"
] |
4,590 | climbing | spider:train_spider.json:1142 | List the names of mountains that do not have any climber. | SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber) | [
"List",
"the",
"names",
"of",
"mountains",
"that",
"do",
"not",
"have",
"any",
"climber",
"."
] | [
{
"id": 2,
"type": "column",
"value": "mountain_id"
},
{
"id": 0,
"type": "table",
"value": "mountain"
},
{
"id": 3,
"type": "table",
"value": "climber"
},
{
"id": 1,
"type": "column",
"value": "name"
}
] | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
10
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,591 | language_corpus | bird:train.json:5703 | What are the word pairs that occured only twice? | SELECT T1.word, T3.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T2.occurrences = 2 | [
"What",
"are",
"the",
"word",
"pairs",
"that",
"occured",
"only",
"twice",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "occurrences"
},
{
"id": 4,
"type": "table",
"value": "biwords"
},
{
"id": 1,
"type": "table",
"value": "words"
},
{
"id": 0,
"type": "column",
"value": "word"
},
{
"id": 6,
"type": "column",
"value": "... | [
{
"entity_id": 0,
"token_idxs": [
3
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O"
] |
4,592 | workshop_paper | spider:train_spider.json:5825 | Find the author who achieved the highest score in a submission. | SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1 | [
"Find",
"the",
"author",
"who",
"achieved",
"the",
"highest",
"score",
"in",
"a",
"submission",
"."
] | [
{
"id": 0,
"type": "table",
"value": "submission"
},
{
"id": 1,
"type": "column",
"value": "author"
},
{
"id": 2,
"type": "column",
"value": "scores"
}
] | [
{
"entity_id": 0,
"token_idxs": [
10
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
4,593 | retail_world | bird:train.json:6457 | What is the average salary for employees from ID 1 to 9? | SELECT AVG(Salary) FROM Employees WHERE EmployeeID BETWEEN 1 AND 9 | [
"What",
"is",
"the",
"average",
"salary",
"for",
"employees",
"from",
"ID",
"1",
"to",
"9",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "employeeid"
},
{
"id": 0,
"type": "table",
"value": "employees"
},
{
"id": 4,
"type": "column",
"value": "salary"
},
{
"id": 2,
"type": "value",
"value": "1"
},
{
"id": 3,
"type": "value",
"value": "9"... | [
{
"entity_id": 0,
"token_idxs": [
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"O"
] |
4,594 | movie_3 | bird:train.json:9347 | List down all ratings of action film titles. | SELECT T1.description FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'action' | [
"List",
"down",
"all",
"ratings",
"of",
"action",
"film",
"titles",
"."
] | [
{
"id": 5,
"type": "table",
"value": "film_category"
},
{
"id": 0,
"type": "column",
"value": "description"
},
{
"id": 6,
"type": "column",
"value": "category_id"
},
{
"id": 1,
"type": "table",
"value": "category"
},
{
"id": 7,
"type": "column"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O"
] |
4,595 | journal_committee | spider:train_spider.json:660 | Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme. | SELECT T2.Name , T2.age , T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme ASC | [
"Show",
"the",
"names",
"and",
"ages",
"of",
"editors",
"and",
"the",
"theme",
"of",
"journals",
"for",
"which",
"they",
"serve",
"on",
"committees",
",",
"in",
"ascending",
"alphabetical",
"order",
"of",
"theme",
"."
] | [
{
"id": 4,
"type": "table",
"value": "journal_committee"
},
{
"id": 6,
"type": "column",
"value": "journal_id"
},
{
"id": 7,
"type": "column",
"value": "editor_id"
},
{
"id": 3,
"type": "table",
"value": "journal"
},
{
"id": 5,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": [
24
]
},
{
"entity_id": 3,
"token_idxs": [
11
]
},
{
"entity_id": 4,
"token_idxs": [
16,
17
... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,596 | retails | bird:train.json:6742 | How many orders were shipped in 1994? | SELECT COUNT(l_orderkey) FROM lineitem WHERE STRFTIME('%Y', l_shipdate) = '1994' | [
"How",
"many",
"orders",
"were",
"shipped",
"in",
"1994",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "l_orderkey"
},
{
"id": 4,
"type": "column",
"value": "l_shipdate"
},
{
"id": 0,
"type": "table",
"value": "lineitem"
},
{
"id": 1,
"type": "value",
"value": "1994"
},
{
"id": 3,
"type": "value",
"value... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
4,597 | csu_1 | spider:train_spider.json:2364 | How many campuses are there in Los Angeles county? | SELECT count(*) FROM campuses WHERE county = "Los Angeles" | [
"How",
"many",
"campuses",
"are",
"there",
"in",
"Los",
"Angeles",
"county",
"?"
] | [
{
"id": 2,
"type": "column",
"value": "Los Angeles"
},
{
"id": 0,
"type": "table",
"value": "campuses"
},
{
"id": 1,
"type": "column",
"value": "county"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
8
]
},
{
"entity_id": 2,
"token_idxs": [
6,
7
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O"
] |
4,598 | legislator | bird:train.json:4791 | List the official full names and genders of legislators who have Collins as their last name. | SELECT official_full_name, gender_bio FROM current WHERE last_name = 'Collins' | [
"List",
"the",
"official",
"full",
"names",
"and",
"genders",
"of",
"legislators",
"who",
"have",
"Collins",
"as",
"their",
"last",
"name",
"."
] | [
{
"id": 1,
"type": "column",
"value": "official_full_name"
},
{
"id": 2,
"type": "column",
"value": "gender_bio"
},
{
"id": 3,
"type": "column",
"value": "last_name"
},
{
"id": 0,
"type": "table",
"value": "current"
},
{
"id": 4,
"type": "value... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
2,
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
6
]
},
{
"entity_id": 3,
"token_idxs": [
14,
15
]
},
{
"entity_id": 4,
"token_idxs": [
... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O"
] |
4,599 | cre_Doc_Control_Systems | spider:train_spider.json:2128 | List the employees who have not showed up in any circulation history of documents. List the employee's name. | SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id | [
"List",
"the",
"employees",
"who",
"have",
"not",
"showed",
"up",
"in",
"any",
"circulation",
"history",
"of",
"documents",
".",
"List",
"the",
"employee",
"'s",
"name",
"."
] | [
{
"id": 2,
"type": "table",
"value": "circulation_history"
},
{
"id": 1,
"type": "column",
"value": "employee_name"
},
{
"id": 3,
"type": "column",
"value": "employee_id"
},
{
"id": 0,
"type": "table",
"value": "employees"
}
] | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
18,
19
]
},
{
"entity_id": 2,
"token_idxs": [
10,
11
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": [... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"I-COLUMN",
"O"
] |
4,600 | university | bird:train.json:8085 | How many female students did Stanford University have in 2011? | SELECT CAST(T1.num_students * T1.pct_female_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T2.university_name = 'Stanford University' | [
"How",
"many",
"female",
"students",
"did",
"Stanford",
"University",
"have",
"in",
"2011",
"?"
] | [
{
"id": 8,
"type": "value",
"value": "Stanford University"
},
{
"id": 10,
"type": "column",
"value": "pct_female_students"
},
{
"id": 0,
"type": "table",
"value": "university_year"
},
{
"id": 7,
"type": "column",
"value": "university_name"
},
{
"id... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
4
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"B-COLUMN",
"B-COLUMN",
"B-COLUMN",
"B-VALUE",
"B-TABLE",
"O",
"O",
"B-VALUE",
"O"
] |
4,601 | retail_complains | bird:train.json:319 | How did Kyran Muller submit his complaint? | SELECT DISTINCT T2.`Submitted via` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Kyran' AND T1.last = 'Muller' | [
"How",
"did",
"Kyran",
"Muller",
"submit",
"his",
"complaint",
"?"
] | [
{
"id": 0,
"type": "column",
"value": "Submitted via"
},
{
"id": 3,
"type": "column",
"value": "client_id"
},
{
"id": 1,
"type": "table",
"value": "client"
},
{
"id": 2,
"type": "table",
"value": "events"
},
{
"id": 7,
"type": "value",
"val... | [
{
"entity_id": 0,
"token_idxs": [
4,
5
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"O",
"B-VALUE",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"B-TABLE",
"O"
] |
4,602 | book_review | bird:test.json:607 | What are the types of books that have at least three books belonging to? | SELECT TYPE FROM book GROUP BY TYPE HAVING COUNT(*) >= 3 | [
"What",
"are",
"the",
"types",
"of",
"books",
"that",
"have",
"at",
"least",
"three",
"books",
"belonging",
"to",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "book"
},
{
"id": 1,
"type": "column",
"value": "type"
},
{
"id": 2,
"type": "value",
"value": "3"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,603 | chicago_crime | bird:train.json:8626 | Give the detailed description of all the crimes against society. | SELECT description FROM FBI_Code WHERE crime_against = 'Society' | [
"Give",
"the",
"detailed",
"description",
"of",
"all",
"the",
"crimes",
"against",
"society",
"."
] | [
{
"id": 2,
"type": "column",
"value": "crime_against"
},
{
"id": 1,
"type": "column",
"value": "description"
},
{
"id": 0,
"type": "table",
"value": "fbi_code"
},
{
"id": 3,
"type": "value",
"value": "Society"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
7,
8
]
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id":... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"O"
] |
4,604 | books | bird:train.json:5913 | What is the publication date of the book with the most pages? | SELECT publication_date FROM book ORDER BY num_pages DESC LIMIT 1 | [
"What",
"is",
"the",
"publication",
"date",
"of",
"the",
"book",
"with",
"the",
"most",
"pages",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "publication_date"
},
{
"id": 2,
"type": "column",
"value": "num_pages"
},
{
"id": 0,
"type": "table",
"value": "book"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
3,
4
]
},
{
"entity_id": 2,
"token_idxs": [
11
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-COLUMN",
"O"
] |
4,605 | shipping | bird:train.json:5614 | How much is the annual revenue of the customer with the most number of shipments? | SELECT T2.annual_revenue FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_id ORDER BY COUNT(T1.cust_id) DESC LIMIT 1 | [
"How",
"much",
"is",
"the",
"annual",
"revenue",
"of",
"the",
"customer",
"with",
"the",
"most",
"number",
"of",
"shipments",
"?"
] | [
{
"id": 1,
"type": "column",
"value": "annual_revenue"
},
{
"id": 2,
"type": "table",
"value": "shipment"
},
{
"id": 3,
"type": "table",
"value": "customer"
},
{
"id": 0,
"type": "column",
"value": "cust_id"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
4,
5
]
},
{
"entity_id": 2,
"token_idxs": [
14
]
},
{
"entity_id": 3,
"token_idxs": [
8
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id"... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,606 | student_club | bird:dev.json:1370 | List all the expenses incurred by the vice president. | SELECT T2.expense_id, T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President' | [
"List",
"all",
"the",
"expenses",
"incurred",
"by",
"the",
"vice",
"president",
"."
] | [
{
"id": 1,
"type": "column",
"value": "expense_description"
},
{
"id": 5,
"type": "value",
"value": "Vice President"
},
{
"id": 7,
"type": "column",
"value": "link_to_member"
},
{
"id": 0,
"type": "column",
"value": "expense_id"
},
{
"id": 6,
"... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
3
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
7,
... | [
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-VALUE",
"I-VALUE",
"O"
] |
4,607 | menu | bird:train.json:5493 | How many pages were there on the menu created on 17th November 1898? | SELECT SUM(CASE WHEN T1.date = '1898-11-17' THEN 1 ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id | [
"How",
"many",
"pages",
"were",
"there",
"on",
"the",
"menu",
"created",
"on",
"17th",
"November",
"1898",
"?"
] | [
{
"id": 7,
"type": "value",
"value": "1898-11-17"
},
{
"id": 1,
"type": "table",
"value": "menupage"
},
{
"id": 3,
"type": "column",
"value": "menu_id"
},
{
"id": 0,
"type": "table",
"value": "menu"
},
{
"id": 6,
"type": "column",
"value": ... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"toke... | [
"O",
"B-TABLE",
"I-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,608 | loan_1 | spider:train_spider.json:3056 | For each account type, find the average account balance of customers with credit score lower than 50. | SELECT avg(acc_bal) , acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type | [
"For",
"each",
"account",
"type",
",",
"find",
"the",
"average",
"account",
"balance",
"of",
"customers",
"with",
"credit",
"score",
"lower",
"than",
"50",
"."
] | [
{
"id": 2,
"type": "column",
"value": "credit_score"
},
{
"id": 0,
"type": "table",
"value": "customer"
},
{
"id": 1,
"type": "column",
"value": "acc_type"
},
{
"id": 4,
"type": "column",
"value": "acc_bal"
},
{
"id": 3,
"type": "value",
"v... | [
{
"entity_id": 0,
"token_idxs": [
11
]
},
{
"entity_id": 1,
"token_idxs": [
2,
3
]
},
{
"entity_id": 2,
"token_idxs": [
13,
14
]
},
{
"entity_id": 3,
"token_idxs": [
17
]
},
{
"entity_id": 4,
"token_idxs": []... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O"
] |
4,609 | retail_complains | bird:train.json:330 | List the full names of all clients who live in the Pacific division. | SELECT T2.first, T2.middle, T2.last FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T1.division = 'Pacific' | [
"List",
"the",
"full",
"names",
"of",
"all",
"clients",
"who",
"live",
"in",
"the",
"Pacific",
"division",
"."
] | [
{
"id": 7,
"type": "column",
"value": "district_id"
},
{
"id": 3,
"type": "table",
"value": "district"
},
{
"id": 5,
"type": "column",
"value": "division"
},
{
"id": 6,
"type": "value",
"value": "Pacific"
},
{
"id": 1,
"type": "column",
"va... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
0
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
"token_idxs": ... | [
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"O"
] |
4,610 | cars | bird:train.json:3116 | Provide the price and country origin of the car named Ford Maverick. | SELECT DISTINCT T1.price, T3.country FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T4.car_name = 'ford maverick' | [
"Provide",
"the",
"price",
"and",
"country",
"origin",
"of",
"the",
"car",
"named",
"Ford",
"Maverick",
"."
] | [
{
"id": 4,
"type": "value",
"value": "ford maverick"
},
{
"id": 8,
"type": "table",
"value": "production"
},
{
"id": 3,
"type": "column",
"value": "car_name"
},
{
"id": 1,
"type": "column",
"value": "country"
},
{
"id": 5,
"type": "table",
... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
8,
9
]
},
{
"entity_id": 4,
"token_idxs": [
10,
11
]
},
{
"entity_id": 5... | [
"O",
"O",
"B-TABLE",
"O",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-VALUE",
"I-VALUE",
"O"
] |
4,611 | california_schools | bird:dev.json:83 | Of the schools that offers a magnet program serving a grade span of Kindergarten to 8th grade, how many offers Multiple Provision Types? List the number of cities that offers a Kindergarten to 8th grade span and indicate how many schools are there serving such grade span for each city. | SELECT T2.City, COUNT(T2.CDSCode) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.Magnet = 1 AND T2.GSoffered = 'K-8' AND T1.`NSLP Provision Status` = 'Multiple Provision Types' GROUP BY T2.City | [
"Of",
"the",
"schools",
"that",
"offers",
"a",
"magnet",
"program",
"serving",
"a",
"grade",
"span",
"of",
"Kindergarten",
"to",
"8th",
"grade",
",",
"how",
"many",
"offers",
"Multiple",
"Provision",
"Types",
"?",
"List",
"the",
"number",
"of",
"cities",
"... | [
{
"id": 9,
"type": "value",
"value": "Multiple Provision Types"
},
{
"id": 8,
"type": "column",
"value": "NSLP Provision Status"
},
{
"id": 6,
"type": "column",
"value": "gsoffered"
},
{
"id": 2,
"type": "table",
"value": "schools"
},
{
"id": 3,
... | [
{
"entity_id": 0,
"token_idxs": [
51
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": [
42
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
6
]
},
{
"entity_id": 5,
... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O... |
4,612 | video_games | bird:train.json:3331 | Show the id of game platform which makes the most sales in Japan. | SELECT T.game_platform_id FROM ( SELECT T2.game_platform_id, MAX(T2.num_sales) FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan' ) t | [
"Show",
"the",
"i",
"d",
"of",
"game",
"platform",
"which",
"makes",
"the",
"most",
"sales",
"in",
"Japan",
"."
] | [
{
"id": 0,
"type": "column",
"value": "game_platform_id"
},
{
"id": 2,
"type": "table",
"value": "region_sales"
},
{
"id": 3,
"type": "column",
"value": "region_name"
},
{
"id": 5,
"type": "column",
"value": "num_sales"
},
{
"id": 7,
"type": "c... | [
{
"entity_id": 0,
"token_idxs": [
5,
6
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": [
13
]
},
{
"entity_id": 5,
"tok... | [
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
4,613 | codebase_comments | bird:train.json:613 | For the repository with '8094' watchers , how many solutions does it contain? | SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Watchers = 8094 | [
"For",
"the",
"repository",
"with",
"'",
"8094",
"'",
"watchers",
",",
"how",
"many",
"solutions",
"does",
"it",
"contain",
"?"
] | [
{
"id": 1,
"type": "table",
"value": "solution"
},
{
"id": 2,
"type": "column",
"value": "watchers"
},
{
"id": 4,
"type": "column",
"value": "repoid"
},
{
"id": 0,
"type": "table",
"value": "repo"
},
{
"id": 3,
"type": "value",
"value": "80... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
11
]
},
{
"entity_id": 2,
"token_idxs": [
7
]
},
{
"entity_id": 3,
"token_idxs": [
5
]
},
{
"entity_id": 4,
"token_idxs": [
2
]
},
{
"entity... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
4,614 | soccer_2 | spider:train_spider.json:4996 | Find the states where have some college students in tryout and their decisions are yes. | SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' | [
"Find",
"the",
"states",
"where",
"have",
"some",
"college",
"students",
"in",
"tryout",
"and",
"their",
"decisions",
"are",
"yes",
"."
] | [
{
"id": 3,
"type": "column",
"value": "decision"
},
{
"id": 1,
"type": "table",
"value": "college"
},
{
"id": 2,
"type": "table",
"value": "tryout"
},
{
"id": 0,
"type": "column",
"value": "state"
},
{
"id": 5,
"type": "column",
"value": "c... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": [
6
]
},
{
"entity_id": 2,
"token_idxs": [
9
]
},
{
"entity_id": 3,
"token_idxs": [
12
]
},
{
"entity_id": 4,
"token_idxs": [
14
]
},
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"O",
"B-VALUE",
"O"
] |
4,615 | inn_1 | spider:train_spider.json:2578 | How many kids stay in the rooms reserved by ROY SWEAZY? | SELECT kids FROM Reservations WHERE FirstName = "ROY" AND LastName = "SWEAZY"; | [
"How",
"many",
"kids",
"stay",
"in",
"the",
"rooms",
"reserved",
"by",
"ROY",
"SWEAZY",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "reservations"
},
{
"id": 2,
"type": "column",
"value": "firstname"
},
{
"id": 4,
"type": "column",
"value": "lastname"
},
{
"id": 5,
"type": "column",
"value": "SWEAZY"
},
{
"id": 1,
"type": "column",
"... | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
2
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
9
]
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-COLUMN",
"B-COLUMN",
"O"
] |
4,617 | department_store | spider:train_spider.json:4774 | Return the average total amount purchased and total value purchased for the supplier who supplies the greatest number of products. | SELECT avg(total_amount_purchased) , avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1) | [
"Return",
"the",
"average",
"total",
"amount",
"purchased",
"and",
"total",
"value",
"purchased",
"for",
"the",
"supplier",
"who",
"supplies",
"the",
"greatest",
"number",
"of",
"products",
"."
] | [
{
"id": 2,
"type": "column",
"value": "total_amount_purchased"
},
{
"id": 3,
"type": "column",
"value": "total_value_purchased"
},
{
"id": 0,
"type": "table",
"value": "product_suppliers"
},
{
"id": 1,
"type": "column",
"value": "supplier_id"
}
] | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
12
]
},
{
"entity_id": 2,
"token_idxs": [
3,
4,
5
]
},
{
"entity_id": 3,
"token_idxs": [
7,
8,
9
]
},
{
"entity_id": 4,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
4,618 | food_inspection_2 | bird:train.json:6158 | Which business had the highest number of inspections done? Calculate the percentage of passed and failed inspections of the said business. | SELECT T2.dba_name , CAST(SUM(CASE WHEN T1.results = 'Pass' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.inspection_id) AS percentagePassed , CAST(SUM(CASE WHEN T1.results = 'Fail' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.inspection_id) FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.lice... | [
"Which",
"business",
"had",
"the",
"highest",
"number",
"of",
"inspections",
"done",
"?",
"Calculate",
"the",
"percentage",
"of",
"passed",
"and",
"failed",
"inspections",
"of",
"the",
"said",
"business",
"."
] | [
{
"id": 2,
"type": "table",
"value": "establishment"
},
{
"id": 5,
"type": "column",
"value": "inspection_id"
},
{
"id": 1,
"type": "table",
"value": "inspection"
},
{
"id": 3,
"type": "column",
"value": "license_no"
},
{
"id": 0,
"type": "colu... | [
{
"entity_id": 0,
"token_idxs": []
},
{
"entity_id": 1,
"token_idxs": [
17
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": [
7
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"B-VALUE",
"O",
"B-VALUE",
"B-TABLE",
"O",
"O",
"O",
"O",
"O"
] |
4,619 | codebase_community | bird:dev.json:571 | For the user No.24, how many times is the number of his/her posts compared to his/her votes? | SELECT CAST(COUNT(T2.Id) AS REAL) / COUNT(DISTINCT T1.Id) FROM votes AS T1 INNER JOIN posts AS T2 ON T1.UserId = T2.OwnerUserId WHERE T1.UserId = 24 | [
"For",
"the",
"user",
"No.24",
",",
"how",
"many",
"times",
"is",
"the",
"number",
"of",
"his",
"/",
"her",
"posts",
"compared",
"to",
"his",
"/",
"her",
"votes",
"?"
] | [
{
"id": 4,
"type": "column",
"value": "owneruserid"
},
{
"id": 2,
"type": "column",
"value": "userid"
},
{
"id": 0,
"type": "table",
"value": "votes"
},
{
"id": 1,
"type": "table",
"value": "posts"
},
{
"id": 3,
"type": "value",
"value": "2... | [
{
"entity_id": 0,
"token_idxs": [
21
]
},
{
"entity_id": 1,
"token_idxs": [
15
]
},
{
"entity_id": 2,
"token_idxs": [
2
]
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"O",
"B-COLUMN",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"B-TABLE",
"O"
] |
4,620 | cre_Docs_and_Epenses | spider:train_spider.json:6417 | List document type codes and the number of documents in each code. | SELECT document_type_code , count(*) FROM Documents GROUP BY document_type_code | [
"List",
"document",
"type",
"codes",
"and",
"the",
"number",
"of",
"documents",
"in",
"each",
"code",
"."
] | [
{
"id": 1,
"type": "column",
"value": "document_type_code"
},
{
"id": 0,
"type": "table",
"value": "documents"
}
] | [
{
"entity_id": 0,
"token_idxs": [
8
]
},
{
"entity_id": 1,
"token_idxs": [
1,
2,
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
... | [
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O"
] |
4,621 | station_weather | spider:train_spider.json:3167 | Find names and times of trains that run through stations for the local authority Chiltern. | SELECT t3.name , t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern" | [
"Find",
"names",
"and",
"times",
"of",
"trains",
"that",
"run",
"through",
"stations",
"for",
"the",
"local",
"authority",
"Chiltern",
"."
] | [
{
"id": 3,
"type": "column",
"value": "local_authority"
},
{
"id": 9,
"type": "column",
"value": "station_id"
},
{
"id": 4,
"type": "column",
"value": "Chiltern"
},
{
"id": 7,
"type": "column",
"value": "train_id"
},
{
"id": 5,
"type": "table",... | [
{
"entity_id": 0,
"token_idxs": [
1
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": [
5
]
},
{
"entity_id": 3,
"token_idxs": [
12,
13
]
},
{
"entity_id": 4,
"token_idxs": [
14
... | [
"B-COLUMN",
"B-COLUMN",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"B-TABLE",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"B-COLUMN",
"O"
] |
4,622 | movie_3 | bird:train.json:9349 | State the documentary film titles with longest length. | SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.name = 'documentary' ORDER BY T1.length DESC LIMIT 1 | [
"State",
"the",
"documentary",
"film",
"titles",
"with",
"longest",
"length",
"."
] | [
{
"id": 6,
"type": "table",
"value": "film_category"
},
{
"id": 3,
"type": "value",
"value": "documentary"
},
{
"id": 7,
"type": "column",
"value": "category_id"
},
{
"id": 1,
"type": "table",
"value": "category"
},
{
"id": 8,
"type": "column",... | [
{
"entity_id": 0,
"token_idxs": [
4
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
2
]
},
{
"entity_id": 4,
"token_idxs": [
7
]
},
{
"entity_id": 5,
"... | [
"O",
"O",
"B-VALUE",
"B-TABLE",
"B-COLUMN",
"O",
"O",
"B-COLUMN",
"O"
] |
4,623 | music_4 | spider:train_spider.json:6147 | What is the average age of all artists? | SELECT avg(Age) FROM artist | [
"What",
"is",
"the",
"average",
"age",
"of",
"all",
"artists",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "artist"
},
{
"id": 1,
"type": "column",
"value": "age"
}
] | [
{
"entity_id": 0,
"token_idxs": [
7
]
},
{
"entity_id": 1,
"token_idxs": [
4
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"O",
"B-COLUMN",
"O",
"O",
"B-TABLE",
"O"
] |
4,624 | card_games | bird:dev.json:504 | How many cards are there in the set 'World Championship Decks 2004' with the converted mana cost as '3'. | SELECT COUNT(id) FROM cards WHERE setCode IN ( SELECT code FROM sets WHERE name = 'World Championship Decks 2004' ) AND convertedManaCost = 3 | [
"How",
"many",
"cards",
"are",
"there",
"in",
"the",
"set",
"'",
"World",
"Championship",
"Decks",
"2004",
"'",
"with",
"the",
"converted",
"mana",
"cost",
"as",
"'",
"3",
"'",
"."
] | [
{
"id": 8,
"type": "value",
"value": "World Championship Decks 2004"
},
{
"id": 3,
"type": "column",
"value": "convertedmanacost"
},
{
"id": 2,
"type": "column",
"value": "setcode"
},
{
"id": 0,
"type": "table",
"value": "cards"
},
{
"id": 5,
"... | [
{
"entity_id": 0,
"token_idxs": [
2
]
},
{
"entity_id": 1,
"token_idxs": []
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": [
16,
17,
18
]
},
{
"entity_id": 4,
"token_idxs": [
21
]
},
{
... | [
"O",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"B-TABLE",
"O",
"B-VALUE",
"I-VALUE",
"I-VALUE",
"I-VALUE",
"O",
"O",
"O",
"B-COLUMN",
"I-COLUMN",
"I-COLUMN",
"O",
"O",
"B-VALUE",
"O",
"O"
] |
4,625 | match_season | spider:train_spider.json:1052 | How many countries are there in total? | SELECT count(*) FROM country | [
"How",
"many",
"countries",
"are",
"there",
"in",
"total",
"?"
] | [
{
"id": 0,
"type": "table",
"value": "country"
}
] | [
{
"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"
] |
4,626 | book_1 | bird:test.json:556 | What are the titles of books that have never been ordered? | SELECT title FROM book EXCEPT SELECT T1.title FROM book AS T1 JOIN books_order AS T2 ON T1.isbn = T2.isbn | [
"What",
"are",
"the",
"titles",
"of",
"books",
"that",
"have",
"never",
"been",
"ordered",
"?"
] | [
{
"id": 2,
"type": "table",
"value": "books_order"
},
{
"id": 1,
"type": "column",
"value": "title"
},
{
"id": 0,
"type": "table",
"value": "book"
},
{
"id": 3,
"type": "column",
"value": "isbn"
}
] | [
{
"entity_id": 0,
"token_idxs": [
5
]
},
{
"entity_id": 1,
"token_idxs": [
3
]
},
{
"entity_id": 2,
"token_idxs": []
},
{
"entity_id": 3,
"token_idxs": []
},
{
"entity_id": 4,
"token_idxs": []
},
{
"entity_id": 5,
"token_idxs": ... | [
"O",
"O",
"O",
"B-COLUMN",
"O",
"B-TABLE",
"O",
"O",
"O",
"O",
"O",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.