{"question_id": 13692, "db_id": "retail_complains", "dber_id": "bird:train.json:282", "question": "Among the clients born between 1980 and 2000, list the name of male clients who complained through referral.", "SQL": "SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.year BETWEEN 1980 AND 2000 AND T1.sex = 'Male' AND T2.`Submitted via` = 'Referral'", "tokens": ["Among", "the", "clients", "born", "between", "1980", "and", "2000", ",", "list", "the", "name", "of", "male", "clients", "who", "complained", "through", "referral", "."], "entities": [{"id": 11, "type": "column", "value": "Submitted via"}, {"id": 5, "type": "column", "value": "client_id"}, {"id": 12, "type": "value", "value": "Referral"}, {"id": 1, "type": "column", "value": "middle"}, {"id": 3, "type": "table", "value": "client"}, {"id": 4, "type": "table", "value": "events"}, {"id": 0, "type": "column", "value": "first"}, {"id": 2, "type": "column", "value": "last"}, {"id": 6, "type": "column", "value": "year"}, {"id": 7, "type": "value", "value": "1980"}, {"id": 8, "type": "value", "value": "2000"}, {"id": 10, "type": "value", "value": "Male"}, {"id": 9, "type": "column", "value": "sex"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [2]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [14]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [5]}, {"entity_id": 8, "token_idxs": [7]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": [13]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": [18]}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 10813, "db_id": "superhero", "dber_id": "bird:dev.json:736", "question": "Who is the dumbest superhero?", "SQL": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T3.attribute_name = 'Intelligence' ORDER BY T2.attribute_value LIMIT 1", "tokens": ["Who", "is", "the", "dumbest", "superhero", "?"], "entities": [{"id": 4, "type": "column", "value": "attribute_value"}, {"id": 0, "type": "column", "value": "superhero_name"}, {"id": 2, "type": "column", "value": "attribute_name"}, {"id": 6, "type": "table", "value": "hero_attribute"}, {"id": 3, "type": "value", "value": "Intelligence"}, {"id": 7, "type": "column", "value": "attribute_id"}, {"id": 1, "type": "table", "value": "attribute"}, {"id": 5, "type": "table", "value": "superhero"}, {"id": 9, "type": "column", "value": "hero_id"}, {"id": 8, "type": "column", "value": "id"}], "entity_to_token": [{"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": [4]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 15884, "db_id": "superstore", "dber_id": "bird:train.json:2385", "question": "Who is the customer from the East region that purchased the order with the highest profit?", "SQL": "SELECT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'East' ORDER BY T1.Profit DESC LIMIT 1", "tokens": ["Who", "is", "the", "customer", "from", "the", "East", "region", "that", "purchased", "the", "order", "with", "the", "highest", "profit", "?"], "entities": [{"id": 1, "type": "table", "value": "east_superstore"}, {"id": 0, "type": "column", "value": "Customer Name"}, {"id": 6, "type": "column", "value": "Customer ID"}, {"id": 2, "type": "table", "value": "people"}, {"id": 3, "type": "column", "value": "region"}, {"id": 5, "type": "column", "value": "profit"}, {"id": 4, "type": "value", "value": "East"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": [15]}, {"entity_id": 6, "token_idxs": [3]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 2664, "db_id": "manufactory_1", "dber_id": "spider:train_spider.json:5301", "question": "What are the names of manufacturers with revenue greater than the average of all revenues?", "SQL": "SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers)", "tokens": ["What", "are", "the", "names", "of", "manufacturers", "with", "revenue", "greater", "than", "the", "average", "of", "all", "revenues", "?"], "entities": [{"id": 0, "type": "table", "value": "manufacturers"}, {"id": 2, "type": "column", "value": "revenue"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 7749, "db_id": "college_2", "dber_id": "spider:train_spider.json:1425", "question": "What is the title of the course with Differential Geometry as a prerequisite?", "SQL": "SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')", "tokens": ["What", "is", "the", "title", "of", "the", "course", "with", "Differential", "Geometry", "as", "a", "prerequisite", "?"], "entities": [{"id": 4, "type": "value", "value": "Differential Geometry"}, {"id": 2, "type": "column", "value": "course_id"}, {"id": 5, "type": "column", "value": "prereq_id"}, {"id": 0, "type": "table", "value": "course"}, {"id": 3, "type": "table", "value": "prereq"}, {"id": 1, "type": "column", "value": "title"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": [8, 9]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "B-TABLE", "O"]} {"question_id": 14617, "db_id": "address", "dber_id": "bird:train.json:5109", "question": "Which state is Outagamie County in? Give the full name of the state.", "SQL": "SELECT DISTINCT T2.name FROM country AS T1 INNER JOIN state AS T2 ON T1.state = T2.abbreviation WHERE T1.county = 'OUTAGAMIE'", "tokens": ["Which", "state", "is", "Outagamie", "County", "in", "?", "Give", "the", "full", "name", "of", "the", "state", "."], "entities": [{"id": 6, "type": "column", "value": "abbreviation"}, {"id": 4, "type": "value", "value": "OUTAGAMIE"}, {"id": 1, "type": "table", "value": "country"}, {"id": 3, "type": "column", "value": "county"}, {"id": 2, "type": "table", "value": "state"}, {"id": 5, "type": "column", "value": "state"}, {"id": 0, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [1]}, {"entity_id": 3, "token_idxs": [4]}, {"entity_id": 4, "token_idxs": [3]}, {"entity_id": 5, "token_idxs": [13]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O"]} {"question_id": 626, "db_id": "university", "dber_id": "bird:train.json:8072", "question": "In which year did university ID 1 have the most students?", "SQL": "SELECT year FROM university_year WHERE university_id = 1 ORDER BY num_students DESC LIMIT 1", "tokens": ["In", "which", "year", "did", "university", "ID", "1", "have", "the", "most", "students", "?"], "entities": [{"id": 0, "type": "table", "value": "university_year"}, {"id": 2, "type": "column", "value": "university_id"}, {"id": 4, "type": "column", "value": "num_students"}, {"id": 1, "type": "column", "value": "year"}, {"id": 3, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [4, 5]}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": [10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 7573, "db_id": "e_learning", "dber_id": "spider:train_spider.json:3798", "question": "List the personal names and family names of all the students in alphabetical order of family name.", "SQL": "SELECT personal_name , family_name FROM Students ORDER BY family_name", "tokens": ["List", "the", "personal", "names", "and", "family", "names", "of", "all", "the", "students", "in", "alphabetical", "order", "of", "family", "name", "."], "entities": [{"id": 1, "type": "column", "value": "personal_name"}, {"id": 2, "type": "column", "value": "family_name"}, {"id": 0, "type": "table", "value": "students"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": [5, 6, 15, 16]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 9749, "db_id": "soccer_2016", "dber_id": "bird:train.json:1916", "question": "What is the name of the player who has been chosen the most times for 'Man of the Series'?", "SQL": "SELECT T3.Player_Name FROM Season AS T1 INNER JOIN Match AS T2 ON T1.Man_of_the_Series = T2.Man_of_the_Match INNER JOIN Player AS T3 ON T2.Man_of_the_Match = T3.Player_Id GROUP BY T3.Player_Name ORDER BY COUNT(T1.Man_of_the_Series) DESC LIMIT 1", "tokens": ["What", "is", "the", "name", "of", "the", "player", "who", "has", "been", "chosen", "the", "most", "times", "for", "'", "Man", "of", "the", "Series", "'", "?"], "entities": [{"id": 6, "type": "column", "value": "man_of_the_series"}, {"id": 4, "type": "column", "value": "man_of_the_match"}, {"id": 0, "type": "column", "value": "player_name"}, {"id": 5, "type": "column", "value": "player_id"}, {"id": 1, "type": "table", "value": "player"}, {"id": 2, "type": "table", "value": "season"}, {"id": 3, "type": "table", "value": "match"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 15180, "db_id": "cs_semester", "dber_id": "bird:train.json:922", "question": "Describe the full names, emails and intelligence of the students with the highest capability and salary.", "SQL": "SELECT f_name, l_name, email, intelligence FROM student WHERE student_id IN ( SELECT student_id FROM RA WHERE salary = 'high' AND capability = ( SELECT MAX(capability) FROM RA ) )", "tokens": ["Describe", "the", "full", "names", ",", "emails", "and", "intelligence", "of", "the", "students", "with", "the", "highest", "capability", "and", "salary", "."], "entities": [{"id": 4, "type": "column", "value": "intelligence"}, {"id": 5, "type": "column", "value": "student_id"}, {"id": 9, "type": "column", "value": "capability"}, {"id": 0, "type": "table", "value": "student"}, {"id": 1, "type": "column", "value": "f_name"}, {"id": 2, "type": "column", "value": "l_name"}, {"id": 7, "type": "column", "value": "salary"}, {"id": 3, "type": "column", "value": "email"}, {"id": 8, "type": "value", "value": "high"}, {"id": 6, "type": "table", "value": "ra"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": [5]}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [16]}, {"entity_id": 8, "token_idxs": [13]}, {"entity_id": 9, "token_idxs": [14]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "O", "B-COLUMN", "O"]} {"question_id": 11266, "db_id": "bbc_channels", "dber_id": "bird:test.json:132", "question": "Find the name and internet web of the channel that is directed by the most directors.", "SQL": "SELECT t1.name , t1.internet FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id = t2.channel_id GROUP BY t1.channel_id ORDER BY count(*) DESC LIMIT 1", "tokens": ["Find", "the", "name", "and", "internet", "web", "of", "the", "channel", "that", "is", "directed", "by", "the", "most", "directors", "."], "entities": [{"id": 4, "type": "table", "value": "director_admin"}, {"id": 0, "type": "column", "value": "channel_id"}, {"id": 2, "type": "column", "value": "internet"}, {"id": 3, "type": "table", "value": "channel"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [15]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 10339, "db_id": "movie_3", "dber_id": "bird:train.json:9211", "question": "How many films in the horror category were included in PG-13-rated?", "SQL": "SELECT COUNT(T1.film_id) 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 = 'Horror' AND T1.rating = 'PG-13'", "tokens": ["How", "many", "films", "in", "the", "horror", "category", "were", "included", "in", "PG-13", "-", "rated", "?"], "entities": [{"id": 3, "type": "table", "value": "film_category"}, {"id": 4, "type": "column", "value": "category_id"}, {"id": 0, "type": "table", "value": "category"}, {"id": 1, "type": "column", "value": "film_id"}, {"id": 6, "type": "value", "value": "Horror"}, {"id": 7, "type": "column", "value": "rating"}, {"id": 8, "type": "value", "value": "PG-13"}, {"id": 2, "type": "table", "value": "film"}, {"id": 5, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": [12]}, {"entity_id": 8, "token_idxs": [10]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "B-COLUMN", "O"]} {"question_id": 11931, "db_id": "customers_and_addresses", "dber_id": "spider:train_spider.json:6102", "question": "Compute the average active time span of contact channels.", "SQL": "SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels", "tokens": ["Compute", "the", "average", "active", "time", "span", "of", "contact", "channels", "."], "entities": [{"id": 0, "type": "table", "value": "customer_contact_channels"}, {"id": 2, "type": "column", "value": "active_from_date"}, {"id": 1, "type": "column", "value": "active_to_date"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7, 8]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "I-TABLE", "O"]} {"question_id": 10972, "db_id": "bike_1", "dber_id": "spider:train_spider.json:123", "question": "For each zip code, return the average mean temperature of August there.", "SQL": "SELECT zip_code , avg(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code", "tokens": ["For", "each", "zip", "code", ",", "return", "the", "average", "mean", "temperature", "of", "August", "there", "."], "entities": [{"id": 4, "type": "column", "value": "mean_temperature_f"}, {"id": 1, "type": "column", "value": "zip_code"}, {"id": 0, "type": "table", "value": "weather"}, {"id": 2, "type": "column", "value": "date"}, {"id": 3, "type": "column", "value": "8/%"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [6]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [4]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O"]} {"question_id": 10501, "db_id": "menu", "dber_id": "bird:train.json:5515", "question": "What is the page count for menu with page ID of 130?", "SQL": "SELECT T1.page_count FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.id = 130", "tokens": ["What", "is", "the", "page", "count", "for", "menu", "with", "page", "ID", "of", "130", "?"], "entities": [{"id": 0, "type": "column", "value": "page_count"}, {"id": 2, "type": "table", "value": "menupage"}, {"id": 5, "type": "column", "value": "menu_id"}, {"id": 1, "type": "table", "value": "menu"}, {"id": 4, "type": "value", "value": "130"}, {"id": 3, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O"]} {"question_id": 10468, "db_id": "video_games", "dber_id": "bird:train.json:3496", "question": "List down the name of strategy games.", "SQL": "SELECT T1.game_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Strategy'", "tokens": ["List", "down", "the", "name", "of", "strategy", "games", "."], "entities": [{"id": 3, "type": "column", "value": "genre_name"}, {"id": 0, "type": "column", "value": "game_name"}, {"id": 4, "type": "value", "value": "Strategy"}, {"id": 5, "type": "column", "value": "genre_id"}, {"id": 2, "type": "table", "value": "genre"}, {"id": 1, "type": "table", "value": "game"}, {"id": 6, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-TABLE"]} {"question_id": 7491, "db_id": "soccer_2016", "dber_id": "bird:train.json:1794", "question": "Among the players who use the right hand as their batting hand, how many of them were born after 1985?", "SQL": "SELECT SUM(CASE WHEN SUBSTR(T1.DOB, 1, 4) > 1985 THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHERE T2.Batting_Hand = 'Right-hand bat'", "tokens": ["Among", "the", "players", "who", "use", "the", "right", "hand", "as", "their", "batting", "hand", ",", "how", "many", "of", "them", "were", "born", "after", "1985", "?"], "entities": [{"id": 3, "type": "value", "value": "Right-hand bat"}, {"id": 1, "type": "table", "value": "batting_style"}, {"id": 2, "type": "column", "value": "batting_hand"}, {"id": 4, "type": "column", "value": "batting_id"}, {"id": 0, "type": "table", "value": "player"}, {"id": 7, "type": "value", "value": "1985"}, {"id": 8, "type": "column", "value": "dob"}, {"id": 5, "type": "value", "value": "0"}, {"id": 6, "type": "value", "value": "1"}, {"id": 9, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [2]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-VALUE", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 12432, "db_id": "party_people", "dber_id": "spider:train_spider.json:2044", "question": "Count the number of different parties.", "SQL": "SELECT count(DISTINCT party_name) FROM party", "tokens": ["Count", "the", "number", "of", "different", "parties", "."], "entities": [{"id": 1, "type": "column", "value": "party_name"}, {"id": 0, "type": "table", "value": "party"}], "entity_to_token": [{"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 13905, "db_id": "railway", "dber_id": "spider:train_spider.json:5648", "question": "List the object number of railways that do not have any trains.", "SQL": "SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN (SELECT Railway_ID FROM train)", "tokens": ["List", "the", "object", "number", "of", "railways", "that", "do", "not", "have", "any", "trains", "."], "entities": [{"id": 1, "type": "column", "value": "objectnumber"}, {"id": 2, "type": "column", "value": "railway_id"}, {"id": 0, "type": "table", "value": "railway"}, {"id": 3, "type": "table", "value": "train"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 10403, "db_id": "ship_mission", "dber_id": "spider:train_spider.json:4007", "question": "What are the names of the ships that are from either the US or the UK?", "SQL": "SELECT Name FROM ship WHERE Nationality = \"United States\" OR Nationality = \"United Kingdom\"", "tokens": ["What", "are", "the", "names", "of", "the", "ships", " ", "that", "are", "from", "either", "the", "US", "or", "the", "UK", "?"], "entities": [{"id": 4, "type": "column", "value": "United Kingdom"}, {"id": 3, "type": "column", "value": "United States"}, {"id": 2, "type": "column", "value": "nationality"}, {"id": 0, "type": "table", "value": "ship"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": [16]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O"]} {"question_id": 9132, "db_id": "assets_maintenance", "dber_id": "spider:train_spider.json:3128", "question": "How many assets does each third party company supply? List the count and the company id.", "SQL": "SELECT count(*) , T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id", "tokens": ["How", "many", "assets", "does", "each", "third", "party", "company", "supply", "?", "List", "the", "count", "and", "the", "company", "i", "d."], "entities": [{"id": 1, "type": "table", "value": "third_party_companies"}, {"id": 3, "type": "column", "value": "supplier_company_id"}, {"id": 0, "type": "column", "value": "company_id"}, {"id": 2, "type": "table", "value": "assets"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [15, 16, 17]}, {"entity_id": 1, "token_idxs": [5, 6, 7]}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN"]} {"question_id": 3997, "db_id": "college_2", "dber_id": "spider:train_spider.json:1407", "question": "What is the year and semester with the most courses?", "SQL": "SELECT semester , YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count(*) DESC LIMIT 1", "tokens": ["What", "is", "the", "year", "and", "semester", "with", "the", "most", "courses", "?"], "entities": [{"id": 1, "type": "column", "value": "semester"}, {"id": 0, "type": "table", "value": "section"}, {"id": 2, "type": "column", "value": "year"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 10862, "db_id": "loan_1", "dber_id": "spider:train_spider.json:3079", "question": "What are the names of banks that have loaned money to customers with credit scores below 100?", "SQL": "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100", "tokens": ["What", "are", "the", "names", "of", "banks", "that", "have", "loaned", "money", "to", "customers", "with", "credit", "scores", "below", "100", "?"], "entities": [{"id": 2, "type": "column", "value": "credit_score"}, {"id": 7, "type": "column", "value": "branch_id"}, {"id": 1, "type": "table", "value": "customer"}, {"id": 6, "type": "column", "value": "cust_id"}, {"id": 0, "type": "column", "value": "bname"}, {"id": 4, "type": "table", "value": "loan"}, {"id": 5, "type": "table", "value": "bank"}, {"id": 3, "type": "value", "value": "100"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [11]}, {"entity_id": 2, "token_idxs": [13, 14]}, {"entity_id": 3, "token_idxs": [16]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": [5]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O"]} {"question_id": 3111, "db_id": "retails", "dber_id": "bird:train.json:6822", "question": "What is the largest supplier's account balance?", "SQL": "SELECT MAX(s_acctbal) FROM supplier", "tokens": ["What", "is", "the", "largest", "supplier", "'s", "account", "balance", "?"], "entities": [{"id": 1, "type": "column", "value": "s_acctbal"}, {"id": 0, "type": "table", "value": "supplier"}], "entity_to_token": [{"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 3119, "db_id": "cars", "dber_id": "bird:train.json:3132", "question": "Calculate the average production rate per year from 1971 to 1980. Among them, name the cars with a weight of fewer than 1800 lbs.", "SQL": "SELECT CAST(COUNT(T1.ID) AS REAL) / 9 FROM production AS T1 INNER JOIN data AS T2 ON T2.ID = T1.ID WHERE T1.model_year BETWEEN 1971 AND 1980 UNION ALL SELECT DISTINCT T2.car_name FROM production AS T1 INNER JOIN data AS T2 ON T2.ID = T1.ID WHERE T1.model_year BETWEEN 1971 AND 1980 AND T2.weight < 1800", "tokens": ["Calculate", "the", "average", "production", "rate", "per", "year", "from", "1971", "to", "1980", ".", "Among", "them", ",", "name", "the", "cars", "with", "a", "weight", "of", "fewer", "than", "1800", "lbs", "."], "entities": [{"id": 0, "type": "table", "value": "production"}, {"id": 2, "type": "column", "value": "model_year"}, {"id": 5, "type": "column", "value": "car_name"}, {"id": 8, "type": "column", "value": "weight"}, {"id": 1, "type": "table", "value": "data"}, {"id": 3, "type": "value", "value": "1971"}, {"id": 4, "type": "value", "value": "1980"}, {"id": 9, "type": "value", "value": "1800"}, {"id": 7, "type": "column", "value": "id"}, {"id": 6, "type": "value", "value": "9"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [10]}, {"entity_id": 5, "token_idxs": [15, 17]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [18]}, {"entity_id": 8, "token_idxs": [20]}, {"entity_id": 9, "token_idxs": [24]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 9771, "db_id": "books", "dber_id": "bird:train.json:6080", "question": "Name the title of the book with the most number of pages that was published from 1990 to 2000 by publisher Free Press.", "SQL": "SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Free Press' AND STRFTIME('%Y', T1.publication_date) BETWEEN '1990' AND '2000' ORDER BY T1.num_pages DESC LIMIT 1", "tokens": ["Name", "the", "title", "of", "the", "book", "with", "the", "most", "number", "of", "pages", "that", "was", "published", "from", "1990", "to", "2000", "by", "publisher", "Free", "Press", "."], "entities": [{"id": 10, "type": "column", "value": "publication_date"}, {"id": 5, "type": "column", "value": "publisher_name"}, {"id": 4, "type": "column", "value": "publisher_id"}, {"id": 6, "type": "value", "value": "Free Press"}, {"id": 2, "type": "table", "value": "publisher"}, {"id": 3, "type": "column", "value": "num_pages"}, {"id": 0, "type": "column", "value": "title"}, {"id": 1, "type": "table", "value": "book"}, {"id": 7, "type": "value", "value": "1990"}, {"id": 8, "type": "value", "value": "2000"}, {"id": 9, "type": "value", "value": "%Y"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [20]}, {"entity_id": 3, "token_idxs": [9, 11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [21, 22]}, {"entity_id": 7, "token_idxs": [16]}, {"entity_id": 8, "token_idxs": [18]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": [14]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O", "B-TABLE", "B-VALUE", "I-VALUE", "O"]} {"question_id": 1124, "db_id": "small_bank_1", "dber_id": "spider:train_spider.json:1822", "question": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.", "SQL": "SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance", "tokens": ["Find", "the", "name", "and", "total", "checking", "and", "savings", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "."], "entities": [{"id": 3, "type": "table", "value": "accounts"}, {"id": 4, "type": "table", "value": "checking"}, {"id": 1, "type": "table", "value": "savings"}, {"id": 2, "type": "column", "value": "balance"}, {"id": 5, "type": "column", "value": "custid"}, {"id": 0, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [13]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 4861, "db_id": "car_racing", "dber_id": "bird:test.json:1605", "question": "What are the maximum and minimum points of drivers.", "SQL": "SELECT max(Points) , min(Points) FROM driver", "tokens": ["What", "are", "the", "maximum", "and", "minimum", "points", "of", "drivers", "."], "entities": [{"id": 0, "type": "table", "value": "driver"}, {"id": 1, "type": "column", "value": "points"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [5, 6, 7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 11149, "db_id": "retail_world", "dber_id": "bird:train.json:6364", "question": "What is the most widely used shipping company in the United States of America?", "SQL": "SELECT T2.CompanyName FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.ShipCountry = 'USA' GROUP BY T2.CompanyName ORDER BY COUNT(T2.CompanyName) DESC LIMIT 1", "tokens": ["What", "is", "the", "most", "widely", "used", "shipping", "company", "in", "the", "United", "States", "of", "America", "?"], "entities": [{"id": 0, "type": "column", "value": "companyname"}, {"id": 3, "type": "column", "value": "shipcountry"}, {"id": 6, "type": "column", "value": "shipperid"}, {"id": 2, "type": "table", "value": "shippers"}, {"id": 5, "type": "column", "value": "shipvia"}, {"id": 1, "type": "table", "value": "orders"}, {"id": 4, "type": "value", "value": "USA"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [10, 11, 12, 13]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 1020, "db_id": "image_and_language", "dber_id": "bird:train.json:7486", "question": "Please list the IDs of all the images with more than 2 pairs of object samples with the relation \"parked on\".", "SQL": "SELECT T2.IMG_ID FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.PRED_CLASS = 'parked on' AND T2.OBJ1_SAMPLE_ID != T2.OBJ2_SAMPLE_ID GROUP BY T2.IMG_ID HAVING COUNT(T2.IMG_ID) > 2", "tokens": ["Please", "list", "the", "IDs", "of", "all", "the", "images", "with", "more", "than", "2", "pairs", "of", "object", "samples", "with", "the", "relation", "\"", "parked", "on", "\"", "."], "entities": [{"id": 7, "type": "column", "value": "obj1_sample_id"}, {"id": 8, "type": "column", "value": "obj2_sample_id"}, {"id": 4, "type": "column", "value": "pred_class_id"}, {"id": 1, "type": "table", "value": "pred_classes"}, {"id": 5, "type": "column", "value": "pred_class"}, {"id": 6, "type": "value", "value": "parked on"}, {"id": 2, "type": "table", "value": "img_rel"}, {"id": 0, "type": "column", "value": "img_id"}, {"id": 3, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [12]}, {"entity_id": 6, "token_idxs": [20, 21]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [14, 15]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O"]} {"question_id": 12184, "db_id": "mondial_geo", "dber_id": "bird:train.json:8281", "question": "What is the area of Egypt as a percentage of Asia?", "SQL": "SELECT T1.Area * 100 / T3.Area FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent WHERE T3.Name = 'Asia' AND T1.Name = 'Egypt'", "tokens": ["What", "is", "the", "area", "of", "Egypt", "as", "a", "percentage", "of", "Asia", "?"], "entities": [{"id": 3, "type": "table", "value": "encompasses"}, {"id": 0, "type": "table", "value": "continent"}, {"id": 5, "type": "column", "value": "continent"}, {"id": 2, "type": "table", "value": "country"}, {"id": 10, "type": "column", "value": "country"}, {"id": 7, "type": "value", "value": "Egypt"}, {"id": 1, "type": "column", "value": "area"}, {"id": 4, "type": "column", "value": "name"}, {"id": 6, "type": "value", "value": "Asia"}, {"id": 9, "type": "column", "value": "code"}, {"id": 8, "type": "value", "value": "100"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [10]}, {"entity_id": 7, "token_idxs": [5]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 15047, "db_id": "legislator", "dber_id": "bird:train.json:4873", "question": "How many Jewish legislators do not have facebook?", "SQL": "SELECT COUNT(T3.bioguide_id) FROM ( SELECT T1.bioguide_id FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.facebook IS NULL GROUP BY T1.bioguide_id ) T3", "tokens": ["How", "many", "Jewish", "legislators", "do", "not", "have", "facebook", "?"], "entities": [{"id": 2, "type": "table", "value": "social-media"}, {"id": 0, "type": "column", "value": "bioguide_id"}, {"id": 3, "type": "column", "value": "facebook"}, {"id": 4, "type": "column", "value": "bioguide"}, {"id": 1, "type": "table", "value": "current"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 14791, "db_id": "region_building", "dber_id": "bird:test.json:335", "question": "Show the names of regions that have more than one building.", "SQL": "SELECT T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID GROUP BY T1.Region_ID HAVING COUNT(*) > 1", "tokens": ["Show", "the", "names", "of", "regions", "that", "have", "more", "than", "one", "building", "."], "entities": [{"id": 0, "type": "column", "value": "region_id"}, {"id": 2, "type": "table", "value": "building"}, {"id": 3, "type": "table", "value": "region"}, {"id": 1, "type": "column", "value": "name"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [4]}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]} {"question_id": 4173, "db_id": "codebase_community", "dber_id": "bird:dev.json:676", "question": "Please list all display names of users who are adults.", "SQL": "SELECT DisplayName FROM users WHERE Age BETWEEN 19 AND 65", "tokens": ["Please", "list", "all", "display", "names", "of", "users", "who", "are", "adults", "."], "entities": [{"id": 1, "type": "column", "value": "displayname"}, {"id": 0, "type": "table", "value": "users"}, {"id": 2, "type": "column", "value": "age"}, {"id": 3, "type": "value", "value": "19"}, {"id": 4, "type": "value", "value": "65"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "O", "O", "O"]} {"question_id": 15346, "db_id": "student_1", "dber_id": "spider:train_spider.json:4072", "question": "How many teachers does the student named CHRISSY NABOZNY have?", "SQL": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"CHRISSY\" AND T1.lastname = \"NABOZNY\"", "tokens": ["How", "many", "teachers", "does", "the", "student", "named", "CHRISSY", "NABOZNY", "have", "?"], "entities": [{"id": 2, "type": "column", "value": "classroom"}, {"id": 3, "type": "column", "value": "firstname"}, {"id": 1, "type": "table", "value": "teachers"}, {"id": 5, "type": "column", "value": "lastname"}, {"id": 4, "type": "column", "value": "CHRISSY"}, {"id": 6, "type": "column", "value": "NABOZNY"}, {"id": 0, "type": "table", "value": "list"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": [6]}, {"entity_id": 6, "token_idxs": [8]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "B-COLUMN", "B-COLUMN", "O", "O"]} {"question_id": 7814, "db_id": "network_2", "dber_id": "spider:train_spider.json:4469", "question": "Which friend of Zach has the longest-lasting friendship?", "SQL": "SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')", "tokens": ["Which", "friend", "of", "Zach", "has", "the", "longest", "-", "lasting", "friendship", "?"], "entities": [{"id": 0, "type": "table", "value": "personfriend"}, {"id": 1, "type": "column", "value": "friend"}, {"id": 2, "type": "column", "value": "name"}, {"id": 3, "type": "value", "value": "Zach"}, {"id": 4, "type": "column", "value": "year"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 5728, "db_id": "college_2", "dber_id": "spider:train_spider.json:1415", "question": "Give id of the instructor who advises students in the History department.", "SQL": "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History'", "tokens": ["Give", "i", "d", "of", "the", "instructor", "who", "advises", "students", "in", "the", "History", "department", "."], "entities": [{"id": 3, "type": "column", "value": "dept_name"}, {"id": 1, "type": "table", "value": "advisor"}, {"id": 2, "type": "table", "value": "student"}, {"id": 4, "type": "value", "value": "History"}, {"id": 0, "type": "column", "value": "i_id"}, {"id": 5, "type": "column", "value": "s_id"}, {"id": 6, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [1, 2]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-TABLE", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 8786, "db_id": "olympics", "dber_id": "bird:train.json:5027", "question": "How many competitors were there who participated in 2000 Summer with age 31?", "SQL": "SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2000 Summer' AND T2.age = 31", "tokens": ["How", "many", "competitors", "were", "there", "who", "participated", "in", "2000", "Summer", "with", "age", "31", "?"], "entities": [{"id": 1, "type": "table", "value": "games_competitor"}, {"id": 6, "type": "value", "value": "2000 Summer"}, {"id": 5, "type": "column", "value": "games_name"}, {"id": 2, "type": "column", "value": "person_id"}, {"id": 4, "type": "column", "value": "games_id"}, {"id": 0, "type": "table", "value": "games"}, {"id": 7, "type": "column", "value": "age"}, {"id": 3, "type": "column", "value": "id"}, {"id": 8, "type": "value", "value": "31"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [8, 9]}, {"entity_id": 7, "token_idxs": [11]}, {"entity_id": 8, "token_idxs": [12]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 2900, "db_id": "public_review_platform", "dber_id": "bird:train.json:3973", "question": "Based on all user compliments, find the percentage of low number of compliments on all compliments ID.", "SQL": "SELECT CAST(SUM(CASE WHEN number_of_compliments = 'Low' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(user_id) FROM Users_compliments", "tokens": ["Based", "on", "all", "user", "compliments", ",", "find", "the", "percentage", "of", "low", "number", "of", "compliments", "on", "all", "compliments", "ID", "."], "entities": [{"id": 5, "type": "column", "value": "number_of_compliments"}, {"id": 0, "type": "table", "value": "users_compliments"}, {"id": 2, "type": "column", "value": "user_id"}, {"id": 1, "type": "value", "value": "100"}, {"id": 6, "type": "value", "value": "Low"}, {"id": 3, "type": "value", "value": "0"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"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": [11, 12, 13]}, {"entity_id": 6, "token_idxs": [10]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 3388, "db_id": "tracking_grants_for_research", "dber_id": "spider:train_spider.json:4323", "question": "What are the details of the project that is producing both patents and papers as outcomes?", "SQL": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'", "tokens": ["What", "are", "the", "details", "of", "the", "project", "that", "is", "producing", "both", "patents", "and", "papers", "as", "outcomes", "?"], "entities": [{"id": 2, "type": "table", "value": "project_outcomes"}, {"id": 0, "type": "column", "value": "project_details"}, {"id": 3, "type": "column", "value": "outcome_code"}, {"id": 6, "type": "column", "value": "project_id"}, {"id": 1, "type": "table", "value": "projects"}, {"id": 5, "type": "value", "value": "Patent"}, {"id": 4, "type": "value", "value": "Paper"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [15]}, {"entity_id": 4, "token_idxs": [13]}, {"entity_id": 5, "token_idxs": [11]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "B-COLUMN", "O"]} {"question_id": 1104, "db_id": "restaurant_1", "dber_id": "spider:train_spider.json:2833", "question": "Which major has between 2 and 30 number of students? List major and the number of students.", "SQL": "SELECT Major , count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;", "tokens": ["Which", "major", "has", "between", "2", "and", "30", "number", "of", "students", "?", "List", "major", "and", "the", "number", "of", "students", "."], "entities": [{"id": 0, "type": "table", "value": "student"}, {"id": 1, "type": "column", "value": "major"}, {"id": 3, "type": "value", "value": "30"}, {"id": 2, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [17]}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 11438, "db_id": "party_host", "dber_id": "spider:train_spider.json:2666", "question": "Show the first year and last year of parties with theme \"Spring\" or \"Teqnology\".", "SQL": "SELECT First_year , Last_year FROM party WHERE Party_Theme = \"Spring\" OR Party_Theme = \"Teqnology\"", "tokens": ["Show", "the", "first", "year", "and", "last", "year", "of", "parties", "with", "theme", "\"", "Spring", "\"", "or", "\"", "Teqnology", "\"", "."], "entities": [{"id": 3, "type": "column", "value": "party_theme"}, {"id": 1, "type": "column", "value": "first_year"}, {"id": 2, "type": "column", "value": "last_year"}, {"id": 5, "type": "column", "value": "Teqnology"}, {"id": 4, "type": "column", "value": "Spring"}, {"id": 0, "type": "table", "value": "party"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": [5, 6]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [12]}, {"entity_id": 5, "token_idxs": [16]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O"]} {"question_id": 3752, "db_id": "gymnast", "dber_id": "spider:train_spider.json:1750", "question": "What is the age of the tallest person?", "SQL": "SELECT Age FROM people ORDER BY Height DESC LIMIT 1", "tokens": ["What", "is", "the", "age", "of", "the", "tallest", "person", "?"], "entities": [{"id": 0, "type": "table", "value": "people"}, {"id": 2, "type": "column", "value": "height"}, {"id": 1, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 931, "db_id": "dorm_1", "dber_id": "spider:train_spider.json:5731", "question": "How many students are from each city, and which cities have more than one cities?", "SQL": "SELECT count(*) , city_code FROM student GROUP BY city_code HAVING count(*) > 1", "tokens": ["How", "many", "students", "are", "from", "each", "city", ",", "and", "which", "cities", "have", "more", "than", "one", "cities", "?"], "entities": [{"id": 1, "type": "column", "value": "city_code"}, {"id": 0, "type": "table", "value": "student"}, {"id": 2, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3, 4, 5]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [8, 9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "I-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 10532, "db_id": "music_2", "dber_id": "spider:train_spider.json:5196", "question": "What is the last name of the musician that have produced the most number of songs?", "SQL": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1", "tokens": ["What", "is", "the", "last", "name", "of", "the", "musician", "that", "have", "produced", "the", "most", "number", "of", "songs", "?"], "entities": [{"id": 2, "type": "table", "value": "performance"}, {"id": 0, "type": "column", "value": "lastname"}, {"id": 5, "type": "column", "value": "bandmate"}, {"id": 4, "type": "column", "value": "songid"}, {"id": 1, "type": "table", "value": "songs"}, {"id": 3, "type": "table", "value": "band"}, {"id": 6, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [15]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 685, "db_id": "car_retails", "dber_id": "bird:train.json:1639", "question": "List all the name of customers who have orders that are still processing.", "SQL": "SELECT t2.customerName FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t1.status = 'In Process'", "tokens": ["List", "all", "the", "name", "of", "customers", "who", "have", "orders", "that", "are", "still", "processing", "."], "entities": [{"id": 5, "type": "column", "value": "customernumber"}, {"id": 0, "type": "column", "value": "customername"}, {"id": 4, "type": "value", "value": "In Process"}, {"id": 2, "type": "table", "value": "customers"}, {"id": 1, "type": "table", "value": "orders"}, {"id": 3, "type": "column", "value": "status"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [12]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 13261, "db_id": "authors", "dber_id": "bird:train.json:3536", "question": "What are the paper IDs of papers presented in conferences has a homepage starts with \"http://www.informatik.uni-trier.de/~ley/db/conf/\"?", "SQL": "SELECT T1.Id FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.HomePage LIKE 'http://www.informatik.uni-trier.de/~ley/db/conf/%'", "tokens": ["What", "are", "the", "paper", "IDs", "of", "papers", "presented", "in", "conferences", "has", "a", "homepage", "starts", "with", "\"", "http://www.informatik.uni-trier.de/~ley/db/conf/", "\"", "?"], "entities": [{"id": 4, "type": "value", "value": "http://www.informatik.uni-trier.de/~ley/db/conf/%"}, {"id": 5, "type": "column", "value": "conferenceid"}, {"id": 2, "type": "table", "value": "conference"}, {"id": 3, "type": "column", "value": "homepage"}, {"id": 1, "type": "table", "value": "paper"}, {"id": 0, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": [16]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 7517, "db_id": "student_loan", "dber_id": "bird:train.json:4498", "question": "Calculate the percentage of female students.", "SQL": "SELECT CAST(SUM(IIF(T2.name IS NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.name) FROM person AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name", "tokens": ["Calculate", "the", "percentage", "of", "female", "students", "."], "entities": [{"id": 0, "type": "table", "value": "person"}, {"id": 1, "type": "table", "value": "male"}, {"id": 2, "type": "column", "value": "name"}, {"id": 3, "type": "value", "value": "100"}, {"id": 4, "type": "value", "value": "1"}, {"id": 5, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O"]} {"question_id": 15388, "db_id": "mondial_geo", "dber_id": "bird:train.json:8472", "question": "What is the organization(s) that has 'National Society' as member type.", "SQL": "SELECT T1.Name FROM organization AS T1 INNER JOIN isMember AS T2 ON T2.Country = T1.Country INNER JOIN country AS T3 ON T2.Country = T3.Code WHERE T2.Type = 'National Society'", "tokens": ["What", "is", "the", "organization(s", ")", "that", "has", "'", "National", "Society", "'", "as", "member", "type", "."], "entities": [{"id": 3, "type": "value", "value": "National Society"}, {"id": 4, "type": "table", "value": "organization"}, {"id": 5, "type": "table", "value": "ismember"}, {"id": 1, "type": "table", "value": "country"}, {"id": 6, "type": "column", "value": "country"}, {"id": 0, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "type"}, {"id": 7, "type": "column", "value": "code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": [8, 9]}, {"entity_id": 4, "token_idxs": [3]}, {"entity_id": 5, "token_idxs": [12]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "B-TABLE", "B-COLUMN", "O"]} {"question_id": 9697, "db_id": "movie_3", "dber_id": "bird:train.json:9413", "question": "What is the postal code of the address 692 Joliet Street?", "SQL": "SELECT postal_code FROM address WHERE address = '692 Joliet Street'", "tokens": ["What", "is", "the", "postal", "code", "of", "the", "address", "692", "Joliet", "Street", "?"], "entities": [{"id": 3, "type": "value", "value": "692 Joliet Street"}, {"id": 1, "type": "column", "value": "postal_code"}, {"id": 0, "type": "table", "value": "address"}, {"id": 2, "type": "column", "value": "address"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [8, 9, 10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "B-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 10927, "db_id": "party_host", "dber_id": "spider:train_spider.json:2686", "question": "Show the name and the nationality of the oldest host.", "SQL": "SELECT Name , Nationality FROM HOST ORDER BY Age DESC LIMIT 1", "tokens": ["Show", "the", "name", "and", "the", "nationality", "of", "the", "oldest", "host", "."], "entities": [{"id": 2, "type": "column", "value": "nationality"}, {"id": 0, "type": "table", "value": "host"}, {"id": 1, "type": "column", "value": "name"}, {"id": 3, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 13970, "db_id": "e_commerce", "dber_id": "bird:test.json:60", "question": "How many orders has each gender of customers placed?", "SQL": "SELECT T1.gender_code , count(*) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.gender_code", "tokens": ["How", "many", "orders", "has", "each", "gender", "of", "customers", "placed", "?"], "entities": [{"id": 0, "type": "column", "value": "gender_code"}, {"id": 3, "type": "column", "value": "customer_id"}, {"id": 1, "type": "table", "value": "customers"}, {"id": 2, "type": "table", "value": "orders"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"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, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 1964, "db_id": "restaurant", "dber_id": "bird:train.json:1684", "question": "In which streets of the city of San Francisco are there restaurants that serve seafood?", "SQL": "SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T2.food_type = 'seafood' AND street_name IS NOT NULL", "tokens": ["In", "which", "streets", "of", "the", "city", "of", "San", "Francisco", "are", "there", "restaurants", "that", "serve", "seafood", "?"], "entities": [{"id": 3, "type": "column", "value": "id_restaurant"}, {"id": 5, "type": "value", "value": "san francisco"}, {"id": 0, "type": "column", "value": "street_name"}, {"id": 2, "type": "table", "value": "generalinfo"}, {"id": 6, "type": "column", "value": "food_type"}, {"id": 1, "type": "table", "value": "location"}, {"id": 7, "type": "value", "value": "seafood"}, {"id": 4, "type": "column", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [2]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 12306, "db_id": "train_station", "dber_id": "spider:train_spider.json:6604", "question": "What is the average and maximum number of total passengers for train stations in London or Glasgow?", "SQL": "SELECT avg(total_passengers) , max(total_passengers) FROM station WHERE LOCATION = 'London' OR LOCATION = 'Glasgow'", "tokens": ["What", "is", "the", "average", "and", "maximum", "number", "of", "total", "passengers", "for", "train", "stations", "in", "London", "or", "Glasgow", "?"], "entities": [{"id": 1, "type": "column", "value": "total_passengers"}, {"id": 2, "type": "column", "value": "location"}, {"id": 0, "type": "table", "value": "station"}, {"id": 4, "type": "value", "value": "Glasgow"}, {"id": 3, "type": "value", "value": "London"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": [8, 9]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": [16]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 2060, "db_id": "student_club", "dber_id": "bird:dev.json:1412", "question": "What kind of expenses incurred by members who have X-Large in size of tee shirt?", "SQL": "SELECT T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.t_shirt_size = 'X-Large'", "tokens": ["What", "kind", "of", "expenses", "incurred", "by", "members", "who", "have", "X", "-", "Large", "in", "size", "of", "tee", "shirt", "?"], "entities": [{"id": 0, "type": "column", "value": "expense_description"}, {"id": 6, "type": "column", "value": "link_to_member"}, {"id": 3, "type": "column", "value": "t_shirt_size"}, {"id": 5, "type": "column", "value": "member_id"}, {"id": 2, "type": "table", "value": "expense"}, {"id": 4, "type": "value", "value": "X-Large"}, {"id": 1, "type": "table", "value": "member"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [13]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": [9, 10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O"]} {"question_id": 13189, "db_id": "formula_1", "dber_id": "bird:dev.json:922", "question": "What time did the the 2010's Formula_1 race took place on the Abu Dhabi Circuit?", "SQL": "SELECT T2.date, T2.time FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2010 AND T2.name = 'Abu Dhabi Grand Prix'", "tokens": ["What", "time", "did", "the", "the", "2010", "'s", "Formula_1", "race", "took", "place", "on", "the", "Abu", "Dhabi", "Circuit", "?"], "entities": [{"id": 8, "type": "value", "value": "Abu Dhabi Grand Prix"}, {"id": 4, "type": "column", "value": "circuitid"}, {"id": 2, "type": "table", "value": "circuits"}, {"id": 3, "type": "table", "value": "races"}, {"id": 0, "type": "column", "value": "date"}, {"id": 1, "type": "column", "value": "time"}, {"id": 5, "type": "column", "value": "year"}, {"id": 6, "type": "value", "value": "2010"}, {"id": 7, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [15]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [13, 14]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "B-TABLE", "O"]} {"question_id": 1545, "db_id": "movie_3", "dber_id": "bird:train.json:9147", "question": "What is the phone number of address No.72?", "SQL": "SELECT phone FROM address WHERE address_id = '72'", "tokens": ["What", "is", "the", "phone", "number", "of", "address", "No.72", "?"], "entities": [{"id": 2, "type": "column", "value": "address_id"}, {"id": 0, "type": "table", "value": "address"}, {"id": 1, "type": "column", "value": "phone"}, {"id": 3, "type": "value", "value": "72"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-VALUE", "O"]} {"question_id": 14518, "db_id": "cre_Doc_Tracking_DB", "dber_id": "spider:train_spider.json:4178", "question": "What is the document type name for the document with name \"How to read a book\"?", "SQL": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"", "tokens": ["What", "is", "the", "document", "type", "name", "for", "the", "document", "with", "name", "\"", "How", "to", "read", "a", "book", "\"", "?"], "entities": [{"id": 0, "type": "column", "value": "document_type_name"}, {"id": 2, "type": "table", "value": "ref_document_types"}, {"id": 4, "type": "column", "value": "How to read a book"}, {"id": 5, "type": "column", "value": "document_type_code"}, {"id": 1, "type": "table", "value": "all_documents"}, {"id": 3, "type": "column", "value": "document_name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4, 5]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [12, 13, 14, 15, 16]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 4552, "db_id": "human_resources", "dber_id": "bird:train.json:8966", "question": "How much is the minimum salary given to the position with the most complex work?", "SQL": "SELECT minsalary FROM position ORDER BY educationrequired DESC LIMIT 1", "tokens": ["How", "much", "is", "the", "minimum", "salary", "given", "to", "the", "position", "with", "the", "most", "complex", "work", "?"], "entities": [{"id": 2, "type": "column", "value": "educationrequired"}, {"id": 1, "type": "column", "value": "minsalary"}, {"id": 0, "type": "table", "value": "position"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"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, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O"]} {"question_id": 8835, "db_id": "soccer_2016", "dber_id": "bird:train.json:1860", "question": "Provide the match IDs which were held on 18th April 2015.", "SQL": "SELECT Match_Id FROM Match WHERE Match_Date LIKE '%2015-04-18%'", "tokens": ["Provide", "the", "match", "IDs", "which", "were", "held", "on", "18th", "April", "2015", "."], "entities": [{"id": 3, "type": "value", "value": "%2015-04-18%"}, {"id": 2, "type": "column", "value": "match_date"}, {"id": 1, "type": "column", "value": "match_id"}, {"id": 0, "type": "table", "value": "match"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 5000, "db_id": "movielens", "dber_id": "bird:train.json:2303", "question": "What is the proportion of action movies directors who are called 'box office success paradox'?", "SQL": "SELECT CAST(SUM(IIF(T2.avg_revenue > T2.d_quality, 1, 0)) AS REAL) * 100 / COUNT(T1.movieid) FROM movies2directors AS T1 INNER JOIN directors AS T2 ON T1.directorid = T2.directorid WHERE T1.genre = 'Action'", "tokens": ["What", "is", "the", "proportion", "of", "action", "movies", "directors", "who", "are", "called", "'", "box", "office", "success", "paradox", "'", "?"], "entities": [{"id": 0, "type": "table", "value": "movies2directors"}, {"id": 9, "type": "column", "value": "avg_revenue"}, {"id": 4, "type": "column", "value": "directorid"}, {"id": 1, "type": "table", "value": "directors"}, {"id": 10, "type": "column", "value": "d_quality"}, {"id": 6, "type": "column", "value": "movieid"}, {"id": 3, "type": "value", "value": "Action"}, {"id": 2, "type": "column", "value": "genre"}, {"id": 5, "type": "value", "value": "100"}, {"id": 7, "type": "value", "value": "1"}, {"id": 8, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [5]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [6]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 6624, "db_id": "architecture", "dber_id": "spider:train_spider.json:6946", "question": "List the name, nationality and id of all male architects ordered by their names lexicographically.", "SQL": "SELECT name , nationality , id FROM architect WHERE gender = 'male' ORDER BY name", "tokens": ["List", "the", "name", ",", "nationality", "and", "i", "d", "of", "all", "male", "architects", "ordered", "by", "their", "names", "lexicographically", "."], "entities": [{"id": 2, "type": "column", "value": "nationality"}, {"id": 0, "type": "table", "value": "architect"}, {"id": 4, "type": "column", "value": "gender"}, {"id": 1, "type": "column", "value": "name"}, {"id": 5, "type": "value", "value": "male"}, {"id": 3, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [6, 7]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [10]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "O", "O"]} {"question_id": 1519, "db_id": "ship_mission", "dber_id": "spider:train_spider.json:4016", "question": "Show different types of ships and the average tonnage of ships of each type.", "SQL": "SELECT TYPE , avg(Tonnage) FROM ship GROUP BY TYPE", "tokens": ["Show", "different", "types", "of", "ships", "and", "the", "average", "tonnage", "of", "ships", "of", "each", "type", "."], "entities": [{"id": 2, "type": "column", "value": "tonnage"}, {"id": 0, "type": "table", "value": "ship"}, {"id": 1, "type": "column", "value": "type"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [13]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 16011, "db_id": "beer_factory", "dber_id": "bird:train.json:5276", "question": "How many root beers did Tom Hanks purchase between 2015 to 2016?", "SQL": "SELECT COUNT(T2.RootBeerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Tom' AND T1.Last = 'Hanks' AND T2.TransactionDate BETWEEN '2015-01-01' AND '2016-12-31'", "tokens": ["How", "many", "root", "beers", "did", "Tom", "Hanks", "purchase", "between", "2015", "to", "2016", "?"], "entities": [{"id": 8, "type": "column", "value": "transactiondate"}, {"id": 1, "type": "table", "value": "transaction"}, {"id": 2, "type": "column", "value": "rootbeerid"}, {"id": 3, "type": "column", "value": "customerid"}, {"id": 9, "type": "value", "value": "2015-01-01"}, {"id": 10, "type": "value", "value": "2016-12-31"}, {"id": 0, "type": "table", "value": "customers"}, {"id": 4, "type": "column", "value": "first"}, {"id": 7, "type": "value", "value": "Hanks"}, {"id": 6, "type": "column", "value": "last"}, {"id": 5, "type": "value", "value": "Tom"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [2, 3]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [5]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [6]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [9]}, {"entity_id": 10, "token_idxs": [11]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "B-VALUE", "O", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 10876, "db_id": "mental_health_survey", "dber_id": "bird:train.json:4603", "question": "What was the most common answer for the question \"What country do you work in?\"?", "SQL": "SELECT T1.AnswerText FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext = 'What country do you work in?' GROUP BY T1.AnswerText ORDER BY COUNT(T1.AnswerText) DESC LIMIT 1", "tokens": ["What", "was", "the", "most", "common", "answer", "for", "the", "question", "\"", "What", "country", "do", "you", "work", "in", "?", "\"", "?"], "entities": [{"id": 4, "type": "value", "value": "What country do you work in?"}, {"id": 3, "type": "column", "value": "questiontext"}, {"id": 0, "type": "column", "value": "answertext"}, {"id": 5, "type": "column", "value": "questionid"}, {"id": 2, "type": "table", "value": "question"}, {"id": 1, "type": "table", "value": "answer"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [10, 11, 12, 13, 14, 15, 16]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O"]} {"question_id": 5355, "db_id": "warehouse_1", "dber_id": "bird:test.json:1687", "question": "Select the warehouse code and the average value of the boxes in each warehouse.", "SQL": "SELECT warehouse , avg(value) FROM boxes GROUP BY warehouse", "tokens": ["Select", "the", "warehouse", "code", "and", "the", "average", "value", "of", "the", "boxes", "in", "each", "warehouse", "."], "entities": [{"id": 1, "type": "column", "value": "warehouse"}, {"id": 0, "type": "table", "value": "boxes"}, {"id": 2, "type": "column", "value": "value"}], "entity_to_token": [{"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, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O"]} {"question_id": 11174, "db_id": "simpson_episodes", "dber_id": "bird:train.json:4159", "question": "What's the nickname for Dan Castellaneta?", "SQL": "SELECT nickname FROM Person WHERE name = 'Dan Castellaneta';", "tokens": ["What", "'s", "the", "nickname", "for", "Dan", "Castellaneta", "?"], "entities": [{"id": 3, "type": "value", "value": "Dan Castellaneta"}, {"id": 1, "type": "column", "value": "nickname"}, {"id": 0, "type": "table", "value": "person"}, {"id": 2, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [5, 6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O"]} {"question_id": 7123, "db_id": "scientist_1", "dber_id": "spider:train_spider.json:6489", "question": "Find the name of projects that require between 100 and 300 hours of work.", "SQL": "SELECT name FROM projects WHERE hours BETWEEN 100 AND 300", "tokens": ["Find", "the", "name", "of", "projects", "that", "require", "between", "100", "and", "300", "hours", "of", "work", "."], "entities": [{"id": 0, "type": "table", "value": "projects"}, {"id": 2, "type": "column", "value": "hours"}, {"id": 1, "type": "column", "value": "name"}, {"id": 3, "type": "value", "value": "100"}, {"id": 4, "type": "value", "value": "300"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": [14]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-VALUE"]} {"question_id": 887, "db_id": "gas_company", "dber_id": "spider:train_spider.json:2006", "question": "For each headquarter, what are the headquarter and how many companies are centered there?", "SQL": "SELECT headquarters , count(*) FROM company GROUP BY headquarters", "tokens": ["For", "each", "headquarter", ",", "what", "are", "the", "headquarter", "and", "how", "many", "companies", "are", "centered", "there", "?"], "entities": [{"id": 1, "type": "column", "value": "headquarters"}, {"id": 0, "type": "table", "value": "company"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O"]} {"question_id": 11791, "db_id": "donor", "dber_id": "bird:train.json:3303", "question": "For what grade was the project \"Too Close for Comfort\" for?", "SQL": "SELECT T1.grade_level FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'Too Close for Comfort'", "tokens": ["For", "what", "grade", "was", "the", "project", "\"", "Too", "Close", "for", "Comfort", "\"", "for", "?"], "entities": [{"id": 4, "type": "value", "value": "Too Close for Comfort"}, {"id": 0, "type": "column", "value": "grade_level"}, {"id": 5, "type": "column", "value": "projectid"}, {"id": 1, "type": "table", "value": "projects"}, {"id": 2, "type": "table", "value": "essays"}, {"id": 3, "type": "column", "value": "title"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": [7]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O"]} {"question_id": 11680, "db_id": "ship_mission", "dber_id": "spider:train_spider.json:4003", "question": "What are the types and nationalities of every ship?", "SQL": "SELECT TYPE , Nationality FROM ship", "tokens": ["What", "are", "the", "types", "and", "nationalities", "of", "every", "ship", "?"], "entities": [{"id": 2, "type": "column", "value": "nationality"}, {"id": 0, "type": "table", "value": "ship"}, {"id": 1, "type": "column", "value": "type"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O"]} {"question_id": 9938, "db_id": "works_cycles", "dber_id": "bird:train.json:7265", "question": "How many work orders with quantities ranging from 100 to 250 have a reorder point of no more than 375?", "SQL": "SELECT COUNT(T1.TransactionID) FROM TransactionHistory AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Quantity BETWEEN 100 AND 250 AND T2.ReorderPoint <= 375", "tokens": ["How", "many", "work", "orders", "with", "quantities", "ranging", "from", "100", "to", "250", "have", "a", "reorder", "point", "of", "no", "more", "than", "375", "?"], "entities": [{"id": 0, "type": "table", "value": "transactionhistory"}, {"id": 2, "type": "column", "value": "transactionid"}, {"id": 7, "type": "column", "value": "reorderpoint"}, {"id": 3, "type": "column", "value": "productid"}, {"id": 4, "type": "column", "value": "quantity"}, {"id": 1, "type": "table", "value": "product"}, {"id": 5, "type": "value", "value": "100"}, {"id": 6, "type": "value", "value": "250"}, {"id": 8, "type": "value", "value": "375"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [19]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [6, 11, 16]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 15065, "db_id": "shooting", "dber_id": "bird:train.json:2482", "question": "What is the most common type of weapon that causes death?", "SQL": "SELECT subject_weapon FROM incidents WHERE subject_statuses = 'Deceased' GROUP BY subject_weapon ORDER BY COUNT(case_number) DESC LIMIT 1", "tokens": ["What", "is", "the", "most", "common", "type", "of", "weapon", "that", "causes", "death", "?"], "entities": [{"id": 2, "type": "column", "value": "subject_statuses"}, {"id": 1, "type": "column", "value": "subject_weapon"}, {"id": 4, "type": "column", "value": "case_number"}, {"id": 0, "type": "table", "value": "incidents"}, {"id": 3, "type": "value", "value": "Deceased"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-TABLE", "O"]} {"question_id": 12616, "db_id": "music_4", "dber_id": "spider:train_spider.json:6194", "question": "Return the dates of ceremony corresponding to music festivals that had the category \"Best Song\" and result \"Awarded\".", "SQL": "SELECT Date_of_ceremony FROM music_festival WHERE Category = \"Best Song\" AND RESULT = \"Awarded\"", "tokens": ["Return", "the", "dates", "of", "ceremony", "corresponding", "to", "music", "festivals", "that", "had", "the", "category", "\"", "Best", "Song", "\"", "and", "result", "\"", "Awarded", "\"", "."], "entities": [{"id": 1, "type": "column", "value": "date_of_ceremony"}, {"id": 0, "type": "table", "value": "music_festival"}, {"id": 3, "type": "column", "value": "Best Song"}, {"id": 2, "type": "column", "value": "category"}, {"id": 5, "type": "column", "value": "Awarded"}, {"id": 4, "type": "column", "value": "result"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7, 8]}, {"entity_id": 1, "token_idxs": [2, 3, 4]}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": [14, 15]}, {"entity_id": 4, "token_idxs": [18]}, {"entity_id": 5, "token_idxs": [20]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O"]} {"question_id": 9980, "db_id": "soccer_2", "dber_id": "spider:train_spider.json:5045", "question": "What is the total number of students enrolled in schools without any goalies?", "SQL": "SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos = \"goalie\")", "tokens": ["What", "is", "the", "total", "number", "of", "students", "enrolled", "in", "schools", "without", "any", "goalies", "?"], "entities": [{"id": 0, "type": "table", "value": "college"}, {"id": 3, "type": "table", "value": "tryout"}, {"id": 5, "type": "column", "value": "goalie"}, {"id": 2, "type": "column", "value": "cname"}, {"id": 4, "type": "column", "value": "ppos"}, {"id": 1, "type": "column", "value": "enr"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [12]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 4422, "db_id": "boat_1", "dber_id": "bird:test.json:913", "question": "What is highest rating between sailors?", "SQL": "SELECT max(rating) FROM Sailors", "tokens": ["What", "is", "highest", "rating", "between", "sailors", "?"], "entities": [{"id": 0, "type": "table", "value": "sailors"}, {"id": 1, "type": "column", "value": "rating"}], "entity_to_token": [{"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O"]} {"question_id": 15691, "db_id": "bakery_1", "dber_id": "bird:test.json:1569", "question": "What are the ids of Cookies whose price is lower than any Croissant?", "SQL": "SELECT id FROM goods WHERE food = \"Cookie\" AND price < (SELECT min(price) FROM goods WHERE food = 'Croissant')", "tokens": ["What", "are", "the", "ids", "of", "Cookies", "whose", "price", "is", "lower", "than", "any", "Croissant", "?"], "entities": [{"id": 5, "type": "value", "value": "Croissant"}, {"id": 3, "type": "column", "value": "Cookie"}, {"id": 0, "type": "table", "value": "goods"}, {"id": 4, "type": "column", "value": "price"}, {"id": 2, "type": "column", "value": "food"}, {"id": 1, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [5]}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": [12]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 1084, "db_id": "apartment_rentals", "dber_id": "spider:train_spider.json:1205", "question": "Find all the building full names containing the word \"court\".", "SQL": "SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE \"%court%\"", "tokens": ["Find", "all", "the", "building", "full", "names", "containing", "the", "word", "\"", "court", "\"", "."], "entities": [{"id": 0, "type": "table", "value": "apartment_buildings"}, {"id": 1, "type": "column", "value": "building_full_name"}, {"id": 2, "type": "column", "value": "%court%"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [4, 5]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O"]} {"question_id": 11199, "db_id": "professional_basketball", "dber_id": "bird:train.json:2843", "question": "From 1962 to 2011, how many coaches received both NBA and ABA awards?", "SQL": "SELECT COUNT(DISTINCT coachID) FROM awards_coaches WHERE year BETWEEN 1962 AND 2011 AND award = 'ABA Coach of the Year' AND coachID IN ( SELECT coachID FROM awards_coaches WHERE year BETWEEN 1962 AND 2011 AND award = 'NBA Coach of the Year' )", "tokens": ["From", "1962", "to", "2011", ",", "how", "many", "coaches", "received", "both", "NBA", "and", "ABA", "awards", "?"], "entities": [{"id": 6, "type": "value", "value": "ABA Coach of the Year"}, {"id": 7, "type": "value", "value": "NBA Coach of the Year"}, {"id": 0, "type": "table", "value": "awards_coaches"}, {"id": 1, "type": "column", "value": "coachid"}, {"id": 5, "type": "column", "value": "award"}, {"id": 2, "type": "column", "value": "year"}, {"id": 3, "type": "value", "value": "1962"}, {"id": 4, "type": "value", "value": "2011"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [1]}, {"entity_id": 4, "token_idxs": [3]}, {"entity_id": 5, "token_idxs": [13]}, {"entity_id": 6, "token_idxs": [12]}, {"entity_id": 7, "token_idxs": [10]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 3770, "db_id": "regional_sales", "dber_id": "bird:train.json:2596", "question": "Write down the region and name of the sale team ID of 18 and compare their orders between in-store and online.", "SQL": "SELECT T2.Region, T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T2.SalesTeamID = 18 AND T1.`Sales Channel` = 'In-Store' OR T1.`Sales Channel` = 'Online'", "tokens": ["Write", "down", "the", "region", "and", "name", "of", "the", "sale", "team", "ID", "of", "18", "and", "compare", "their", "orders", "between", "in", "-", "store", "and", "online", "."], "entities": [{"id": 6, "type": "column", "value": "Sales Channel"}, {"id": 2, "type": "table", "value": "Sales Orders"}, {"id": 5, "type": "column", "value": "_salesteamid"}, {"id": 4, "type": "column", "value": "salesteamid"}, {"id": 1, "type": "column", "value": "Sales Team"}, {"id": 3, "type": "table", "value": "Sales Team"}, {"id": 9, "type": "value", "value": "In-Store"}, {"id": 0, "type": "column", "value": "region"}, {"id": 7, "type": "value", "value": "Online"}, {"id": 8, "type": "value", "value": "18"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [16]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": [10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [22]}, {"entity_id": 8, "token_idxs": [12]}, {"entity_id": 9, "token_idxs": [18, 19, 20]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "B-VALUE", "O"]} {"question_id": 4262, "db_id": "student_assessment", "dber_id": "spider:train_spider.json:96", "question": "What are the names of the courses in alphabetical order?", "SQL": "SELECT course_name FROM courses ORDER BY course_name", "tokens": ["What", "are", "the", "names", "of", "the", "courses", "in", "alphabetical", "order", "?"], "entities": [{"id": 1, "type": "column", "value": "course_name"}, {"id": 0, "type": "table", "value": "courses"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O"]} {"question_id": 12066, "db_id": "warehouse_1", "dber_id": "bird:test.json:1691", "question": "Find the average and total capacity of all warehouses.", "SQL": "SELECT avg(capacity) , sum(capacity) FROM warehouses", "tokens": ["Find", "the", "average", "and", "total", "capacity", "of", "all", "warehouses", "."], "entities": [{"id": 0, "type": "table", "value": "warehouses"}, {"id": 1, "type": "column", "value": "capacity"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 1746, "db_id": "card_games", "dber_id": "bird:dev.json:453", "question": "What's the unconverted mana cost of the card \"Ancestor's Chosen\"?", "SQL": "SELECT DISTINCT manaCost FROM cards WHERE name = 'Ancestor''s Chosen'", "tokens": ["What", "'s", "the", "unconverted", "mana", "cost", "of", "the", "card", "\"", "Ancestor", "'s", "Chosen", "\"", "?"], "entities": [{"id": 3, "type": "value", "value": "Ancestor's Chosen"}, {"id": 1, "type": "column", "value": "manacost"}, {"id": 0, "type": "table", "value": "cards"}, {"id": 2, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [4, 5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10, 11, 12]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O"]} {"question_id": 117, "db_id": "music_platform_2", "dber_id": "bird:train.json:7969", "question": "What is the category for the \"Moist Boys\" podcast?", "SQL": "SELECT category FROM categories WHERE podcast_id IN ( SELECT podcast_id FROM podcasts WHERE title = 'Moist Boys' )", "tokens": ["What", "is", "the", "category", "for", "the", "\"", "Moist", "Boys", "\"", "podcast", "?"], "entities": [{"id": 0, "type": "table", "value": "categories"}, {"id": 2, "type": "column", "value": "podcast_id"}, {"id": 5, "type": "value", "value": "Moist Boys"}, {"id": 1, "type": "column", "value": "category"}, {"id": 3, "type": "table", "value": "podcasts"}, {"id": 4, "type": "column", "value": "title"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [7, 8]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "O"]} {"question_id": 4533, "db_id": "department_store", "dber_id": "spider:train_spider.json:4744", "question": "Return the id of the department with the fewest staff assignments.", "SQL": "SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY count(*) LIMIT 1", "tokens": ["Return", "the", "i", "d", "of", "the", "department", "with", "the", "fewest", "staff", "assignments", "."], "entities": [{"id": 0, "type": "table", "value": "staff_department_assignments"}, {"id": 1, "type": "column", "value": "department_id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10, 11]}, {"entity_id": 1, "token_idxs": [2, 3, 6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "I-TABLE", "O"]} {"question_id": 11097, "db_id": "retail_complains", "dber_id": "bird:train.json:287", "question": "Among the calls from California, what percentage are priority 1?", "SQL": "SELECT CAST(SUM(CASE WHEN T1.priority = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.priority) FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id INNER JOIN state AS T4 ON T3.state_abbrev = T4.StateCode WHERE T4.State = 'California'", "tokens": ["Among", "the", "calls", "from", "California", ",", "what", "percentage", "are", "priority", "1", "?"], "entities": [{"id": 8, "type": "table", "value": "callcenterlogs"}, {"id": 4, "type": "column", "value": "state_abbrev"}, {"id": 10, "type": "column", "value": "district_id"}, {"id": 11, "type": "column", "value": "rand client"}, {"id": 2, "type": "value", "value": "California"}, {"id": 5, "type": "column", "value": "statecode"}, {"id": 12, "type": "column", "value": "client_id"}, {"id": 3, "type": "table", "value": "district"}, {"id": 7, "type": "column", "value": "priority"}, {"id": 9, "type": "table", "value": "client"}, {"id": 0, "type": "table", "value": "state"}, {"id": 1, "type": "column", "value": "state"}, {"id": 6, "type": "value", "value": "100"}, {"id": 13, "type": "value", "value": "0"}, {"id": 14, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [9]}, {"entity_id": 8, "token_idxs": [2]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": [10]}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 15468, "db_id": "retail_complains", "dber_id": "bird:train.json:404", "question": "In complaints about the credit card product, list the phone number of the oldest client.", "SQL": "SELECT T1.phone FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Product = 'Credit card' ORDER BY T1.age DESC LIMIT 1", "tokens": ["In", "complaints", "about", "the", "credit", "card", "product", ",", "list", "the", "phone", "number", "of", "the", "oldest", "client", "."], "entities": [{"id": 4, "type": "value", "value": "Credit card"}, {"id": 6, "type": "column", "value": "client_id"}, {"id": 3, "type": "column", "value": "product"}, {"id": 1, "type": "table", "value": "client"}, {"id": 2, "type": "table", "value": "events"}, {"id": 0, "type": "column", "value": "phone"}, {"id": 5, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [15]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": [4, 5]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 11004, "db_id": "works_cycles", "dber_id": "bird:train.json:7240", "question": "What is the credit card number for the sales order \"45793\"?", "SQL": "SELECT T2.CardNumber FROM SalesOrderHeader AS T1 INNER JOIN CreditCard AS T2 ON T1.CreditCardID = T2.CreditCardID WHERE T1.SalesOrderID = 45793", "tokens": ["What", "is", "the", "credit", "card", "number", "for", "the", "sales", "order", "\"", "45793", "\"", "?"], "entities": [{"id": 1, "type": "table", "value": "salesorderheader"}, {"id": 3, "type": "column", "value": "salesorderid"}, {"id": 5, "type": "column", "value": "creditcardid"}, {"id": 0, "type": "column", "value": "cardnumber"}, {"id": 2, "type": "table", "value": "creditcard"}, {"id": 4, "type": "value", "value": "45793"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "B-TABLE", "O", "O", "O", "O"]} {"question_id": 13238, "db_id": "public_review_platform", "dber_id": "bird:train.json:3906", "question": "List out which business category that are most likely to have average good review in Arizona?", "SQL": "SELECT DISTINCT T4.category_name FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T2.state LIKE 'AZ' AND T1.review_stars >= 3", "tokens": ["List", "out", "which", "business", "category", "that", "are", "most", "likely", "to", "have", "average", "good", "review", "in", "Arizona", "?"], "entities": [{"id": 2, "type": "table", "value": "business_categories"}, {"id": 0, "type": "column", "value": "category_name"}, {"id": 6, "type": "column", "value": "review_stars"}, {"id": 3, "type": "column", "value": "category_id"}, {"id": 10, "type": "column", "value": "business_id"}, {"id": 1, "type": "table", "value": "categories"}, {"id": 9, "type": "table", "value": "business"}, {"id": 8, "type": "table", "value": "reviews"}, {"id": 4, "type": "column", "value": "state"}, {"id": 5, "type": "value", "value": "AZ"}, {"id": 7, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": [13]}, {"entity_id": 6, "token_idxs": [15]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-COLUMN", "O"]} {"question_id": 2267, "db_id": "music_2", "dber_id": "spider:train_spider.json:5245", "question": "How many different instruments are used in the song \"Badlands\"?", "SQL": "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"", "tokens": ["How", "many", "different", "instruments", "are", "used", "in", "the", "song", "\"", "Badlands", "\"", "?"], "entities": [{"id": 0, "type": "table", "value": "instruments"}, {"id": 4, "type": "column", "value": "instrument"}, {"id": 3, "type": "column", "value": "Badlands"}, {"id": 5, "type": "column", "value": "songid"}, {"id": 1, "type": "table", "value": "songs"}, {"id": 2, "type": "column", "value": "title"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O"]} {"question_id": 6745, "db_id": "inn_1", "dber_id": "spider:train_spider.json:2619", "question": "How many rooms have king beds? Report the number for each decor type.", "SQL": "SELECT decor , count(*) FROM Rooms WHERE bedType = \"King\" GROUP BY decor;", "tokens": ["How", "many", "rooms", "have", "king", "beds", "?", "Report", "the", "number", "for", "each", "decor", "type", "."], "entities": [{"id": 2, "type": "column", "value": "bedtype"}, {"id": 0, "type": "table", "value": "rooms"}, {"id": 1, "type": "column", "value": "decor"}, {"id": 3, "type": "column", "value": "King"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [12]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": [4]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O"]} {"question_id": 6596, "db_id": "sports_competition", "dber_id": "spider:train_spider.json:3360", "question": "What is the average number of points for players from the \"AIB\" club?", "SQL": "SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.name = \"AIB\"", "tokens": ["What", "is", "the", "average", "number", "of", "points", "for", "players", "from", "the", "\"", "AIB", "\"", "club", "?"], "entities": [{"id": 5, "type": "column", "value": "club_id"}, {"id": 1, "type": "table", "value": "player"}, {"id": 4, "type": "column", "value": "points"}, {"id": 0, "type": "table", "value": "club"}, {"id": 2, "type": "column", "value": "name"}, {"id": 3, "type": "column", "value": "AIB"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O"]} {"question_id": 12075, "db_id": "bike_share_1", "dber_id": "bird:train.json:9095", "question": "What is the shortest trip made starting from Franklin at Maple and what is the maximum wind speed at that date?", "SQL": "SELECT MIN(T1.duration), MAX(T2.max_wind_Speed_mph) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.start_station_name = 'Franklin at Maple' AND T2.date = '9/4/2013'", "tokens": ["What", "is", "the", "shortest", "trip", "made", "starting", "from", "Franklin", "at", "Maple", "and", "what", "is", "the", "maximum", "wind", "speed", "at", "that", "date", "?"], "entities": [{"id": 3, "type": "column", "value": "max_wind_speed_mph"}, {"id": 5, "type": "column", "value": "start_station_name"}, {"id": 6, "type": "value", "value": "Franklin at Maple"}, {"id": 2, "type": "column", "value": "duration"}, {"id": 4, "type": "column", "value": "zip_code"}, {"id": 8, "type": "value", "value": "9/4/2013"}, {"id": 1, "type": "table", "value": "weather"}, {"id": 0, "type": "table", "value": "trip"}, {"id": 7, "type": "column", "value": "date"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [15, 16, 17]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [6]}, {"entity_id": 6, "token_idxs": [8, 9, 10]}, {"entity_id": 7, "token_idxs": [20]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O"]} {"question_id": 14441, "db_id": "soccer_2", "dber_id": "spider:train_spider.json:5039", "question": "What are the states with colleges that have enrollments less than the some other college?", "SQL": "SELECT DISTINCT state FROM college WHERE enr < (SELECT max(enr) FROM college)", "tokens": ["What", "are", "the", "states", "with", "colleges", "that", "have", "enrollments", "less", "than", "the", "some", "other", "college", "?"], "entities": [{"id": 0, "type": "table", "value": "college"}, {"id": 1, "type": "column", "value": "state"}, {"id": 2, "type": "column", "value": "enr"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 13387, "db_id": "customer_complaints", "dber_id": "spider:train_spider.json:5781", "question": "Return the phone number of the customer who filed the complaint that was raised most recently.", "SQL": "SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1", "tokens": ["Return", "the", "phone", "number", "of", "the", "customer", "who", "filed", "the", "complaint", "that", "was", "raised", "most", "recently", "."], "entities": [{"id": 3, "type": "column", "value": "date_complaint_raised"}, {"id": 0, "type": "column", "value": "phone_number"}, {"id": 4, "type": "column", "value": "customer_id"}, {"id": 2, "type": "table", "value": "complaints"}, {"id": 1, "type": "table", "value": "customers"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O"]} {"question_id": 5378, "db_id": "insurance_policies", "dber_id": "spider:train_spider.json:3888", "question": "How many settlements are there in total?", "SQL": "SELECT count(*) FROM Settlements", "tokens": ["How", "many", "settlements", "are", "there", "in", "total", "?"], "entities": [{"id": 0, "type": "table", "value": "settlements"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O"]} {"question_id": 13862, "db_id": "talkingdata", "dber_id": "bird:train.json:1169", "question": "Provide the number of events participated by the device users at coordinates of (80,37).", "SQL": "SELECT COUNT(event_id) FROM events WHERE longitude = 80 AND latitude = 37", "tokens": ["Provide", "the", "number", "of", "events", "participated", "by", "the", "device", "users", "at", "coordinates", "of", "(", "80,37", ")", "."], "entities": [{"id": 2, "type": "column", "value": "longitude"}, {"id": 1, "type": "column", "value": "event_id"}, {"id": 4, "type": "column", "value": "latitude"}, {"id": 0, "type": "table", "value": "events"}, {"id": 3, "type": "value", "value": "80"}, {"id": 5, "type": "value", "value": "37"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 14507, "db_id": "phone_1", "dber_id": "spider:train_spider.json:1041", "question": "List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15.", "SQL": "SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15;", "tokens": ["List", "the", "phone", "hardware", "model", "and", "company", "name", "for", "the", "phones", "whose", "screen", "usage", "in", "kb", "is", "between", "10", "and", "15", "."], "entities": [{"id": 0, "type": "column", "value": "hardware_model_name"}, {"id": 7, "type": "column", "value": "graphics_mode"}, {"id": 1, "type": "column", "value": "company_name"}, {"id": 2, "type": "table", "value": "screen_mode"}, {"id": 8, "type": "column", "value": "screen_mode"}, {"id": 4, "type": "column", "value": "used_kb"}, {"id": 3, "type": "table", "value": "phone"}, {"id": 5, "type": "value", "value": "10"}, {"id": 6, "type": "value", "value": "15"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [6, 7]}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": [2]}, {"entity_id": 4, "token_idxs": [13, 14, 15]}, {"entity_id": 5, "token_idxs": [18]}, {"entity_id": 6, "token_idxs": [20]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 10980, "db_id": "sing_contest", "dber_id": "bird:test.json:754", "question": "How many performances have a stage presence score less than 7 or higher than 9?", "SQL": "SELECT count(*) FROM performance_score WHERE stage_presence < 7 OR stage_presence > 9", "tokens": ["How", "many", "performances", "have", "a", "stage", "presence", "score", "less", "than", "7", "or", "higher", "than", "9", "?"], "entities": [{"id": 0, "type": "table", "value": "performance_score"}, {"id": 1, "type": "column", "value": "stage_presence"}, {"id": 2, "type": "value", "value": "7"}, {"id": 3, "type": "value", "value": "9"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 11321, "db_id": "institution_sports", "dber_id": "bird:test.json:1666", "question": "Return the total number of championships of institutions that have a Public affiliation.", "SQL": "SELECT sum(T1.Number_of_Championships) FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID WHERE T2.Affiliation = \"Public\"", "tokens": ["Return", "the", "total", "number", "of", "championships", "of", "institutions", "that", "have", "a", "Public", "affiliation", "."], "entities": [{"id": 4, "type": "column", "value": "number_of_championships"}, {"id": 5, "type": "column", "value": "institution_id"}, {"id": 0, "type": "table", "value": "championship"}, {"id": 1, "type": "table", "value": "institution"}, {"id": 2, "type": "column", "value": "affiliation"}, {"id": 3, "type": "column", "value": "Public"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": [3, 4]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O"]} {"question_id": 8976, "db_id": "retail_world", "dber_id": "bird:train.json:6349", "question": "Tell the country name of the supplier for \"Scottish Longbreads\".", "SQL": "SELECT T2.Country FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Scottish Longbreads'", "tokens": ["Tell", "the", "country", "name", "of", "the", "supplier", "for", "\"", "Scottish", "Longbreads", "\"", "."], "entities": [{"id": 4, "type": "value", "value": "Scottish Longbreads"}, {"id": 3, "type": "column", "value": "productname"}, {"id": 5, "type": "column", "value": "supplierid"}, {"id": 2, "type": "table", "value": "suppliers"}, {"id": 1, "type": "table", "value": "products"}, {"id": 0, "type": "column", "value": "country"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": [9, 10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O", "O"]} {"question_id": 1679, "db_id": "restaurant", "dber_id": "bird:train.json:1748", "question": "Which country has the most restaurants with Italian food?", "SQL": "SELECT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.food_type = 'Italian' GROUP BY T2.county ORDER BY COUNT(T1.id_restaurant) DESC LIMIT 1", "tokens": ["Which", "country", "has", "the", "most", "restaurants", "with", "Italian", "food", "?"], "entities": [{"id": 6, "type": "column", "value": "id_restaurant"}, {"id": 1, "type": "table", "value": "generalinfo"}, {"id": 2, "type": "table", "value": "geographic"}, {"id": 3, "type": "column", "value": "food_type"}, {"id": 4, "type": "value", "value": "Italian"}, {"id": 0, "type": "column", "value": "county"}, {"id": 5, "type": "column", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 10133, "db_id": "address_1", "dber_id": "bird:test.json:766", "question": "Count the number of coutries.", "SQL": "SELECT count(DISTINCT country) FROM City", "tokens": ["Count", "the", "number", "of", "coutries", "."], "entities": [{"id": 1, "type": "column", "value": "country"}, {"id": 0, "type": "table", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 13770, "db_id": "customers_and_orders", "dber_id": "bird:test.json:248", "question": "Count the number of products of the type Hardware.", "SQL": "SELECT count(*) FROM Products WHERE product_type_code = \"Hardware\"", "tokens": ["Count", "the", "number", "of", "products", "of", "the", "type", "Hardware", "."], "entities": [{"id": 1, "type": "column", "value": "product_type_code"}, {"id": 0, "type": "table", "value": "products"}, {"id": 2, "type": "column", "value": "Hardware"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 15314, "db_id": "mondial_geo", "dber_id": "bird:train.json:8258", "question": "How many organizations are established after 1999/1/1 in a country whose GDP is under 500000?", "SQL": "SELECT T1.Country, COUNT(T1.Country) FROM economy AS T1 INNER JOIN organization AS T2 ON T1.Country = T2.Country WHERE T1.GDP < 500000 AND STRFTIME('%Y', T2.Established) < '1999' GROUP BY T1.Country", "tokens": ["How", "many", "organizations", "are", "established", "after", "1999/1/1", "in", "a", "country", "whose", "GDP", "is", "under", "500000", "?"], "entities": [{"id": 2, "type": "table", "value": "organization"}, {"id": 7, "type": "column", "value": "established"}, {"id": 0, "type": "column", "value": "country"}, {"id": 1, "type": "table", "value": "economy"}, {"id": 4, "type": "value", "value": "500000"}, {"id": 5, "type": "value", "value": "1999"}, {"id": 3, "type": "column", "value": "gdp"}, {"id": 6, "type": "value", "value": "%Y"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 9641, "db_id": "donor", "dber_id": "bird:train.json:3161", "question": "From the total amount of donation to projects, what is the percentage of the amount is for school projects located in the rural area?", "SQL": "SELECT CAST(SUM(CASE WHEN T2.school_metro = 'rural' THEN T1.donation_to_project ELSE 0 END) AS REAL) * 100 / SUM(donation_to_project) FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid", "tokens": ["From", "the", "total", "amount", "of", "donation", "to", "projects", ",", "what", "is", "the", "percentage", "of", "the", "amount", "is", "for", "school", "projects", "located", "in", "the", "rural", "area", "?"], "entities": [{"id": 4, "type": "column", "value": "donation_to_project"}, {"id": 6, "type": "column", "value": "school_metro"}, {"id": 0, "type": "table", "value": "donations"}, {"id": 2, "type": "column", "value": "projectid"}, {"id": 1, "type": "table", "value": "projects"}, {"id": 7, "type": "value", "value": "rural"}, {"id": 3, "type": "value", "value": "100"}, {"id": 5, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [19]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [6, 7]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [18]}, {"entity_id": 7, "token_idxs": [23]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 5168, "db_id": "airline", "dber_id": "bird:train.json:5897", "question": "Among the flights with air carrier described as Asap Air Inc.: ASP, what is the tail number of the flight with the longest departure delay?", "SQL": "SELECT T2.TAIL_NUM FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description = 'Asap Air Inc.: ASP' ORDER BY T2.DEP_DELAY DESC LIMIT 1", "tokens": ["Among", "the", "flights", "with", "air", "carrier", "described", "as", "Asap", "Air", "Inc.", ":", "ASP", ",", "what", "is", "the", "tail", "number", "of", "the", "flight", "with", "the", "longest", "departure", "delay", "?"], "entities": [{"id": 7, "type": "column", "value": "op_carrier_airline_id"}, {"id": 4, "type": "value", "value": "Asap Air Inc.: ASP"}, {"id": 1, "type": "table", "value": "Air Carriers"}, {"id": 3, "type": "column", "value": "description"}, {"id": 5, "type": "column", "value": "dep_delay"}, {"id": 0, "type": "column", "value": "tail_num"}, {"id": 2, "type": "table", "value": "airlines"}, {"id": 6, "type": "column", "value": "code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [17, 18]}, {"entity_id": 1, "token_idxs": [4, 5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": [8, 9, 10, 11, 12]}, {"entity_id": 5, "token_idxs": [26]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 14699, "db_id": "small_bank_1", "dber_id": "spider:train_spider.json:1809", "question": "What are the names of customers with checking balances lower than the average checking balance?", "SQL": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking)", "tokens": ["What", "are", "the", "names", "of", "customers", "with", "checking", "balances", "lower", "than", "the", "average", "checking", "balance", "?"], "entities": [{"id": 1, "type": "table", "value": "accounts"}, {"id": 2, "type": "table", "value": "checking"}, {"id": 3, "type": "column", "value": "balance"}, {"id": 4, "type": "column", "value": "custid"}, {"id": 0, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O"]} {"question_id": 5502, "db_id": "solvency_ii", "dber_id": "spider:train_spider.json:4595", "question": "Show the names of products that are in at least two events.", "SQL": "SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2", "tokens": ["Show", "the", "names", "of", "products", "that", "are", "in", "at", "least", "two", "events", "."], "entities": [{"id": 2, "type": "table", "value": "products_in_events"}, {"id": 0, "type": "column", "value": "product_name"}, {"id": 4, "type": "column", "value": "product_id"}, {"id": 1, "type": "table", "value": "products"}, {"id": 3, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 8005, "db_id": "movie_platform", "dber_id": "bird:train.json:78", "question": "How many ratings on the movie \"A Way of Life\" are made after the year 2011?", "SQL": "SELECT COUNT(T1.rating_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.rating_timestamp_utc >= '2012-01-01'", "tokens": ["How", "many", "ratings", "on", "the", "movie", "\"", "A", "Way", "of", "Life", "\"", "are", "made", "after", "the", "year", "2011", "?"], "entities": [{"id": 6, "type": "column", "value": "rating_timestamp_utc"}, {"id": 5, "type": "value", "value": "A Way of Life"}, {"id": 4, "type": "column", "value": "movie_title"}, {"id": 7, "type": "value", "value": "2012-01-01"}, {"id": 2, "type": "column", "value": "rating_id"}, {"id": 3, "type": "column", "value": "movie_id"}, {"id": 0, "type": "table", "value": "ratings"}, {"id": 1, "type": "table", "value": "movies"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [7, 8, 9, 10]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [17]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 6267, "db_id": "movie_3", "dber_id": "bird:train.json:9371", "question": "Identify the number of movies rented by Maria Miller.", "SQL": "SELECT COUNT(T2.rental_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'Maria' AND T1.last_name = 'Miller'", "tokens": ["Identify", "the", "number", "of", "movies", "rented", "by", "Maria", "Miller", "."], "entities": [{"id": 3, "type": "column", "value": "customer_id"}, {"id": 4, "type": "column", "value": "first_name"}, {"id": 2, "type": "column", "value": "rental_id"}, {"id": 6, "type": "column", "value": "last_name"}, {"id": 0, "type": "table", "value": "customer"}, {"id": 1, "type": "table", "value": "rental"}, {"id": 7, "type": "value", "value": "Miller"}, {"id": 5, "type": "value", "value": "Maria"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [7]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [8]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-VALUE", "O"]} {"question_id": 2591, "db_id": "works_cycles", "dber_id": "bird:train.json:7046", "question": "What is the postal code of the street address of the account that is latest updated?", "SQL": "SELECT PostalCode FROM Address ORDER BY ModifiedDate DESC LIMIT 1", "tokens": ["What", "is", "the", "postal", "code", "of", "the", "street", "address", "of", "the", "account", "that", "is", "latest", "updated", "?"], "entities": [{"id": 2, "type": "column", "value": "modifieddate"}, {"id": 1, "type": "column", "value": "postalcode"}, {"id": 0, "type": "table", "value": "address"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 12547, "db_id": "dorm_1", "dber_id": "spider:train_spider.json:5747", "question": "What are the total number of students who are living in a male dorm?", "SQL": "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.gender = 'M'", "tokens": ["What", "are", "the", "total", "number", "of", "students", "who", "are", "living", "in", "a", "male", "dorm", "?"], "entities": [{"id": 4, "type": "table", "value": "lives_in"}, {"id": 3, "type": "table", "value": "student"}, {"id": 1, "type": "column", "value": "gender"}, {"id": 5, "type": "column", "value": "dormid"}, {"id": 6, "type": "column", "value": "stuid"}, {"id": 0, "type": "table", "value": "dorm"}, {"id": 2, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6, 7, 8, 9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "I-TABLE", "O", "O", "O", "O", "O"]} {"question_id": 4543, "db_id": "simpson_episodes", "dber_id": "bird:train.json:4359", "question": "In episode nominated in Annie Awards, how many of the episodes have a percent greater than 6?", "SQL": "SELECT COUNT(*) FROM Award AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.organization = 'Annie Awards' AND T1.result = 'Nominee' AND T2.percent > 6;", "tokens": ["In", "episode", "nominated", "in", "Annie", "Awards", ",", "how", "many", "of", "the", "episodes", "have", "a", "percent", "greater", "than", "6", "?"], "entities": [{"id": 3, "type": "column", "value": "organization"}, {"id": 4, "type": "value", "value": "Annie Awards"}, {"id": 2, "type": "column", "value": "episode_id"}, {"id": 6, "type": "value", "value": "Nominee"}, {"id": 7, "type": "column", "value": "percent"}, {"id": 5, "type": "column", "value": "result"}, {"id": 0, "type": "table", "value": "award"}, {"id": 1, "type": "table", "value": "vote"}, {"id": 8, "type": "value", "value": "6"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [1]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [4, 5]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [2]}, {"entity_id": 7, "token_idxs": [14]}, {"entity_id": 8, "token_idxs": [17]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "B-VALUE", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O"]} {"question_id": 4616, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1169", "question": "What is the ratio of male to female patients among all those with abnormal uric acid counts?", "SQL": "SELECT CAST(SUM(CASE WHEN T2.UA <= 8.0 AND T1.SEX = 'M' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.UA <= 6.5 AND T1.SEX = 'F' THEN 1 ELSE 0 END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID", "tokens": ["What", "is", "the", "ratio", "of", "male", "to", "female", "patients", "among", "all", "those", "with", "abnormal", "uric", "acid", "counts", "?"], "entities": [{"id": 1, "type": "table", "value": "laboratory"}, {"id": 0, "type": "table", "value": "patient"}, {"id": 6, "type": "value", "value": "6.5"}, {"id": 7, "type": "column", "value": "sex"}, {"id": 9, "type": "value", "value": "8.0"}, {"id": 2, "type": "column", "value": "id"}, {"id": 5, "type": "column", "value": "ua"}, {"id": 3, "type": "value", "value": "0"}, {"id": 4, "type": "value", "value": "1"}, {"id": 8, "type": "value", "value": "F"}, {"id": 10, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [14, 15]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [7]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": [5]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 2442, "db_id": "menu", "dber_id": "bird:train.json:5575", "question": "What is the highest price of the dish \"Chicken gumbo\" on a menu page?", "SQL": "SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Chicken gumbo' ORDER BY T2.price DESC LIMIT 1", "tokens": ["What", "is", "the", "highest", "price", "of", "the", "dish", "\"", "Chicken", "gumbo", "\"", "on", "a", "menu", "page", "?"], "entities": [{"id": 4, "type": "value", "value": "Chicken gumbo"}, {"id": 2, "type": "table", "value": "menuitem"}, {"id": 6, "type": "column", "value": "dish_id"}, {"id": 0, "type": "column", "value": "price"}, {"id": 1, "type": "table", "value": "dish"}, {"id": 3, "type": "column", "value": "name"}, {"id": 5, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [14]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [9, 10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "B-TABLE", "O", "O"]} {"question_id": 5198, "db_id": "books", "dber_id": "bird:train.json:5957", "question": "What is the name of the publisher that published the most books?", "SQL": "SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id GROUP BY T2.publisher_name ORDER BY COUNT(T2.publisher_id) DESC LIMIT 1", "tokens": ["What", "is", "the", "name", "of", "the", "publisher", "that", "published", "the", "most", "books", "?"], "entities": [{"id": 0, "type": "column", "value": "publisher_name"}, {"id": 3, "type": "column", "value": "publisher_id"}, {"id": 2, "type": "table", "value": "publisher"}, {"id": 1, "type": "table", "value": "book"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [11]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 14202, "db_id": "toxicology", "dber_id": "bird:dev.json:258", "question": "What are the bond type for atoms with element Tin?", "SQL": "SELECT DISTINCT T3.bond_type FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T3.bond_id = T2.bond_id WHERE T1.element = 'sn'", "tokens": ["What", "are", "the", "bond", "type", "for", "atoms", "with", "element", "Tin", "?"], "entities": [{"id": 0, "type": "column", "value": "bond_type"}, {"id": 5, "type": "table", "value": "connected"}, {"id": 2, "type": "column", "value": "element"}, {"id": 6, "type": "column", "value": "bond_id"}, {"id": 7, "type": "column", "value": "atom_id"}, {"id": 1, "type": "table", "value": "bond"}, {"id": 4, "type": "table", "value": "atom"}, {"id": 3, "type": "value", "value": "sn"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 10834, "db_id": "music_1", "dber_id": "spider:train_spider.json:3585", "question": "What is the language used most often in the songs?", "SQL": "SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1", "tokens": ["What", "is", "the", "language", "used", "most", "often", "in", "the", "songs", "?"], "entities": [{"id": 1, "type": "column", "value": "languages"}, {"id": 0, "type": "table", "value": "song"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 13202, "db_id": "world_development_indicators", "dber_id": "bird:train.json:2092", "question": "What's the description of the series code SM.POP.TOTL for Aruba?", "SQL": "SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'SM.POP.TOTL'", "tokens": ["What", "'s", "the", "description", "of", "the", "series", "code", "SM.POP.TOTL", "for", "Aruba", "?"], "entities": [{"id": 2, "type": "table", "value": "countrynotes"}, {"id": 0, "type": "column", "value": "description"}, {"id": 3, "type": "column", "value": "countrycode"}, {"id": 7, "type": "value", "value": "SM.POP.TOTL"}, {"id": 6, "type": "column", "value": "seriescode"}, {"id": 4, "type": "column", "value": "shortname"}, {"id": 1, "type": "table", "value": "country"}, {"id": 5, "type": "value", "value": "Aruba"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [10]}, {"entity_id": 6, "token_idxs": [6, 7]}, {"entity_id": 7, "token_idxs": [8]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 15692, "db_id": "university", "dber_id": "bird:train.json:8130", "question": "Calculate the average score of Emory University from 2011 to 2016.", "SQL": "SELECT AVG(T1.score) FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Emory University' AND T1.year BETWEEN 2011 AND 2016", "tokens": ["Calculate", "the", "average", "score", "of", "Emory", "University", "from", "2011", "to", "2016", "."], "entities": [{"id": 0, "type": "table", "value": "university_ranking_year"}, {"id": 6, "type": "value", "value": "Emory University"}, {"id": 5, "type": "column", "value": "university_name"}, {"id": 3, "type": "column", "value": "university_id"}, {"id": 1, "type": "table", "value": "university"}, {"id": 2, "type": "column", "value": "score"}, {"id": 7, "type": "column", "value": "year"}, {"id": 8, "type": "value", "value": "2011"}, {"id": 9, "type": "value", "value": "2016"}, {"id": 4, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [8]}, {"entity_id": 9, "token_idxs": [10]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-TABLE", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 15287, "db_id": "pilot_record", "dber_id": "spider:train_spider.json:2084", "question": "List the names of pilots in ascending order of rank.", "SQL": "SELECT Pilot_name FROM pilot ORDER BY Rank ASC", "tokens": ["List", "the", "names", "of", "pilots", "in", "ascending", "order", "of", "rank", "."], "entities": [{"id": 1, "type": "column", "value": "pilot_name"}, {"id": 0, "type": "table", "value": "pilot"}, {"id": 2, "type": "column", "value": "rank"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 8270, "db_id": "talkingdata", "dber_id": "bird:train.json:1044", "question": "What is the gender of the youngest user?", "SQL": "SELECT gender FROM gender_age WHERE age = ( SELECT MIN(age) FROM gender_age )", "tokens": ["What", "is", "the", "gender", "of", "the", "youngest", "user", "?"], "entities": [{"id": 0, "type": "table", "value": "gender_age"}, {"id": 1, "type": "column", "value": "gender"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 9543, "db_id": "movie_platform", "dber_id": "bird:train.json:154", "question": "What is the name of the list that was updated most recently?", "SQL": "SELECT list_title FROM lists WHERE list_update_timestamp_utc = ( SELECT list_update_timestamp_utc FROM lists ORDER BY list_update_timestamp_utc DESC LIMIT 1 )", "tokens": ["What", "is", "the", "name", "of", "the", "list", "that", "was", "updated", "most", "recently", "?"], "entities": [{"id": 2, "type": "column", "value": "list_update_timestamp_utc"}, {"id": 1, "type": "column", "value": "list_title"}, {"id": 0, "type": "table", "value": "lists"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O"]} {"question_id": 9125, "db_id": "student_loan", "dber_id": "bird:train.json:4379", "question": "How many disabled students have never been absent from school?", "SQL": "SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.`name` = T2.`name` WHERE T1.`month` = 0", "tokens": ["How", "many", "disabled", "students", "have", "never", "been", "absent", "from", "school", "?"], "entities": [{"id": 0, "type": "table", "value": "longest_absense_from_school"}, {"id": 1, "type": "table", "value": "disabled"}, {"id": 2, "type": "column", "value": "month"}, {"id": 4, "type": "column", "value": "name"}, {"id": 3, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7, 8, 9]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O"]} {"question_id": 11412, "db_id": "county_public_safety", "dber_id": "spider:train_spider.json:2539", "question": "Return the minimum and maximum crime rates across all counties.", "SQL": "SELECT min(Crime_rate) , max(Crime_rate) FROM county_public_safety", "tokens": ["Return", "the", "minimum", "and", "maximum", "crime", "rates", "across", "all", "counties", "."], "entities": [{"id": 0, "type": "table", "value": "county_public_safety"}, {"id": 1, "type": "column", "value": "crime_rate"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 15048, "db_id": "cre_Doc_Control_Systems", "dber_id": "spider:train_spider.json:2125", "question": "Which document has the most draft copies? List its document id and number of draft copies.", "SQL": "SELECT document_id , count(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY count(copy_number) DESC LIMIT 1;", "tokens": ["Which", "document", "has", "the", "most", "draft", "copies", "?", "List", "its", "document", "i", "d", "and", "number", "of", "draft", "copies", "."], "entities": [{"id": 0, "type": "table", "value": "draft_copies"}, {"id": 1, "type": "column", "value": "document_id"}, {"id": 2, "type": "column", "value": "copy_number"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [16, 17]}, {"entity_id": 1, "token_idxs": [10, 11, 12]}, {"entity_id": 2, "token_idxs": [14]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O"]} {"question_id": 15564, "db_id": "culture_company", "dber_id": "spider:train_spider.json:6962", "question": "How many book clubs are there?", "SQL": "SELECT count(*) FROM book_club", "tokens": ["How", "many", "book", "clubs", "are", "there", "?"], "entities": [{"id": 0, "type": "table", "value": "book_club"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "I-TABLE", "O", "O", "O"]} {"question_id": 10168, "db_id": "government_shift", "dber_id": "bird:test.json:359", "question": "What is the most common analytical layer type code?", "SQL": "SELECT analytical_layer_type_code FROM analytical_layer GROUP BY analytical_layer_type_code ORDER BY count(*) DESC LIMIT 1", "tokens": ["What", "is", "the", "most", "common", "analytical", "layer", "type", "code", "?"], "entities": [{"id": 1, "type": "column", "value": "analytical_layer_type_code"}, {"id": 0, "type": "table", "value": "analytical_layer"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5, 6]}, {"entity_id": 1, "token_idxs": [7, 8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 11069, "db_id": "university_basketball", "dber_id": "spider:train_spider.json:1022", "question": "What are the names of all the teams in the basketball competition, sorted by all home scores in descending order?", "SQL": "SELECT team_name FROM basketball_match ORDER BY All_Home DESC", "tokens": ["What", "are", "the", "names", "of", "all", "the", "teams", "in", "the", "basketball", "competition", ",", "sorted", "by", "all", "home", "scores", "in", "descending", "order", "?"], "entities": [{"id": 0, "type": "table", "value": "basketball_match"}, {"id": 1, "type": "column", "value": "team_name"}, {"id": 2, "type": "column", "value": "all_home"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": [15, 16]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 4119, "db_id": "formula_1", "dber_id": "bird:dev.json:935", "question": "How many drivers managed to finish the race in the 2008 Australian Grand Prix?", "SQL": "SELECT COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.name = 'Australian Grand Prix' AND T1.year = 2008 AND T2.time IS NOT NULL", "tokens": ["How", "many", "drivers", "managed", "to", "finish", "the", "race", "in", "the", "2008", "Australian", "Grand", "Prix", "?"], "entities": [{"id": 5, "type": "value", "value": "Australian Grand Prix"}, {"id": 2, "type": "column", "value": "driverid"}, {"id": 1, "type": "table", "value": "results"}, {"id": 3, "type": "column", "value": "raceid"}, {"id": 0, "type": "table", "value": "races"}, {"id": 4, "type": "column", "value": "name"}, {"id": 6, "type": "column", "value": "year"}, {"id": 7, "type": "value", "value": "2008"}, {"id": 8, "type": "column", "value": "time"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [11, 12, 13]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [10]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 750, "db_id": "art_1", "dber_id": "bird:test.json:1241", "question": "In what year was the artist who created a painting in 1884 born?", "SQL": "SELECT T1.birthYear FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.year = 1884 AND mediumOn = \"canvas\"", "tokens": ["In", "what", "year", "was", "the", "artist", "who", "created", "a", "painting", "in", "1884", "born", "?"], "entities": [{"id": 0, "type": "column", "value": "birthyear"}, {"id": 2, "type": "table", "value": "paintings"}, {"id": 4, "type": "column", "value": "painterid"}, {"id": 3, "type": "column", "value": "artistid"}, {"id": 7, "type": "column", "value": "mediumon"}, {"id": 1, "type": "table", "value": "artists"}, {"id": 8, "type": "column", "value": "canvas"}, {"id": 5, "type": "column", "value": "year"}, {"id": 6, "type": "value", "value": "1884"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [2]}, {"entity_id": 6, "token_idxs": [11]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O"]} {"question_id": 4905, "db_id": "assets_maintenance", "dber_id": "spider:train_spider.json:3143", "question": "Which part fault requires the most number of skills to fix? List part id and name.", "SQL": "SELECT T1.part_id , T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY count(*) DESC LIMIT 1", "tokens": ["Which", "part", "fault", "requires", "the", "most", "number", "of", "skills", "to", "fix", "?", "List", "part", "i", "d", "and", "name", "."], "entities": [{"id": 2, "type": "table", "value": "skills_required_to_fix"}, {"id": 5, "type": "column", "value": "part_fault_id"}, {"id": 4, "type": "table", "value": "part_faults"}, {"id": 1, "type": "column", "value": "part_name"}, {"id": 0, "type": "column", "value": "part_id"}, {"id": 3, "type": "table", "value": "parts"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14, 15]}, {"entity_id": 1, "token_idxs": [17]}, {"entity_id": 2, "token_idxs": [8, 9, 10]}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": [1, 2]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O"]} {"question_id": 3919, "db_id": "store_1", "dber_id": "spider:train_spider.json:648", "question": "How many tracks are in each genre?", "SQL": "SELECT count(*) , T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;", "tokens": ["How", "many", "tracks", "are", "in", "each", "genre", "?"], "entities": [{"id": 4, "type": "column", "value": "genre_id"}, {"id": 1, "type": "table", "value": "genres"}, {"id": 2, "type": "table", "value": "tracks"}, {"id": 0, "type": "column", "value": "name"}, {"id": 3, "type": "column", "value": "id"}], "entity_to_token": [{"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": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 9431, "db_id": "synthea", "dber_id": "bird:train.json:1532", "question": "Provide the allergen of the Dominican patient named Dirk Languish.", "SQL": "SELECT T1.DESCRIPTION FROM allergies AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.first = 'Dirk' AND T2.last = 'Langosh' AND T2.ethnicity = 'dominican'", "tokens": ["Provide", "the", "allergen", "of", "the", "Dominican", "patient", "named", "Dirk", "Languish", "."], "entities": [{"id": 0, "type": "column", "value": "description"}, {"id": 1, "type": "table", "value": "allergies"}, {"id": 8, "type": "column", "value": "ethnicity"}, {"id": 9, "type": "value", "value": "dominican"}, {"id": 2, "type": "table", "value": "patients"}, {"id": 3, "type": "column", "value": "patient"}, {"id": 7, "type": "value", "value": "Langosh"}, {"id": 4, "type": "column", "value": "first"}, {"id": 5, "type": "value", "value": "Dirk"}, {"id": 6, "type": "column", "value": "last"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [8]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [9]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [5]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "O", "B-VALUE", "B-VALUE", "O"]} {"question_id": 1530, "db_id": "loan_1", "dber_id": "spider:train_spider.json:3012", "question": "Find the average number of customers in all banks of Utah state.", "SQL": "SELECT avg(no_of_customers) FROM bank WHERE state = 'Utah'", "tokens": ["Find", "the", "average", "number", "of", "customers", "in", "all", "banks", "of", "Utah", "state", "."], "entities": [{"id": 3, "type": "column", "value": "no_of_customers"}, {"id": 1, "type": "column", "value": "state"}, {"id": 0, "type": "table", "value": "bank"}, {"id": 2, "type": "value", "value": "Utah"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [11]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [3, 4, 5]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 10714, "db_id": "works_cycles", "dber_id": "bird:train.json:7008", "question": "How much would be the total sales profit for shopping cart ID 20621 ?", "SQL": "SELECT SUM((T1.ListPrice - T1.StandardCost) * T2.Quantity) FROM Product AS T1 INNER JOIN ShoppingCartItem AS T2 ON T1.ProductID = T2.ProductID WHERE T2.ShoppingCartID = 20621", "tokens": ["How", "much", "would", "be", "the", "total", "sales", "profit", "for", "shopping", "cart", "ID", "20621", "?"], "entities": [{"id": 1, "type": "table", "value": "shoppingcartitem"}, {"id": 2, "type": "column", "value": "shoppingcartid"}, {"id": 7, "type": "column", "value": "standardcost"}, {"id": 4, "type": "column", "value": "productid"}, {"id": 6, "type": "column", "value": "listprice"}, {"id": 5, "type": "column", "value": "quantity"}, {"id": 0, "type": "table", "value": "product"}, {"id": 3, "type": "value", "value": "20621"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [9, 10, 11]}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-VALUE", "O"]} {"question_id": 7508, "db_id": "social_media", "dber_id": "bird:train.json:792", "question": "How many tweets are posted by male users in Argentina?", "SQL": "SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID INNER JOIN user AS T3 ON T1.UserID = T3.UserID WHERE T3.Gender = 'Male' AND T2.Country = 'Argentina'", "tokens": ["How", "many", "tweets", "are", "posted", "by", "male", "users", "in", "Argentina", "?"], "entities": [{"id": 8, "type": "column", "value": "locationid"}, {"id": 7, "type": "value", "value": "Argentina"}, {"id": 2, "type": "table", "value": "location"}, {"id": 0, "type": "column", "value": "tweetid"}, {"id": 1, "type": "table", "value": "twitter"}, {"id": 6, "type": "column", "value": "country"}, {"id": 3, "type": "column", "value": "userid"}, {"id": 4, "type": "column", "value": "gender"}, {"id": 5, "type": "value", "value": "Male"}], "entity_to_token": [{"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": [6]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O"]} {"question_id": 14605, "db_id": "public_review_platform", "dber_id": "bird:train.json:3762", "question": "How many Yelp businesses are opened 24 hours?", "SQL": "SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name LIKE 'Open 24 Hours' AND T2.attribute_value LIKE 'TRUE'", "tokens": ["How", "many", "Yelp", "businesses", "are", "opened", "24", "hours", "?"], "entities": [{"id": 1, "type": "table", "value": "business_attributes"}, {"id": 6, "type": "column", "value": "attribute_value"}, {"id": 4, "type": "column", "value": "attribute_name"}, {"id": 5, "type": "value", "value": "Open 24 Hours"}, {"id": 3, "type": "column", "value": "attribute_id"}, {"id": 2, "type": "column", "value": "business_id"}, {"id": 0, "type": "table", "value": "attributes"}, {"id": 7, "type": "value", "value": "TRUE"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [5, 6, 7]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 11133, "db_id": "computer_student", "dber_id": "bird:train.json:1032", "question": "How many courses were taught by more than 4 people?", "SQL": "SELECT COUNT(*) FROM ( SELECT COUNT(course_id) FROM taughtBy GROUP BY course_id HAVING COUNT(course_id) > 4 )", "tokens": ["How", "many", "courses", "were", "taught", "by", "more", "than", "4", "people", "?"], "entities": [{"id": 1, "type": "column", "value": "course_id"}, {"id": 0, "type": "table", "value": "taughtby"}, {"id": 2, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4, 5]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 9891, "db_id": "film_rank", "dber_id": "spider:train_spider.json:4156", "question": "What is the title of the film that has the highest high market estimation.", "SQL": "SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1", "tokens": ["What", "is", "the", "title", "of", "the", "film", "that", "has", "the", "highest", "high", "market", "estimation", "."], "entities": [{"id": 2, "type": "table", "value": "film_market_estimation"}, {"id": 3, "type": "column", "value": "high_estimate"}, {"id": 4, "type": "column", "value": "film_id"}, {"id": 0, "type": "column", "value": "title"}, {"id": 1, "type": "table", "value": "film"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [12, 13]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O"]} {"question_id": 8423, "db_id": "mental_health_survey", "dber_id": "bird:train.json:4597", "question": "How many questions did user No.5 answer?", "SQL": "SELECT COUNT(QuestionID) FROM Answer WHERE UserID = 5", "tokens": ["How", "many", "questions", "did", "user", "No.5", "answer", "?"], "entities": [{"id": 3, "type": "column", "value": "questionid"}, {"id": 0, "type": "table", "value": "answer"}, {"id": 1, "type": "column", "value": "userid"}, {"id": 2, "type": "value", "value": "5"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [2]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "B-VALUE", "B-TABLE", "O"]} {"question_id": 5139, "db_id": "retails", "dber_id": "bird:train.json:6890", "question": "What is the biggest discount among all orders for the part \"burnished seashell gainsboro navajo chocolate\"?", "SQL": "SELECT MAX(T1.l_discount) FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T2.p_name = 'burnished seashell gainsboro navajo chocolate'", "tokens": ["What", "is", "the", "biggest", "discount", "among", "all", "orders", "for", "the", "part", "\"", "burnished", "seashell", "gainsboro", "navajo", "chocolate", "\"", "?"], "entities": [{"id": 3, "type": "value", "value": "burnished seashell gainsboro navajo chocolate"}, {"id": 4, "type": "column", "value": "l_discount"}, {"id": 5, "type": "column", "value": "l_partkey"}, {"id": 6, "type": "column", "value": "p_partkey"}, {"id": 0, "type": "table", "value": "lineitem"}, {"id": 2, "type": "column", "value": "p_name"}, {"id": 1, "type": "table", "value": "part"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [12, 13, 14, 15, 16]}, {"entity_id": 4, "token_idxs": [4]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O"]} {"question_id": 16014, "db_id": "retail_world", "dber_id": "bird:train.json:6331", "question": "Among the products ordered in order no. 10248, which product has the biggest ratio of units on order to units in stock?", "SQL": "SELECT T1.ProductName FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10248 ORDER BY T1.UnitsOnOrder / T1.UnitsInStock DESC LIMIT 1", "tokens": ["Among", "the", "products", "ordered", "in", "order", "no", ".", "10248", ",", "which", "product", "has", "the", "biggest", "ratio", "of", "units", "on", "order", "to", "units", "in", "stock", "?"], "entities": [{"id": 2, "type": "table", "value": "Order Details"}, {"id": 6, "type": "column", "value": "unitsonorder"}, {"id": 7, "type": "column", "value": "unitsinstock"}, {"id": 0, "type": "column", "value": "productname"}, {"id": 5, "type": "column", "value": "productid"}, {"id": 1, "type": "table", "value": "products"}, {"id": 3, "type": "column", "value": "orderid"}, {"id": 4, "type": "value", "value": "10248"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": [11]}, {"entity_id": 6, "token_idxs": [17, 18, 19]}, {"entity_id": 7, "token_idxs": [21, 22, 23]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O"]} {"question_id": 13043, "db_id": "icfp_1", "dber_id": "spider:train_spider.json:2877", "question": "Find the first names and last names of the authors whose institution affiliation is \"Google\".", "SQL": "SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Google\"", "tokens": ["Find", "the", "first", "names", "and", "last", "names", "of", "the", "authors", "whose", "institution", "affiliation", "is", "\"", "Google", "\"", "."], "entities": [{"id": 6, "type": "table", "value": "authorship"}, {"id": 5, "type": "table", "value": "authors"}, {"id": 4, "type": "column", "value": "Google"}, {"id": 7, "type": "column", "value": "instid"}, {"id": 8, "type": "column", "value": "authid"}, {"id": 0, "type": "column", "value": "fname"}, {"id": 1, "type": "column", "value": "lname"}, {"id": 2, "type": "table", "value": "inst"}, {"id": 3, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [15]}, {"entity_id": 5, "token_idxs": [9]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O"]} {"question_id": 7478, "db_id": "tracking_grants_for_research", "dber_id": "spider:train_spider.json:4369", "question": "For each grant id, how many documents does it have, and which one has the most?", "SQL": "SELECT grant_id , count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1", "tokens": ["For", "each", "grant", "i", "d", ",", "how", "many", "documents", "does", "it", "have", ",", "and", "which", "one", "has", "the", "most", "?"], "entities": [{"id": 0, "type": "table", "value": "documents"}, {"id": 1, "type": "column", "value": "grant_id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [2, 3, 4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 1743, "db_id": "app_store", "dber_id": "bird:train.json:2528", "question": "What is the total installs of apps with content rating of adults only 18+ and what are the translated reviews of it?", "SQL": "SELECT SUM(T1.Installs), T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.\"Content Rating\" = 'Adults only 18+'", "tokens": ["What", "is", "the", "total", "installs", "of", "apps", "with", "content", "rating", "of", "adults", "only", "18", "+", "and", "what", "are", "the", "translated", "reviews", "of", "it", "?"], "entities": [{"id": 0, "type": "column", "value": "translated_review"}, {"id": 4, "type": "value", "value": "Adults only 18+"}, {"id": 3, "type": "column", "value": "Content Rating"}, {"id": 2, "type": "table", "value": "user_reviews"}, {"id": 1, "type": "table", "value": "playstore"}, {"id": 5, "type": "column", "value": "installs"}, {"id": 6, "type": "column", "value": "app"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [11]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [4]}, {"entity_id": 7, "token_idxs": [8]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 344, "db_id": "hospital_1", "dber_id": "spider:train_spider.json:3952", "question": "List the names of all distinct nurses ordered by alphabetical order?", "SQL": "SELECT DISTINCT name FROM nurse ORDER BY name", "tokens": ["List", "the", "names", "of", "all", "distinct", "nurses", "ordered", "by", "alphabetical", "order", "?"], "entities": [{"id": 0, "type": "table", "value": "nurse"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O"]} {"question_id": 7066, "db_id": "retails", "dber_id": "bird:train.json:6800", "question": "Please list any three line item numbers that have 10% off.", "SQL": "SELECT l_linenumber FROM lineitem WHERE l_discount = 0.1 LIMIT 3", "tokens": ["Please", "list", "any", "three", "line", "item", "numbers", "that", "have", "10", "%", "off", "."], "entities": [{"id": 1, "type": "column", "value": "l_linenumber"}, {"id": 2, "type": "column", "value": "l_discount"}, {"id": 0, "type": "table", "value": "lineitem"}, {"id": 3, "type": "value", "value": "0.1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4, 5]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9, 10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "O", "O"]} {"question_id": 9197, "db_id": "musical", "dber_id": "spider:train_spider.json:249", "question": "Return the different nominees of musicals that have an award that is not the Tony Award.", "SQL": "SELECT DISTINCT Nominee FROM musical WHERE Award != \"Tony Award\"", "tokens": ["Return", "the", "different", "nominees", "of", "musicals", "that", "have", "an", "award", "that", "is", "not", "the", "Tony", "Award", "."], "entities": [{"id": 3, "type": "column", "value": "Tony Award"}, {"id": 0, "type": "table", "value": "musical"}, {"id": 1, "type": "column", "value": "nominee"}, {"id": 2, "type": "column", "value": "award"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [14, 15]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 15290, "db_id": "journal_committee", "dber_id": "spider:train_spider.json:651", "question": "What are the names and ages of editors?", "SQL": "SELECT Name , Age FROM editor", "tokens": ["What", "are", "the", "names", "and", "ages", "of", "editors", "?"], "entities": [{"id": 0, "type": "table", "value": "editor"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"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": [5]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 7007, "db_id": "legislator", "dber_id": "bird:train.json:4833", "question": "Give the full name of the legislators with an independent party.", "SQL": "SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Independent' GROUP BY T1.official_full_name", "tokens": ["Give", "the", "full", "name", "of", "the", "legislators", "with", "an", "independent", "party", "."], "entities": [{"id": 0, "type": "column", "value": "official_full_name"}, {"id": 2, "type": "table", "value": "current-terms"}, {"id": 4, "type": "value", "value": "Independent"}, {"id": 5, "type": "column", "value": "bioguide_id"}, {"id": 6, "type": "column", "value": "bioguide"}, {"id": 1, "type": "table", "value": "current"}, {"id": 3, "type": "column", "value": "party"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 1052, "db_id": "music_1", "dber_id": "spider:train_spider.json:3573", "question": "What is the name and country of origin of the artist who released a song that has \"love\" in its title?", "SQL": "SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE \"%love%\"", "tokens": ["What", "is", "the", "name", "and", "country", "of", "origin", "of", "the", "artist", "who", "released", "a", "song", "that", "has", "\"", "love", "\"", "in", "its", "title", "?"], "entities": [{"id": 0, "type": "column", "value": "artist_name"}, {"id": 4, "type": "column", "value": "song_name"}, {"id": 1, "type": "column", "value": "country"}, {"id": 2, "type": "table", "value": "artist"}, {"id": 5, "type": "column", "value": "%love%"}, {"id": 3, "type": "table", "value": "song"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [18]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 16058, "db_id": "soccer_2016", "dber_id": "bird:train.json:1899", "question": "On average, how many players from each country bat with their right hand?", "SQL": "SELECT CAST(SUM(CASE WHEN T1.Batting_hand = 'Right-hand bat' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.Country_Name) FROM Batting_Style AS T1 INNER JOIN Player AS T2 ON T1.Batting_id = T2.Batting_hand", "tokens": ["On", "average", ",", "how", "many", "players", "from", "each", "country", "bat", "with", "their", "right", "hand", "?"], "entities": [{"id": 8, "type": "value", "value": "Right-hand bat"}, {"id": 0, "type": "table", "value": "batting_style"}, {"id": 3, "type": "column", "value": "batting_hand"}, {"id": 5, "type": "column", "value": "country_name"}, {"id": 2, "type": "column", "value": "batting_id"}, {"id": 1, "type": "table", "value": "player"}, {"id": 4, "type": "value", "value": "100"}, {"id": 6, "type": "value", "value": "0"}, {"id": 7, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": [4]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "B-COLUMN", "B-TABLE", "O", "O", "B-COLUMN", "B-TABLE", "O", "B-VALUE", "O", "O", "O"]} {"question_id": 9260, "db_id": "wrestler", "dber_id": "spider:train_spider.json:1855", "question": "Return the elimination movies of wrestlers on Team Orton.", "SQL": "SELECT Elimination_Move FROM Elimination WHERE Team = \"Team Orton\"", "tokens": ["Return", "the", "elimination", "movies", "of", "wrestlers", "on", "Team", "Orton", "."], "entities": [{"id": 1, "type": "column", "value": "elimination_move"}, {"id": 0, "type": "table", "value": "elimination"}, {"id": 3, "type": "column", "value": "Team Orton"}, {"id": 2, "type": "column", "value": "team"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O"]} {"question_id": 1341, "db_id": "manufactory_1", "dber_id": "spider:train_spider.json:5285", "question": "Give the distinct headquarters of manufacturers.", "SQL": "SELECT DISTINCT headquarter FROM manufacturers", "tokens": ["Give", "the", "distinct", "headquarters", "of", "manufacturers", "."], "entities": [{"id": 0, "type": "table", "value": "manufacturers"}, {"id": 1, "type": "column", "value": "headquarter"}], "entity_to_token": [{"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O"]} {"question_id": 6570, "db_id": "workshop_paper", "dber_id": "spider:train_spider.json:5819", "question": "For each submission, show the author and their affiliated college.", "SQL": "SELECT Author , College FROM submission", "tokens": ["For", "each", "submission", ",", "show", "the", "author", "and", "their", "affiliated", "college", "."], "entities": [{"id": 0, "type": "table", "value": "submission"}, {"id": 2, "type": "column", "value": "college"}, {"id": 1, "type": "column", "value": "author"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 409, "db_id": "college_1", "dber_id": "spider:train_spider.json:3252", "question": "How many students are enrolled in some classes that are taught by an accounting professor?", "SQL": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting'", "tokens": ["How", "many", "students", "are", "enrolled", "in", "some", "classes", "that", "are", "taught", "by", "an", "accounting", "professor", "?"], "entities": [{"id": 0, "type": "table", "value": "department"}, {"id": 2, "type": "value", "value": "Accounting"}, {"id": 8, "type": "column", "value": "class_code"}, {"id": 1, "type": "column", "value": "dept_name"}, {"id": 4, "type": "column", "value": "dept_code"}, {"id": 7, "type": "column", "value": "crs_code"}, {"id": 3, "type": "table", "value": "course"}, {"id": 6, "type": "table", "value": "enroll"}, {"id": 5, "type": "table", "value": "class"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [7]}, {"entity_id": 6, "token_idxs": [4]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 14631, "db_id": "cookbook", "dber_id": "bird:train.json:8884", "question": "How many cups of almonds do you need for a chicken pocket sandwich?", "SQL": "SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Chicken Pocket Sandwich' AND T3.name = 'almonds' AND T2.unit = 'cup(s)'", "tokens": ["How", "many", "cups", "of", "almonds", "do", "you", "need", "for", "a", "chicken", "pocket", "sandwich", "?"], "entities": [{"id": 5, "type": "value", "value": "Chicken Pocket Sandwich"}, {"id": 3, "type": "column", "value": "ingredient_id"}, {"id": 0, "type": "table", "value": "ingredient"}, {"id": 10, "type": "column", "value": "recipe_id"}, {"id": 2, "type": "table", "value": "quantity"}, {"id": 7, "type": "value", "value": "almonds"}, {"id": 1, "type": "table", "value": "recipe"}, {"id": 9, "type": "value", "value": "cup(s)"}, {"id": 4, "type": "column", "value": "title"}, {"id": 6, "type": "column", "value": "name"}, {"id": 8, "type": "column", "value": "unit"}], "entity_to_token": [{"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": [10, 11, 12]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [4]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [2]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 3593, "db_id": "codebase_community", "dber_id": "bird:dev.json:553", "question": "Among the badges obtained by csgillespie, how many of them were obtained in the year 2011?", "SQL": "SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE STRFTIME('%Y', T1.Date) = '2011' AND T2.DisplayName = 'csgillespie'", "tokens": ["Among", "the", "badges", "obtained", "by", "csgillespie", ",", "how", "many", "of", "them", "were", "obtained", "in", "the", "year", "2011", "?"], "entities": [{"id": 5, "type": "column", "value": "displayname"}, {"id": 6, "type": "value", "value": "csgillespie"}, {"id": 0, "type": "table", "value": "badges"}, {"id": 3, "type": "column", "value": "userid"}, {"id": 1, "type": "table", "value": "users"}, {"id": 4, "type": "value", "value": "2011"}, {"id": 8, "type": "column", "value": "date"}, {"id": 2, "type": "column", "value": "id"}, {"id": 7, "type": "value", "value": "%Y"}], "entity_to_token": [{"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": [16]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": [15]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-VALUE", "O"]} {"question_id": 2041, "db_id": "workshop_paper", "dber_id": "spider:train_spider.json:5832", "question": "Show the authors of submissions and the acceptance results of their submissions.", "SQL": "SELECT T2.Author , T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID", "tokens": ["Show", "the", "authors", "of", "submissions", "and", "the", "acceptance", "results", "of", "their", "submissions", "."], "entities": [{"id": 4, "type": "column", "value": "submission_id"}, {"id": 2, "type": "table", "value": "acceptance"}, {"id": 3, "type": "table", "value": "submission"}, {"id": 0, "type": "column", "value": "author"}, {"id": 1, "type": "column", "value": "result"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [4, 11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 10447, "db_id": "storm_record", "dber_id": "spider:train_spider.json:2717", "question": "Return the name and max speed of the storm that affected the most regions.", "SQL": "SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1", "tokens": ["Return", "the", "name", "and", "max", "speed", "of", "the", "storm", "that", "affected", "the", "most", "regions", "."], "entities": [{"id": 4, "type": "table", "value": "affected_region"}, {"id": 2, "type": "column", "value": "max_speed"}, {"id": 0, "type": "column", "value": "storm_id"}, {"id": 3, "type": "table", "value": "storm"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [4, 5]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [10, 13]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "B-TABLE", "O"]} {"question_id": 12483, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1310", "question": "For the male patients that have a normal prothrombin time, what is their average prothrombin time?", "SQL": "SELECT AVG(T2.PT) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PT < 14 AND T1.SEX = 'M'", "tokens": ["For", "the", "male", "patients", "that", "have", "a", "normal", "prothrombin", "time", ",", "what", "is", "their", "average", "prothrombin", "time", "?"], "entities": [{"id": 1, "type": "table", "value": "laboratory"}, {"id": 0, "type": "table", "value": "patient"}, {"id": 5, "type": "column", "value": "sex"}, {"id": 2, "type": "column", "value": "pt"}, {"id": 3, "type": "column", "value": "id"}, {"id": 4, "type": "value", "value": "14"}, {"id": 6, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [11, 12]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O"]} {"question_id": 1200, "db_id": "network_2", "dber_id": "spider:train_spider.json:4443", "question": "What are the different names and ages of every friend of either Dan or alice?", "SQL": "SELECT DISTINCT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'", "tokens": ["What", "are", "the", "different", "names", "and", "ages", "of", "every", "friend", "of", "either", "Dan", "or", "alice", "?"], "entities": [{"id": 3, "type": "table", "value": "personfriend"}, {"id": 2, "type": "table", "value": "person"}, {"id": 4, "type": "column", "value": "friend"}, {"id": 6, "type": "value", "value": "Alice"}, {"id": 0, "type": "column", "value": "name"}, {"id": 1, "type": "column", "value": "age"}, {"id": 5, "type": "value", "value": "Dan"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9, 10, 11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [14]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "B-COLUMN", "O", "O", "O"]} {"question_id": 5967, "db_id": "film_rank", "dber_id": "spider:train_spider.json:4140", "question": "List the studios of each film and the number of films produced by that studio.", "SQL": "SELECT Studio , COUNT(*) FROM film GROUP BY Studio", "tokens": ["List", "the", "studios", "of", "each", "film", "and", "the", "number", "of", "films", "produced", "by", "that", "studio", "."], "entities": [{"id": 1, "type": "column", "value": "studio"}, {"id": 0, "type": "table", "value": "film"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5, 10]}, {"entity_id": 1, "token_idxs": [14]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 8977, "db_id": "college_1", "dber_id": "spider:train_spider.json:3266", "question": "What is the first and last name of the youngest student with a GPA above 3, and what is their GPA?", "SQL": "SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1", "tokens": ["What", "is", "the", "first", "and", "last", "name", "of", "the", "youngest", "student", "with", "a", "GPA", "above", "3", ",", "and", "what", "is", "their", "GPA", "?"], "entities": [{"id": 1, "type": "column", "value": "stu_fname"}, {"id": 2, "type": "column", "value": "stu_lname"}, {"id": 0, "type": "table", "value": "student"}, {"id": 3, "type": "column", "value": "stu_gpa"}, {"id": 5, "type": "column", "value": "stu_dob"}, {"id": 4, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5, 6]}, {"entity_id": 3, "token_idxs": [21]}, {"entity_id": 4, "token_idxs": [15]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 8348, "db_id": "tracking_orders", "dber_id": "spider:train_spider.json:6914", "question": "On which day was the order placed whose shipment tracking number is 3452?", "SQL": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452", "tokens": ["On", "which", "day", "was", "the", "order", "placed", "whose", "shipment", "tracking", "number", "is", "3452", "?"], "entities": [{"id": 3, "type": "column", "value": "shipment_tracking_number"}, {"id": 0, "type": "column", "value": "date_order_placed"}, {"id": 2, "type": "table", "value": "shipments"}, {"id": 5, "type": "column", "value": "order_id"}, {"id": 1, "type": "table", "value": "orders"}, {"id": 4, "type": "value", "value": "3452"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [9, 10]}, {"entity_id": 4, "token_idxs": [12]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O"]} {"question_id": 9813, "db_id": "soccer_2016", "dber_id": "bird:train.json:1820", "question": "Who is the oldest player?", "SQL": "SELECT Player_Name FROM Player ORDER BY DOB ASC LIMIT 1", "tokens": ["Who", "is", "the", "oldest", "player", "?"], "entities": [{"id": 1, "type": "column", "value": "player_name"}, {"id": 0, "type": "table", "value": "player"}, {"id": 2, "type": "column", "value": "dob"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 14412, "db_id": "wedding", "dber_id": "spider:train_spider.json:1633", "question": "Show the organizer and name for churches that opened between 1830 and 1840.", "SQL": "SELECT organized_by , name FROM church WHERE open_date BETWEEN 1830 AND 1840", "tokens": ["Show", "the", "organizer", "and", "name", "for", "churches", "that", "opened", "between", "1830", "and", "1840", "."], "entities": [{"id": 1, "type": "column", "value": "organized_by"}, {"id": 3, "type": "column", "value": "open_date"}, {"id": 0, "type": "table", "value": "church"}, {"id": 2, "type": "column", "value": "name"}, {"id": 4, "type": "value", "value": "1830"}, {"id": 5, "type": "value", "value": "1840"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [10]}, {"entity_id": 5, "token_idxs": [12]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 9674, "db_id": "car_retails", "dber_id": "bird:train.json:1590", "question": "Between 8/1/2003 and 8/30/2004, how many checks were issued by Mini Gifts Distributors Ltd.? Please list their check numbers.", "SQL": "SELECT T1.checkNumber FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T1.paymentDate >= '2003-08-01' AND T1.paymentDate <= '2004-08-30' AND T2.customerName = 'Mini Gifts Distributors Ltd.'", "tokens": ["Between", "8/1/2003", "and", "8/30/2004", ",", "how", "many", "checks", "were", "issued", "by", "Mini", "Gifts", "Distributors", "Ltd.", "?", "Please", "list", "their", "check", "numbers", "."], "entities": [{"id": 8, "type": "value", "value": "Mini Gifts Distributors Ltd."}, {"id": 3, "type": "column", "value": "customernumber"}, {"id": 7, "type": "column", "value": "customername"}, {"id": 0, "type": "column", "value": "checknumber"}, {"id": 4, "type": "column", "value": "paymentdate"}, {"id": 5, "type": "value", "value": "2003-08-01"}, {"id": 6, "type": "value", "value": "2004-08-30"}, {"id": 2, "type": "table", "value": "customers"}, {"id": 1, "type": "table", "value": "payments"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [19, 20]}, {"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": [1]}, {"entity_id": 6, "token_idxs": [3]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [11, 12, 13, 14]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 10392, "db_id": "student_1", "dber_id": "spider:train_spider.json:4063", "question": "Which teachers teach the student named EVELINA BROMLEY? Give me the first and last name of the teachers.", "SQL": "SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"EVELINA\" AND T1.lastname = \"BROMLEY\"", "tokens": ["Which", "teachers", "teach", "the", "student", "named", "EVELINA", "BROMLEY", "?", "Give", "me", "the", "first", "and", "last", "name", " ", "of", "the", "teachers", "."], "entities": [{"id": 0, "type": "column", "value": "firstname"}, {"id": 4, "type": "column", "value": "classroom"}, {"id": 1, "type": "column", "value": "lastname"}, {"id": 3, "type": "table", "value": "teachers"}, {"id": 5, "type": "column", "value": "EVELINA"}, {"id": 6, "type": "column", "value": "BROMLEY"}, {"id": 2, "type": "table", "value": "list"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": [14, 15]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [19]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [6]}, {"entity_id": 6, "token_idxs": [7]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 4573, "db_id": "public_review_platform", "dber_id": "bird:train.json:4077", "question": "List down the business ID and attribute value of the attribute name of \"payment_types_visa\".", "SQL": "SELECT T2.business_id, T2.attribute_value FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name = 'payment_types_visa'", "tokens": ["List", "down", "the", "business", "ID", "and", "attribute", "value", "of", "the", "attribute", "name", "of", "\"", "payment_types_visa", "\"", "."], "entities": [{"id": 3, "type": "table", "value": "business_attributes"}, {"id": 5, "type": "value", "value": "payment_types_visa"}, {"id": 1, "type": "column", "value": "attribute_value"}, {"id": 4, "type": "column", "value": "attribute_name"}, {"id": 6, "type": "column", "value": "attribute_id"}, {"id": 0, "type": "column", "value": "business_id"}, {"id": 2, "type": "table", "value": "attributes"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [10, 11]}, {"entity_id": 5, "token_idxs": [14]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 1674, "db_id": "customers_and_products_contacts", "dber_id": "spider:train_spider.json:5664", "question": "Show the customer name, customer address city, date from, and date to for each customer address history.", "SQL": "SELECT T2.customer_name , T3.city , T1.date_from , T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id JOIN addresses AS T3 ON T1.address_id = T3.address_id", "tokens": ["Show", "the", "customer", "name", ",", "customer", "address", "city", ",", "date", "from", ",", "and", "date", "to", "for", "each", "customer", "address", "history", "."], "entities": [{"id": 5, "type": "table", "value": "customer_address_history"}, {"id": 0, "type": "column", "value": "customer_name"}, {"id": 8, "type": "column", "value": "customer_id"}, {"id": 7, "type": "column", "value": "address_id"}, {"id": 2, "type": "column", "value": "date_from"}, {"id": 4, "type": "table", "value": "addresses"}, {"id": 6, "type": "table", "value": "customers"}, {"id": 3, "type": "column", "value": "date_to"}, {"id": 1, "type": "column", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [9, 10]}, {"entity_id": 3, "token_idxs": [13, 14]}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": [17, 18, 19]}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O"]} {"question_id": 7705, "db_id": "student_loan", "dber_id": "bird:train.json:4415", "question": "List out the organization joined and school enrolled by student27, student17 and student101?", "SQL": "SELECT T1.school, T2.organ FROM enrolled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T1.`name` IN ('student27,student17,studetn101')", "tokens": ["List", "out", "the", "organization", "joined", "and", "school", "enrolled", "by", "student27", ",", "student17", "and", "student101", "?"], "entities": [{"id": 5, "type": "value", "value": "student27,student17,studetn101"}, {"id": 2, "type": "table", "value": "enrolled"}, {"id": 0, "type": "column", "value": "school"}, {"id": 3, "type": "table", "value": "enlist"}, {"id": 1, "type": "column", "value": "organ"}, {"id": 4, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [0]}, {"entity_id": 4, "token_idxs": [4]}, {"entity_id": 5, "token_idxs": [9, 10, 11, 12, 13]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-COLUMN", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 4291, "db_id": "e_commerce", "dber_id": "bird:test.json:45", "question": "What are the dates of the earliest order and the dates of all orders with more than 1 item?", "SQL": "SELECT min(date_order_placed) FROM Orders UNION SELECT T1.date_order_placed FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id HAVING count(*) > 1", "tokens": ["What", "are", "the", "dates", "of", "the", "earliest", "order", "and", "the", "dates", "of", "all", "orders", "with", "more", "than", "1", "item", "?"], "entities": [{"id": 2, "type": "column", "value": "date_order_placed"}, {"id": 3, "type": "table", "value": "order_items"}, {"id": 1, "type": "column", "value": "order_id"}, {"id": 0, "type": "table", "value": "orders"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [13]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [3, 10]}, {"entity_id": 3, "token_idxs": [18]}, {"entity_id": 4, "token_idxs": [17]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]} {"question_id": 15427, "db_id": "apartment_rentals", "dber_id": "spider:train_spider.json:1211", "question": "What are the apartment number and the room count of each apartment?", "SQL": "SELECT apt_number , room_count FROM Apartments", "tokens": ["What", "are", "the", "apartment", "number", "and", "the", "room", "count", "of", "each", "apartment", "?"], "entities": [{"id": 0, "type": "table", "value": "apartments"}, {"id": 1, "type": "column", "value": "apt_number"}, {"id": 2, "type": "column", "value": "room_count"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [11, 12]}, {"entity_id": 8, "token_idxs": [9]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 5925, "db_id": "party_people", "dber_id": "spider:train_spider.json:2040", "question": "Count the number of regions.", "SQL": "SELECT count(*) FROM region", "tokens": ["Count", "the", "number", "of", "regions", "."], "entities": [{"id": 0, "type": "table", "value": "region"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 3946, "db_id": "books", "dber_id": "bird:train.json:5936", "question": "How many books did David Foster Wallace write?", "SQL": "SELECT COUNT(T1.title) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'David Foster Wallace'", "tokens": ["How", "many", "books", "did", "David", "Foster", "Wallace", "write", "?"], "entities": [{"id": 2, "type": "value", "value": "David Foster Wallace"}, {"id": 1, "type": "column", "value": "author_name"}, {"id": 5, "type": "table", "value": "book_author"}, {"id": 6, "type": "column", "value": "author_id"}, {"id": 7, "type": "column", "value": "book_id"}, {"id": 0, "type": "table", "value": "author"}, {"id": 3, "type": "column", "value": "title"}, {"id": 4, "type": "table", "value": "book"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [4, 5, 6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [2]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O"]} {"question_id": 11395, "db_id": "card_games", "dber_id": "bird:dev.json:344", "question": "List all the mythic rarity print cards banned in gladiator format.", "SQL": "SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'gladiator' AND T2.status = 'Banned' AND T1.rarity = 'mythic'", "tokens": ["List", "all", "the", "mythic", "rarity", "print", "cards", "banned", "in", "gladiator", "format", "."], "entities": [{"id": 2, "type": "table", "value": "legalities"}, {"id": 5, "type": "value", "value": "gladiator"}, {"id": 4, "type": "column", "value": "format"}, {"id": 6, "type": "column", "value": "status"}, {"id": 7, "type": "value", "value": "Banned"}, {"id": 8, "type": "column", "value": "rarity"}, {"id": 9, "type": "value", "value": "mythic"}, {"id": 1, "type": "table", "value": "cards"}, {"id": 3, "type": "column", "value": "uuid"}, {"id": 0, "type": "column", "value": "id"}], "entity_to_token": [{"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": [10]}, {"entity_id": 5, "token_idxs": [9]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [7]}, {"entity_id": 8, "token_idxs": [4]}, {"entity_id": 9, "token_idxs": [3]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-VALUE", "B-COLUMN", "O", "B-TABLE", "B-VALUE", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 1146, "db_id": "public_review_platform", "dber_id": "bird:train.json:4126", "question": "In businesses with a category of food, how many of them have a star rating below 3?", "SQL": "SELECT COUNT(DISTINCT T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Food' AND T1.stars < 3", "tokens": ["In", "businesses", "with", "a", "category", "of", "food", ",", "how", "many", "of", "them", "have", "a", "star", "rating", "below", "3", "?"], "entities": [{"id": 3, "type": "table", "value": "business_categories"}, {"id": 5, "type": "column", "value": "category_name"}, {"id": 1, "type": "column", "value": "business_id"}, {"id": 4, "type": "column", "value": "category_id"}, {"id": 0, "type": "table", "value": "categories"}, {"id": 2, "type": "table", "value": "business"}, {"id": 7, "type": "column", "value": "stars"}, {"id": 6, "type": "value", "value": "Food"}, {"id": 8, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [1]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [4]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [6]}, {"entity_id": 7, "token_idxs": [14]}, {"entity_id": 8, "token_idxs": [17]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O"]} {"question_id": 9763, "db_id": "customers_and_addresses", "dber_id": "spider:train_spider.json:6128", "question": "Find the name of the customer who made an order most recently.", "SQL": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1", "tokens": ["Find", "the", "name", "of", "the", "customer", "who", "made", "an", "order", "most", "recently", "."], "entities": [{"id": 2, "type": "table", "value": "customer_orders"}, {"id": 0, "type": "column", "value": "customer_name"}, {"id": 4, "type": "column", "value": "customer_id"}, {"id": 3, "type": "column", "value": "order_date"}, {"id": 1, "type": "table", "value": "customers"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O"]} {"question_id": 8486, "db_id": "decoration_competition", "dber_id": "spider:train_spider.json:4486", "question": "What are the names and countries of members?", "SQL": "SELECT Name , Country FROM member", "tokens": ["What", "are", "the", "names", "and", "countries", "of", "members", "?"], "entities": [{"id": 2, "type": "column", "value": "country"}, {"id": 0, "type": "table", "value": "member"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O"]} {"question_id": 11762, "db_id": "simpson_episodes", "dber_id": "bird:train.json:4322", "question": "Please check is \"limbo dancing\" the keyword for title \"Dangerous Curves\"?", "SQL": "SELECT CASE WHEN T2.Keyword = 'limbo dancing' THEN 'Yes' ELSE 'No' END AS result FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Dangerous Curves';", "tokens": ["Please", "check", "is", "\"", "limbo", "dancing", "\"", "the", "keyword", "for", "title", "\"", "Dangerous", "Curves", "\"", "?"], "entities": [{"id": 3, "type": "value", "value": "Dangerous Curves"}, {"id": 8, "type": "value", "value": "limbo dancing"}, {"id": 5, "type": "column", "value": "episode_id"}, {"id": 0, "type": "table", "value": "episode"}, {"id": 1, "type": "table", "value": "keyword"}, {"id": 7, "type": "column", "value": "keyword"}, {"id": 2, "type": "column", "value": "title"}, {"id": 6, "type": "value", "value": "Yes"}, {"id": 4, "type": "value", "value": "No"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [12, 13]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [8]}, {"entity_id": 8, "token_idxs": [4, 5]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O"]} {"question_id": 7022, "db_id": "e_commerce", "dber_id": "bird:test.json:116", "question": "what are all shipment tracking numbers and shipment dates?", "SQL": "SELECT shipment_tracking_number , shipment_date FROM Shipments", "tokens": ["what", "are", "all", "shipment", "tracking", "numbers", "and", "shipment", "dates", "?"], "entities": [{"id": 1, "type": "column", "value": "shipment_tracking_number"}, {"id": 2, "type": "column", "value": "shipment_date"}, {"id": 0, "type": "table", "value": "shipments"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [4, 5]}, {"entity_id": 2, "token_idxs": [7, 8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 10748, "db_id": "college_2", "dber_id": "spider:train_spider.json:1371", "question": "What are the names of the 3 departments with the most courses?", "SQL": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3", "tokens": ["What", "are", "the", "names", "of", "the", "3", "departments", "with", "the", "most", "courses", "?"], "entities": [{"id": 1, "type": "column", "value": "dept_name"}, {"id": 0, "type": "table", "value": "course"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 8518, "db_id": "superhero", "dber_id": "bird:dev.json:832", "question": "Name the tallest superhero.", "SQL": "SELECT superhero_name FROM superhero ORDER BY height_cm DESC LIMIT 1", "tokens": ["Name", "the", "tallest", "superhero", "."], "entities": [{"id": 1, "type": "column", "value": "superhero_name"}, {"id": 0, "type": "table", "value": "superhero"}, {"id": 2, "type": "column", "value": "height_cm"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [0]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 12344, "db_id": "superstore", "dber_id": "bird:train.json:2378", "question": "What percentage do items under the category of 'Furniture' make up the total number of items ordered that are shipped as standard in the West region?", "SQL": "SELECT CAST(SUM(CASE WHEN T2.Category = 'Furniture' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(T1.Quantity) FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'West' AND T1.`Ship Mode` = 'Standard Class'", "tokens": ["What", "percentage", "do", "items", "under", "the", "category", "of", "'", "Furniture", "'", "make", "up", "the", "total", "number", "of", "items", "ordered", "that", "are", "shipped", "as", "standard", "in", "the", "West", "region", "?"], "entities": [{"id": 0, "type": "table", "value": "west_superstore"}, {"id": 6, "type": "value", "value": "Standard Class"}, {"id": 2, "type": "column", "value": "Product ID"}, {"id": 5, "type": "column", "value": "Ship Mode"}, {"id": 12, "type": "value", "value": "Furniture"}, {"id": 8, "type": "column", "value": "quantity"}, {"id": 11, "type": "column", "value": "category"}, {"id": 1, "type": "table", "value": "product"}, {"id": 3, "type": "column", "value": "region"}, {"id": 4, "type": "value", "value": "West"}, {"id": 7, "type": "value", "value": "100"}, {"id": 9, "type": "value", "value": "0"}, {"id": 10, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [27]}, {"entity_id": 4, "token_idxs": [26]}, {"entity_id": 5, "token_idxs": [21]}, {"entity_id": 6, "token_idxs": [23]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": [6]}, {"entity_id": 12, "token_idxs": [9]}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 949, "db_id": "cre_Doc_Workflow", "dber_id": "bird:test.json:2027", "question": "Show the author name and details for the document \"Travel to China\".", "SQL": "SELECT T2.author_name , T2.other_details FROM Documents AS T1 JOIN Authors AS T2 ON T1.author_name = T2.author_name WHERE document_name = \"Travel to China\"", "tokens": ["Show", "the", "author", "name", "and", "details", "for", "the", "document", "\"", "Travel", "to", "China", "\"", "."], "entities": [{"id": 5, "type": "column", "value": "Travel to China"}, {"id": 1, "type": "column", "value": "other_details"}, {"id": 4, "type": "column", "value": "document_name"}, {"id": 0, "type": "column", "value": "author_name"}, {"id": 2, "type": "table", "value": "documents"}, {"id": 3, "type": "table", "value": "authors"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [2]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [10, 11, 12]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 2803, "db_id": "apartment_rentals", "dber_id": "spider:train_spider.json:1236", "question": "Show the first names and last names of all the guests that have apartment bookings with status code \"Confirmed\".", "SQL": "SELECT T2.guest_first_name , T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = \"Confirmed\"", "tokens": ["Show", "the", "first", "names", "and", "last", "names", "of", "all", "the", "guests", "that", "have", "apartment", "bookings", "with", "status", "code", "\"", "Confirmed", "\"", "."], "entities": [{"id": 4, "type": "column", "value": "booking_status_code"}, {"id": 2, "type": "table", "value": "apartment_bookings"}, {"id": 0, "type": "column", "value": "guest_first_name"}, {"id": 1, "type": "column", "value": "guest_last_name"}, {"id": 5, "type": "column", "value": "Confirmed"}, {"id": 6, "type": "column", "value": "guest_id"}, {"id": 3, "type": "table", "value": "guests"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": [13, 14]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [16, 17]}, {"entity_id": 5, "token_idxs": [19]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O"]} {"question_id": 6735, "db_id": "party_host", "dber_id": "spider:train_spider.json:2669", "question": "Compute the average number of hosts for parties.", "SQL": "SELECT avg(Number_of_hosts) FROM party", "tokens": ["Compute", "the", "average", "number", "of", "hosts", "for", "parties", "."], "entities": [{"id": 1, "type": "column", "value": "number_of_hosts"}, {"id": 0, "type": "table", "value": "party"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"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, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-TABLE", "O"]} {"question_id": 6930, "db_id": "cre_Doc_Tracking_DB", "dber_id": "spider:train_spider.json:4224", "question": "What is \"the date in location from\" and \"the date in location to\" for the document with name \"Robin CV\"?", "SQL": "SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"", "tokens": ["What", "is", "\"", "the", "date", "in", "location", "from", "\"", "and", "\"", "the", "date", "in", "location", "to", "\"", "for", "the", "document", "with", "name", "\"", "Robin", "CV", "\"", "?"], "entities": [{"id": 0, "type": "column", "value": "date_in_location_from"}, {"id": 1, "type": "column", "value": "date_in_locaton_to"}, {"id": 2, "type": "table", "value": "document_locations"}, {"id": 3, "type": "table", "value": "all_documents"}, {"id": 4, "type": "column", "value": "document_name"}, {"id": 6, "type": "column", "value": "document_id"}, {"id": 5, "type": "column", "value": "Robin CV"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4, 5, 6, 7]}, {"entity_id": 1, "token_idxs": [12, 13, 14, 15]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [20, 21]}, {"entity_id": 5, "token_idxs": [23, 24]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 11955, "db_id": "soccer_2016", "dber_id": "bird:train.json:1881", "question": "What is the name of the team that won match ID 336000?", "SQL": "SELECT T2.Team_Name FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Match_Winner WHERE T1.Match_Id = 336000", "tokens": ["What", "is", "the", "name", "of", "the", "team", "that", "won", "match", "ID", "336000", "?"], "entities": [{"id": 6, "type": "column", "value": "match_winner"}, {"id": 0, "type": "column", "value": "team_name"}, {"id": 3, "type": "column", "value": "match_id"}, {"id": 5, "type": "column", "value": "team_id"}, {"id": 4, "type": "value", "value": "336000"}, {"id": 1, "type": "table", "value": "match"}, {"id": 2, "type": "table", "value": "team"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 5820, "db_id": "tracking_grants_for_research", "dber_id": "spider:train_spider.json:4345", "question": "How many different roles are there on the project staff?", "SQL": "SELECT count(DISTINCT role_code) FROM Project_Staff", "tokens": ["How", "many", "different", "roles", "are", "there", "on", "the", "project", "staff", "?"], "entities": [{"id": 0, "type": "table", "value": "project_staff"}, {"id": 1, "type": "column", "value": "role_code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8, 9]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O"]} {"question_id": 6528, "db_id": "cre_Doc_and_collections", "dber_id": "bird:test.json:706", "question": "What are the ids of the dcouments that have between 2 and 4 related documents and how many related items are there?", "SQL": "SELECT Document_Object_ID , count(*) FROM Document_Subset_Members GROUP BY Document_Object_ID HAVING count(*) BETWEEN 2 AND 4;", "tokens": ["What", "are", "the", "ids", "of", "the", "dcouments", "that", "have", "between", "2", "and", "4", "related", "documents", "and", "how", "many", "related", "items", "are", "there", "?"], "entities": [{"id": 0, "type": "table", "value": "document_subset_members"}, {"id": 1, "type": "column", "value": "document_object_id"}, {"id": 2, "type": "value", "value": "2"}, {"id": 3, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": [3, 6]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 10510, "db_id": "world_development_indicators", "dber_id": "bird:train.json:2170", "question": "What are the footnote description of Finland in year 2000?", "SQL": "SELECT DISTINCT T2.Description FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.TableName = 'Finland' AND T2.Year = 'YR2000'", "tokens": ["What", "are", "the", "footnote", "description", "of", "Finland", "in", "year", "2000", "?"], "entities": [{"id": 0, "type": "column", "value": "description"}, {"id": 3, "type": "column", "value": "countrycode"}, {"id": 2, "type": "table", "value": "footnotes"}, {"id": 4, "type": "column", "value": "tablename"}, {"id": 1, "type": "table", "value": "country"}, {"id": 5, "type": "value", "value": "Finland"}, {"id": 7, "type": "value", "value": "YR2000"}, {"id": 6, "type": "column", "value": "year"}], "entity_to_token": [{"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": [6]}, {"entity_id": 6, "token_idxs": [8]}, {"entity_id": 7, "token_idxs": [9]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 11936, "db_id": "image_and_language", "dber_id": "bird:train.json:7579", "question": "How many images have less than 15 object samples?", "SQL": "SELECT COUNT(IMG_ID) FROM IMG_OBJ WHERE OBJ_SAMPLE_ID < 15", "tokens": ["How", "many", "images", "have", "less", "than", "15", "object", "samples", "?"], "entities": [{"id": 1, "type": "column", "value": "obj_sample_id"}, {"id": 0, "type": "table", "value": "img_obj"}, {"id": 3, "type": "column", "value": "img_id"}, {"id": 2, "type": "value", "value": "15"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [2]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "B-TABLE", "B-COLUMN", "O"]} {"question_id": 5881, "db_id": "shakespeare", "dber_id": "bird:train.json:3012", "question": "What is the paragraph number with plain text \"This is Illyria, lady\"?", "SQL": "SELECT ParagraphNum FROM paragraphs WHERE PlainText = 'This is Illyria, lady.'", "tokens": ["What", "is", "the", "paragraph", "number", "with", "plain", "text", "\"", "This", "is", "Illyria", ",", "lady", "\"", "?"], "entities": [{"id": 3, "type": "value", "value": "This is Illyria, lady."}, {"id": 1, "type": "column", "value": "paragraphnum"}, {"id": 0, "type": "table", "value": "paragraphs"}, {"id": 2, "type": "column", "value": "plaintext"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [6, 7]}, {"entity_id": 3, "token_idxs": [9, 10, 11, 12, 13]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O"]} {"question_id": 15795, "db_id": "debate", "dber_id": "spider:train_spider.json:1506", "question": "List the names of people that have not been on the affirmative side of debates.", "SQL": "SELECT Name FROM people WHERE People_id NOT IN (SELECT Affirmative FROM debate_people)", "tokens": ["List", "the", "names", "of", "people", "that", "have", "not", "been", "on", "the", "affirmative", "side", "of", "debates", "."], "entities": [{"id": 3, "type": "table", "value": "debate_people"}, {"id": 4, "type": "column", "value": "affirmative"}, {"id": 2, "type": "column", "value": "people_id"}, {"id": 0, "type": "table", "value": "people"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [12, 13]}, {"entity_id": 5, "token_idxs": [15]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 2536, "db_id": "dorm_1", "dber_id": "spider:train_spider.json:5740", "question": "Find the number of students who is older than 20 in each dorm.", "SQL": "SELECT count(*) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.age > 20 GROUP BY T3.dorm_name", "tokens": ["Find", "the", "number", "of", "students", "who", "is", "older", "than", "20", "in", "each", "dorm", "."], "entities": [{"id": 0, "type": "column", "value": "dorm_name"}, {"id": 5, "type": "table", "value": "lives_in"}, {"id": 4, "type": "table", "value": "student"}, {"id": 6, "type": "column", "value": "dormid"}, {"id": 7, "type": "column", "value": "stuid"}, {"id": 1, "type": "table", "value": "dorm"}, {"id": 2, "type": "column", "value": "age"}, {"id": 3, "type": "value", "value": "20"}], "entity_to_token": [{"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": [6]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 4700, "db_id": "simpson_episodes", "dber_id": "bird:train.json:4341", "question": "List out the names of the awarded character in the awards held in 2009.", "SQL": "SELECT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.year = 2009;", "tokens": ["List", "out", "the", "names", "of", "the", "awarded", "character", "in", "the", "awards", "held", "in", "2009", "."], "entities": [{"id": 2, "type": "table", "value": "character_award"}, {"id": 0, "type": "column", "value": "character"}, {"id": 5, "type": "column", "value": "award_id"}, {"id": 1, "type": "table", "value": "award"}, {"id": 3, "type": "column", "value": "year"}, {"id": 4, "type": "value", "value": "2009"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": [6, 7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [13]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O"]} {"question_id": 1790, "db_id": "college_1", "dber_id": "spider:train_spider.json:3259", "question": "List the first name of all employees with job code PROF ordered by their date of birth.", "SQL": "SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' ORDER BY emp_dob", "tokens": ["List", "the", "first", "name", "of", "all", "employees", "with", "job", "code", "PROF", "ordered", "by", "their", "date", "of", "birth", "."], "entities": [{"id": 2, "type": "column", "value": "emp_jobcode"}, {"id": 1, "type": "column", "value": "emp_fname"}, {"id": 0, "type": "table", "value": "employee"}, {"id": 4, "type": "column", "value": "emp_dob"}, {"id": 3, "type": "value", "value": "PROF"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": [8, 9]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [14, 15, 16]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O"]} {"question_id": 8320, "db_id": "hr_1", "dber_id": "spider:train_spider.json:3470", "question": "Provide the full names of employees earning more than the employee with id 163.", "SQL": "SELECT first_name , last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163 )", "tokens": ["Provide", "the", "full", "names", "of", "employees", "earning", "more", "than", "the", "employee", "with", "i", "d", "163", "."], "entities": [{"id": 4, "type": "column", "value": "employee_id"}, {"id": 1, "type": "column", "value": "first_name"}, {"id": 0, "type": "table", "value": "employees"}, {"id": 2, "type": "column", "value": "last_name"}, {"id": 3, "type": "column", "value": "salary"}, {"id": 5, "type": "value", "value": "163"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": [12]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O"]} {"question_id": 16022, "db_id": "computer_student", "dber_id": "bird:train.json:995", "question": "For the professor who advised student no.6, please list the IDs of the courses he or she teaches.", "SQL": "SELECT T2.course_id FROM taughtBy AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id INNER JOIN advisedBy AS T3 ON T3.p_id = T1.p_id WHERE T1.p_id = 9", "tokens": ["For", "the", "professor", "who", "advised", "student", "no.6", ",", "please", "list", "the", "IDs", "of", "the", "courses", "he", "or", "she", "teaches", "."], "entities": [{"id": 0, "type": "column", "value": "course_id"}, {"id": 1, "type": "table", "value": "advisedby"}, {"id": 4, "type": "table", "value": "taughtby"}, {"id": 5, "type": "table", "value": "course"}, {"id": 2, "type": "column", "value": "p_id"}, {"id": 3, "type": "value", "value": "9"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [14]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O"]} {"question_id": 11127, "db_id": "department_store", "dber_id": "spider:train_spider.json:4736", "question": "What are the names and addressed of customers who have both New and Pending orders?", "SQL": "SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = \"New\" INTERSECT SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = \"Pending\"", "tokens": ["What", "are", "the", "names", "and", "addressed", "of", "customers", "who", "have", "both", "New", "and", "Pending", "orders", "?"], "entities": [{"id": 4, "type": "column", "value": "order_status_code"}, {"id": 1, "type": "column", "value": "customer_address"}, {"id": 3, "type": "table", "value": "customer_orders"}, {"id": 0, "type": "column", "value": "customer_name"}, {"id": 7, "type": "column", "value": "customer_id"}, {"id": 2, "type": "table", "value": "customers"}, {"id": 6, "type": "column", "value": "Pending"}, {"id": 5, "type": "column", "value": "New"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [14]}, {"entity_id": 5, "token_idxs": [11]}, {"entity_id": 6, "token_idxs": [13]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-COLUMN", "O"]} {"question_id": 13666, "db_id": "address_1", "dber_id": "bird:test.json:832", "question": "For each city, what is the the city code and sum of distances from each?", "SQL": "SELECT city1_code , sum(distance) FROM Direct_distance GROUP BY city1_code", "tokens": ["For", "each", "city", ",", "what", "is", "the", "the", "city", "code", "and", "sum", "of", "distances", "from", "each", "?"], "entities": [{"id": 0, "type": "table", "value": "direct_distance"}, {"id": 1, "type": "column", "value": "city1_code"}, {"id": 2, "type": "column", "value": "distance"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [8, 9]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O"]} {"question_id": 188, "db_id": "student_club", "dber_id": "bird:dev.json:1352", "question": "For all the club members from \"Business\" major, how many of them wear medium size t-shirt?", "SQL": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Business' AND T1.t_shirt_size = 'Medium'", "tokens": ["For", "all", "the", "club", "members", "from", "\"", "Business", "\"", "major", ",", "how", "many", "of", "them", "wear", "medium", "size", "t", "-", "shirt", "?"], "entities": [{"id": 3, "type": "column", "value": "link_to_major"}, {"id": 7, "type": "column", "value": "t_shirt_size"}, {"id": 5, "type": "column", "value": "major_name"}, {"id": 2, "type": "column", "value": "member_id"}, {"id": 4, "type": "column", "value": "major_id"}, {"id": 6, "type": "value", "value": "Business"}, {"id": 0, "type": "table", "value": "member"}, {"id": 8, "type": "value", "value": "Medium"}, {"id": 1, "type": "table", "value": "major"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [17]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "I-TABLE", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O"]} {"question_id": 9105, "db_id": "talkingdata", "dber_id": "bird:train.json:1223", "question": "What is the percentage of users who experienced event number 6 who have the app installed but do not use the app?", "SQL": "SELECT SUM(IIF(is_installed = 1 AND is_active = 0, 1, 0)) / COUNT(app_id) AS perrcent FROM app_events WHERE event_id = 6", "tokens": ["What", "is", "the", "percentage", "of", "users", "who", "experienced", "event", "number", "6", "who", "have", "the", "app", "installed", "but", "do", "not", "use", "the", "app", "?"], "entities": [{"id": 6, "type": "column", "value": "is_installed"}, {"id": 0, "type": "table", "value": "app_events"}, {"id": 7, "type": "column", "value": "is_active"}, {"id": 1, "type": "column", "value": "event_id"}, {"id": 3, "type": "column", "value": "app_id"}, {"id": 2, "type": "value", "value": "6"}, {"id": 4, "type": "value", "value": "1"}, {"id": 5, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [11]}, {"entity_id": 2, "token_idxs": [1]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [4, 5]}, {"entity_id": 8, "token_idxs": [7]}, {"entity_id": 9, "token_idxs": [13]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 11253, "db_id": "movie_3", "dber_id": "bird:train.json:9169", "question": "What is the percentage more for the rental payment for store No.2 than store No.1?", "SQL": "SELECT CAST((SUM(IIF(T2.store_id = 2, T1.amount, 0)) - SUM(IIF(T2.store_id = 1, T1.amount, 0))) AS REAL) * 100 / SUM(IIF(T2.store_id = 1, T1.amount, 0)) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id INNER JOIN store AS T3 ON T2.store_id = T3.store_id", "tokens": ["What", "is", "the", "percentage", "more", "for", "the", "rental", "payment", "for", "store", "No.2", "than", "store", "No.1", "?"], "entities": [{"id": 5, "type": "column", "value": "customer_id"}, {"id": 2, "type": "table", "value": "customer"}, {"id": 3, "type": "column", "value": "store_id"}, {"id": 1, "type": "table", "value": "payment"}, {"id": 6, "type": "column", "value": "amount"}, {"id": 0, "type": "table", "value": "store"}, {"id": 4, "type": "value", "value": "100"}, {"id": 7, "type": "value", "value": "0"}, {"id": 8, "type": "value", "value": "1"}, {"id": 9, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [13]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [14]}, {"entity_id": 9, "token_idxs": [11]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "B-TABLE", "B-VALUE", "O"]} {"question_id": 5947, "db_id": "retails", "dber_id": "bird:train.json:6806", "question": "What is the discounted price of line item number 1?", "SQL": "SELECT l_extendedprice * (1 - l_discount) FROM lineitem WHERE l_linenumber = 1", "tokens": ["What", "is", "the", "discounted", "price", "of", "line", "item", "number", "1", "?"], "entities": [{"id": 3, "type": "column", "value": "l_extendedprice"}, {"id": 1, "type": "column", "value": "l_linenumber"}, {"id": 4, "type": "column", "value": "l_discount"}, {"id": 0, "type": "table", "value": "lineitem"}, {"id": 2, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6, 7]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [4]}, {"entity_id": 4, "token_idxs": [3]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 12318, "db_id": "college_1", "dber_id": "spider:train_spider.json:3230", "question": "What are the number of different course codes?", "SQL": "SELECT count(DISTINCT crs_code) FROM CLASS", "tokens": ["What", "are", "the", "number", "of", "different", "course", "codes", "?"], "entities": [{"id": 1, "type": "column", "value": "crs_code"}, {"id": 0, "type": "table", "value": "class"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O"]} {"question_id": 5974, "db_id": "tracking_share_transactions", "dber_id": "spider:train_spider.json:5883", "question": "What are the details of all sales and purchases?", "SQL": "SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases", "tokens": ["What", "are", "the", "details", "of", "all", "sales", "and", "purchases", "?"], "entities": [{"id": 3, "type": "column", "value": "purchase_details"}, {"id": 2, "type": "column", "value": "sales_details"}, {"id": 1, "type": "table", "value": "purchases"}, {"id": 0, "type": "table", "value": "sales"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-TABLE", "O"]} {"question_id": 9052, "db_id": "music_platform_2", "dber_id": "bird:train.json:7952", "question": "To which categories do the podcasts of the reviewer whose id is EFB34EAC8E9397C belong?", "SQL": "SELECT DISTINCT T1.category FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.author_id = 'EFB34EAC8E9397C'", "tokens": ["To", "which", "categories", "do", "the", "podcasts", "of", "the", "reviewer", "whose", "i", "d", "is", "EFB34EAC8E9397C", "belong", "?"], "entities": [{"id": 4, "type": "value", "value": "EFB34EAC8E9397C"}, {"id": 1, "type": "table", "value": "categories"}, {"id": 5, "type": "column", "value": "podcast_id"}, {"id": 3, "type": "column", "value": "author_id"}, {"id": 0, "type": "column", "value": "category"}, {"id": 2, "type": "table", "value": "reviews"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [10, 11]}, {"entity_id": 4, "token_idxs": [13]}, {"entity_id": 5, "token_idxs": [5]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O", "O"]} {"question_id": 6572, "db_id": "dorm_1", "dber_id": "spider:train_spider.json:5759", "question": "What is the name and capacity of the dorm with the fewest amount of amenities?", "SQL": "SELECT T1.dorm_name , T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1", "tokens": ["What", "is", "the", "name", "and", "capacity", "of", "the", "dorm", "with", "the", "fewest", "amount", "of", "amenities", "?"], "entities": [{"id": 2, "type": "column", "value": "student_capacity"}, {"id": 3, "type": "table", "value": "dorm_amenity"}, {"id": 5, "type": "table", "value": "has_amenity"}, {"id": 1, "type": "column", "value": "dorm_name"}, {"id": 0, "type": "column", "value": "dormid"}, {"id": 6, "type": "column", "value": "amenid"}, {"id": 4, "type": "table", "value": "dorm"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 6, "db_id": "student_loan", "dber_id": "bird:train.json:4404", "question": "What percentage of students who enlisted in the navy make up the number of students enrolled in OCC?", "SQL": "SELECT CAST(SUM(IIF(T1.school = 'occ', 1.0, 0)) AS REAL) * 100 / COUNT(T1.name) FROM enrolled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'navy'", "tokens": ["What", "percentage", "of", "students", "who", "enlisted", "in", "the", "navy", "make", "up", "the", "number", "of", "students", "enrolled", "in", "OCC", "?"], "entities": [{"id": 0, "type": "table", "value": "enrolled"}, {"id": 1, "type": "table", "value": "enlist"}, {"id": 8, "type": "column", "value": "school"}, {"id": 2, "type": "column", "value": "organ"}, {"id": 3, "type": "value", "value": "navy"}, {"id": 4, "type": "column", "value": "name"}, {"id": 5, "type": "value", "value": "100"}, {"id": 6, "type": "value", "value": "1.0"}, {"id": 9, "type": "value", "value": "occ"}, {"id": 7, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [15]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [17]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O"]} {"question_id": 2927, "db_id": "boat_1", "dber_id": "bird:test.json:874", "question": "What is id about sailors who do not have boat reservations?", "SQL": "SELECT sid FROM Sailors EXCEPT SELECT T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid", "tokens": ["What", "is", "i", "d", "about", "sailors", "who", "do", "not", "have", "boat", "reservations", "?"], "entities": [{"id": 2, "type": "table", "value": "reserves"}, {"id": 0, "type": "table", "value": "sailors"}, {"id": 1, "type": "column", "value": "sid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [12]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O"]} {"question_id": 3501, "db_id": "retails", "dber_id": "bird:train.json:6746", "question": "What is the order priority of the order with the highest total price?", "SQL": "SELECT o_orderpriority FROM orders WHERE o_totalprice = ( SELECT MAX(o_totalprice) FROM orders )", "tokens": ["What", "is", "the", "order", "priority", "of", "the", "order", "with", "the", "highest", "total", "price", "?"], "entities": [{"id": 1, "type": "column", "value": "o_orderpriority"}, {"id": 2, "type": "column", "value": "o_totalprice"}, {"id": 0, "type": "table", "value": "orders"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [11, 12]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 1776, "db_id": "formula_1", "dber_id": "bird:dev.json:857", "question": "Give the coordinate position for Abu Dhabi Grand Prix.", "SQL": "SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Abu Dhabi Grand Prix'", "tokens": ["Give", "the", "coordinate", "position", "for", "Abu", "Dhabi", "Grand", "Prix", "."], "entities": [{"id": 5, "type": "value", "value": "Abu Dhabi Grand Prix"}, {"id": 6, "type": "column", "value": "circuitid"}, {"id": 2, "type": "table", "value": "circuits"}, {"id": 3, "type": "table", "value": "races"}, {"id": 4, "type": "column", "value": "name"}, {"id": 0, "type": "column", "value": "lat"}, {"id": 1, "type": "column", "value": "lng"}], "entity_to_token": [{"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": [5, 6, 7, 8]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 11959, "db_id": "olympics", "dber_id": "bird:train.json:5074", "question": "What is the season of the game where a competitor who weighted 73 kg and 180 cm tall, participated?", "SQL": "SELECT DISTINCT T1.season FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.height = 180 AND T3.weight = 73", "tokens": ["What", "is", "the", "season", "of", "the", "game", "where", "a", "competitor", "who", "weighted", "73", "kg", "and", "180", "cm", "tall", ",", "participated", "?"], "entities": [{"id": 3, "type": "table", "value": "games_competitor"}, {"id": 4, "type": "column", "value": "person_id"}, {"id": 10, "type": "column", "value": "games_id"}, {"id": 0, "type": "column", "value": "season"}, {"id": 1, "type": "table", "value": "person"}, {"id": 6, "type": "column", "value": "height"}, {"id": 8, "type": "column", "value": "weight"}, {"id": 2, "type": "table", "value": "games"}, {"id": 7, "type": "value", "value": "180"}, {"id": 5, "type": "column", "value": "id"}, {"id": 9, "type": "value", "value": "73"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [18]}, {"entity_id": 7, "token_idxs": [15]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [20]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-VALUE", "O", "O", "B-COLUMN", "O", "B-VALUE"]} {"question_id": 5310, "db_id": "baseball_1", "dber_id": "spider:train_spider.json:3688", "question": "How many parks does Atlanta city have?", "SQL": "SELECT count(*) FROM park WHERE city = 'Atlanta';", "tokens": ["How", "many", "parks", "does", "Atlanta", "city", "have", "?"], "entities": [{"id": 2, "type": "value", "value": "Atlanta"}, {"id": 0, "type": "table", "value": "park"}, {"id": 1, "type": "column", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "B-VALUE", "B-COLUMN", "O", "O"]} {"question_id": 2200, "db_id": "authors", "dber_id": "bird:train.json:3647", "question": "What are the affiliations of the author \"Mark A. Musen\" written on and off paper?", "SQL": "SELECT T1.Affiliation FROM PaperAuthor AS T1 INNER JOIN Author AS T2 ON T1.AuthorId = T2.Id WHERE T2.Name = 'Mark A. Musen'", "tokens": ["What", "are", "the", "affiliations", "of", "the", "author", "\"", "Mark", "A.", "Musen", "\"", "written", "on", "and", "off", "paper", "?"], "entities": [{"id": 4, "type": "value", "value": "Mark A. Musen"}, {"id": 0, "type": "column", "value": "affiliation"}, {"id": 1, "type": "table", "value": "paperauthor"}, {"id": 5, "type": "column", "value": "authorid"}, {"id": 2, "type": "table", "value": "author"}, {"id": 3, "type": "column", "value": "name"}, {"id": 6, "type": "column", "value": "id"}], "entity_to_token": [{"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": [8, 9, 10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 4920, "db_id": "retail_world", "dber_id": "bird:train.json:6485", "question": "Among the employees, give me the full names of those who have less than 4 territories.", "SQL": "SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.EmployeeID < 4", "tokens": ["Among", "the", "employees", ",", "give", "me", "the", "full", "names", "of", "those", "who", "have", "less", "than", "4", "territories", "."], "entities": [{"id": 3, "type": "table", "value": "employeeterritories"}, {"id": 4, "type": "column", "value": "employeeid"}, {"id": 0, "type": "column", "value": "firstname"}, {"id": 2, "type": "table", "value": "employees"}, {"id": 1, "type": "column", "value": "lastname"}, {"id": 5, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": [16]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [15]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]} {"question_id": 13230, "db_id": "european_football_2", "dber_id": "bird:dev.json:1075", "question": "List all the football player with the highest balance score and potential score of 61.", "SQL": "SELECT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.potential = '61' ORDER BY t2.balance DESC LIMIT 1", "tokens": ["List", "all", "the", "football", "player", "with", "the", "highest", "balance", "score", "and", "potential", "score", "of", "61", "."], "entities": [{"id": 2, "type": "table", "value": "player_attributes"}, {"id": 6, "type": "column", "value": "player_api_id"}, {"id": 0, "type": "column", "value": "player_name"}, {"id": 3, "type": "column", "value": "potential"}, {"id": 5, "type": "column", "value": "balance"}, {"id": 1, "type": "table", "value": "player"}, {"id": 4, "type": "value", "value": "61"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": [14]}, {"entity_id": 5, "token_idxs": [8]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O"]} {"question_id": 12741, "db_id": "coinmarketcap", "dber_id": "bird:train.json:6261", "question": "Name the coin under the token category that gives the highest max profit.", "SQL": "SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.category = 'token' ORDER BY T2.high - T2.low DESC LIMIT 1", "tokens": ["Name", "the", "coin", "under", "the", "token", "category", "that", "gives", "the", "highest", "max", "profit", "."], "entities": [{"id": 2, "type": "table", "value": "historical"}, {"id": 3, "type": "column", "value": "category"}, {"id": 6, "type": "column", "value": "coin_id"}, {"id": 1, "type": "table", "value": "coins"}, {"id": 4, "type": "value", "value": "token"}, {"id": 0, "type": "column", "value": "name"}, {"id": 7, "type": "column", "value": "high"}, {"id": 8, "type": "column", "value": "low"}, {"id": 5, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [0]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [10]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["B-COLUMN", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O"]} {"question_id": 1291, "db_id": "car_retails", "dber_id": "bird:train.json:1643", "question": "For the order has the most product ordered, name the customer who placed the order.", "SQL": "SELECT T2.firstName, T2.lastName FROM offices AS T1 INNER JOIN employees AS T2 ON T1.officeCode = T2.officeCode WHERE T2.employeeNumber = ( SELECT MAX(employeeNumber) FROM employees )", "tokens": ["For", "the", "order", "has", "the", "most", "product", "ordered", ",", "name", "the", "customer", "who", "placed", "the", "order", "."], "entities": [{"id": 4, "type": "column", "value": "employeenumber"}, {"id": 5, "type": "column", "value": "officecode"}, {"id": 0, "type": "column", "value": "firstname"}, {"id": 3, "type": "table", "value": "employees"}, {"id": 1, "type": "column", "value": "lastname"}, {"id": 2, "type": "table", "value": "offices"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 7939, "db_id": "e_learning", "dber_id": "spider:train_spider.json:3841", "question": "What are the student IDs and middle names of the students enrolled in at most two courses?", "SQL": "SELECT T1.student_id , T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2", "tokens": ["What", "are", "the", "student", "IDs", "and", "middle", "names", "of", "the", "students", "enrolled", "in", "at", "most", "two", "courses", "?"], "entities": [{"id": 2, "type": "table", "value": "student_course_enrolment"}, {"id": 1, "type": "column", "value": "middle_name"}, {"id": 0, "type": "column", "value": "student_id"}, {"id": 3, "type": "table", "value": "students"}, {"id": 4, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [6, 7]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [15]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 13223, "db_id": "movie_platform", "dber_id": "bird:train.json:24", "question": "Was the user who created the \"World War 2 and Kids\" list eligible for trial when he created the list? Indicate how many followers does the said list has.", "SQL": "SELECT T2.user_eligible_for_trial, T1.list_followers FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T1.user_id AND T1.list_id = T2.list_id WHERE T1.list_title = 'World War 2 and Kids'", "tokens": ["Was", "the", "user", "who", "created", "the", "\"", "World", "War", "2", "and", "Kids", "\"", "list", "eligible", "for", "trial", "when", "he", "created", "the", "list", "?", "Indicate", "how", "many", "followers", "does", "the", "said", "list", "has", "."], "entities": [{"id": 0, "type": "column", "value": "user_eligible_for_trial"}, {"id": 5, "type": "value", "value": "World War 2 and Kids"}, {"id": 1, "type": "column", "value": "list_followers"}, {"id": 3, "type": "table", "value": "lists_users"}, {"id": 4, "type": "column", "value": "list_title"}, {"id": 6, "type": "column", "value": "user_id"}, {"id": 7, "type": "column", "value": "list_id"}, {"id": 2, "type": "table", "value": "lists"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14, 15, 16]}, {"entity_id": 1, "token_idxs": [26]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": [30]}, {"entity_id": 4, "token_idxs": [21]}, {"entity_id": 5, "token_idxs": [7, 8, 9, 10, 11]}, {"entity_id": 6, "token_idxs": [2]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O"]} {"question_id": 3644, "db_id": "movie_3", "dber_id": "bird:train.json:9395", "question": "List all the films that Karl Berr starred in and rated as PG.", "SQL": "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 = 'KARL' AND T1.last_name = 'BERRY' AND T3.rating = 'PG'", "tokens": ["List", "all", "the", "films", "that", "Karl", "Berr", "starred", "in", "and", "rated", "as", "PG", "."], "entities": [{"id": 3, "type": "table", "value": "film_actor"}, {"id": 5, "type": "column", "value": "first_name"}, {"id": 7, "type": "column", "value": "last_name"}, {"id": 11, "type": "column", "value": "actor_id"}, {"id": 4, "type": "column", "value": "film_id"}, {"id": 9, "type": "column", "value": "rating"}, {"id": 0, "type": "column", "value": "title"}, {"id": 2, "type": "table", "value": "actor"}, {"id": 8, "type": "value", "value": "BERRY"}, {"id": 1, "type": "table", "value": "film"}, {"id": 6, "type": "value", "value": "KARL"}, {"id": 10, "type": "value", "value": "PG"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [6]}, {"entity_id": 9, "token_idxs": [10]}, {"entity_id": 10, "token_idxs": [12]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "B-VALUE", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O"]} {"question_id": 13893, "db_id": "app_store", "dber_id": "bird:train.json:2563", "question": "How much is the size of Browser 4G and how many users have a pretty positive favorability on it?", "SQL": "SELECT T1.Size, COUNT(T1.App) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Browser 4G' AND T2.Sentiment_Polarity >= 0.5", "tokens": ["How", "much", "is", "the", "size", "of", "Browser", "4", "G", "and", "how", "many", "users", "have", "a", "pretty", "positive", "favorability", "on", "it", "?"], "entities": [{"id": 5, "type": "column", "value": "sentiment_polarity"}, {"id": 2, "type": "table", "value": "user_reviews"}, {"id": 4, "type": "value", "value": "Browser 4G"}, {"id": 1, "type": "table", "value": "playstore"}, {"id": 0, "type": "column", "value": "size"}, {"id": 3, "type": "column", "value": "app"}, {"id": 6, "type": "value", "value": "0.5"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [16]}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [6, 7, 8]}, {"entity_id": 5, "token_idxs": [17]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O"]} {"question_id": 13588, "db_id": "codebase_community", "dber_id": "bird:dev.json:668", "question": "What is the display name of the user who acquired the highest amount of badges?", "SQL": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId GROUP BY T1.DisplayName ORDER BY COUNT(T1.Id) DESC LIMIT 1", "tokens": ["What", "is", "the", "display", "name", "of", "the", "user", "who", "acquired", "the", "highest", "amount", "of", "badges", "?"], "entities": [{"id": 0, "type": "column", "value": "displayname"}, {"id": 2, "type": "table", "value": "badges"}, {"id": 4, "type": "column", "value": "userid"}, {"id": 1, "type": "table", "value": "users"}, {"id": 3, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [14]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 2286, "db_id": "works_cycles", "dber_id": "bird:train.json:7335", "question": "State the employee who are born in or after 1970 and with the least sick leave hour.", "SQL": "SELECT T2.FirstName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T1.BirthDate) > '1970' ORDER BY T1.SickLeaveHours LIMIT 1", "tokens": ["State", "the", "employee", "who", "are", "born", "in", "or", "after", "1970", "and", "with", "the", "least", "sick", "leave", "hour", "."], "entities": [{"id": 6, "type": "column", "value": "businessentityid"}, {"id": 5, "type": "column", "value": "sickleavehours"}, {"id": 0, "type": "column", "value": "firstname"}, {"id": 8, "type": "column", "value": "birthdate"}, {"id": 1, "type": "column", "value": "lastname"}, {"id": 2, "type": "table", "value": "employee"}, {"id": 3, "type": "table", "value": "person"}, {"id": 4, "type": "value", "value": "1970"}, {"id": 7, "type": "value", "value": "%Y"}], "entity_to_token": [{"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": [9]}, {"entity_id": 5, "token_idxs": [14, 15, 16]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O"]} {"question_id": 2223, "db_id": "citeseer", "dber_id": "bird:train.json:4147", "question": "List all words cited in the AI class label.", "SQL": "SELECT DISTINCT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI'", "tokens": ["List", "all", "words", "cited", "in", "the", "AI", "class", "label", "."], "entities": [{"id": 0, "type": "column", "value": "word_cited_id"}, {"id": 3, "type": "column", "value": "class_label"}, {"id": 5, "type": "column", "value": "paper_id"}, {"id": 2, "type": "table", "value": "content"}, {"id": 1, "type": "table", "value": "paper"}, {"id": 4, "type": "value", "value": "AI"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [7, 8]}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 6592, "db_id": "olympics", "dber_id": "bird:train.json:4947", "question": "Which cities hosted at least 3 Olympic games?", "SQL": "SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id GROUP BY T2.id HAVING COUNT(T1.games_id) >= 3", "tokens": ["Which", "cities", "hosted", "at", "least", "3", "Olympic", "games", "?"], "entities": [{"id": 2, "type": "table", "value": "games_city"}, {"id": 1, "type": "column", "value": "city_name"}, {"id": 6, "type": "column", "value": "games_id"}, {"id": 5, "type": "column", "value": "city_id"}, {"id": 3, "type": "table", "value": "city"}, {"id": 0, "type": "column", "value": "id"}, {"id": 4, "type": "value", "value": "3"}], "entity_to_token": [{"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": [5]}, {"entity_id": 5, "token_idxs": [1]}, {"entity_id": 6, "token_idxs": [7]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "B-COLUMN", "O"]} {"question_id": 8837, "db_id": "restaurant", "dber_id": "bird:train.json:1687", "question": "What is the rating of each restaurant reviews on Atlantic Ave?", "SQL": "SELECT T1.review FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'atlantic ave'", "tokens": ["What", "is", "the", "rating", "of", "each", "restaurant", "reviews", "on", "Atlantic", "Ave", "?"], "entities": [{"id": 5, "type": "column", "value": "id_restaurant"}, {"id": 4, "type": "value", "value": "atlantic ave"}, {"id": 1, "type": "table", "value": "generalinfo"}, {"id": 3, "type": "column", "value": "street_name"}, {"id": 2, "type": "table", "value": "location"}, {"id": 0, "type": "column", "value": "review"}], "entity_to_token": [{"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": [9, 10]}, {"entity_id": 5, "token_idxs": [6]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O"]} {"question_id": 9038, "db_id": "soccer_2", "dber_id": "spider:train_spider.json:5011", "question": "What is the average and maximum number of hours students who made the team practiced?", "SQL": "SELECT avg(T1.HS) , max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "tokens": ["What", "is", "the", "average", "and", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "?"], "entities": [{"id": 2, "type": "column", "value": "decision"}, {"id": 0, "type": "table", "value": "player"}, {"id": 1, "type": "table", "value": "tryout"}, {"id": 3, "type": "value", "value": "yes"}, {"id": 5, "type": "column", "value": "pid"}, {"id": 4, "type": "column", "value": "hs"}], "entity_to_token": [{"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": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 1684, "db_id": "cars", "dber_id": "bird:train.json:3101", "question": "How much is the Peugeot 505s Turbo Diesel?", "SQL": "SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'peugeot 505s turbo diesel'", "tokens": ["How", "much", "is", "the", "Peugeot", "505s", "Turbo", "Diesel", "?"], "entities": [{"id": 4, "type": "value", "value": "peugeot 505s turbo diesel"}, {"id": 3, "type": "column", "value": "car_name"}, {"id": 0, "type": "column", "value": "price"}, {"id": 2, "type": "table", "value": "price"}, {"id": 1, "type": "table", "value": "data"}, {"id": 5, "type": "column", "value": "id"}], "entity_to_token": [{"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, 5, 6, 7]}, {"entity_id": 5, "token_idxs": [2]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 3811, "db_id": "manufactory_1", "dber_id": "spider:train_spider.json:5312", "question": "Find the average prices of all products from each manufacture, and list each company's name.", "SQL": "SELECT avg(T1.price) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name", "tokens": ["Find", "the", "average", "prices", "of", "all", "products", "from", "each", "manufacture", ",", "and", "list", "each", "company", "'s", "name", "."], "entities": [{"id": 2, "type": "table", "value": "manufacturers"}, {"id": 4, "type": "column", "value": "manufacturer"}, {"id": 1, "type": "table", "value": "products"}, {"id": 3, "type": "column", "value": "price"}, {"id": 0, "type": "column", "value": "name"}, {"id": 5, "type": "column", "value": "code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [16]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 6939, "db_id": "products_gen_characteristics", "dber_id": "spider:train_spider.json:5522", "question": "What are the names and buying prices of all the products?", "SQL": "SELECT product_name , typical_buying_price FROM products", "tokens": ["What", "are", "the", "names", "and", "buying", "prices", "of", "all", "the", "products", "?"], "entities": [{"id": 2, "type": "column", "value": "typical_buying_price"}, {"id": 1, "type": "column", "value": "product_name"}, {"id": 0, "type": "table", "value": "products"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5, 6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 13174, "db_id": "wine_1", "dber_id": "spider:train_spider.json:6534", "question": "What are the names of wines made from red grapes?", "SQL": "SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"Red\"", "tokens": ["What", "are", "the", "names", "of", "wines", "made", "from", "red", "grapes", "?"], "entities": [{"id": 1, "type": "table", "value": "grapes"}, {"id": 3, "type": "column", "value": "color"}, {"id": 5, "type": "column", "value": "grape"}, {"id": 0, "type": "column", "value": "name"}, {"id": 2, "type": "table", "value": "wine"}, {"id": 4, "type": "column", "value": "Red"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-TABLE", "O"]} {"question_id": 3258, "db_id": "soccer_3", "dber_id": "bird:test.json:8", "question": "What are the names of players in ascending order of wins count?", "SQL": "SELECT Name FROM player ORDER BY Wins_count ASC", "tokens": ["What", "are", "the", "names", "of", "players", "in", "ascending", "order", "of", "wins", "count", "?"], "entities": [{"id": 2, "type": "column", "value": "wins_count"}, {"id": 0, "type": "table", "value": "player"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 3923, "db_id": "loan_1", "dber_id": "spider:train_spider.json:3057", "question": "What is the average account balance of customers with credit score below 50 for the different account types?", "SQL": "SELECT avg(acc_bal) , acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type", "tokens": ["What", "is", "the", "average", "account", "balance", "of", "customers", "with", "credit", "score", "below", "50", "for", "the", "different", "account", "types", "?"], "entities": [{"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", "value": "50"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [16, 17]}, {"entity_id": 2, "token_idxs": [9, 10]}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": [4, 5]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 3598, "db_id": "shooting", "dber_id": "bird:train.json:2474", "question": "From the 'Injured' statuses of the subject, what is the ratio of weapons used are knife against handgun?", "SQL": "SELECT CAST(SUM(T1.subject_weapon = 'Knife') AS REAL) * 100 / SUM(T1.subject_weapon = 'Handgun') FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T1.subject_statuses = 'Injured'", "tokens": ["From", "the", "'", "Injured", "'", "statuses", "of", "the", "subject", ",", "what", "is", "the", "ratio", "of", "weapons", "used", "are", "knife", "against", "handgun", "?"], "entities": [{"id": 2, "type": "column", "value": "subject_statuses"}, {"id": 6, "type": "column", "value": "subject_weapon"}, {"id": 4, "type": "column", "value": "case_number"}, {"id": 0, "type": "table", "value": "incidents"}, {"id": 1, "type": "table", "value": "subjects"}, {"id": 3, "type": "value", "value": "Injured"}, {"id": 7, "type": "value", "value": "Handgun"}, {"id": 8, "type": "value", "value": "Knife"}, {"id": 5, "type": "value", "value": "100"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [20]}, {"entity_id": 8, "token_idxs": [18]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-VALUE", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 6868, "db_id": "music_tracker", "dber_id": "bird:train.json:2047", "question": "What is the tag of the album with the highest amount of downloads?", "SQL": "SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'album' ORDER BY T1.totalSnatched DESC LIMIT 1", "tokens": ["What", "is", "the", "tag", "of", "the", "album", "with", "the", "highest", "amount", "of", "downloads", "?"], "entities": [{"id": 5, "type": "column", "value": "totalsnatched"}, {"id": 3, "type": "column", "value": "releasetype"}, {"id": 1, "type": "table", "value": "torrents"}, {"id": 4, "type": "value", "value": "album"}, {"id": 2, "type": "table", "value": "tags"}, {"id": 0, "type": "column", "value": "tag"}, {"id": 6, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6, 7]}, {"entity_id": 4, "token_idxs": [2]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-VALUE", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O"]} {"question_id": 14577, "db_id": "cre_Doc_and_collections", "dber_id": "bird:test.json:733", "question": "List id of documents that in document subset Best for 2000 or in collection named Best.", "SQL": "SELECT DISTINCT T1.Document_Object_ID FROM Document_Subset_Members AS T1 JOIN Document_Subsets AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID JOIN Documents_in_Collections AS T3 ON T1.Document_Object_ID = T3.Document_Object_ID JOIN Collections AS T4 ON T3.Collection_ID = T4.Collection_ID WHERE T2.Document_Subset_Name = \"Best for 2000\" OR T4.Collection_Name = \"Best\";", "tokens": ["List", "i", "d", "of", "documents", "that", "in", "document", "subset", "Best", "for", "2000", "or", "in", "collection", "named", "Best", "."], "entities": [{"id": 2, "type": "table", "value": "documents_in_collections"}, {"id": 8, "type": "table", "value": "document_subset_members"}, {"id": 4, "type": "column", "value": "document_subset_name"}, {"id": 0, "type": "column", "value": "document_object_id"}, {"id": 10, "type": "column", "value": "document_subset_id"}, {"id": 9, "type": "table", "value": "document_subsets"}, {"id": 6, "type": "column", "value": "collection_name"}, {"id": 3, "type": "column", "value": "collection_id"}, {"id": 5, "type": "column", "value": "Best for 2000"}, {"id": 1, "type": "table", "value": "collections"}, {"id": 7, "type": "column", "value": "Best"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [14]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [9, 10, 11]}, {"entity_id": 6, "token_idxs": [15]}, {"entity_id": 7, "token_idxs": [16]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [7, 8]}, {"entity_id": 10, "token_idxs": [1, 2]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "B-COLUMN", "O"]} {"question_id": 11062, "db_id": "cre_Theme_park", "dber_id": "spider:train_spider.json:5908", "question": "Find all the distinct visit dates.", "SQL": "SELECT DISTINCT Visit_Date FROM VISITS", "tokens": ["Find", "all", "the", "distinct", "visit", "dates", "."], "entities": [{"id": 1, "type": "column", "value": "visit_date"}, {"id": 0, "type": "table", "value": "visits"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O"]} {"question_id": 822, "db_id": "sakila_1", "dber_id": "spider:train_spider.json:2941", "question": "Count the number of cities in Australia.", "SQL": "SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia'", "tokens": ["Count", "the", "number", "of", "cities", "in", "Australia", "."], "entities": [{"id": 4, "type": "column", "value": "country_id"}, {"id": 3, "type": "value", "value": "Australia"}, {"id": 1, "type": "table", "value": "country"}, {"id": 2, "type": "column", "value": "country"}, {"id": 0, "type": "table", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O"]} {"question_id": 823, "db_id": "card_games", "dber_id": "bird:dev.json:345", "question": "For artifact type of cards that do not have multiple faces on the same card, state its legalities status for vintage play format.", "SQL": "SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.type = 'Artifact' AND T2.format = 'vintage' AND T1.side IS NULL", "tokens": ["For", "artifact", "type", "of", "cards", "that", "do", "not", "have", "multiple", "faces", "on", "the", "same", "card", ",", "state", "its", "legalities", "status", "for", "vintage", "play", "format", "."], "entities": [{"id": 2, "type": "table", "value": "legalities"}, {"id": 5, "type": "value", "value": "Artifact"}, {"id": 7, "type": "value", "value": "vintage"}, {"id": 0, "type": "column", "value": "status"}, {"id": 6, "type": "column", "value": "format"}, {"id": 1, "type": "table", "value": "cards"}, {"id": 3, "type": "column", "value": "uuid"}, {"id": 4, "type": "column", "value": "type"}, {"id": 8, "type": "column", "value": "side"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [19]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [18]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": [2]}, {"entity_id": 5, "token_idxs": [1]}, {"entity_id": 6, "token_idxs": [23]}, {"entity_id": 7, "token_idxs": [21]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-VALUE", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "B-COLUMN", "O"]} {"question_id": 7119, "db_id": "chinook_1", "dber_id": "spider:train_spider.json:822", "question": "Find the number of albums by the artist \"Metallica\".", "SQL": "SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"Metallica\"", "tokens": ["Find", "the", "number", "of", "albums", "by", "the", "artist", "\"", "Metallica", "\"", "."], "entities": [{"id": 3, "type": "column", "value": "Metallica"}, {"id": 4, "type": "column", "value": "artistid"}, {"id": 1, "type": "table", "value": "artist"}, {"id": 0, "type": "table", "value": "album"}, {"id": 2, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O"]} {"question_id": 9755, "db_id": "soccer_2016", "dber_id": "bird:train.json:1910", "question": "Identify by their ID all the overs in which the player with ID 7 was on strike.", "SQL": "SELECT DISTINCT Over_Id FROM Ball_by_Ball WHERE Striker = 7", "tokens": ["Identify", "by", "their", "ID", "all", "the", "overs", "in", "which", "the", "player", "with", "ID", "7", "was", "on", "strike", "."], "entities": [{"id": 0, "type": "table", "value": "ball_by_ball"}, {"id": 1, "type": "column", "value": "over_id"}, {"id": 2, "type": "column", "value": "striker"}, {"id": 3, "type": "value", "value": "7"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3, 12]}, {"entity_id": 2, "token_idxs": [16]}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "B-COLUMN", "O"]} {"question_id": 5413, "db_id": "e_commerce", "dber_id": "bird:test.json:95", "question": "What are the status codes and dates placed for all of the orders?", "SQL": "SELECT order_status_code , date_order_placed FROM Orders", "tokens": ["What", "are", "the", "status", "codes", "and", "dates", "placed", "for", "all", "of", "the", "orders", "?"], "entities": [{"id": 1, "type": "column", "value": "order_status_code"}, {"id": 2, "type": "column", "value": "date_order_placed"}, {"id": 0, "type": "table", "value": "orders"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [6, 7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 5067, "db_id": "conference", "dber_id": "bird:test.json:1079", "question": "What is the maximum and minimum age of all staff from the United States?", "SQL": "SELECT max(age) , min(age) FROM staff", "tokens": ["What", "is", "the", "maximum", "and", "minimum", "age", "of", "all", "staff", "from", "the", "United", "States", "?"], "entities": [{"id": 0, "type": "table", "value": "staff"}, {"id": 1, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O"]} {"question_id": 5573, "db_id": "twitter_1", "dber_id": "spider:train_spider.json:274", "question": "Find the emails of the user named \"Mary\".", "SQL": "SELECT email FROM user_profiles WHERE name = 'Mary'", "tokens": ["Find", "the", "emails", "of", "the", "user", "named", "\"", "Mary", "\"", "."], "entities": [{"id": 0, "type": "table", "value": "user_profiles"}, {"id": 1, "type": "column", "value": "email"}, {"id": 2, "type": "column", "value": "name"}, {"id": 3, "type": "value", "value": "Mary"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "O", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 15164, "db_id": "movie_2", "dber_id": "bird:test.json:1814", "question": "How many movies are playing in theaters?", "SQL": "SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie", "tokens": ["How", "many", "movies", "are", "playing", "in", "theaters", "?"], "entities": [{"id": 1, "type": "table", "value": "movietheaters"}, {"id": 0, "type": "table", "value": "movies"}, {"id": 3, "type": "column", "value": "movie"}, {"id": 2, "type": "column", "value": "code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 3595, "db_id": "soccer_2016", "dber_id": "bird:train.json:2012", "question": "What are the names of players who participated in season year 2008?", "SQL": "SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match INNER JOIN Player_Match AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Season AS T4 ON T2.Season_Id = T4.Season_Id WHERE T4.Season_Year = 2008 GROUP BY T1.Player_Name", "tokens": ["What", "are", "the", "names", "of", "players", "who", "participated", "in", "season", "year", "2008", "?"], "entities": [{"id": 9, "type": "column", "value": "man_of_the_match"}, {"id": 4, "type": "table", "value": "player_match"}, {"id": 0, "type": "column", "value": "player_name"}, {"id": 2, "type": "column", "value": "season_year"}, {"id": 5, "type": "column", "value": "season_id"}, {"id": 8, "type": "column", "value": "player_id"}, {"id": 1, "type": "table", "value": "season"}, {"id": 6, "type": "table", "value": "player"}, {"id": 7, "type": "table", "value": "match"}, {"id": 3, "type": "value", "value": "2008"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 13409, "db_id": "california_schools", "dber_id": "bird:dev.json:0", "question": "What is the highest eligible free rate for K-12 students in the schools in Alameda County?", "SQL": "SELECT `Free Meal Count (K-12)` / `Enrollment (K-12)` FROM frpm WHERE `County Name` = 'Alameda' ORDER BY (CAST(`Free Meal Count (K-12)` AS REAL) / `Enrollment (K-12)`) DESC LIMIT 1", "tokens": ["What", "is", "the", "highest", "eligible", "free", "rate", "for", "K-12", "students", "in", "the", "schools", "in", "Alameda", "County", "?"], "entities": [{"id": 3, "type": "column", "value": "Free Meal Count (K-12)"}, {"id": 4, "type": "column", "value": "Enrollment (K-12)"}, {"id": 1, "type": "column", "value": "County Name"}, {"id": 2, "type": "value", "value": "Alameda"}, {"id": 0, "type": "table", "value": "frpm"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [15]}, {"entity_id": 2, "token_idxs": [14]}, {"entity_id": 3, "token_idxs": [5, 6]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 12317, "db_id": "professional_basketball", "dber_id": "bird:train.json:2850", "question": "How many players received Rookie of the Year award from 1969 to 2010?", "SQL": "SELECT COUNT(playerID) FROM awards_players WHERE year BETWEEN 1969 AND 2010 AND award = 'Rookie of the Year'", "tokens": ["How", "many", "players", "received", "Rookie", "of", "the", "Year", "award", "from", "1969", "to", "2010", "?"], "entities": [{"id": 6, "type": "value", "value": "Rookie of the Year"}, {"id": 0, "type": "table", "value": "awards_players"}, {"id": 1, "type": "column", "value": "playerid"}, {"id": 5, "type": "column", "value": "award"}, {"id": 2, "type": "column", "value": "year"}, {"id": 3, "type": "value", "value": "1969"}, {"id": 4, "type": "value", "value": "2010"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [12]}, {"entity_id": 5, "token_idxs": [8]}, {"entity_id": 6, "token_idxs": [4, 5, 6, 7]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 9571, "db_id": "cre_Theme_park", "dber_id": "spider:train_spider.json:5898", "question": "What is the average price range of five star hotels that allow pets?", "SQL": "SELECT avg(price_range) FROM HOTELS WHERE star_rating_code = \"5\" AND pets_allowed_yn = 1", "tokens": ["What", "is", "the", "average", "price", "range", "of", "five", "star", "hotels", "that", "allow", "pets", "?"], "entities": [{"id": 2, "type": "column", "value": "star_rating_code"}, {"id": 4, "type": "column", "value": "pets_allowed_yn"}, {"id": 1, "type": "column", "value": "price_range"}, {"id": 0, "type": "table", "value": "hotels"}, {"id": 3, "type": "column", "value": "5"}, {"id": 5, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [2, 3, 4]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 6755, "db_id": "retail_world", "dber_id": "bird:train.json:6460", "question": "Write down the notes of employee with the highest salary.", "SQL": "SELECT Notes FROM Employees WHERE Salary = ( SELECT MAX(Salary) FROM Employees )", "tokens": ["Write", "down", "the", "notes", "of", "employee", "with", "the", "highest", "salary", "."], "entities": [{"id": 0, "type": "table", "value": "employees"}, {"id": 2, "type": "column", "value": "salary"}, {"id": 1, "type": "column", "value": "notes"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 3335, "db_id": "european_football_2", "dber_id": "bird:dev.json:1104", "question": "What was the potiential for Francesco Parravicini on 2010/8/30?", "SQL": "SELECT t2.potential FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t2.`date`, 1, 10) = '2010-08-30' AND t1.player_name = 'Francesco Parravicini'", "tokens": ["What", "was", "the", "potiential", "for", "Francesco", "Parravicini", "on", "2010/8/30", "?"], "entities": [{"id": 6, "type": "value", "value": "Francesco Parravicini"}, {"id": 2, "type": "table", "value": "player_attributes"}, {"id": 3, "type": "column", "value": "player_api_id"}, {"id": 5, "type": "column", "value": "player_name"}, {"id": 4, "type": "value", "value": "2010-08-30"}, {"id": 0, "type": "column", "value": "potential"}, {"id": 1, "type": "table", "value": "player"}, {"id": 7, "type": "column", "value": "date"}, {"id": 9, "type": "value", "value": "10"}, {"id": 8, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5, 6]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "B-VALUE", "O"]} {"question_id": 13608, "db_id": "device", "dber_id": "spider:train_spider.json:5051", "question": "Count the number of devices.", "SQL": "SELECT count(*) FROM device", "tokens": ["Count", "the", "number", "of", "devices", "."], "entities": [{"id": 0, "type": "table", "value": "device"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 2266, "db_id": "bike_1", "dber_id": "spider:train_spider.json:128", "question": "How many different cities have these stations?", "SQL": "SELECT count(DISTINCT city) FROM station", "tokens": ["How", "many", "different", "cities", "have", "these", "stations", "?"], "entities": [{"id": 0, "type": "table", "value": "station"}, {"id": 1, "type": "column", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 10438, "db_id": "product_catalog", "dber_id": "spider:train_spider.json:326", "question": "Which catalog content has the smallest capacity? Return the catalog entry name.", "SQL": "SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1", "tokens": ["Which", "catalog", "content", "has", "the", "smallest", "capacity", "?", "Return", "the", "catalog", "entry", "name", "."], "entities": [{"id": 1, "type": "column", "value": "catalog_entry_name"}, {"id": 0, "type": "table", "value": "catalog_contents"}, {"id": 2, "type": "column", "value": "capacity"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1, 2]}, {"entity_id": 1, "token_idxs": [10, 11, 12]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "I-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O"]} {"question_id": 1188, "db_id": "european_football_2", "dber_id": "bird:dev.json:1097", "question": "What is Aaron Lennox's total crossing score?", "SQL": "SELECT SUM(t2.crossing) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Aaron Lennox'", "tokens": ["What", "is", "Aaron", "Lennox", "'s", "total", "crossing", "score", "?"], "entities": [{"id": 1, "type": "table", "value": "player_attributes"}, {"id": 5, "type": "column", "value": "player_api_id"}, {"id": 3, "type": "value", "value": "Aaron Lennox"}, {"id": 2, "type": "column", "value": "player_name"}, {"id": 4, "type": "column", "value": "crossing"}, {"id": 0, "type": "table", "value": "player"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6, 7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O"]} {"question_id": 5425, "db_id": "flight_1", "dber_id": "spider:train_spider.json:417", "question": "Show names for all aircraft with at least two flights.", "SQL": "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING count(*) >= 2", "tokens": ["Show", "names", "for", "all", "aircraft", "with", "at", "least", "two", "flights", "."], "entities": [{"id": 3, "type": "table", "value": "aircraft"}, {"id": 2, "type": "table", "value": "flight"}, {"id": 1, "type": "column", "value": "name"}, {"id": 0, "type": "column", "value": "aid"}, {"id": 4, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [4]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]} {"question_id": 13464, "db_id": "small_bank_1", "dber_id": "spider:train_spider.json:1781", "question": "Find the total balance across checking accounts.", "SQL": "SELECT sum(balance) FROM checking", "tokens": ["Find", "the", "total", "balance", "across", "checking", "accounts", "."], "entities": [{"id": 0, "type": "table", "value": "checking"}, {"id": 1, "type": "column", "value": "balance"}], "entity_to_token": [{"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O"]} {"question_id": 12713, "db_id": "shipping", "dber_id": "bird:train.json:5633", "question": "What is the model year of the truck used in shipment id 1003?", "SQL": "SELECT T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1003'", "tokens": ["What", "is", "the", "model", "year", "of", "the", "truck", "used", "in", "shipment", "i", "d", "1003", "?"], "entities": [{"id": 0, "type": "column", "value": "model_year"}, {"id": 2, "type": "table", "value": "shipment"}, {"id": 5, "type": "column", "value": "truck_id"}, {"id": 3, "type": "column", "value": "ship_id"}, {"id": 1, "type": "table", "value": "truck"}, {"id": 4, "type": "value", "value": "1003"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [11, 12]}, {"entity_id": 4, "token_idxs": [13]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "B-VALUE", "O"]} {"question_id": 8280, "db_id": "language_corpus", "dber_id": "bird:train.json:5795", "question": "For the biwords pair that appears \"116430\" times, what is the second word of the pair?", "SQL": "SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T2.occurrences = 116430", "tokens": ["For", "the", "biwords", "pair", "that", "appears", "\"", "116430", "\"", "times", ",", "what", "is", "the", "second", "word", "of", "the", "pair", "?"], "entities": [{"id": 3, "type": "column", "value": "occurrences"}, {"id": 2, "type": "table", "value": "biwords"}, {"id": 4, "type": "value", "value": "116430"}, {"id": 1, "type": "table", "value": "words"}, {"id": 0, "type": "column", "value": "word"}, {"id": 6, "type": "column", "value": "w2nd"}, {"id": 5, "type": "column", "value": "wid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [15]}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O"]} {"question_id": 9044, "db_id": "sports_competition", "dber_id": "spider:train_spider.json:3341", "question": "What is the average number of gold medals for clubs?", "SQL": "SELECT avg(Gold) FROM club_rank", "tokens": ["What", "is", "the", "average", "number", "of", "gold", "medals", "for", "clubs", "?"], "entities": [{"id": 0, "type": "table", "value": "club_rank"}, {"id": 1, "type": "column", "value": "gold"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 2170, "db_id": "movie_1", "dber_id": "spider:train_spider.json:2462", "question": "What is the average rating stars and title for the oldest movie?", "SQL": "SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie)", "tokens": ["What", "is", "the", "average", "rating", "stars", "and", "title", "for", "the", "oldest", "movie", "?"], "entities": [{"id": 1, "type": "table", "value": "rating"}, {"id": 0, "type": "column", "value": "title"}, {"id": 2, "type": "table", "value": "movie"}, {"id": 4, "type": "column", "value": "stars"}, {"id": 3, "type": "column", "value": "year"}, {"id": 5, "type": "column", "value": "mid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": [9, 10]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 4930, "db_id": "movie_platform", "dber_id": "bird:train.json:36", "question": "What is the average number of movies added to the lists of user 8516503? Give the user profile image URL on Mubi.", "SQL": "SELECT AVG(T1.list_movie_number), T2.user_avatar_image_url FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T2.user_id = 8516503", "tokens": ["What", "is", "the", "average", "number", "of", "movies", "added", "to", "the", "lists", "of", "user", "8516503", "?", "Give", "the", "user", "profile", "image", "URL", "on", "Mubi", "."], "entities": [{"id": 0, "type": "column", "value": "user_avatar_image_url"}, {"id": 5, "type": "column", "value": "list_movie_number"}, {"id": 2, "type": "table", "value": "lists_users"}, {"id": 3, "type": "column", "value": "user_id"}, {"id": 4, "type": "value", "value": "8516503"}, {"id": 6, "type": "column", "value": "list_id"}, {"id": 1, "type": "table", "value": "lists"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [17, 18, 19, 20]}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": [13]}, {"entity_id": 5, "token_idxs": [4, 5, 6]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O"]} {"question_id": 1307, "db_id": "local_govt_in_alabama", "dber_id": "spider:train_spider.json:2148", "question": "What is the id of the event with the most participants?", "SQL": "SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY count(*) DESC LIMIT 1", "tokens": ["What", "is", "the", "i", "d", "of", "the", "event", "with", "the", "most", "participants", "?"], "entities": [{"id": 0, "type": "table", "value": "participants_in_events"}, {"id": 1, "type": "column", "value": "event_id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [3, 4, 7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 15469, "db_id": "retail_complains", "dber_id": "bird:train.json:384", "question": "What is the percentage of complaints about the late fee issue whose priority is 2 in 2017?", "SQL": "SELECT CAST(SUM(CASE WHEN T1.priority = 2 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE strftime('%Y', T1.`Date received`) = '2017'", "tokens": ["What", "is", "the", "percentage", "of", "complaints", "about", "the", "late", "fee", "issue", "whose", "priority", "is", "2", "in", "2017", "?"], "entities": [{"id": 0, "type": "table", "value": "callcenterlogs"}, {"id": 5, "type": "column", "value": "Date received"}, {"id": 3, "type": "column", "value": "Complaint ID"}, {"id": 9, "type": "column", "value": "priority"}, {"id": 1, "type": "table", "value": "events"}, {"id": 2, "type": "value", "value": "2017"}, {"id": 6, "type": "value", "value": "100"}, {"id": 4, "type": "value", "value": "%Y"}, {"id": 7, "type": "value", "value": "0"}, {"id": 8, "type": "value", "value": "1"}, {"id": 10, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [16]}, {"entity_id": 3, "token_idxs": [5]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [8]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [12]}, {"entity_id": 10, "token_idxs": [14]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 4246, "db_id": "legislator", "dber_id": "bird:train.json:4878", "question": "List the official full names of all the legislators that served 13 district for 26 consecutive years.", "SQL": "SELECT DISTINCT CASE WHEN SUM(CAST(strftime('%Y', T2.end) AS int) - CAST(strftime('%Y', T2.start) AS int)) = 26 THEN T1.official_full_name END FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide GROUP BY T1.official_full_name, T2.district HAVING COUNT(T1.official_full_name) = 13", "tokens": ["List", "the", "official", "full", "names", "of", "all", "the", "legislators", "that", "served", "13", "district", "for", "26", "consecutive", "years", "."], "entities": [{"id": 0, "type": "column", "value": "official_full_name"}, {"id": 3, "type": "table", "value": "current-terms"}, {"id": 5, "type": "column", "value": "bioguide_id"}, {"id": 1, "type": "column", "value": "district"}, {"id": 6, "type": "column", "value": "bioguide"}, {"id": 2, "type": "table", "value": "current"}, {"id": 10, "type": "column", "value": "start"}, {"id": 9, "type": "column", "value": "end"}, {"id": 4, "type": "value", "value": "13"}, {"id": 7, "type": "value", "value": "26"}, {"id": 8, "type": "value", "value": "%Y"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3, 4]}, {"entity_id": 1, "token_idxs": [12]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [14]}, {"entity_id": 8, "token_idxs": [16]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 1832, "db_id": "soccer_2", "dber_id": "spider:train_spider.json:4980", "question": "Find the name of players whose card is yes in the descending order of training hours.", "SQL": "SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC", "tokens": ["Find", "the", "name", "of", "players", "whose", "card", "is", "yes", "in", "the", "descending", "order", "of", "training", "hours", "."], "entities": [{"id": 0, "type": "table", "value": "player"}, {"id": 1, "type": "column", "value": "pname"}, {"id": 2, "type": "column", "value": "ycard"}, {"id": 3, "type": "value", "value": "yes"}, {"id": 4, "type": "column", "value": "hs"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [15]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 4333, "db_id": "sales", "dber_id": "bird:train.json:5434", "question": "In sales with a quantity of 60, how many of them have a price not greater than 500?", "SQL": "SELECT COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T2.quantity = 60 AND T1.Price <= 500", "tokens": ["In", "sales", "with", "a", "quantity", "of", "60", ",", "how", "many", "of", "them", "have", "a", "price", "not", "greater", "than", "500", "?"], "entities": [{"id": 2, "type": "column", "value": "productid"}, {"id": 0, "type": "table", "value": "products"}, {"id": 3, "type": "column", "value": "quantity"}, {"id": 1, "type": "table", "value": "sales"}, {"id": 5, "type": "column", "value": "price"}, {"id": 6, "type": "value", "value": "500"}, {"id": 4, "type": "value", "value": "60"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [4]}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": [14]}, {"entity_id": 6, "token_idxs": [18]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 319, "db_id": "food_inspection", "dber_id": "bird:train.json:8854", "question": "List the business' name and risk category of businesses with a score greater than the 80% of average score of all businesses.", "SQL": "SELECT DISTINCT T1.name, T3.risk_category FROM businesses AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id INNER JOIN violations AS T3 ON T1.business_id = T3.business_id WHERE T2.score > 0.8 * ( SELECT AVG(score) FROM inspections )", "tokens": ["List", "the", "business", "'", "name", "and", "risk", "category", "of", "businesses", "with", "a", "score", "greater", "than", "the", "80", "%", "of", "average", "score", "of", "all", "businesses", "."], "entities": [{"id": 1, "type": "column", "value": "risk_category"}, {"id": 5, "type": "table", "value": "inspections"}, {"id": 6, "type": "column", "value": "business_id"}, {"id": 2, "type": "table", "value": "violations"}, {"id": 4, "type": "table", "value": "businesses"}, {"id": 3, "type": "column", "value": "score"}, {"id": 0, "type": "column", "value": "name"}, {"id": 7, "type": "value", "value": "0.8"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [6, 7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [20]}, {"entity_id": 4, "token_idxs": [23]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [2]}, {"entity_id": 7, "token_idxs": [16, 17]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 3750, "db_id": "institution_sports", "dber_id": "bird:test.json:1641", "question": "How many institutions are there?", "SQL": "SELECT count(*) FROM institution", "tokens": ["How", "many", "institutions", "are", "there", "?"], "entities": [{"id": 0, "type": "table", "value": "institution"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O"]} {"question_id": 4563, "db_id": "game_1", "dber_id": "spider:train_spider.json:6051", "question": "Find the first name and age of the students who are playing both Football and Lacrosse.", "SQL": "SELECT fname , age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = \"Football\" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = \"Lacrosse\")", "tokens": ["Find", "the", "first", "name", "and", "age", "of", "the", "students", "who", "are", "playing", "both", "Football", "and", "Lacrosse", "."], "entities": [{"id": 4, "type": "table", "value": "sportsinfo"}, {"id": 5, "type": "column", "value": "sportname"}, {"id": 6, "type": "column", "value": "Football"}, {"id": 7, "type": "column", "value": "Lacrosse"}, {"id": 0, "type": "table", "value": "student"}, {"id": 1, "type": "column", "value": "fname"}, {"id": 3, "type": "column", "value": "stuid"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [12]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [6]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": [14]}, {"entity_id": 11, "token_idxs": [16]}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O"]} {"question_id": 11409, "db_id": "book_press", "dber_id": "bird:test.json:1986", "question": "For each gender, return gender and the average age of authors.", "SQL": "SELECT avg(age) , gender FROM author GROUP BY gender", "tokens": ["For", "each", "gender", ",", "return", "gender", "and", "the", "average", "age", "of", "authors", "."], "entities": [{"id": 0, "type": "table", "value": "author"}, {"id": 1, "type": "column", "value": "gender"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [2, 5]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O"]} {"question_id": 1535, "db_id": "machine_repair", "dber_id": "spider:train_spider.json:2243", "question": "What is the starting year of the oldest technicians?", "SQL": "SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1", "tokens": ["What", "is", "the", "starting", "year", "of", "the", "oldest", "technicians", "?"], "entities": [{"id": 1, "type": "column", "value": "starting_year"}, {"id": 0, "type": "table", "value": "technician"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 14432, "db_id": "ice_hockey_draft", "dber_id": "bird:train.json:6980", "question": "Who is the oldest player who played for Avangard Omsk during the regular season in 2000-2001?", "SQL": "SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.GAMETYPE = 'Regular Season' AND T1.TEAM = 'Avangard Omsk' ORDER BY T2.birthdate ASC LIMIT 1", "tokens": ["Who", "is", "the", "oldest", "player", "who", "played", "for", "Avangard", "Omsk", "during", "the", "regular", "season", "in", "2000", "-", "2001", "?"], "entities": [{"id": 8, "type": "value", "value": "Regular Season"}, {"id": 10, "type": "value", "value": "Avangard Omsk"}, {"id": 1, "type": "table", "value": "seasonstatus"}, {"id": 0, "type": "column", "value": "playername"}, {"id": 2, "type": "table", "value": "playerinfo"}, {"id": 3, "type": "column", "value": "birthdate"}, {"id": 6, "type": "value", "value": "2000-2001"}, {"id": 7, "type": "column", "value": "gametype"}, {"id": 4, "type": "column", "value": "eliteid"}, {"id": 5, "type": "column", "value": "season"}, {"id": 9, "type": "column", "value": "team"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [1]}, {"entity_id": 5, "token_idxs": [13]}, {"entity_id": 6, "token_idxs": [15, 16, 17]}, {"entity_id": 7, "token_idxs": [6]}, {"entity_id": 8, "token_idxs": [12]}, {"entity_id": 9, "token_idxs": [2]}, {"entity_id": 10, "token_idxs": [8, 9]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "B-VALUE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 14456, "db_id": "books", "dber_id": "bird:train.json:6099", "question": "Provide the ISBN and price of the book with book ID 7160.", "SQL": "SELECT T1.isbn13, T2.price FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.book_id = 6503", "tokens": ["Provide", "the", "ISBN", "and", "price", "of", "the", "book", "with", "book", "ID", "7160", "."], "entities": [{"id": 3, "type": "table", "value": "order_line"}, {"id": 4, "type": "column", "value": "book_id"}, {"id": 0, "type": "column", "value": "isbn13"}, {"id": 1, "type": "column", "value": "price"}, {"id": 2, "type": "table", "value": "book"}, {"id": 5, "type": "value", "value": "6503"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [9, 10]}, {"entity_id": 5, "token_idxs": [11]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O"]} {"question_id": 15235, "db_id": "vehicle_rent", "dber_id": "bird:test.json:416", "question": "What are the names, ages, and membership credits for all customers?", "SQL": "SELECT name , age , membership_credit FROM customers", "tokens": ["What", "are", "the", "names", ",", "ages", ",", "and", "membership", "credits", "for", "all", "customers", "?"], "entities": [{"id": 3, "type": "column", "value": "membership_credit"}, {"id": 0, "type": "table", "value": "customers"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [8, 9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 10476, "db_id": "retail_world", "dber_id": "bird:train.json:6477", "question": "Give me the address, home phone and salary of the Sales Manager.", "SQL": "SELECT Address, HomePhone, Salary FROM Employees WHERE Title = 'Sales Manager'", "tokens": ["Give", "me", "the", "address", ",", "home", "phone", "and", "salary", "of", "the", "Sales", "Manager", "."], "entities": [{"id": 5, "type": "value", "value": "Sales Manager"}, {"id": 0, "type": "table", "value": "employees"}, {"id": 2, "type": "column", "value": "homephone"}, {"id": 1, "type": "column", "value": "address"}, {"id": 3, "type": "column", "value": "salary"}, {"id": 4, "type": "column", "value": "title"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5, 6]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [11, 12]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "O"]} {"question_id": 13974, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1308", "question": "Among the patients who have a normal platelet level, how many of them have other symptoms observed?", "SQL": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PLT > 100 AND T2.PLT < 400 AND T1.Diagnosis IS NOT NULL", "tokens": ["Among", "the", "patients", "who", "have", "a", "normal", "platelet", "level", ",", "how", "many", "of", "them", "have", "other", "symptoms", "observed", "?"], "entities": [{"id": 1, "type": "table", "value": "laboratory"}, {"id": 6, "type": "column", "value": "diagnosis"}, {"id": 0, "type": "table", "value": "patient"}, {"id": 3, "type": "column", "value": "plt"}, {"id": 4, "type": "value", "value": "100"}, {"id": 5, "type": "value", "value": "400"}, {"id": 2, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 1512, "db_id": "film_rank", "dber_id": "spider:train_spider.json:4148", "question": "Show the studios that have produced films with director \"Nicholas Meyer\" and \"Walter Hill\".", "SQL": "SELECT Studio FROM film WHERE Director = \"Nicholas Meyer\" INTERSECT SELECT Studio FROM film WHERE Director = \"Walter Hill\"", "tokens": ["Show", "the", "studios", "that", "have", "produced", "films", "with", "director", "\"", "Nicholas", "Meyer", "\"", "and", "\"", "Walter", "Hill", "\"", "."], "entities": [{"id": 3, "type": "column", "value": "Nicholas Meyer"}, {"id": 4, "type": "column", "value": "Walter Hill"}, {"id": 2, "type": "column", "value": "director"}, {"id": 1, "type": "column", "value": "studio"}, {"id": 0, "type": "table", "value": "film"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [10, 11]}, {"entity_id": 4, "token_idxs": [15, 16]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 9560, "db_id": "music_1", "dber_id": "spider:train_spider.json:3545", "question": "How many songs have 4 minute duration?", "SQL": "SELECT count(*) FROM files WHERE duration LIKE \"4:%\"", "tokens": ["How", "many", "songs", "have", "4", "minute", "duration", "?"], "entities": [{"id": 1, "type": "column", "value": "duration"}, {"id": 0, "type": "table", "value": "files"}, {"id": 2, "type": "column", "value": "4:%"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [4, 5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O"]} {"question_id": 13922, "db_id": "customers_and_orders", "dber_id": "bird:test.json:250", "question": "What are the names of products that have a price above the average for all products.", "SQL": "SELECT product_name FROM Products WHERE product_price > (SELECT avg(product_price) FROM Products)", "tokens": ["What", "are", "the", "names", "of", "products", "that", "have", "a", "price", "above", "the", "average", "for", "all", "products", "."], "entities": [{"id": 2, "type": "column", "value": "product_price"}, {"id": 1, "type": "column", "value": "product_name"}, {"id": 0, "type": "table", "value": "products"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [15]}, {"entity_id": 1, "token_idxs": [3, 4, 5]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 1604, "db_id": "college_1", "dber_id": "spider:train_spider.json:3233", "question": "How many courses are offered by the Computer Info. Systems department?", "SQL": "SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = \"Computer Info. Systems\"", "tokens": ["How", "many", "courses", "are", "offered", "by", "the", "Computer", "Info", ".", "Systems", "department", "?"], "entities": [{"id": 3, "type": "column", "value": "Computer Info. Systems"}, {"id": 0, "type": "table", "value": "department"}, {"id": 2, "type": "column", "value": "dept_name"}, {"id": 4, "type": "column", "value": "dept_code"}, {"id": 1, "type": "table", "value": "course"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [7, 8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O"]} {"question_id": 15031, "db_id": "retails", "dber_id": "bird:train.json:6722", "question": "What is the average price before discount of the top 10 orders with the highest total price?", "SQL": "SELECT SUM(T2.l_extendedprice) / 10 FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey ORDER BY T1.o_totalprice DESC LIMIT 10", "tokens": ["What", "is", "the", "average", "price", "before", "discount", "of", "the", "top", "10", "orders", "with", "the", "highest", "total", "price", "?"], "entities": [{"id": 6, "type": "column", "value": "l_extendedprice"}, {"id": 2, "type": "column", "value": "o_totalprice"}, {"id": 4, "type": "column", "value": "o_orderkey"}, {"id": 5, "type": "column", "value": "l_orderkey"}, {"id": 1, "type": "table", "value": "lineitem"}, {"id": 0, "type": "table", "value": "orders"}, {"id": 3, "type": "value", "value": "10"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [15, 16]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [4]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 15344, "db_id": "address", "dber_id": "bird:train.json:5126", "question": "Name both the alias and the bad alias of zip code 38015.", "SQL": "SELECT T1.alias, T2.bad_alias FROM alias AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T1.zip_code = 38015", "tokens": ["Name", "both", "the", "alias", "and", "the", "bad", "alias", "of", "zip", "code", "38015", "."], "entities": [{"id": 1, "type": "column", "value": "bad_alias"}, {"id": 4, "type": "column", "value": "zip_code"}, {"id": 0, "type": "column", "value": "alias"}, {"id": 2, "type": "table", "value": "alias"}, {"id": 3, "type": "table", "value": "avoid"}, {"id": 5, "type": "value", "value": "38015"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6, 7]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [9, 10]}, {"entity_id": 5, "token_idxs": [11]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O"]} {"question_id": 2503, "db_id": "menu", "dber_id": "bird:train.json:5473", "question": "How many menus with the name \"Waldorf Astoria\" have 4 pages?", "SQL": "SELECT COUNT(*) FROM Menu WHERE name = 'Waldorf Astoria' AND page_count = 4", "tokens": ["How", "many", "menus", "with", "the", "name", "\"", "Waldorf", "Astoria", "\"", "have", "4", "pages", "?"], "entities": [{"id": 2, "type": "value", "value": "Waldorf Astoria"}, {"id": 3, "type": "column", "value": "page_count"}, {"id": 0, "type": "table", "value": "menu"}, {"id": 1, "type": "column", "value": "name"}, {"id": 4, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [7, 8]}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 7784, "db_id": "city_record", "dber_id": "spider:train_spider.json:6293", "question": "Which cities have lower temperature in March than in Dec and have never served as host cities?", "SQL": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city", "tokens": ["Which", "cities", "have", "lower", "temperature", "in", "March", "than", "in", "Dec", "and", "have", "never", "served", "as", "host", "cities", "?"], "entities": [{"id": 5, "type": "table", "value": "hosting_city"}, {"id": 2, "type": "table", "value": "temperature"}, {"id": 7, "type": "column", "value": "host_city"}, {"id": 6, "type": "column", "value": "city_id"}, {"id": 0, "type": "column", "value": "city"}, {"id": 1, "type": "table", "value": "city"}, {"id": 3, "type": "column", "value": "mar"}, {"id": 4, "type": "column", "value": "dec"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [1]}, {"entity_id": 7, "token_idxs": [15, 16]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 10678, "db_id": "shipping", "dber_id": "bird:train.json:5615", "question": "Among the shipments for Downey, how many shipments were shipped to California in 2016?", "SQL": "SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN customer AS T3 ON T3.cust_id = T1.cust_id WHERE T2.city_name = 'Downey' AND STRFTIME('%Y', T1.ship_date) = '2016' AND T3.state = 'CA'", "tokens": ["Among", "the", "shipments", "for", "Downey", ",", "how", "many", "shipments", "were", "shipped", "to", "California", "in", "2016", "?"], "entities": [{"id": 4, "type": "column", "value": "city_name"}, {"id": 11, "type": "column", "value": "ship_date"}, {"id": 0, "type": "table", "value": "customer"}, {"id": 1, "type": "table", "value": "shipment"}, {"id": 3, "type": "column", "value": "cust_id"}, {"id": 9, "type": "column", "value": "city_id"}, {"id": 5, "type": "value", "value": "Downey"}, {"id": 7, "type": "column", "value": "state"}, {"id": 2, "type": "table", "value": "city"}, {"id": 6, "type": "value", "value": "2016"}, {"id": 8, "type": "value", "value": "CA"}, {"id": 10, "type": "value", "value": "%Y"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [4]}, {"entity_id": 6, "token_idxs": [14]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [12]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": [10]}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 9075, "db_id": "legislator", "dber_id": "bird:train.json:4753", "question": "Among the current legislators who have served for more than 6 terms, how many of them were born after 1960?", "SQL": "SELECT COUNT(CID) FROM ( SELECT T1.bioguide_id AS CID FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.birthday_bio >= '1960-01-01' GROUP BY T2.bioguide HAVING COUNT(T2.bioguide) > 6 )", "tokens": ["Among", "the", "current", "legislators", "who", "have", "served", "for", "more", "than", "6", "terms", ",", "how", "many", "of", "them", "were", "born", "after", "1960", "?"], "entities": [{"id": 4, "type": "table", "value": "current-terms"}, {"id": 5, "type": "column", "value": "birthday_bio"}, {"id": 2, "type": "column", "value": "bioguide_id"}, {"id": 6, "type": "value", "value": "1960-01-01"}, {"id": 1, "type": "column", "value": "bioguide"}, {"id": 3, "type": "table", "value": "current"}, {"id": 0, "type": "column", "value": "cid"}, {"id": 7, "type": "value", "value": "6"}], "entity_to_token": [{"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": [11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [20]}, {"entity_id": 7, "token_idxs": [10]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 1771, "db_id": "device", "dber_id": "spider:train_spider.json:5069", "question": "What are the names of device shops, and what are the carriers that they carry devices in stock for?", "SQL": "SELECT T3.Shop_Name , T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID", "tokens": ["What", "are", "the", "names", "of", "device", "shops", ",", "and", "what", "are", "the", "carriers", "that", "they", "carry", "devices", "in", "stock", "for", "?"], "entities": [{"id": 0, "type": "column", "value": "shop_name"}, {"id": 6, "type": "column", "value": "device_id"}, {"id": 1, "type": "column", "value": "carrier"}, {"id": 5, "type": "column", "value": "shop_id"}, {"id": 4, "type": "table", "value": "device"}, {"id": 3, "type": "table", "value": "stock"}, {"id": 2, "type": "table", "value": "shop"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [12]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [18]}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [16]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O"]} {"question_id": 1169, "db_id": "sales_in_weather", "dber_id": "bird:train.json:8145", "question": "What was the dew point on the day the most units of item no.5 were sold in store no.3 in 2012?", "SQL": "SELECT dewpoint FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND SUBSTR(T1.`date`, 1, 4) = '2012' AND T1.item_nbr = 5 ORDER BY units DESC LIMIT 1", "tokens": ["What", "was", "the", "dew", "point", "on", "the", "day", "the", "most", "units", "of", "item", "no.5", "were", "sold", "in", "store", "no.3", "in", "2012", "?"], "entities": [{"id": 3, "type": "table", "value": "sales_in_weather"}, {"id": 5, "type": "column", "value": "station_nbr"}, {"id": 6, "type": "column", "value": "store_nbr"}, {"id": 0, "type": "column", "value": "dewpoint"}, {"id": 4, "type": "table", "value": "relation"}, {"id": 9, "type": "column", "value": "item_nbr"}, {"id": 1, "type": "table", "value": "weather"}, {"id": 2, "type": "column", "value": "units"}, {"id": 8, "type": "value", "value": "2012"}, {"id": 11, "type": "column", "value": "date"}, {"id": 7, "type": "value", "value": "3"}, {"id": 10, "type": "value", "value": "5"}, {"id": 12, "type": "value", "value": "1"}, {"id": 13, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [17]}, {"entity_id": 7, "token_idxs": [18]}, {"entity_id": 8, "token_idxs": [20]}, {"entity_id": 9, "token_idxs": [12]}, {"entity_id": 10, "token_idxs": [13]}, {"entity_id": 11, "token_idxs": [7]}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "B-COLUMN", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 9086, "db_id": "voter_2", "dber_id": "spider:train_spider.json:5446", "question": "Find the number of voting records in total.", "SQL": "SELECT count(*) FROM VOTING_RECORD", "tokens": ["Find", "the", "number", "of", "voting", "records", "in", "total", "."], "entities": [{"id": 0, "type": "table", "value": "voting_record"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4, 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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O"]} {"question_id": 6916, "db_id": "boat_1", "dber_id": "bird:test.json:918", "question": "What are the names and ages of all sailors sorted by decreasing rating?", "SQL": "SELECT name , age FROM Sailors ORDER BY rating DESC", "tokens": ["What", "are", "the", "names", "and", "ages", "of", "all", "sailors", "sorted", "by", "decreasing", "rating", "?"], "entities": [{"id": 0, "type": "table", "value": "sailors"}, {"id": 3, "type": "column", "value": "rating"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 10370, "db_id": "document_management", "dber_id": "spider:train_spider.json:4518", "question": "Give the section titles of the document with the name \"David CV\".", "SQL": "SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = \"David CV\"", "tokens": ["Give", "the", "section", "titles", "of", "the", "document", "with", "the", "name", "\"", "David", "CV", "\"", "."], "entities": [{"id": 2, "type": "table", "value": "document_sections"}, {"id": 0, "type": "column", "value": "section_title"}, {"id": 3, "type": "column", "value": "document_name"}, {"id": 5, "type": "column", "value": "document_code"}, {"id": 1, "type": "table", "value": "documents"}, {"id": 4, "type": "column", "value": "David CV"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [11, 12]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 10021, "db_id": "county_public_safety", "dber_id": "spider:train_spider.json:2549", "question": "What are the names of the five cities with the greatest proportion of white people?", "SQL": "SELECT Name FROM city ORDER BY White DESC LIMIT 5", "tokens": ["What", "are", "the", "names", "of", "the", "five", "cities", "with", "the", "greatest", "proportion", "of", "white", "people", "?"], "entities": [{"id": 2, "type": "column", "value": "white"}, {"id": 0, "type": "table", "value": "city"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O"]} {"question_id": 12247, "db_id": "world_development_indicators", "dber_id": "bird:train.json:2217", "question": "What is the indicator code for Mobile Cellular Subscriptions of Brazil?", "SQL": "SELECT DISTINCT IndicatorCode FROM Indicators WHERE CountryName = 'Brazil' AND IndicatorName = 'Mobile cellular subscriptions'", "tokens": ["What", "is", "the", "indicator", "code", "for", "Mobile", "Cellular", "Subscriptions", "of", "Brazil", "?"], "entities": [{"id": 5, "type": "value", "value": "Mobile cellular subscriptions"}, {"id": 1, "type": "column", "value": "indicatorcode"}, {"id": 4, "type": "column", "value": "indicatorname"}, {"id": 2, "type": "column", "value": "countryname"}, {"id": 0, "type": "table", "value": "indicators"}, {"id": 3, "type": "value", "value": "Brazil"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [6, 7, 8]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "B-VALUE", "O"]} {"question_id": 4844, "db_id": "art_1", "dber_id": "bird:test.json:1226", "question": "How many paintings are exhibited at gallery 240?", "SQL": "SELECT count(*) FROM paintings WHERE LOCATION = \"Gallery 240\"", "tokens": ["How", "many", "paintings", "are", "exhibited", "at", "gallery", "240", "?"], "entities": [{"id": 2, "type": "column", "value": "Gallery 240"}, {"id": 0, "type": "table", "value": "paintings"}, {"id": 1, "type": "column", "value": "location"}], "entity_to_token": [{"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, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 3143, "db_id": "driving_school", "dber_id": "spider:train_spider.json:6648", "question": "What is the zip code of staff with first name as Janessa and last name as Sawayn lived?", "SQL": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";", "tokens": ["What", "is", "the", "zip", "code", "of", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "lived", "?"], "entities": [{"id": 4, "type": "column", "value": "staff_address_id"}, {"id": 0, "type": "column", "value": "zip_postcode"}, {"id": 3, "type": "column", "value": "address_id"}, {"id": 5, "type": "column", "value": "first_name"}, {"id": 1, "type": "table", "value": "addresses"}, {"id": 7, "type": "column", "value": "last_name"}, {"id": 6, "type": "column", "value": "Janessa"}, {"id": 8, "type": "column", "value": "Sawayn"}, {"id": 2, "type": "table", "value": "staff"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"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": [8, 9]}, {"entity_id": 6, "token_idxs": [11]}, {"entity_id": 7, "token_idxs": [13, 14]}, {"entity_id": 8, "token_idxs": [16]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O"]} {"question_id": 12149, "db_id": "works_cycles", "dber_id": "bird:train.json:7212", "question": "List all of the credit cards that had expired by 2007.", "SQL": "SELECT CardNumber FROM CreditCard WHERE ExpYear < 2007", "tokens": ["List", "all", "of", "the", "credit", "cards", "that", "had", "expired", "by", "2007", "."], "entities": [{"id": 0, "type": "table", "value": "creditcard"}, {"id": 1, "type": "column", "value": "cardnumber"}, {"id": 2, "type": "column", "value": "expyear"}, {"id": 3, "type": "value", "value": "2007"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-VALUE", "O"]} {"question_id": 6381, "db_id": "chinook_1", "dber_id": "spider:train_spider.json:886", "question": "Find the distinct unit prices for tracks.", "SQL": "SELECT distinct(UnitPrice) FROM TRACK", "tokens": ["Find", "the", "distinct", "unit", "prices", "for", "tracks", "."], "entities": [{"id": 1, "type": "column", "value": "unitprice"}, {"id": 0, "type": "table", "value": "track"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O"]} {"question_id": 12239, "db_id": "music_1", "dber_id": "spider:train_spider.json:3562", "question": "How many artists are male and how many are female?", "SQL": "SELECT count(*) , gender FROM artist GROUP BY gender", "tokens": ["How", "many", "artists", "are", "male", "and", "how", "many", "are", "female", "?"], "entities": [{"id": 0, "type": "table", "value": "artist"}, {"id": 1, "type": "column", "value": "gender"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 1122, "db_id": "art_1", "dber_id": "bird:test.json:1284", "question": "What are the average height and width of paintings that are oil medium in the place of gallery 241?", "SQL": "SELECT avg(height_mm) , avg(width_mm) FROM paintings WHERE medium = \"oil\" AND LOCATION = \"Gallery 241\"", "tokens": ["What", "are", "the", "average", "height", "and", "width", "of", "paintings", "that", "are", "oil", "medium", "in", "the", "place", "of", "gallery", "241", "?"], "entities": [{"id": 6, "type": "column", "value": "Gallery 241"}, {"id": 0, "type": "table", "value": "paintings"}, {"id": 1, "type": "column", "value": "height_mm"}, {"id": 2, "type": "column", "value": "width_mm"}, {"id": 5, "type": "column", "value": "location"}, {"id": 3, "type": "column", "value": "medium"}, {"id": 4, "type": "column", "value": "oil"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"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, "token_idxs": [4]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 12036, "db_id": "wine_1", "dber_id": "spider:train_spider.json:6590", "question": "What are the grapes, wineries and years for wines with price higher than 100, sorted by year?", "SQL": "SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR", "tokens": ["What", "are", "the", "grapes", ",", "wineries", "and", "years", "for", "wines", "with", "price", "higher", "than", "100", ",", "sorted", "by", "year", "?"], "entities": [{"id": 2, "type": "column", "value": "winery"}, {"id": 1, "type": "column", "value": "grape"}, {"id": 4, "type": "column", "value": "price"}, {"id": 0, "type": "table", "value": "wine"}, {"id": 3, "type": "column", "value": "year"}, {"id": 5, "type": "value", "value": "100"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [18]}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": [14]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 12799, "db_id": "synthea", "dber_id": "bird:train.json:1538", "question": "Calculate the average age of the male patients that have hypertension.", "SQL": "SELECT SUM(CASE WHEN T2.deathdate IS NULL THEN ROUND((strftime('%J', date('now')) - strftime('%J', T2.birthdate)) / 365) ELSE ROUND((strftime('%J', T2.deathdate) - strftime('%J', T2.birthdate)) / 365) END) / COUNT(T2.patient) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Hypertension' AND T2.gender = 'M'", "tokens": ["Calculate", "the", "average", "age", "of", "the", "male", "patients", "that", "have", "hypertension", "."], "entities": [{"id": 4, "type": "value", "value": "Hypertension"}, {"id": 3, "type": "column", "value": "description"}, {"id": 0, "type": "table", "value": "conditions"}, {"id": 7, "type": "column", "value": "deathdate"}, {"id": 10, "type": "column", "value": "birthdate"}, {"id": 1, "type": "table", "value": "patients"}, {"id": 2, "type": "column", "value": "patient"}, {"id": 5, "type": "column", "value": "gender"}, {"id": 8, "type": "value", "value": "365"}, {"id": 11, "type": "value", "value": "now"}, {"id": 9, "type": "value", "value": "%J"}, {"id": 6, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [6]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O", "O", "B-VALUE", "O"]} {"question_id": 10195, "db_id": "computer_student", "dber_id": "bird:train.json:1033", "question": "What is the total of professional courses available at the university? List out all the course id.", "SQL": "SELECT COUNT(course_id) FROM course WHERE courseLevel = 'Level_500'", "tokens": ["What", "is", "the", "total", "of", "professional", "courses", "available", "at", "the", "university", "?", "List", "out", "all", "the", "course", "i", "d."], "entities": [{"id": 1, "type": "column", "value": "courselevel"}, {"id": 2, "type": "value", "value": "Level_500"}, {"id": 3, "type": "column", "value": "course_id"}, {"id": 0, "type": "table", "value": "course"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [16]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [17, 18]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN"]} {"question_id": 3728, "db_id": "student_loan", "dber_id": "bird:train.json:4486", "question": "Among all students, calculate the percentage of disabled students.", "SQL": "SELECT CAST(COUNT(T2.name) AS REAL) * 100 / COUNT(T1.name) FROM person AS T1 LEFT JOIN disabled AS T2 ON T2.name = T1.name", "tokens": ["Among", "all", "students", ",", "calculate", "the", "percentage", "of", "disabled", "students", "."], "entities": [{"id": 1, "type": "table", "value": "disabled"}, {"id": 0, "type": "table", "value": "person"}, {"id": 2, "type": "column", "value": "name"}, {"id": 3, "type": "value", "value": "100"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O"]} {"question_id": 11023, "db_id": "financial", "dber_id": "bird:dev.json:161", "question": "What type of credit card does the client with the id 13539 own?", "SQL": "SELECT T3.type FROM disp AS T1 INNER JOIN client AS T2 ON T1.client_id = T2.client_id INNER JOIN card AS T3 ON T1.disp_id = T3.disp_id WHERE T2.client_id = 13539", "tokens": ["What", "type", "of", "credit", "card", "does", "the", "client", "with", "the", "i", "d", "13539", "own", "?"], "entities": [{"id": 2, "type": "column", "value": "client_id"}, {"id": 6, "type": "column", "value": "disp_id"}, {"id": 5, "type": "table", "value": "client"}, {"id": 3, "type": "value", "value": "13539"}, {"id": 0, "type": "column", "value": "type"}, {"id": 1, "type": "table", "value": "card"}, {"id": 4, "type": "table", "value": "disp"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [7]}, {"entity_id": 6, "token_idxs": [10, 11]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O"]} {"question_id": 6678, "db_id": "soccer_2", "dber_id": "spider:train_spider.json:4964", "question": "How many students whose are playing the role of goalie?", "SQL": "SELECT count(*) FROM tryout WHERE pPos = 'goalie'", "tokens": ["How", "many", "students", "whose", "are", "playing", "the", "role", "of", "goalie", "?"], "entities": [{"id": 0, "type": "table", "value": "tryout"}, {"id": 2, "type": "value", "value": "goalie"}, {"id": 1, "type": "column", "value": "ppos"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 8375, "db_id": "book_press", "dber_id": "bird:test.json:1989", "question": "List all book titles in the order of their release date from the most recent to the past.", "SQL": "SELECT title FROM book ORDER BY release_date DESC", "tokens": ["List", "all", "book", "titles", "in", "the", "order", "of", "their", "release", "date", "from", "the", "most", "recent", "to", "the", "past", "."], "entities": [{"id": 2, "type": "column", "value": "release_date"}, {"id": 1, "type": "column", "value": "title"}, {"id": 0, "type": "table", "value": "book"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [9, 10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 3613, "db_id": "hockey", "dber_id": "bird:train.json:7696", "question": "In the history of team id NJD, which goalie saved the most goal attempts? Give his full name.", "SQL": "SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'NJD' GROUP BY T2.playerID ORDER BY SUM(T2.SA - T2.GA) DESC LIMIT 1", "tokens": ["In", "the", "history", "of", "team", "i", "d", "NJD", ",", "which", "goalie", "saved", "the", "most", "goal", "attempts", "?", "Give", "his", "full", "name", "."], "entities": [{"id": 1, "type": "column", "value": "firstname"}, {"id": 0, "type": "column", "value": "playerid"}, {"id": 2, "type": "column", "value": "lastname"}, {"id": 4, "type": "table", "value": "goalies"}, {"id": 3, "type": "table", "value": "master"}, {"id": 5, "type": "column", "value": "tmid"}, {"id": 6, "type": "value", "value": "NJD"}, {"id": 7, "type": "column", "value": "sa"}, {"id": 8, "type": "column", "value": "ga"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [20]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [10]}, {"entity_id": 5, "token_idxs": [5, 6]}, {"entity_id": 6, "token_idxs": [7]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [14, 15]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 9446, "db_id": "club_1", "dber_id": "spider:train_spider.json:4294", "question": "What are the first and last name of the president of the club \"Bootup Baltimore\"?", "SQL": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t2.position = \"President\"", "tokens": ["What", "are", "the", "first", "and", "last", "name", "of", "the", "president", "of", "the", "club", "\"", "Bootup", "Baltimore", "\"", "?"], "entities": [{"id": 7, "type": "column", "value": "Bootup Baltimore"}, {"id": 4, "type": "table", "value": "member_of_club"}, {"id": 9, "type": "column", "value": "President"}, {"id": 6, "type": "column", "value": "clubname"}, {"id": 8, "type": "column", "value": "position"}, {"id": 2, "type": "table", "value": "student"}, {"id": 10, "type": "column", "value": "clubid"}, {"id": 0, "type": "column", "value": "fname"}, {"id": 1, "type": "column", "value": "lname"}, {"id": 5, "type": "column", "value": "stuid"}, {"id": 3, "type": "table", "value": "club"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [14, 15]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [9]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 6216, "db_id": "movie", "dber_id": "bird:train.json:760", "question": "In rated PG movies, how many of them released in June 1990?", "SQL": "SELECT COUNT(*) FROM movie WHERE `MPAA Rating` = 'PG' AND `Release Date` LIKE '1990-06%'", "tokens": ["In", "rated", "PG", "movies", ",", "how", "many", "of", "them", "released", "in", "June", "1990", "?"], "entities": [{"id": 3, "type": "column", "value": "Release Date"}, {"id": 1, "type": "column", "value": "MPAA Rating"}, {"id": 4, "type": "value", "value": "1990-06%"}, {"id": 0, "type": "table", "value": "movie"}, {"id": 2, "type": "value", "value": "PG"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": [11, 12]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O"]} {"question_id": 2085, "db_id": "district_spokesman", "dber_id": "bird:test.json:1181", "question": "Find the names and populations of the districts whose area is greater than the average area.", "SQL": "SELECT name , population FROM district WHERE area_km > (SELECT avg(area_km) FROM district)", "tokens": ["Find", "the", "names", "and", "populations", "of", "the", "districts", "whose", "area", "is", "greater", "than", "the", "average", "area", "."], "entities": [{"id": 2, "type": "column", "value": "population"}, {"id": 0, "type": "table", "value": "district"}, {"id": 3, "type": "column", "value": "area_km"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [9, 15]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 7611, "db_id": "movielens", "dber_id": "bird:train.json:2269", "question": "What is the ID of actors that acted in the movies most viewed by audience with occupation 5?", "SQL": "SELECT T3.actorid FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid INNER JOIN movies2actors AS T3 ON T2.movieid = T3.movieid WHERE T1.occupation = 5 GROUP BY T2.movieid ORDER BY COUNT(T1.userid) DESC LIMIT 1", "tokens": ["What", "is", "the", "ID", "of", "actors", "that", "acted", "in", "the", "movies", "most", "viewed", "by", "audience", "with", "occupation", "5", "?"], "entities": [{"id": 2, "type": "table", "value": "movies2actors"}, {"id": 3, "type": "column", "value": "occupation"}, {"id": 0, "type": "column", "value": "movieid"}, {"id": 1, "type": "column", "value": "actorid"}, {"id": 6, "type": "table", "value": "u2base"}, {"id": 7, "type": "column", "value": "userid"}, {"id": 5, "type": "table", "value": "users"}, {"id": 4, "type": "value", "value": "5"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [16]}, {"entity_id": 4, "token_idxs": [17]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [3]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 12135, "db_id": "movielens", "dber_id": "bird:train.json:2259", "question": "List the id of male users who gave ratings of less than 3 to French movies with running time of 2.", "SQL": "SELECT T1.userid FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid INNER JOIN users AS T3 ON T1.userid = T3.userid WHERE T2.country = 'France' AND T2.runningtime = 2 AND T1.rating < 3 AND T3.u_gender = 'M'", "tokens": ["List", "the", "i", "d", "of", "male", "users", "who", "gave", "ratings", "of", "less", "than", "3", "to", "French", "movies", "with", "running", "time", "of", "2", "."], "entities": [{"id": 6, "type": "column", "value": "runningtime"}, {"id": 10, "type": "column", "value": "u_gender"}, {"id": 4, "type": "column", "value": "country"}, {"id": 12, "type": "column", "value": "movieid"}, {"id": 0, "type": "column", "value": "userid"}, {"id": 2, "type": "table", "value": "u2base"}, {"id": 3, "type": "table", "value": "movies"}, {"id": 5, "type": "value", "value": "France"}, {"id": 8, "type": "column", "value": "rating"}, {"id": 1, "type": "table", "value": "users"}, {"id": 7, "type": "value", "value": "2"}, {"id": 9, "type": "value", "value": "3"}, {"id": 11, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [16]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [15]}, {"entity_id": 6, "token_idxs": [18, 19]}, {"entity_id": 7, "token_idxs": [21]}, {"entity_id": 8, "token_idxs": [9]}, {"entity_id": 9, "token_idxs": [13]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": [5]}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O"]} {"question_id": 7239, "db_id": "movielens", "dber_id": "bird:train.json:2268", "question": "What is the favourite movie genre for audiences of age 18?", "SQL": "SELECT T1.genre FROM movies2directors AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid INNER JOIN users AS T3 ON T2.userid = T3.userid WHERE T3.age = 18 GROUP BY T1.genre ORDER BY COUNT(T1.movieid) DESC LIMIT 1", "tokens": ["What", "is", "the", "favourite", "movie", "genre", "for", "audiences", "of", "age", "18", "?"], "entities": [{"id": 4, "type": "table", "value": "movies2directors"}, {"id": 7, "type": "column", "value": "movieid"}, {"id": 5, "type": "table", "value": "u2base"}, {"id": 6, "type": "column", "value": "userid"}, {"id": 0, "type": "column", "value": "genre"}, {"id": 1, "type": "table", "value": "users"}, {"id": 2, "type": "column", "value": "age"}, {"id": 3, "type": "value", "value": "18"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [4]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 9295, "db_id": "movie_platform", "dber_id": "bird:train.json:69", "question": "Which user made a critic for the film \"When Will I Be Loved\" and got 2 comments for the critic?", "SQL": "SELECT T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.critic_comments = 2", "tokens": ["Which", "user", "made", "a", "critic", "for", "the", "film", "\"", "When", "Will", "I", "Be", "Loved", "\"", "and", "got", "2", "comments", "for", "the", "critic", "?"], "entities": [{"id": 5, "type": "value", "value": "When Will I Be Loved"}, {"id": 6, "type": "column", "value": "critic_comments"}, {"id": 4, "type": "column", "value": "movie_title"}, {"id": 3, "type": "column", "value": "movie_id"}, {"id": 0, "type": "column", "value": "user_id"}, {"id": 1, "type": "table", "value": "ratings"}, {"id": 2, "type": "table", "value": "movies"}, {"id": 7, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [9, 10, 11, 12, 13]}, {"entity_id": 6, "token_idxs": [4, 18, 21]}, {"entity_id": 7, "token_idxs": [17]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "B-COLUMN", "O"]} {"question_id": 11263, "db_id": "document_management", "dber_id": "spider:train_spider.json:4521", "question": "List all the username and passwords of users with the most popular role.", "SQL": "SELECT user_name , password FROM users GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", "tokens": ["List", "all", "the", "username", "and", "passwords", "of", "users", "with", "the", "most", "popular", "role", "."], "entities": [{"id": 1, "type": "column", "value": "role_code"}, {"id": 2, "type": "column", "value": "user_name"}, {"id": 3, "type": "column", "value": "password"}, {"id": 0, "type": "table", "value": "users"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [12]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": [5]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 10575, "db_id": "restaurant", "dber_id": "bird:train.json:1725", "question": "How many restaurants are on Irving Street?", "SQL": "SELECT COUNT(id_restaurant) FROM location WHERE street_name = 'irving'", "tokens": ["How", "many", "restaurants", "are", "on", "Irving", "Street", "?"], "entities": [{"id": 3, "type": "column", "value": "id_restaurant"}, {"id": 1, "type": "column", "value": "street_name"}, {"id": 0, "type": "table", "value": "location"}, {"id": 2, "type": "value", "value": "irving"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-VALUE", "O", "O", "O", "O"]} {"question_id": 444, "db_id": "local_govt_in_alabama", "dber_id": "spider:train_spider.json:2150", "question": "Which services type had both successful and failure event details?", "SQL": "SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail'", "tokens": ["Which", "services", "type", "had", "both", "successful", "and", "failure", "event", "details", "?"], "entities": [{"id": 0, "type": "column", "value": "service_type_code"}, {"id": 3, "type": "column", "value": "event_details"}, {"id": 6, "type": "column", "value": "service_id"}, {"id": 1, "type": "table", "value": "services"}, {"id": 4, "type": "value", "value": "Success"}, {"id": 2, "type": "table", "value": "events"}, {"id": 5, "type": "value", "value": "Fail"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": [7]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "O", "B-VALUE", "B-TABLE", "B-COLUMN", "O"]} {"question_id": 12346, "db_id": "college_3", "dber_id": "spider:train_spider.json:4655", "question": "Find the rooms of faculties with rank professor who live in building NEB.", "SQL": "SELECT Room FROM FACULTY WHERE Rank = \"Professor\" AND Building = \"NEB\"", "tokens": ["Find", "the", "rooms", "of", "faculties", "with", "rank", "professor", "who", "live", "in", "building", "NEB", "."], "entities": [{"id": 3, "type": "column", "value": "Professor"}, {"id": 4, "type": "column", "value": "building"}, {"id": 0, "type": "table", "value": "faculty"}, {"id": 1, "type": "column", "value": "room"}, {"id": 2, "type": "column", "value": "rank"}, {"id": 5, "type": "column", "value": "NEB"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": [12]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O"]} {"question_id": 6658, "db_id": "student_loan", "dber_id": "bird:train.json:4392", "question": "List all students in the air force and which school they were enrolled at.", "SQL": "SELECT T1.name, T1.school FROM enrolled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'air_force'", "tokens": ["List", "all", "students", "in", "the", "air", "force", "and", "which", "school", "they", "were", "enrolled", "at", "."], "entities": [{"id": 5, "type": "value", "value": "air_force"}, {"id": 2, "type": "table", "value": "enrolled"}, {"id": 1, "type": "column", "value": "school"}, {"id": 3, "type": "table", "value": "enlist"}, {"id": 4, "type": "column", "value": "organ"}, {"id": 0, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [5, 6]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O"]} {"question_id": 2045, "db_id": "car_retails", "dber_id": "bird:train.json:1668", "question": "How many countries from the USA have an In Process order status?", "SQL": "SELECT COUNT(t2.orderNumber) FROM customers AS t1 INNER JOIN orders AS t2 ON t1.customerNumber = t2.customerNumber WHERE t2.status = 'On Hold' AND t1.country = 'USA'", "tokens": ["How", "many", "countries", "from", "the", "USA", "have", "an", "In", "Process", "order", "status", "?"], "entities": [{"id": 3, "type": "column", "value": "customernumber"}, {"id": 2, "type": "column", "value": "ordernumber"}, {"id": 0, "type": "table", "value": "customers"}, {"id": 5, "type": "value", "value": "On Hold"}, {"id": 6, "type": "column", "value": "country"}, {"id": 1, "type": "table", "value": "orders"}, {"id": 4, "type": "column", "value": "status"}, {"id": 7, "type": "value", "value": "USA"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [2]}, {"entity_id": 7, "token_idxs": [5]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O"]} {"question_id": 12279, "db_id": "movie_platform", "dber_id": "bird:train.json:67", "question": "Please list all the critics made by the user rating the movie \"A Way of Life\".", "SQL": "SELECT T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life'", "tokens": ["Please", "list", "all", "the", "critics", "made", "by", "the", "user", "rating", "the", "movie", "\"", "A", "Way", "of", "Life", "\"", "."], "entities": [{"id": 4, "type": "value", "value": "A Way of Life"}, {"id": 3, "type": "column", "value": "movie_title"}, {"id": 5, "type": "column", "value": "movie_id"}, {"id": 1, "type": "table", "value": "ratings"}, {"id": 0, "type": "column", "value": "critic"}, {"id": 2, "type": "table", "value": "movies"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [13, 14, 15, 16]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O"]} {"question_id": 15974, "db_id": "tracking_orders", "dber_id": "spider:train_spider.json:6906", "question": "Which customers made orders between 2009-01-01 and 2010-01-01? Find their names.", "SQL": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= \"2009-01-01\" AND T2.date_order_placed <= \"2010-01-01\"", "tokens": ["Which", "customers", "made", "orders", "between", "2009", "-", "01", "-", "01", "and", "2010", "-", "01", "-", "01", "?", "Find", "their", "names", "."], "entities": [{"id": 4, "type": "column", "value": "date_order_placed"}, {"id": 0, "type": "column", "value": "customer_name"}, {"id": 3, "type": "column", "value": "customer_id"}, {"id": 5, "type": "column", "value": "2009-01-01"}, {"id": 6, "type": "column", "value": "2010-01-01"}, {"id": 1, "type": "table", "value": "customers"}, {"id": 2, "type": "table", "value": "orders"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [5, 6, 7, 8, 9]}, {"entity_id": 6, "token_idxs": [11, 12, 13, 14, 15]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "B-COLUMN", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 6311, "db_id": "public_review_platform", "dber_id": "bird:train.json:3873", "question": "Among the users who have posted more than 10 reviews, how many users are elite users?", "SQL": "SELECT COUNT(T4.user_id) FROM ( SELECT T1.user_id FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id INNER JOIN Reviews AS T3 ON T1.user_id = T3.user_id WHERE T3.user_id IS NOT NULL GROUP BY T3.user_id HAVING COUNT(T3.user_id) > 10 ) T4", "tokens": ["Among", "the", "users", "who", "have", "posted", "more", "than", "10", "reviews", ",", "how", "many", "users", "are", "elite", "users", "?"], "entities": [{"id": 0, "type": "column", "value": "user_id"}, {"id": 1, "type": "table", "value": "reviews"}, {"id": 3, "type": "table", "value": "users"}, {"id": 4, "type": "table", "value": "elite"}, {"id": 2, "type": "value", "value": "10"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [16]}, {"entity_id": 4, "token_idxs": [15]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "B-TABLE", "O"]} {"question_id": 6547, "db_id": "address", "dber_id": "bird:train.json:5108", "question": "What are the top 3 states with the highest Asian population? List the full names of all the representatives in the said states.", "SQL": "SELECT t.state, T1.first_name, T1.last_name FROM zip_data AS T INNER JOIN congress AS T1 ON t.state = T1.abbreviation GROUP BY t.state ORDER BY SUM(t.asian_population) DESC LIMIT 3", "tokens": ["What", "are", "the", "top", "3", "states", "with", "the", "highest", "Asian", "population", "?", "List", "the", "full", "names", "of", "all", "the", "representatives", "in", "the", "said", "states", "."], "entities": [{"id": 6, "type": "column", "value": "asian_population"}, {"id": 5, "type": "column", "value": "abbreviation"}, {"id": 1, "type": "column", "value": "first_name"}, {"id": 2, "type": "column", "value": "last_name"}, {"id": 3, "type": "table", "value": "zip_data"}, {"id": 4, "type": "table", "value": "congress"}, {"id": 0, "type": "column", "value": "state"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [23]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [15]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [9, 10]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 14859, "db_id": "race_track", "dber_id": "spider:train_spider.json:751", "question": "Show names and seatings, ordered by seating for all tracks opened after 2000.", "SQL": "SELECT name , seating FROM track WHERE year_opened > 2000 ORDER BY seating", "tokens": ["Show", "names", "and", "seatings", ",", "ordered", "by", "seating", "for", "all", "tracks", "opened", "after", "2000", "."], "entities": [{"id": 3, "type": "column", "value": "year_opened"}, {"id": 2, "type": "column", "value": "seating"}, {"id": 0, "type": "table", "value": "track"}, {"id": 1, "type": "column", "value": "name"}, {"id": 4, "type": "value", "value": "2000"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": [13]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O"]} {"question_id": 14289, "db_id": "authors", "dber_id": "bird:train.json:3654", "question": "What is the proportion of the papers that have the keyword \"cancer\"? Please provide a list of authors and their affiliations.", "SQL": "SELECT CAST(SUM(CASE WHEN T1.Keyword = 'cancer' THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.Id), T2.Name, T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId", "tokens": ["What", "is", "the", "proportion", "of", "the", "papers", "that", "have", "the", "keyword", "\"", "cancer", "\"", "?", "Please", "provide", "a", "list", "of", "authors", "and", "their", "affiliations", "."], "entities": [{"id": 1, "type": "column", "value": "affiliation"}, {"id": 3, "type": "table", "value": "paperauthor"}, {"id": 5, "type": "column", "value": "paperid"}, {"id": 8, "type": "column", "value": "keyword"}, {"id": 9, "type": "value", "value": "cancer"}, {"id": 2, "type": "table", "value": "paper"}, {"id": 0, "type": "column", "value": "name"}, {"id": 4, "type": "column", "value": "id"}, {"id": 6, "type": "value", "value": "0"}, {"id": 7, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [23]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [20]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [10]}, {"entity_id": 9, "token_idxs": [12]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O"]} {"question_id": 4040, "db_id": "activity_1", "dber_id": "spider:train_spider.json:6759", "question": "What are the first and last name of the faculty who has the most students?", "SQL": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", "tokens": ["What", "are", "the", "first", "and", "last", "name", "of", "the", "faculty", "who", "has", "the", "most", "students", "?"], "entities": [{"id": 3, "type": "table", "value": "faculty"}, {"id": 4, "type": "table", "value": "student"}, {"id": 5, "type": "column", "value": "advisor"}, {"id": 0, "type": "column", "value": "facid"}, {"id": 1, "type": "column", "value": "fname"}, {"id": 2, "type": "column", "value": "lname"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5, 6]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": [14]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 8751, "db_id": "book_1", "dber_id": "bird:test.json:522", "question": "Count the number of books.", "SQL": "SELECT count(*) FROM Book", "tokens": ["Count", "the", "number", "of", "books", "."], "entities": [{"id": 0, "type": "table", "value": "book"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 15682, "db_id": "book_1", "dber_id": "bird:test.json:563", "question": "What is the maximum difference between the sale price and purchase price?", "SQL": "SELECT max(saleprice - purchaseprice) FROM Book", "tokens": ["What", "is", "the", "maximum", "difference", "between", "the", "sale", "price", "and", "purchase", "price", "?"], "entities": [{"id": 2, "type": "column", "value": "purchaseprice"}, {"id": 1, "type": "column", "value": "saleprice"}, {"id": 0, "type": "table", "value": "book"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7, 8]}, {"entity_id": 2, "token_idxs": [10, 11]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 12057, "db_id": "sales", "dber_id": "bird:train.json:5457", "question": "How many chainring bolts were sold under sales ID 551971?", "SQL": "SELECT T1.Quantity FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Chainring Bolts' AND T1.SalesID = 551971", "tokens": ["How", "many", "chainring", "bolts", "were", "sold", "under", "sales", "ID", "551971", "?"], "entities": [{"id": 5, "type": "value", "value": "Chainring Bolts"}, {"id": 3, "type": "column", "value": "productid"}, {"id": 0, "type": "column", "value": "quantity"}, {"id": 2, "type": "table", "value": "products"}, {"id": 6, "type": "column", "value": "salesid"}, {"id": 7, "type": "value", "value": "551971"}, {"id": 1, "type": "table", "value": "sales"}, {"id": 4, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [2, 3]}, {"entity_id": 6, "token_idxs": [8]}, {"entity_id": 7, "token_idxs": [9]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 4554, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1218", "question": "What is the percentage of the female patient whose uric acid (UA) beyond the normal range?", "SQL": "SELECT CAST(SUM(CASE WHEN T2.UA > 6.5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.SEX = 'F'", "tokens": ["What", "is", "the", "percentage", "of", "the", "female", "patient", "whose", "uric", "acid", "(", "UA", ")", "beyond", "the", "normal", "range", "?"], "entities": [{"id": 1, "type": "table", "value": "laboratory"}, {"id": 0, "type": "table", "value": "patient"}, {"id": 2, "type": "column", "value": "sex"}, {"id": 5, "type": "value", "value": "100"}, {"id": 9, "type": "value", "value": "6.5"}, {"id": 4, "type": "column", "value": "id"}, {"id": 8, "type": "column", "value": "ua"}, {"id": 3, "type": "value", "value": "F"}, {"id": 6, "type": "value", "value": "0"}, {"id": 7, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [9, 10, 11, 12, 13]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 4669, "db_id": "device", "dber_id": "spider:train_spider.json:5063", "question": "Count the number of different software platforms.", "SQL": "SELECT count(DISTINCT Software_Platform) FROM device", "tokens": ["Count", "the", "number", "of", "different", "software", "platforms", "."], "entities": [{"id": 1, "type": "column", "value": "software_platform"}, {"id": 0, "type": "table", "value": "device"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 15265, "db_id": "retail_world", "dber_id": "bird:train.json:6469", "question": "Calculate the total products that are supplied by Japan suppliers.", "SQL": "SELECT COUNT(T1.SupplierID) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.Country = 'Japan'", "tokens": ["Calculate", "the", "total", "products", "that", "are", "supplied", "by", "Japan", "suppliers", "."], "entities": [{"id": 4, "type": "column", "value": "supplierid"}, {"id": 1, "type": "table", "value": "suppliers"}, {"id": 0, "type": "table", "value": "products"}, {"id": 2, "type": "column", "value": "country"}, {"id": 3, "type": "value", "value": "Japan"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "B-TABLE", "O"]} {"question_id": 9292, "db_id": "dorm_1", "dber_id": "spider:train_spider.json:5714", "question": "Find the first and last name of students whose age is younger than the average age.", "SQL": "SELECT fname , lname FROM student WHERE age < (SELECT avg(age) FROM student)", "tokens": ["Find", "the", "first", "and", "last", "name", "of", "students", "whose", "age", "is", "younger", "than", "the", "average", "age", "."], "entities": [{"id": 0, "type": "table", "value": "student"}, {"id": 1, "type": "column", "value": "fname"}, {"id": 2, "type": "column", "value": "lname"}, {"id": 3, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [4, 5]}, {"entity_id": 3, "token_idxs": [9, 15]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 4681, "db_id": "codebase_comments", "dber_id": "bird:train.json:573", "question": "How much is the processed time of downloading the most popular repository?", "SQL": "SELECT ProcessedTime FROM Repo WHERE Watchers = ( SELECT MAX(Watchers) FROM Repo )", "tokens": ["How", "much", "is", "the", "processed", "time", "of", "downloading", "the", "most", "popular", "repository", "?"], "entities": [{"id": 1, "type": "column", "value": "processedtime"}, {"id": 2, "type": "column", "value": "watchers"}, {"id": 0, "type": "table", "value": "repo"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"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, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 13982, "db_id": "shooting", "dber_id": "bird:train.json:2461", "question": "Among all the male officers, what is the percentage of them are White?", "SQL": "SELECT CAST(SUM(IIF(race = 'W', 1, 0)) AS REAL) * 100 / COUNT(case_number) FROM officers WHERE gender = 'M'", "tokens": ["Among", "all", "the", "male", "officers", ",", "what", "is", "the", "percentage", "of", "them", "are", "White", "?"], "entities": [{"id": 4, "type": "column", "value": "case_number"}, {"id": 0, "type": "table", "value": "officers"}, {"id": 1, "type": "column", "value": "gender"}, {"id": 7, "type": "column", "value": "race"}, {"id": 3, "type": "value", "value": "100"}, {"id": 2, "type": "value", "value": "M"}, {"id": 5, "type": "value", "value": "1"}, {"id": 6, "type": "value", "value": "0"}, {"id": 8, "type": "value", "value": "W"}], "entity_to_token": [{"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [8]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O"]} {"question_id": 12846, "db_id": "gymnast", "dber_id": "spider:train_spider.json:1745", "question": "Return the names of people, ordered alphabetically.", "SQL": "SELECT Name FROM People ORDER BY Name ASC", "tokens": ["Return", "the", "names", "of", "people", ",", "ordered", "alphabetically", "."], "entities": [{"id": 0, "type": "table", "value": "people"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O"]} {"question_id": 5862, "db_id": "works_cycles", "dber_id": "bird:train.json:7249", "question": "When did the company hired its first Accountant?", "SQL": "SELECT MIN(HireDate) FROM Employee WHERE JobTitle = 'Accountant'", "tokens": ["When", "did", "the", "company", "hired", "its", "first", "Accountant", "?"], "entities": [{"id": 2, "type": "value", "value": "Accountant"}, {"id": 0, "type": "table", "value": "employee"}, {"id": 1, "type": "column", "value": "jobtitle"}, {"id": 3, "type": "column", "value": "hiredate"}], "entity_to_token": [{"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O"]} {"question_id": 8701, "db_id": "works_cycles", "dber_id": "bird:train.json:7398", "question": "How many discount are of the type \"Excess Inventory\"?", "SQL": "SELECT COUNT(SpecialOfferID) FROM SpecialOffer WHERE Type = 'Excess Inventory'", "tokens": ["How", "many", "discount", "are", "of", "the", "type", "\"", "Excess", "Inventory", "\"", "?"], "entities": [{"id": 2, "type": "value", "value": "Excess Inventory"}, {"id": 3, "type": "column", "value": "specialofferid"}, {"id": 0, "type": "table", "value": "specialoffer"}, {"id": 1, "type": "column", "value": "type"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": [10]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": [8]}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 3441, "db_id": "soccer_3", "dber_id": "bird:test.json:18", "question": "Show names of clubs that have players with more than 2 win counts.", "SQL": "SELECT T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Wins_count > 2", "tokens": ["Show", "names", "of", "clubs", "that", "have", "players", "with", "more", "than", "2", "win", "counts", "."], "entities": [{"id": 3, "type": "column", "value": "wins_count"}, {"id": 5, "type": "column", "value": "club_id"}, {"id": 2, "type": "table", "value": "player"}, {"id": 0, "type": "column", "value": "name"}, {"id": 1, "type": "table", "value": "club"}, {"id": 4, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [11, 12]}, {"entity_id": 4, "token_idxs": [10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 7238, "db_id": "music_2", "dber_id": "spider:train_spider.json:5210", "question": "What instruments does the the song \"Le Pop\" use?", "SQL": "SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"", "tokens": ["What", "instruments", "does", "the", "the", "song", "\"", "Le", "Pop", "\"", "use", "?"], "entities": [{"id": 1, "type": "table", "value": "instruments"}, {"id": 0, "type": "column", "value": "instrument"}, {"id": 4, "type": "column", "value": "Le Pop"}, {"id": 5, "type": "column", "value": "songid"}, {"id": 2, "type": "table", "value": "songs"}, {"id": 3, "type": "column", "value": "title"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [7, 8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O"]} {"question_id": 2103, "db_id": "university_rank", "dber_id": "bird:test.json:1796", "question": "What are the names of the university with an Accounting major ranked 3 or higher?", "SQL": "SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T1.rank <= 3 AND T3.major_name = \"Accounting\"", "tokens": ["What", "are", "the", "names", "of", "the", "university", "with", "an", "Accounting", "major", "ranked", "3", "or", "higher", "?"], "entities": [], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": [13, 15]}, {"entity_id": 4, "token_idxs": [9, 10, 11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 832, "db_id": "tracking_software_problems", "dber_id": "spider:train_spider.json:5375", "question": "Which problems are reported before 1978-06-26? Give me the ids of the problems.", "SQL": "SELECT problem_id FROM problems WHERE date_problem_reported < \"1978-06-26\"", "tokens": ["Which", "problems", "are", "reported", "before", "1978", "-", "06", "-", "26", "?", "Give", "me", "the", "ids", "of", "the", "problems", "."], "entities": [{"id": 2, "type": "column", "value": "date_problem_reported"}, {"id": 1, "type": "column", "value": "problem_id"}, {"id": 3, "type": "column", "value": "1978-06-26"}, {"id": 0, "type": "table", "value": "problems"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [14]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": [5, 6, 7, 8, 9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O"]} {"question_id": 5363, "db_id": "retail_world", "dber_id": "bird:train.json:6572", "question": "What is the average value of the sales order?", "SQL": "SELECT SUM(UnitPrice * Quantity * (1 - Discount)) / COUNT(OrderID) FROM `Order Details`", "tokens": ["What", "is", "the", "average", "value", "of", "the", "sales", "order", "?"], "entities": [{"id": 0, "type": "table", "value": "Order Details"}, {"id": 2, "type": "column", "value": "unitprice"}, {"id": 3, "type": "column", "value": "quantity"}, {"id": 5, "type": "column", "value": "discount"}, {"id": 1, "type": "column", "value": "orderid"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": [0]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [1]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["B-COLUMN", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 5279, "db_id": "card_games", "dber_id": "bird:dev.json:423", "question": "Please provide the ids of top three powerful pairs of Kingdom Foil and Kingdom Cards sorted by Kingdom Foil id in alphabetical order.", "SQL": "SELECT cardKingdomFoilId, cardKingdomId FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL ORDER BY cardKingdomFoilId LIMIT 3", "tokens": ["Please", "provide", "the", "ids", "of", "top", "three", "powerful", "pairs", "of", "Kingdom", "Foil", "and", "Kingdom", "Cards", "sorted", "by", "Kingdom", "Foil", "i", "d", "in", "alphabetical", "order", "."], "entities": [{"id": 1, "type": "column", "value": "cardkingdomfoilid"}, {"id": 2, "type": "column", "value": "cardkingdomid"}, {"id": 0, "type": "table", "value": "cards"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": [10, 11, 17, 18, 19, 20]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O"]} {"question_id": 5038, "db_id": "region_building", "dber_id": "bird:test.json:353", "question": "Show the completed years of buildings in descending order of the number of stories.", "SQL": "SELECT Completed_Year FROM building ORDER BY Number_of_Stories DESC", "tokens": ["Show", "the", "completed", "years", "of", "buildings", "in", "descending", "order", "of", "the", "number", "of", "stories", "."], "entities": [{"id": 2, "type": "column", "value": "number_of_stories"}, {"id": 1, "type": "column", "value": "completed_year"}, {"id": 0, "type": "table", "value": "building"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": [11, 12, 13]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O"]} {"question_id": 15851, "db_id": "toxicology", "dber_id": "bird:dev.json:209", "question": "Chlorine is in what type of bond?", "SQL": "SELECT DISTINCT T1.bond_type FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id INNER JOIN atom AS T3 ON T2.atom_id = T3.atom_id WHERE T3.element = 'cl'", "tokens": ["Chlorine", "is", "in", "what", "type", "of", "bond", "?"], "entities": [{"id": 0, "type": "column", "value": "bond_type"}, {"id": 5, "type": "table", "value": "connected"}, {"id": 2, "type": "column", "value": "element"}, {"id": 6, "type": "column", "value": "atom_id"}, {"id": 7, "type": "column", "value": "bond_id"}, {"id": 1, "type": "table", "value": "atom"}, {"id": 4, "type": "table", "value": "bond"}, {"id": 3, "type": "value", "value": "cl"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": [0]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O"]} {"question_id": 7787, "db_id": "department_store", "dber_id": "spider:train_spider.json:4738", "question": "What are the ids of products from the supplier with id 2, which are more expensive than the average price across all products?", "SQL": "SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > (SELECT avg(product_price) FROM products)", "tokens": ["What", "are", "the", "ids", "of", "products", "from", "the", "supplier", "with", "i", "d", "2", ",", "which", "are", "more", "expensive", "than", "the", "average", "price", "across", "all", "products", "?"], "entities": [{"id": 1, "type": "table", "value": "product_suppliers"}, {"id": 5, "type": "column", "value": "product_price"}, {"id": 3, "type": "column", "value": "supplier_id"}, {"id": 0, "type": "column", "value": "product_id"}, {"id": 2, "type": "table", "value": "products"}, {"id": 4, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [6]}, {"entity_id": 6, "token_idxs": [9]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 10738, "db_id": "formula_1", "dber_id": "bird:dev.json:927", "question": "Which driver created the fastest lap speed in a Formula_1 race? Please give both his forename and surname.", "SQL": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.fastestLapTime IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1", "tokens": ["Which", "driver", "created", "the", "fastest", "lap", "speed", "in", "a", "Formula_1", "race", "?", "Please", "give", "both", "his", "forename", "and", "surname", "."], "entities": [{"id": 5, "type": "column", "value": "fastestlapspeed"}, {"id": 4, "type": "column", "value": "fastestlaptime"}, {"id": 0, "type": "column", "value": "forename"}, {"id": 6, "type": "column", "value": "driverid"}, {"id": 1, "type": "column", "value": "surname"}, {"id": 2, "type": "table", "value": "drivers"}, {"id": 3, "type": "table", "value": "results"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [16]}, {"entity_id": 1, "token_idxs": [18]}, {"entity_id": 2, "token_idxs": [1]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [4, 5]}, {"entity_id": 5, "token_idxs": [6]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O"]} {"question_id": 4272, "db_id": "tracking_share_transactions", "dber_id": "spider:train_spider.json:5861", "question": "Return the lot details of lots that belong to investors with details \"l\"?", "SQL": "SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = \"l\"", "tokens": ["Return", "the", "lot", "details", "of", "lots", "that", "belong", "to", "investors", "with", "details", "\"", "l", "\"", "?"], "entities": [{"id": 3, "type": "column", "value": "investor_details"}, {"id": 0, "type": "column", "value": "lot_details"}, {"id": 5, "type": "column", "value": "investor_id"}, {"id": 1, "type": "table", "value": "investors"}, {"id": 2, "type": "table", "value": "lots"}, {"id": 4, "type": "column", "value": "l"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [4]}, {"entity_id": 6, "token_idxs": [7]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O"]} {"question_id": 387, "db_id": "music_1", "dber_id": "spider:train_spider.json:3554", "question": "What are the names of the artists that are from the UK and sang songs in English?", "SQL": "SELECT artist_name FROM artist WHERE country = \"UK\" INTERSECT SELECT artist_name FROM song WHERE languages = \"english\"", "tokens": ["What", "are", "the", "names", "of", "the", "artists", "that", "are", "from", "the", "UK", "and", "sang", "songs", "in", "English", "?"], "entities": [{"id": 2, "type": "column", "value": "artist_name"}, {"id": 5, "type": "column", "value": "languages"}, {"id": 3, "type": "column", "value": "country"}, {"id": 6, "type": "column", "value": "english"}, {"id": 0, "type": "table", "value": "artist"}, {"id": 1, "type": "table", "value": "song"}, {"id": 4, "type": "column", "value": "UK"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [14]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [16]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O"]} {"question_id": 6396, "db_id": "game_1", "dber_id": "spider:train_spider.json:6014", "question": "What are the ids of all students along with how many sports and games did they play?", "SQL": "SELECT StuID , count(*) , sum(gamesplayed) FROM Sportsinfo GROUP BY StuID", "tokens": ["What", "are", "the", "ids", "of", "all", "students", "along", "with", "how", "many", "sports", "and", "games", "did", "they", "play", "?"], "entities": [{"id": 2, "type": "column", "value": "gamesplayed"}, {"id": 0, "type": "table", "value": "sportsinfo"}, {"id": 1, "type": "column", "value": "stuid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O"]} {"question_id": 4956, "db_id": "works_cycles", "dber_id": "bird:train.json:7260", "question": "What is the salary rate per hour that the company paid to the first 5 employees that they hired?", "SQL": "SELECT T1.Rate FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Person AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID ORDER BY T2.HireDate ASC LIMIT 0, 5", "tokens": ["What", "is", "the", "salary", "rate", "per", "hour", "that", "the", "company", "paid", "to", "the", "first", "5", "employees", "that", "they", "hired", "?"], "entities": [{"id": 3, "type": "table", "value": "employeepayhistory"}, {"id": 5, "type": "column", "value": "businessentityid"}, {"id": 2, "type": "column", "value": "hiredate"}, {"id": 4, "type": "table", "value": "employee"}, {"id": 1, "type": "table", "value": "person"}, {"id": 0, "type": "column", "value": "rate"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [18]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [15]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O"]} {"question_id": 6548, "db_id": "performance_attendance", "dber_id": "spider:train_spider.json:1310", "question": "Show the attendances of the performances at location \"TD Garden\" or \"Bell Centre\"", "SQL": "SELECT Attendance FROM performance WHERE LOCATION = \"TD Garden\" OR LOCATION = \"Bell Centre\"", "tokens": ["Show", "the", "attendances", "of", "the", "performances", "at", "location", "\"", "TD", "Garden", "\"", "or", "\"", "Bell", "Centre", "\""], "entities": [{"id": 0, "type": "table", "value": "performance"}, {"id": 4, "type": "column", "value": "Bell Centre"}, {"id": 1, "type": "column", "value": "attendance"}, {"id": 3, "type": "column", "value": "TD Garden"}, {"id": 2, "type": "column", "value": "location"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [9, 10]}, {"entity_id": 4, "token_idxs": [14, 15]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 8201, "db_id": "movie_platform", "dber_id": "bird:train.json:74", "question": "Please list all the links to the ratings on the movie \"A Way of Life\" with a critic.", "SQL": "SELECT T1.rating_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.critic IS NOT NULL", "tokens": ["Please", "list", "all", "the", "links", "to", "the", "ratings", "on", "the", "movie", "\"", "A", "Way", "of", "Life", "\"", "with", "a", "critic", "."], "entities": [{"id": 5, "type": "value", "value": "A Way of Life"}, {"id": 4, "type": "column", "value": "movie_title"}, {"id": 0, "type": "column", "value": "rating_url"}, {"id": 3, "type": "column", "value": "movie_id"}, {"id": 1, "type": "table", "value": "ratings"}, {"id": 2, "type": "table", "value": "movies"}, {"id": 6, "type": "column", "value": "critic"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7, 8]}, {"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 3899, "db_id": "cs_semester", "dber_id": "bird:train.json:872", "question": "Give the number of research postgraduate students.", "SQL": "SELECT COUNT(student_id) FROM student WHERE type = 'RPG'", "tokens": ["Give", "the", "number", "of", "research", "postgraduate", "students", "."], "entities": [{"id": 3, "type": "column", "value": "student_id"}, {"id": 0, "type": "table", "value": "student"}, {"id": 1, "type": "column", "value": "type"}, {"id": 2, "type": "value", "value": "RPG"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [4, 5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-VALUE", "I-VALUE", "B-TABLE", "O"]} {"question_id": 11423, "db_id": "soccer_2016", "dber_id": "bird:train.json:1956", "question": "List the names of all the umpires from England.", "SQL": "SELECT T1.Umpire_Name FROM Umpire AS T1 INNER JOIN country AS T2 ON T2.Country_Id = T1.Umpire_Country WHERE T2.Country_Name = 'England'", "tokens": ["List", "the", "names", "of", "all", "the", "umpires", "from", "England", "."], "entities": [{"id": 6, "type": "column", "value": "umpire_country"}, {"id": 3, "type": "column", "value": "country_name"}, {"id": 0, "type": "column", "value": "umpire_name"}, {"id": 5, "type": "column", "value": "country_id"}, {"id": 2, "type": "table", "value": "country"}, {"id": 4, "type": "value", "value": "England"}, {"id": 1, "type": "table", "value": "umpire"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [1, 2]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O"]} {"question_id": 590, "db_id": "book_publishing_company", "dber_id": "bird:train.json:168", "question": "What is the title with the most ordered quantity in year 1992?", "SQL": "SELECT T2.title FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id WHERE STRFTIME('%Y', T1.ord_date) = '1992' ORDER BY T1.qty DESC LIMIT 1", "tokens": ["What", "is", "the", "title", "with", "the", "most", "ordered", "quantity", "in", "year", "1992", "?"], "entities": [{"id": 5, "type": "column", "value": "title_id"}, {"id": 7, "type": "column", "value": "ord_date"}, {"id": 2, "type": "table", "value": "titles"}, {"id": 0, "type": "column", "value": "title"}, {"id": 1, "type": "table", "value": "sales"}, {"id": 3, "type": "value", "value": "1992"}, {"id": 4, "type": "column", "value": "qty"}, {"id": 6, "type": "value", "value": "%Y"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [10]}, {"entity_id": 7, "token_idxs": [7]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "B-VALUE", "O"]} {"question_id": 4315, "db_id": "customers_and_addresses", "dber_id": "spider:train_spider.json:6101", "question": "What is the average time span of contact channels in the database?", "SQL": "SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels", "tokens": ["What", "is", "the", "average", "time", "span", "of", "contact", "channels", "in", "the", "database", "?"], "entities": [{"id": 0, "type": "table", "value": "customer_contact_channels"}, {"id": 2, "type": "column", "value": "active_from_date"}, {"id": 1, "type": "column", "value": "active_to_date"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [7, 8, 9, 10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 15110, "db_id": "soccer_2016", "dber_id": "bird:train.json:1854", "question": "Among the players born in 1977, what is the percentage of the players with a role as a captain?", "SQL": "SELECT CAST(SUM(CASE WHEN T1.Role_Desc = 'Captain' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Role_Id) FROM Rolee AS T1 INNER JOIN Player_Match AS T2 ON T2.Role_Id = T1.Role_Id INNER JOIN Player AS T3 ON T3.Player_Id = T2.Player_Id WHERE T3.DOB LIKE '1977%'", "tokens": ["Among", "the", "players", "born", "in", "1977", ",", "what", "is", "the", "percentage", "of", "the", "players", "with", "a", "role", "as", "a", "captain", "?"], "entities": [{"id": 4, "type": "table", "value": "player_match"}, {"id": 5, "type": "column", "value": "player_id"}, {"id": 10, "type": "column", "value": "role_desc"}, {"id": 7, "type": "column", "value": "role_id"}, {"id": 11, "type": "value", "value": "Captain"}, {"id": 0, "type": "table", "value": "player"}, {"id": 2, "type": "value", "value": "1977%"}, {"id": 3, "type": "table", "value": "rolee"}, {"id": 1, "type": "column", "value": "dob"}, {"id": 6, "type": "value", "value": "100"}, {"id": 8, "type": "value", "value": "0"}, {"id": 9, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [16]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [13]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": [19]}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O"]} {"question_id": 2705, "db_id": "insurance_fnol", "dber_id": "spider:train_spider.json:917", "question": "How many services are there?", "SQL": "SELECT count(*) FROM services", "tokens": ["How", "many", "services", "are", "there", "?"], "entities": [{"id": 0, "type": "table", "value": "services"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [0]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE"]} {"question_id": 7454, "db_id": "hospital_1", "dber_id": "spider:train_spider.json:3938", "question": "How many different types of rooms are there?", "SQL": "SELECT count(DISTINCT roomtype) FROM room", "tokens": ["How", "many", "different", "types", "of", "rooms", "are", "there", "?"], "entities": [{"id": 1, "type": "column", "value": "roomtype"}, {"id": 0, "type": "table", "value": "room"}], "entity_to_token": [{"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O"]} {"question_id": 4562, "db_id": "department_store", "dber_id": "spider:train_spider.json:4727", "question": "How many department stores does the store chain South have?", "SQL": "SELECT count(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = \"South\"", "tokens": ["How", "many", "department", "stores", "does", "the", "store", "chain", "South", "have", "?"], "entities": [{"id": 1, "type": "table", "value": "department_store_chain"}, {"id": 2, "type": "column", "value": "dept_store_chain_name"}, {"id": 4, "type": "column", "value": "dept_store_chain_id"}, {"id": 0, "type": "table", "value": "department_stores"}, {"id": 3, "type": "column", "value": "South"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "B-COLUMN", "O", "O"]} {"question_id": 6965, "db_id": "beer_factory", "dber_id": "bird:train.json:5260", "question": "When did Natalie Dorris buy her first root beer?", "SQL": "SELECT T2.TransactionDate FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Natalie' AND T1.Last = 'Dorris' ORDER BY T2.TransactionDate LIMIT 1", "tokens": ["When", "did", "Natalie", "Dorris", "buy", "her", "first", "root", "beer", "?"], "entities": [{"id": 0, "type": "column", "value": "transactiondate"}, {"id": 2, "type": "table", "value": "transaction"}, {"id": 3, "type": "column", "value": "customerid"}, {"id": 1, "type": "table", "value": "customers"}, {"id": 5, "type": "value", "value": "Natalie"}, {"id": 7, "type": "value", "value": "Dorris"}, {"id": 4, "type": "column", "value": "first"}, {"id": 6, "type": "column", "value": "last"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": [2]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [3]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-VALUE", "B-VALUE", "O", "O", "B-COLUMN", "O", "O", "O"]} {"question_id": 4558, "db_id": "scientist_1", "dber_id": "spider:train_spider.json:6469", "question": "Find the total number of scientists.", "SQL": "SELECT count(*) FROM scientists", "tokens": ["Find", "the", "total", "number", "of", "scientists", "."], "entities": [{"id": 0, "type": "table", "value": "scientists"}], "entity_to_token": [{"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 10937, "db_id": "book_press", "dber_id": "bird:test.json:1978", "question": "Find the average and maximum yearly profit for each press.", "SQL": "SELECT avg(Year_Profits_billion) , max(Year_Profits_billion) FROM press", "tokens": ["Find", "the", "average", "and", "maximum", "yearly", "profit", "for", "each", "press", "."], "entities": [{"id": 1, "type": "column", "value": "year_profits_billion"}, {"id": 0, "type": "table", "value": "press"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 2646, "db_id": "cookbook", "dber_id": "bird:train.json:8883", "question": "What kind of preparation is needed for apple juice to make a raspberry-pear couscous cake?", "SQL": "SELECT T2.preparation FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry-Pear Couscous Cake' AND T3.name = 'apple juice'", "tokens": ["What", "kind", "of", "preparation", "is", "needed", "for", "apple", "juice", "to", "make", "a", "raspberry", "-", "pear", "couscous", "cake", "?"], "entities": [{"id": 6, "type": "value", "value": "Raspberry-Pear Couscous Cake"}, {"id": 4, "type": "column", "value": "ingredient_id"}, {"id": 0, "type": "column", "value": "preparation"}, {"id": 8, "type": "value", "value": "apple juice"}, {"id": 1, "type": "table", "value": "ingredient"}, {"id": 9, "type": "column", "value": "recipe_id"}, {"id": 3, "type": "table", "value": "quantity"}, {"id": 2, "type": "table", "value": "recipe"}, {"id": 5, "type": "column", "value": "title"}, {"id": 7, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [12, 13, 14, 15, 16]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [7, 8]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 5635, "db_id": "epinions_1", "dber_id": "spider:train_spider.json:1693", "question": "Find the average and maximum rating of all reviews.", "SQL": "SELECT avg(rating) , max(rating) FROM review", "tokens": ["Find", "the", "average", "and", "maximum", "rating", "of", "all", "reviews", "."], "entities": [{"id": 0, "type": "table", "value": "review"}, {"id": 1, "type": "column", "value": "rating"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 757, "db_id": "sports_competition", "dber_id": "spider:train_spider.json:3345", "question": "What are the distinct years in which the competitions type is not \"Tournament\"?", "SQL": "SELECT DISTINCT YEAR FROM competition WHERE Competition_type != \"Tournament\"", "tokens": ["What", "are", "the", "distinct", "years", "in", "which", "the", "competitions", "type", "is", "not", "\"", "Tournament", "\"", "?"], "entities": [{"id": 2, "type": "column", "value": "competition_type"}, {"id": 0, "type": "table", "value": "competition"}, {"id": 3, "type": "column", "value": "Tournament"}, {"id": 1, "type": "column", "value": "year"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O"]} {"question_id": 3848, "db_id": "club_1", "dber_id": "spider:train_spider.json:4257", "question": "Find each student's first name.", "SQL": "SELECT DISTINCT fname FROM student", "tokens": ["Find", "each", "student", "'s", "first", "name", "."], "entities": [{"id": 0, "type": "table", "value": "student"}, {"id": 1, "type": "column", "value": "fname"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O"]} {"question_id": 7777, "db_id": "codebase_comments", "dber_id": "bird:train.json:595", "question": "Among the solutions that contain files within the repository needing the longest processed time to download, how many of them doesn't need to be\ncompiled if user wants to implement it?", "SQL": "SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.ProcessedTime = ( SELECT MAX(ProcessedTime) FROM Repo ) AND T2.WasCompiled = 1", "tokens": ["Among", "the", "solutions", "that", "contain", "files", "within", "the", "repository", "needing", "the", "longest", "processed", "time", "to", "download", ",", "how", "many", "of", "them", "does", "n't", "need", "to", "be", "\n", "compiled", "if", "user", "wants", "to", "implement", "it", "?"], "entities": [{"id": 4, "type": "column", "value": "processedtime"}, {"id": 5, "type": "column", "value": "wascompiled"}, {"id": 1, "type": "table", "value": "solution"}, {"id": 2, "type": "column", "value": "repoid"}, {"id": 0, "type": "table", "value": "repo"}, {"id": 3, "type": "column", "value": "id"}, {"id": 6, "type": "value", "value": "1"}], "entity_to_token": [{"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": [12, 13]}, {"entity_id": 5, "token_idxs": [27]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 9355, "db_id": "cre_Doc_Workflow", "dber_id": "bird:test.json:2021", "question": "Show the number of documents.", "SQL": "SELECT count(*) FROM Documents", "tokens": ["Show", "the", "number", "of", "documents", "."], "entities": [{"id": 0, "type": "table", "value": "documents"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 727, "db_id": "food_inspection", "dber_id": "bird:train.json:8840", "question": "What is the total number of businesses with a tax code H25?", "SQL": "SELECT COUNT(tax_code) FROM businesses WHERE tax_code = 'H25'", "tokens": ["What", "is", "the", "total", "number", "of", "businesses", "with", "a", "tax", "code", "H25", "?"], "entities": [{"id": 0, "type": "table", "value": "businesses"}, {"id": 1, "type": "column", "value": "tax_code"}, {"id": 2, "type": "value", "value": "H25"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [9, 10]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O"]} {"question_id": 10244, "db_id": "california_schools", "dber_id": "bird:dev.json:28", "question": "Consider the average difference between K-12 enrollment and 15-17 enrollment of schools that are locally funded, list the names and DOC type of schools which has a difference above this average.", "SQL": "SELECT T2.School, T2.DOC FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.FundingType = 'Locally funded' AND (T1.`Enrollment (K-12)` - T1.`Enrollment (Ages 5-17)`) > (SELECT AVG(T3.`Enrollment (K-12)` - T3.`Enrollment (Ages 5-17)`) FROM frpm AS T3 INNER JOIN schools AS T4 ON T3.CDSCode = T4.CDSCode WHERE T4.FundingType = 'Locally funded')", "tokens": ["Consider", "the", "average", "difference", "between", "K-12", "enrollment", "and", "15", "-", "17", "enrollment", "of", "schools", "that", "are", "locally", "funded", ",", "list", "the", "names", "and", "DOC", "type", "of", "schools", "which", "has", "a", "difference", "above", "this", "average", "."], "entities": [{"id": 8, "type": "column", "value": "Enrollment (Ages 5-17)"}, {"id": 7, "type": "column", "value": "Enrollment (K-12)"}, {"id": 6, "type": "value", "value": "Locally funded"}, {"id": 5, "type": "column", "value": "fundingtype"}, {"id": 3, "type": "table", "value": "schools"}, {"id": 4, "type": "column", "value": "cdscode"}, {"id": 0, "type": "column", "value": "school"}, {"id": 2, "type": "table", "value": "frpm"}, {"id": 1, "type": "column", "value": "doc"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [19]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [20]}, {"entity_id": 3, "token_idxs": [8, 9]}, {"entity_id": 4, "token_idxs": [11, 12, 13, 14]}, {"entity_id": 5, "token_idxs": [4]}, {"entity_id": 6, "token_idxs": [6]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 9189, "db_id": "dorm_1", "dber_id": "spider:train_spider.json:5679", "question": "How many dorms are in the database?", "SQL": "SELECT count(*) FROM dorm", "tokens": ["How", "many", "dorms", "are", "in", "the", "database", "?"], "entities": [{"id": 0, "type": "table", "value": "dorm"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O"]} {"question_id": 27, "db_id": "shipping", "dber_id": "bird:train.json:5658", "question": "How many shipments were shipped to the least populated city in California?", "SQL": "SELECT COUNT(T3.city_name) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id WHERE T3.state = 'California' ORDER BY T3.population ASC LIMIT 1", "tokens": ["How", "many", "shipments", "were", "shipped", "to", "the", "least", "populated", "city", "in", "California", "?"], "entities": [{"id": 2, "type": "value", "value": "California"}, {"id": 3, "type": "column", "value": "population"}, {"id": 4, "type": "column", "value": "city_name"}, {"id": 5, "type": "table", "value": "customer"}, {"id": 6, "type": "table", "value": "shipment"}, {"id": 7, "type": "column", "value": "city_id"}, {"id": 8, "type": "column", "value": "cust_id"}, {"id": 1, "type": "column", "value": "state"}, {"id": 0, "type": "table", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [2]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "B-VALUE", "O"]} {"question_id": 14275, "db_id": "car_racing", "dber_id": "bird:test.json:1608", "question": "Count the number of drivers whose points are below 150.", "SQL": "SELECT count(*) FROM driver WHERE Points < 150", "tokens": ["Count", "the", "number", "of", "drivers", "whose", "points", "are", "below", "150", "."], "entities": [{"id": 0, "type": "table", "value": "driver"}, {"id": 1, "type": "column", "value": "points"}, {"id": 2, "type": "value", "value": "150"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O"]} {"question_id": 8645, "db_id": "aircraft", "dber_id": "spider:train_spider.json:4829", "question": "List the names of aircrafts and that won matches at least twice.", "SQL": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*) >= 2", "tokens": ["List", "the", "names", "of", "aircrafts", "and", "that", "won", "matches", "at", "least", "twice", "."], "entities": [{"id": 0, "type": "column", "value": "winning_aircraft"}, {"id": 5, "type": "column", "value": "aircraft_id"}, {"id": 1, "type": "column", "value": "aircraft"}, {"id": 2, "type": "table", "value": "aircraft"}, {"id": 3, "type": "table", "value": "match"}, {"id": 4, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11, 12]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [4, 5]}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "I-COLUMN"]} {"question_id": 1528, "db_id": "university", "dber_id": "bird:train.json:8086", "question": "Among the universities with a score in teaching of over 90 in 2011, what is the percentage of those in the United States of America?", "SQL": "SELECT CAST(SUM(CASE WHEN T4.country_name = 'United States of America' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS per FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id INNER JOIN country AS T4 ON T4.id = T3.country_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score > 90", "tokens": ["Among", "the", "universities", "with", "a", "score", "in", "teaching", "of", "over", "90", "in", "2011", ",", "what", "is", "the", "percentage", "of", "those", "in", "the", "United", "States", "of", "America", "?"], "entities": [{"id": 18, "type": "value", "value": "United States of America"}, {"id": 12, "type": "table", "value": "university_ranking_year"}, {"id": 14, "type": "column", "value": "ranking_criteria_id"}, {"id": 11, "type": "table", "value": "ranking_criteria"}, {"id": 4, "type": "column", "value": "criteria_name"}, {"id": 13, "type": "column", "value": "university_id"}, {"id": 17, "type": "column", "value": "country_name"}, {"id": 1, "type": "table", "value": "university"}, {"id": 3, "type": "column", "value": "country_id"}, {"id": 5, "type": "value", "value": "Teaching"}, {"id": 0, "type": "table", "value": "country"}, {"id": 8, "type": "column", "value": "score"}, {"id": 6, "type": "column", "value": "year"}, {"id": 7, "type": "value", "value": "2011"}, {"id": 10, "type": "value", "value": "100"}, {"id": 2, "type": "column", "value": "id"}, {"id": 9, "type": "value", "value": "90"}, {"id": 15, "type": "value", "value": "0"}, {"id": 16, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [7]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [12]}, {"entity_id": 8, "token_idxs": [5]}, {"entity_id": 9, "token_idxs": [10]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": [22, 23, 24, 25]}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 5147, "db_id": "simpson_episodes", "dber_id": "bird:train.json:4349", "question": "How many awards did simpson 20 won in 2009?", "SQL": "SELECT COUNT(award_id) FROM Award WHERE SUBSTR(year, 1, 4) = '2009' AND result = 'Winner';", "tokens": ["How", "many", "awards", "did", "simpson", "20", "won", "in", "2009", "?"], "entities": [{"id": 1, "type": "column", "value": "award_id"}, {"id": 3, "type": "column", "value": "result"}, {"id": 4, "type": "value", "value": "Winner"}, {"id": 0, "type": "table", "value": "award"}, {"id": 2, "type": "value", "value": "2009"}, {"id": 5, "type": "column", "value": "year"}, {"id": 6, "type": "value", "value": "1"}, {"id": 7, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-VALUE"]} {"question_id": 5930, "db_id": "professional_basketball", "dber_id": "bird:train.json:2837", "question": "Which coach has serviced in NBA for more than 10 years.", "SQL": "SELECT coachID FROM coaches WHERE lgID = 'NBA' GROUP BY coachID HAVING MAX(year) - MIN(year) > 10", "tokens": ["Which", "coach", "has", "serviced", "in", "NBA", "for", "more", "than", "10", "years", "."], "entities": [{"id": 0, "type": "table", "value": "coaches"}, {"id": 1, "type": "column", "value": "coachid"}, {"id": 2, "type": "column", "value": "lgid"}, {"id": 5, "type": "column", "value": "year"}, {"id": 3, "type": "value", "value": "NBA"}, {"id": 4, "type": "value", "value": "10"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [5]}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": [10]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 5733, "db_id": "retails", "dber_id": "bird:train.json:6684", "question": "How many orders in total are made by customers in Germany?", "SQL": "SELECT COUNT(T2.c_custkey) FROM nation AS T1 INNER JOIN customer AS T2 ON T1.n_nationkey = T2.c_nationkey INNER JOIN orders AS T3 ON T2.c_custkey = T3.o_custkey WHERE T1.n_name = 'GERMANY'", "tokens": ["How", "many", "orders", "in", "total", "are", "made", "by", "customers", "in", "Germany", "?"], "entities": [{"id": 7, "type": "column", "value": "n_nationkey"}, {"id": 8, "type": "column", "value": "c_nationkey"}, {"id": 3, "type": "column", "value": "c_custkey"}, {"id": 6, "type": "column", "value": "o_custkey"}, {"id": 5, "type": "table", "value": "customer"}, {"id": 2, "type": "value", "value": "GERMANY"}, {"id": 0, "type": "table", "value": "orders"}, {"id": 1, "type": "column", "value": "n_name"}, {"id": 4, "type": "table", "value": "nation"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": [8]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-TABLE", "B-VALUE", "O"]} {"question_id": 2851, "db_id": "flight_4", "dber_id": "spider:train_spider.json:6883", "question": "Find the busiest destination airport that runs most number of routes in China.", "SQL": "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1", "tokens": ["Find", "the", "busiest", "destination", "airport", "that", "runs", "most", "number", "of", "routes", "in", "China", "."], "entities": [{"id": 1, "type": "table", "value": "airports"}, {"id": 6, "type": "column", "value": "dst_apid"}, {"id": 3, "type": "column", "value": "country"}, {"id": 2, "type": "table", "value": "routes"}, {"id": 4, "type": "value", "value": "China"}, {"id": 0, "type": "column", "value": "name"}, {"id": 5, "type": "column", "value": "apid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [12]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [3]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-VALUE", "O"]} {"question_id": 8004, "db_id": "cars", "dber_id": "bird:train.json:3123", "question": "Provide the name and model of the car with the highest price.", "SQL": "SELECT T1.car_name, T1.model FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T2.price DESC LIMIT 1", "tokens": ["Provide", "the", "name", "and", "model", "of", "the", "car", "with", "the", "highest", "price", "."], "entities": [{"id": 0, "type": "column", "value": "car_name"}, {"id": 1, "type": "column", "value": "model"}, {"id": 3, "type": "table", "value": "price"}, {"id": 4, "type": "column", "value": "price"}, {"id": 2, "type": "table", "value": "data"}, {"id": 5, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 14108, "db_id": "works_cycles", "dber_id": "bird:train.json:7154", "question": "What are the unit measure codes for product ID No.762?", "SQL": "SELECT T2.UnitMeasureCode FROM Product AS T1 INNER JOIN UnitMeasure AS T2 ON T1.SizeUnitMeasureCode = T2.UnitMeasureCode OR T1.WeightUnitMeasureCode = T2.UnitMeasureCode WHERE T1.ProductID = 762 GROUP BY T1.ProductID, T2.UnitMeasureCode", "tokens": ["What", "are", "the", "unit", "measure", "codes", "for", "product", "ID", "No.762", "?"], "entities": [{"id": 6, "type": "column", "value": "weightunitmeasurecode"}, {"id": 5, "type": "column", "value": "sizeunitmeasurecode"}, {"id": 1, "type": "column", "value": "unitmeasurecode"}, {"id": 3, "type": "table", "value": "unitmeasure"}, {"id": 0, "type": "column", "value": "productid"}, {"id": 2, "type": "table", "value": "product"}, {"id": 4, "type": "value", "value": "762"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [3, 4]}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 6883, "db_id": "customers_and_addresses", "dber_id": "spider:train_spider.json:6073", "question": "Find the name of all customers whose name contains \"Alex\".", "SQL": "SELECT customer_name FROM customers WHERE customer_name LIKE \"%Alex%\"", "tokens": ["Find", "the", "name", "of", "all", "customers", "whose", "name", "contains", "\"", "Alex", "\"", "."], "entities": [{"id": 1, "type": "column", "value": "customer_name"}, {"id": 0, "type": "table", "value": "customers"}, {"id": 2, "type": "column", "value": "%Alex%"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [6, 7]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "O"]} {"question_id": 2938, "db_id": "entrepreneur", "dber_id": "spider:train_spider.json:2269", "question": "What is the average money requested by all entrepreneurs?", "SQL": "SELECT avg(Money_Requested) FROM entrepreneur", "tokens": ["What", "is", "the", "average", "money", "requested", "by", "all", "entrepreneurs", "?"], "entities": [{"id": 1, "type": "column", "value": "money_requested"}, {"id": 0, "type": "table", "value": "entrepreneur"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"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, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 10299, "db_id": "roller_coaster", "dber_id": "spider:train_spider.json:6217", "question": "Show the names of countries and the average speed of roller coasters from each country.", "SQL": "SELECT T1.Name , avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name", "tokens": ["Show", "the", "names", "of", "countries", "and", "the", "average", "speed", "of", "roller", "coasters", "from", "each", "country", "."], "entities": [{"id": 2, "type": "table", "value": "roller_coaster"}, {"id": 4, "type": "column", "value": "country_id"}, {"id": 1, "type": "table", "value": "country"}, {"id": 3, "type": "column", "value": "speed"}, {"id": 0, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [14]}, {"entity_id": 2, "token_idxs": [10, 11]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [4]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O", "O", "B-TABLE", "O"]} {"question_id": 4564, "db_id": "beer_factory", "dber_id": "bird:train.json:5239", "question": "Among the transactions made in July, 2014, how many of them were made by a male customer?", "SQL": "SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Gender = 'M' AND STRFTIME('%Y-%m', T2.TransactionDate) = '2014-07'", "tokens": ["Among", "the", "transactions", "made", "in", "July", ",", "2014", ",", "how", "many", "of", "them", "were", "made", "by", "a", "male", "customer", "?"], "entities": [{"id": 7, "type": "column", "value": "transactiondate"}, {"id": 1, "type": "table", "value": "transaction"}, {"id": 2, "type": "column", "value": "customerid"}, {"id": 0, "type": "table", "value": "customers"}, {"id": 5, "type": "value", "value": "2014-07"}, {"id": 3, "type": "column", "value": "gender"}, {"id": 6, "type": "value", "value": "%Y-%m"}, {"id": 4, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [18]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [17]}, {"entity_id": 5, "token_idxs": [5, 6, 7]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]} {"question_id": 3114, "db_id": "soccer_2016", "dber_id": "bird:train.json:1923", "question": "In which country do most players have the 'slow left-arm chinaman' bowling style?", "SQL": "SELECT T3.Country_Name FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T1.Bowling_Id = T2.Bowling_skill INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T1.Bowling_skill = 'Slow left-arm chinaman'", "tokens": ["In", "which", "country", "do", "most", "players", "have", "the", "'", "slow", "left", "-", "arm", "chinaman", "'", "bowling", "style", "?"], "entities": [{"id": 3, "type": "value", "value": "Slow left-arm chinaman"}, {"id": 2, "type": "column", "value": "bowling_skill"}, {"id": 4, "type": "table", "value": "bowling_style"}, {"id": 0, "type": "column", "value": "country_name"}, {"id": 6, "type": "column", "value": "country_id"}, {"id": 7, "type": "column", "value": "bowling_id"}, {"id": 1, "type": "table", "value": "country"}, {"id": 5, "type": "table", "value": "player"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9, 10, 11, 12, 13]}, {"entity_id": 4, "token_idxs": [16]}, {"entity_id": 5, "token_idxs": [5]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [15]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "B-COLUMN", "B-TABLE", "O"]} {"question_id": 2977, "db_id": "synthea", "dber_id": "bird:train.json:1408", "question": "Count all of the living patients that had a stroke.", "SQL": "SELECT COUNT(DISTINCT T2.patient) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.description = 'Stroke' AND T2.deathdate IS NULL", "tokens": ["Count", "all", "of", "the", "living", "patients", "that", "had", "a", "stroke", "."], "entities": [{"id": 3, "type": "column", "value": "description"}, {"id": 0, "type": "table", "value": "conditions"}, {"id": 5, "type": "column", "value": "deathdate"}, {"id": 1, "type": "table", "value": "patients"}, {"id": 2, "type": "column", "value": "patient"}, {"id": 4, "type": "value", "value": "Stroke"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [0]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 9007, "db_id": "trains", "dber_id": "bird:train.json:706", "question": "Trains that run in which direction have more rectangle-shaped cars in total?", "SQL": "SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS rectCarsNum FROM cars WHERE shape = 'rectangle' GROUP BY train_id ) AS T2 ON T1.id = T2.train_id ORDER BY T2.rectCarsNum DESC", "tokens": ["Trains", "that", "run", "in", "which", "direction", "have", "more", "rectangle", "-", "shaped", "cars", "in", "total", "?"], "entities": [{"id": 2, "type": "column", "value": "rectcarsnum"}, {"id": 0, "type": "column", "value": "direction"}, {"id": 7, "type": "value", "value": "rectangle"}, {"id": 4, "type": "column", "value": "train_id"}, {"id": 1, "type": "table", "value": "trains"}, {"id": 6, "type": "column", "value": "shape"}, {"id": 5, "type": "table", "value": "cars"}, {"id": 3, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [10, 11]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O"]} {"question_id": 9774, "db_id": "retail_world", "dber_id": "bird:train.json:6568", "question": "Calculate the production volume of the dairy product 'Mascarpone Fabioli'.", "SQL": "SELECT SUM(UnitsInStock + UnitsOnOrder) FROM Products WHERE ProductName = 'Mascarpone Fabioli'", "tokens": ["Calculate", "the", "production", "volume", "of", "the", "dairy", "product", "'", "Mascarpone", "Fabioli", "'", "."], "entities": [{"id": 2, "type": "value", "value": "Mascarpone Fabioli"}, {"id": 3, "type": "column", "value": "unitsinstock"}, {"id": 4, "type": "column", "value": "unitsonorder"}, {"id": 1, "type": "column", "value": "productname"}, {"id": 0, "type": "table", "value": "products"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [9, 10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O"]} {"question_id": 14349, "db_id": "movie_3", "dber_id": "bird:train.json:9108", "question": "Among the films that are released in 2006, how many of them are rated Adults Only in the Motion Picture Association Film Rating?", "SQL": "SELECT COUNT(film_id) FROM film WHERE rating = 'NC-17' AND release_year = 2006", "tokens": ["Among", "the", "films", "that", "are", "released", "in", "2006", ",", "how", "many", "of", "them", "are", "rated", "Adults", "Only", "in", "the", "Motion", "Picture", "Association", "Film", "Rating", "?"], "entities": [{"id": 4, "type": "column", "value": "release_year"}, {"id": 1, "type": "column", "value": "film_id"}, {"id": 2, "type": "column", "value": "rating"}, {"id": 3, "type": "value", "value": "NC-17"}, {"id": 0, "type": "table", "value": "film"}, {"id": 5, "type": "value", "value": "2006"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [15]}, {"entity_id": 3, "token_idxs": [8, 9, 10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [1]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-VALUE", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 4073, "db_id": "university", "dber_id": "bird:train.json:8131", "question": "Give the name of the university with the most number of students in 2015.", "SQL": "SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 ORDER BY T1.num_students DESC LIMIT 1", "tokens": ["Give", "the", "name", "of", "the", "university", "with", "the", "most", "number", "of", "students", "in", "2015", "."], "entities": [{"id": 0, "type": "column", "value": "university_name"}, {"id": 1, "type": "table", "value": "university_year"}, {"id": 6, "type": "column", "value": "university_id"}, {"id": 5, "type": "column", "value": "num_students"}, {"id": 2, "type": "table", "value": "university"}, {"id": 3, "type": "column", "value": "year"}, {"id": 4, "type": "value", "value": "2015"}, {"id": 7, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [13]}, {"entity_id": 5, "token_idxs": [9, 10, 11]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-VALUE", "O"]} {"question_id": 14112, "db_id": "college_2", "dber_id": "spider:train_spider.json:1368", "question": "Find the name of students who took any class in the years of 2009 and 2010.", "SQL": "SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010", "tokens": ["Find", "the", "name", "of", "students", "who", "took", "any", "class", "in", "the", "years", "of", "2009", "and", "2010", "."], "entities": [{"id": 1, "type": "table", "value": "student"}, {"id": 2, "type": "table", "value": "takes"}, {"id": 0, "type": "column", "value": "name"}, {"id": 4, "type": "column", "value": "year"}, {"id": 5, "type": "value", "value": "2009"}, {"id": 6, "type": "value", "value": "2010"}, {"id": 3, "type": "column", "value": "id"}], "entity_to_token": [{"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, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 6543, "db_id": "works_cycles", "dber_id": "bird:train.json:7146", "question": "What is the Shift start time for Shift ID No.2?", "SQL": "SELECT StartTime FROM Shift WHERE ShiftID = '2'", "tokens": ["What", "is", "the", "Shift", "start", "time", "for", "Shift", "ID", "No.2", "?"], "entities": [{"id": 1, "type": "column", "value": "starttime"}, {"id": 2, "type": "column", "value": "shiftid"}, {"id": 0, "type": "table", "value": "shift"}, {"id": 3, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [4, 5]}, {"entity_id": 2, "token_idxs": [7, 8]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O"]} {"question_id": 4092, "db_id": "works_cycles", "dber_id": "bird:train.json:7470", "question": "List all the work orders that is related to the Down Tube.", "SQL": "SELECT T2.WorkOrderID FROM Product AS T1 INNER JOIN WorkOrder AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Down Tube'", "tokens": ["List", "all", "the", "work", "orders", "that", "is", "related", "to", "the", "Down", "Tube", "."], "entities": [{"id": 0, "type": "column", "value": "workorderid"}, {"id": 2, "type": "table", "value": "workorder"}, {"id": 4, "type": "value", "value": "Down Tube"}, {"id": 5, "type": "column", "value": "productid"}, {"id": 1, "type": "table", "value": "product"}, {"id": 3, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11, 12]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN"]} {"question_id": 6991, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1201", "question": "What percentage of patients who were born in 1980 and were diagnosed with RA are women?", "SQL": "SELECT CAST(SUM(CASE WHEN SEX = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(ID) FROM Patient WHERE Diagnosis = 'RA' AND STRFTIME('%Y', Birthday) = '1980'", "tokens": ["What", "percentage", "of", "patients", "who", "were", "born", "in", "1980", "and", "were", "diagnosed", "with", "RA", "are", "women", "?"], "entities": [{"id": 1, "type": "column", "value": "diagnosis"}, {"id": 7, "type": "column", "value": "birthday"}, {"id": 0, "type": "table", "value": "patient"}, {"id": 3, "type": "value", "value": "1980"}, {"id": 4, "type": "value", "value": "100"}, {"id": 10, "type": "column", "value": "sex"}, {"id": 2, "type": "value", "value": "RA"}, {"id": 5, "type": "column", "value": "id"}, {"id": 6, "type": "value", "value": "%Y"}, {"id": 8, "type": "value", "value": "0"}, {"id": 9, "type": "value", "value": "1"}, {"id": 11, "type": "value", "value": "F"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [11]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [12]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "B-COLUMN", "B-VALUE", "O", "O", "O"]} {"question_id": 7541, "db_id": "mental_health_survey", "dber_id": "bird:train.json:4581", "question": "What is the percentage of the the users who would bring up a mental health issue with a potential employer in an interview?", "SQL": "SELECT CAST(SUM(CASE WHEN T1.AnswerText LIKE 'Yes' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questionid = 12", "tokens": ["What", "is", "the", "percentage", "of", "the", "the", "users", "who", "would", "bring", "up", "a", "mental", "health", "issue", "with", "a", "potential", "employer", "in", "an", "interview", "?"], "entities": [{"id": 2, "type": "column", "value": "questionid"}, {"id": 8, "type": "column", "value": "answertext"}, {"id": 1, "type": "table", "value": "question"}, {"id": 0, "type": "table", "value": "answer"}, {"id": 5, "type": "column", "value": "userid"}, {"id": 4, "type": "value", "value": "100"}, {"id": 9, "type": "value", "value": "Yes"}, {"id": 3, "type": "value", "value": "12"}, {"id": 6, "type": "value", "value": "0"}, {"id": 7, "type": "value", "value": "1"}], "entity_to_token": [{"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": [7]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 9562, "db_id": "phone_1", "dber_id": "spider:train_spider.json:1025", "question": "What are the chip model and screen mode of the phone with hardware model name \"LG-P760\"?", "SQL": "SELECT chip_model , screen_mode FROM phone WHERE Hardware_Model_name = \"LG-P760\";", "tokens": ["What", "are", "the", "chip", "model", "and", "screen", "mode", "of", "the", "phone", "with", "hardware", "model", "name", "\"", "LG", "-", "P760", "\"", "?"], "entities": [{"id": 3, "type": "column", "value": "hardware_model_name"}, {"id": 2, "type": "column", "value": "screen_mode"}, {"id": 1, "type": "column", "value": "chip_model"}, {"id": 4, "type": "column", "value": "LG-P760"}, {"id": 0, "type": "table", "value": "phone"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [16]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 2091, "db_id": "video_games", "dber_id": "bird:train.json:3333", "question": "How many games in the database belong to the genre of sports?", "SQL": "SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Sports'", "tokens": ["How", "many", "games", "in", "the", "database", "belong", "to", "the", "genre", "of", "sports", "?"], "entities": [{"id": 2, "type": "column", "value": "genre_name"}, {"id": 5, "type": "column", "value": "genre_id"}, {"id": 3, "type": "value", "value": "Sports"}, {"id": 1, "type": "table", "value": "genre"}, {"id": 0, "type": "table", "value": "game"}, {"id": 4, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O"]} {"question_id": 13076, "db_id": "formula_1", "dber_id": "bird:dev.json:865", "question": "For all the drivers who finished the game in race No. 592, who is the oldest?", "SQL": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 592 AND T2.time IS NOT NULL AND T1.dob IS NOT NULL ORDER BY T1.dob ASC LIMIT 1", "tokens": ["For", "all", "the", "drivers", "who", "finished", "the", "game", "in", "race", "No", ".", "592", ",", "who", "is", "the", "oldest", "?"], "entities": [{"id": 0, "type": "column", "value": "forename"}, {"id": 5, "type": "column", "value": "driverid"}, {"id": 1, "type": "column", "value": "surname"}, {"id": 2, "type": "table", "value": "drivers"}, {"id": 3, "type": "table", "value": "results"}, {"id": 6, "type": "column", "value": "raceid"}, {"id": 8, "type": "column", "value": "time"}, {"id": 4, "type": "column", "value": "dob"}, {"id": 7, "type": "value", "value": "592"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [0]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": [17]}, {"entity_id": 4, "token_idxs": [10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [9]}, {"entity_id": 7, "token_idxs": [12]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 4374, "db_id": "formula_1", "dber_id": "bird:dev.json:997", "question": "Which citizenship do the vast majority of the drivers hold?", "SQL": "SELECT nationality FROM drivers GROUP BY nationality ORDER BY COUNT(driverId) DESC LIMIT 1", "tokens": ["Which", "citizenship", "do", "the", "vast", "majority", "of", "the", "drivers", "hold", "?"], "entities": [{"id": 1, "type": "column", "value": "nationality"}, {"id": 2, "type": "column", "value": "driverid"}, {"id": 0, "type": "table", "value": "drivers"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O"]} {"question_id": 8849, "db_id": "retail_world", "dber_id": "bird:train.json:6567", "question": "Identify the name of the most popular dairy product in terms of reorder quantity.", "SQL": "SELECT T2.ProductName FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.CategoryName = 'Dairy Products' AND T2.ReorderLevel = ( SELECT MAX(ReorderLevel) FROM Products )", "tokens": ["Identify", "the", "name", "of", "the", "most", "popular", "dairy", "product", "in", "terms", "of", "reorder", "quantity", "."], "entities": [{"id": 5, "type": "value", "value": "Dairy Products"}, {"id": 4, "type": "column", "value": "categoryname"}, {"id": 6, "type": "column", "value": "reorderlevel"}, {"id": 0, "type": "column", "value": "productname"}, {"id": 1, "type": "table", "value": "categories"}, {"id": 3, "type": "column", "value": "categoryid"}, {"id": 2, "type": "table", "value": "products"}], "entity_to_token": [{"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": [7, 8]}, {"entity_id": 6, "token_idxs": [12]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "B-COLUMN", "O", "O"]} {"question_id": 5529, "db_id": "codebase_comments", "dber_id": "bird:train.json:684", "question": "List all the tokenized name of the solution path \"jurney_P4Backup\\P4Backup\\P4Backup.sln\n\".", "SQL": "SELECT DISTINCT T2.NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'jurney_P4BackupP4BackupP4Backup.sln'", "tokens": ["List", "all", "the", "tokenized", "name", "of", "the", "solution", "path", "\"", "jurney_P4Backup\\P4Backup\\P4Backup.sln", "\n", "\"", "."], "entities": [{"id": 4, "type": "value", "value": "jurney_P4BackupP4BackupP4Backup.sln"}, {"id": 0, "type": "column", "value": "nametokenized"}, {"id": 6, "type": "column", "value": "solutionid"}, {"id": 1, "type": "table", "value": "solution"}, {"id": 2, "type": "table", "value": "method"}, {"id": 3, "type": "column", "value": "path"}, {"id": 5, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [10]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "O", "O", "O"]} {"question_id": 10268, "db_id": "icfp_1", "dber_id": "spider:train_spider.json:2886", "question": "How many papers are published by the institution \"Tokohu University\"?", "SQL": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Tokohu University\"", "tokens": ["How", "many", "papers", "are", "published", "by", "the", "institution", "\"", "Tokohu", "University", "\"", "?"], "entities": [{"id": 2, "type": "column", "value": "Tokohu University"}, {"id": 5, "type": "table", "value": "authorship"}, {"id": 7, "type": "column", "value": "paperid"}, {"id": 4, "type": "table", "value": "papers"}, {"id": 6, "type": "column", "value": "instid"}, {"id": 3, "type": "column", "value": "title"}, {"id": 0, "type": "table", "value": "inst"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [9, 10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [2]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 1139, "db_id": "warehouse_1", "dber_id": "bird:test.json:1689", "question": "Find the average and total values of all boxes.", "SQL": "SELECT avg(value) , sum(value) FROM boxes", "tokens": ["Find", "the", "average", "and", "total", "values", "of", "all", "boxes", "."], "entities": [{"id": 0, "type": "table", "value": "boxes"}, {"id": 1, "type": "column", "value": "value"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 8479, "db_id": "cookbook", "dber_id": "bird:train.json:8880", "question": "State the name of the optional ingredient of no.1397 recipe.", "SQL": "SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T2.recipe_id = 1397 AND T2.optional = 'TRUE'", "tokens": ["State", "the", "name", "of", "the", "optional", "ingredient", "of", "no.1397", "recipe", "."], "entities": [{"id": 3, "type": "column", "value": "ingredient_id"}, {"id": 1, "type": "table", "value": "ingredient"}, {"id": 4, "type": "column", "value": "recipe_id"}, {"id": 2, "type": "table", "value": "quantity"}, {"id": 6, "type": "column", "value": "optional"}, {"id": 0, "type": "column", "value": "name"}, {"id": 5, "type": "value", "value": "1397"}, {"id": 7, "type": "value", "value": "TRUE"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": [8]}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "B-TABLE", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 3262, "db_id": "olympics", "dber_id": "bird:train.json:4955", "question": "What age of the competitors is the most numerous?", "SQL": "SELECT age FROM games_competitor GROUP BY age ORDER BY COUNT(person_id) DESC LIMIT 1", "tokens": ["What", "age", "of", "the", "competitors", "is", "the", "most", "numerous", "?"], "entities": [{"id": 0, "type": "table", "value": "games_competitor"}, {"id": 2, "type": "column", "value": "person_id"}, {"id": 1, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O"]} {"question_id": 12492, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1227", "question": "What is the average age of the male patient with high cholesterol?", "SQL": "SELECT AVG(STRFTIME('%Y', date('NOW')) - STRFTIME('%Y', T1.Birthday)) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.`T-CHO` >= 250 AND T1.SEX = 'M'", "tokens": ["What", "is", "the", "average", "age", "of", "the", "male", "patient", "with", "high", "cholesterol", "?"], "entities": [{"id": 1, "type": "table", "value": "laboratory"}, {"id": 8, "type": "column", "value": "birthday"}, {"id": 0, "type": "table", "value": "patient"}, {"id": 3, "type": "column", "value": "T-CHO"}, {"id": 4, "type": "value", "value": "250"}, {"id": 5, "type": "column", "value": "sex"}, {"id": 9, "type": "value", "value": "NOW"}, {"id": 2, "type": "column", "value": "id"}, {"id": 7, "type": "value", "value": "%Y"}, {"id": 6, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [7]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O", "O", "B-COLUMN", "O"]} {"question_id": 452, "db_id": "soccer_2016", "dber_id": "bird:train.json:1964", "question": "Provide the complete name of the venue, city and country where the last match was held.", "SQL": "SELECT T1.Venue_Name, T2.City_Name, T3.Country_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id INNER JOIN Country AS T3 ON T2.Country_Id = T3.Country_Id INNER JOIN Match AS T4 ON T1.Venue_Id = T4.Venue_Id ORDER BY T4.Match_Date DESC LIMIT 1", "tokens": ["Provide", "the", "complete", "name", "of", "the", "venue", ",", "city", "and", "country", "where", "the", "last", "match", "was", "held", "."], "entities": [{"id": 2, "type": "column", "value": "country_name"}, {"id": 0, "type": "column", "value": "venue_name"}, {"id": 4, "type": "column", "value": "match_date"}, {"id": 9, "type": "column", "value": "country_id"}, {"id": 1, "type": "column", "value": "city_name"}, {"id": 6, "type": "column", "value": "venue_id"}, {"id": 5, "type": "table", "value": "country"}, {"id": 10, "type": "column", "value": "city_id"}, {"id": 3, "type": "table", "value": "match"}, {"id": 7, "type": "table", "value": "venue"}, {"id": 8, "type": "table", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [10]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [6]}, {"entity_id": 8, "token_idxs": [8]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "O", "O"]} {"question_id": 2547, "db_id": "talkingdata", "dber_id": "bird:train.json:1076", "question": "How many events in total have happened on the devices in 2016?", "SQL": "SELECT COUNT(event_id) FROM `events` WHERE SUBSTR(`timestamp`, 1, 4) = '2016'", "tokens": ["How", "many", "events", "in", "total", "have", "happened", "on", "the", "devices", "in", "2016", "?"], "entities": [{"id": 3, "type": "column", "value": "timestamp"}, {"id": 2, "type": "column", "value": "event_id"}, {"id": 0, "type": "table", "value": "events"}, {"id": 1, "type": "value", "value": "2016"}, {"id": 4, "type": "value", "value": "1"}, {"id": 5, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [11]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 4803, "db_id": "college_2", "dber_id": "spider:train_spider.json:1454", "question": "Find the total number of students and total number of instructors for each department.", "SQL": "SELECT count(DISTINCT T2.id) , count(DISTINCT T3.id) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name", "tokens": ["Find", "the", "total", "number", "of", "students", "and", "total", "number", "of", "instructors", "for", "each", "department", "."], "entities": [{"id": 1, "type": "table", "value": "instructor"}, {"id": 3, "type": "table", "value": "department"}, {"id": 0, "type": "column", "value": "dept_name"}, {"id": 4, "type": "table", "value": "student"}, {"id": 2, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O"]} {"question_id": 10209, "db_id": "synthea", "dber_id": "bird:train.json:1462", "question": "How many times was Elly Koss given a care plan between 1/11/2009 and 10/23/2010?", "SQL": "SELECT COUNT(T2.PATIENT) FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.START BETWEEN '2009-01-11' AND '2010-10-23'", "tokens": ["How", "many", "times", "was", "Elly", "Koss", "given", "a", "care", "plan", "between", "1/11/2009", "and", "10/23/2010", "?"], "entities": [{"id": 8, "type": "value", "value": "2009-01-11"}, {"id": 9, "type": "value", "value": "2010-10-23"}, {"id": 1, "type": "table", "value": "careplans"}, {"id": 0, "type": "table", "value": "patients"}, {"id": 2, "type": "column", "value": "patient"}, {"id": 3, "type": "column", "value": "first"}, {"id": 7, "type": "column", "value": "start"}, {"id": 4, "type": "value", "value": "Elly"}, {"id": 5, "type": "column", "value": "last"}, {"id": 6, "type": "value", "value": "Koss"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [8, 9]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [4]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [11]}, {"entity_id": 9, "token_idxs": [12, 13]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-VALUE", "B-VALUE", "O", "O", "B-TABLE", "I-TABLE", "O", "B-VALUE", "B-VALUE", "I-VALUE", "O"]} {"question_id": 11808, "db_id": "public_review_platform", "dber_id": "bird:train.json:3791", "question": "Who has got the most number of \"funny\" type of compliments? Give the user ID.", "SQL": "SELECT user_id FROM Users_Compliments WHERE compliment_id IN ( SELECT compliment_id FROM Compliments WHERE compliment_type LIKE 'funny' )", "tokens": ["Who", "has", "got", "the", "most", "number", "of", "\"", "funny", "\"", "type", "of", "compliments", "?", "Give", "the", "user", "ID", "."], "entities": [{"id": 0, "type": "table", "value": "users_compliments"}, {"id": 4, "type": "column", "value": "compliment_type"}, {"id": 2, "type": "column", "value": "compliment_id"}, {"id": 3, "type": "table", "value": "compliments"}, {"id": 1, "type": "column", "value": "user_id"}, {"id": 5, "type": "value", "value": "funny"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5, 6, 11, 12, 13]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O"]} {"question_id": 14728, "db_id": "regional_sales", "dber_id": "bird:train.json:2719", "question": "How much is the discount applied to the order with the highest unit price?", "SQL": "SELECT `Discount Applied` FROM `Sales Orders` WHERE REPLACE(`Unit Price`, ',', '') = ( SELECT REPLACE(`Unit Price`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Price`, ',', '') DESC LIMIT 1 ) ORDER BY REPLACE(`Unit Price`, ',', '') DESC LIMIT 1", "tokens": ["How", "much", "is", "the", "discount", "applied", "to", "the", "order", "with", "the", "highest", "unit", "price", "?"], "entities": [{"id": 1, "type": "column", "value": "Discount Applied"}, {"id": 0, "type": "table", "value": "Sales Orders"}, {"id": 2, "type": "column", "value": "Unit Price"}, {"id": 3, "type": "value", "value": ","}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [4, 5]}, {"entity_id": 2, "token_idxs": [12, 13]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 3006, "db_id": "movie_3", "dber_id": "bird:train.json:9113", "question": "In which year was the film with the highest replacement cost released?", "SQL": "SELECT DISTINCT release_year FROM film WHERE replacement_cost = ( SELECT MAX(replacement_cost) FROM film )", "tokens": ["In", "which", "year", "was", "the", "film", "with", "the", "highest", "replacement", "cost", "released", "?"], "entities": [{"id": 2, "type": "column", "value": "replacement_cost"}, {"id": 1, "type": "column", "value": "release_year"}, {"id": 0, "type": "table", "value": "film"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O"]} {"question_id": 3841, "db_id": "retail_world", "dber_id": "bird:train.json:6632", "question": "How many sales values have been created by sales representative and which sales representative have the highest sales?", "SQL": "SELECT SUM(T3.UnitPrice * T3.Quantity) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID WHERE T1.Title = 'Sales Representative' ORDER BY SUM(T3.UnitPrice * T3.Quantity)", "tokens": ["How", "many", "sales", "values", "have", "been", "created", "by", "sales", "representative", "and", "which", "sales", "representative", "have", "the", "highest", "sales", "?"], "entities": [{"id": 2, "type": "value", "value": "Sales Representative"}, {"id": 0, "type": "table", "value": "Order Details"}, {"id": 8, "type": "column", "value": "employeeid"}, {"id": 3, "type": "table", "value": "employees"}, {"id": 6, "type": "column", "value": "unitprice"}, {"id": 7, "type": "column", "value": "quantity"}, {"id": 5, "type": "column", "value": "orderid"}, {"id": 4, "type": "table", "value": "orders"}, {"id": 1, "type": "column", "value": "title"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [8, 9, 12, 13]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O"]} {"question_id": 13646, "db_id": "public_review_platform", "dber_id": "bird:train.json:4079", "question": "Mention the user ID and their year of joining Yelp who had great experience on business ID 143.", "SQL": "SELECT T2.user_id, T2.user_yelping_since_year FROM Reviews AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id WHERE T1.business_id = 143 AND T1.review_stars = 5", "tokens": ["Mention", "the", "user", "ID", "and", "their", "year", "of", "joining", "Yelp", "who", "had", "great", "experience", "on", "business", "ID", "143", "."], "entities": [{"id": 1, "type": "column", "value": "user_yelping_since_year"}, {"id": 6, "type": "column", "value": "review_stars"}, {"id": 4, "type": "column", "value": "business_id"}, {"id": 0, "type": "column", "value": "user_id"}, {"id": 2, "type": "table", "value": "reviews"}, {"id": 3, "type": "table", "value": "users"}, {"id": 5, "type": "value", "value": "143"}, {"id": 7, "type": "value", "value": "5"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [2]}, {"entity_id": 4, "token_idxs": [15, 16]}, {"entity_id": 5, "token_idxs": [17]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O"]} {"question_id": 12043, "db_id": "warehouse_1", "dber_id": "bird:test.json:1706", "question": "What are the codes of boxes stored in warehouses in either Chicago or New York?", "SQL": "SELECT T1.code FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago' OR T2.location = 'New York'", "tokens": ["What", "are", "the", "codes", "of", "boxes", "stored", "in", "warehouses", "in", "either", "Chicago", "or", "New", "York", "?"], "entities": [{"id": 2, "type": "table", "value": "warehouses"}, {"id": 3, "type": "column", "value": "warehouse"}, {"id": 4, "type": "column", "value": "location"}, {"id": 6, "type": "value", "value": "New York"}, {"id": 5, "type": "value", "value": "Chicago"}, {"id": 1, "type": "table", "value": "boxes"}, {"id": 0, "type": "column", "value": "code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [11]}, {"entity_id": 6, "token_idxs": [13, 14]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "B-VALUE", "I-VALUE", "O"]} {"question_id": 634, "db_id": "sakila_1", "dber_id": "spider:train_spider.json:2973", "question": "Return the titles of any movies with an R rating.", "SQL": "SELECT title FROM film WHERE rating = 'R'", "tokens": ["Return", "the", "titles", "of", "any", "movies", "with", "an", "R", "rating", "."], "entities": [{"id": 2, "type": "column", "value": "rating"}, {"id": 1, "type": "column", "value": "title"}, {"id": 0, "type": "table", "value": "film"}, {"id": 3, "type": "value", "value": "R"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O"]} {"question_id": 10037, "db_id": "disney", "dber_id": "bird:train.json:4661", "question": "How many horror movies are there?", "SQL": "SELECT COUNT(movie_title) FROM `movies_total_gross` WHERE genre = 'Horror'", "tokens": ["How", "many", "horror", "movies", "are", "there", "?"], "entities": [{"id": 0, "type": "table", "value": "movies_total_gross"}, {"id": 3, "type": "column", "value": "movie_title"}, {"id": 2, "type": "value", "value": "Horror"}, {"id": 1, "type": "column", "value": "genre"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O"]} {"question_id": 3681, "db_id": "bike_1", "dber_id": "spider:train_spider.json:162", "question": "What is the installation date for each ending station on all the trips?", "SQL": "SELECT T1.id , T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id", "tokens": ["What", "is", "the", "installation", "date", "for", "each", "ending", "station", "on", "all", "the", "trips", "?"], "entities": [{"id": 1, "type": "column", "value": "installation_date"}, {"id": 4, "type": "column", "value": "end_station_id"}, {"id": 3, "type": "table", "value": "station"}, {"id": 2, "type": "table", "value": "trip"}, {"id": 0, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 12144, "db_id": "formula_1", "dber_id": "bird:dev.json:966", "question": "How many driver participated in race ID number 18?", "SQL": "SELECT COUNT(driverId) FROM driverStandings WHERE raceId = 18", "tokens": ["How", "many", "driver", "participated", "in", "race", "ID", "number", "18", "?"], "entities": [{"id": 0, "type": "table", "value": "driverstandings"}, {"id": 3, "type": "column", "value": "driverid"}, {"id": 1, "type": "column", "value": "raceid"}, {"id": 2, "type": "value", "value": "18"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [2]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O"]} {"question_id": 11543, "db_id": "restaurant", "dber_id": "bird:train.json:1719", "question": "What is the percentage of restaurants in the Bay Area region that scored over 4 for the review rating?", "SQL": "SELECT CAST(SUM(IIF(T2.review > 4, 1, 0)) AS REAL) * 100 / COUNT(T2.id_restaurant) FROM geographic AS T1 RIGHT JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'bay area'", "tokens": ["What", "is", "the", "percentage", "of", "restaurants", "in", "the", "Bay", "Area", "region", "that", "scored", "over", "4", "for", "the", "review", "rating", "?"], "entities": [{"id": 6, "type": "column", "value": "id_restaurant"}, {"id": 1, "type": "table", "value": "generalinfo"}, {"id": 0, "type": "table", "value": "geographic"}, {"id": 3, "type": "value", "value": "bay area"}, {"id": 2, "type": "column", "value": "region"}, {"id": 9, "type": "column", "value": "review"}, {"id": 4, "type": "column", "value": "city"}, {"id": 5, "type": "value", "value": "100"}, {"id": 7, "type": "value", "value": "1"}, {"id": 8, "type": "value", "value": "0"}, {"id": 10, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [18]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [8, 9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [17]}, {"entity_id": 10, "token_idxs": [14]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "B-TABLE", "O"]} {"question_id": 241, "db_id": "talkingdata", "dber_id": "bird:train.json:1139", "question": "Is the oldest device user male or female?", "SQL": "SELECT gender FROM gender_age WHERE age = ( SELECT MAX(age) FROM gender_age )", "tokens": ["Is", "the", "oldest", "device", "user", "male", "or", "female", "?"], "entities": [{"id": 0, "type": "table", "value": "gender_age"}, {"id": 1, "type": "column", "value": "gender"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [8]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O"]} {"question_id": 12588, "db_id": "college_2", "dber_id": "spider:train_spider.json:1394", "question": "Find the maximum and average capacity among rooms in each building.", "SQL": "SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building", "tokens": ["Find", "the", "maximum", "and", "average", "capacity", "among", "rooms", "in", "each", "building", "."], "entities": [{"id": 0, "type": "table", "value": "classroom"}, {"id": 1, "type": "column", "value": "building"}, {"id": 2, "type": "column", "value": "capacity"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "O"]} {"question_id": 14879, "db_id": "boat_1", "dber_id": "bird:test.json:841", "question": "Return all details of sailors who are older than 30.", "SQL": "SELECT * FROM Sailors WHERE age > 30", "tokens": ["Return", "all", "details", "of", "sailors", "who", "are", "older", "than", "30", "."], "entities": [{"id": 0, "type": "table", "value": "sailors"}, {"id": 1, "type": "column", "value": "age"}, {"id": 2, "type": "value", "value": "30"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O"]} {"question_id": 3346, "db_id": "student_loan", "dber_id": "bird:train.json:4473", "question": "How many unemployed students are enlisted in the Army organization?", "SQL": "SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name WHERE T1.organ = 'army'", "tokens": ["How", "many", "unemployed", "students", "are", "enlisted", "in", "the", "Army", "organization", "?"], "entities": [{"id": 1, "type": "table", "value": "unemployed"}, {"id": 0, "type": "table", "value": "enlist"}, {"id": 2, "type": "column", "value": "organ"}, {"id": 3, "type": "value", "value": "army"}, {"id": 4, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O"]} {"question_id": 10084, "db_id": "car_racing", "dber_id": "bird:test.json:1618", "question": "Find the average age of the drivers from the countries that use \"English\" as official native language.", "SQL": "SELECT avg(T2.age) FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T1.Official_native_language = \"English\"", "tokens": ["Find", "the", "average", "age", "of", "the", "drivers", "from", "the", "countries", "that", "use", "\"", "English", "\"", "as", "official", "native", "language", "."], "entities": [{"id": 2, "type": "column", "value": "official_native_language"}, {"id": 5, "type": "column", "value": "country_id"}, {"id": 0, "type": "table", "value": "country"}, {"id": 3, "type": "column", "value": "English"}, {"id": 6, "type": "column", "value": "country"}, {"id": 1, "type": "table", "value": "driver"}, {"id": 4, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [16, 17, 18]}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": [3]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [9]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O"]} {"question_id": 5574, "db_id": "codebase_community", "dber_id": "bird:dev.json:549", "question": "From which post is the tag \"bayesian\" excerpted from? Please give the body of the post.", "SQL": "SELECT T2.Body FROM tags AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.ExcerptPostId WHERE T1.TagName = 'bayesian'", "tokens": ["From", "which", "post", "is", "the", "tag", "\"", "bayesian", "\"", "excerpted", "from", "?", "Please", "give", "the", "body", "of", "the", "post", "."], "entities": [{"id": 6, "type": "column", "value": "excerptpostid"}, {"id": 4, "type": "value", "value": "bayesian"}, {"id": 3, "type": "column", "value": "tagname"}, {"id": 2, "type": "table", "value": "posts"}, {"id": 0, "type": "column", "value": "body"}, {"id": 1, "type": "table", "value": "tags"}, {"id": 5, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [15]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [18]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [9]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 2881, "db_id": "video_games", "dber_id": "bird:train.json:3316", "question": "On which platform was Panzer Tactics released in 2007?", "SQL": "SELECT T5.platform_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id INNER JOIN game_platform AS T4 ON T1.id = T4.game_publisher_id INNER JOIN platform AS T5 ON T4.platform_id = T5.id WHERE T3.game_name = 'Panzer Tactics' AND T4.release_year = 2007", "tokens": ["On", "which", "platform", "was", "Panzer", "Tactics", "released", "in", "2007", "?"], "entities": [{"id": 10, "type": "column", "value": "game_publisher_id"}, {"id": 6, "type": "value", "value": "Panzer Tactics"}, {"id": 11, "type": "table", "value": "game_publisher"}, {"id": 0, "type": "column", "value": "platform_name"}, {"id": 2, "type": "table", "value": "game_platform"}, {"id": 7, "type": "column", "value": "release_year"}, {"id": 14, "type": "column", "value": "publisher_id"}, {"id": 3, "type": "column", "value": "platform_id"}, {"id": 5, "type": "column", "value": "game_name"}, {"id": 12, "type": "table", "value": "publisher"}, {"id": 1, "type": "table", "value": "platform"}, {"id": 13, "type": "column", "value": "game_id"}, {"id": 8, "type": "value", "value": "2007"}, {"id": 9, "type": "table", "value": "game"}, {"id": 4, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [4, 5]}, {"entity_id": 7, "token_idxs": [6]}, {"entity_id": 8, "token_idxs": [8]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O", "B-VALUE", "O"]} {"question_id": 10809, "db_id": "public_review_platform", "dber_id": "bird:train.json:4039", "question": "Find out which business ID are opened all the time.", "SQL": "SELECT DISTINCT business_id FROM Business_Hours WHERE day_id >= 1 AND day_id < 8 AND opening_time = closing_time", "tokens": ["Find", "out", "which", "business", "ID", "are", "opened", "all", "the", "time", "."], "entities": [{"id": 0, "type": "table", "value": "business_hours"}, {"id": 5, "type": "column", "value": "opening_time"}, {"id": 6, "type": "column", "value": "closing_time"}, {"id": 1, "type": "column", "value": "business_id"}, {"id": 2, "type": "column", "value": "day_id"}, {"id": 3, "type": "value", "value": "1"}, {"id": 4, "type": "value", "value": "8"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [6]}, {"entity_id": 6, "token_idxs": [9]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O"]} {"question_id": 13283, "db_id": "hockey", "dber_id": "bird:train.json:7684", "question": "What was the total number of the games that player Id \"rutlewa01\" played in 1967?", "SQL": "SELECT GP FROM Goalies WHERE playerID = 'rutlewa01' AND year = 1967", "tokens": ["What", "was", "the", "total", "number", "of", "the", "games", "that", "player", "I", "d", "\"", "rutlewa01", "\"", "played", "in", "1967", "?"], "entities": [{"id": 3, "type": "value", "value": "rutlewa01"}, {"id": 2, "type": "column", "value": "playerid"}, {"id": 0, "type": "table", "value": "goalies"}, {"id": 4, "type": "column", "value": "year"}, {"id": 5, "type": "value", "value": "1967"}, {"id": 1, "type": "column", "value": "gp"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [9, 10, 11]}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [17]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 11032, "db_id": "university_rank", "dber_id": "bird:test.json:1764", "question": "What is the maximum, average, and minimum enrollment for all universities?", "SQL": "SELECT max(enrollment) , avg(enrollment) , min(enrollment) FROM University", "tokens": ["What", "is", "the", "maximum", ",", "average", ",", "and", "minimum", "enrollment", "for", "all", "universities", "?"], "entities": [{"id": 0, "type": "table", "value": "university"}, {"id": 1, "type": "column", "value": "enrollment"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 4050, "db_id": "soccer_2016", "dber_id": "bird:train.json:1999", "question": "What is the difference between the number of matches where SC Ganguly played as a Captain and those matches where he played other roles?", "SQL": "SELECT SUM(CASE WHEN T3.Role_Id = 1 THEN 1 ELSE 0 END) - SUM(CASE WHEN T3.Role_Id > 1 THEN 1 ELSE 0 END) FROM Player_Match AS T1 INNER JOIN Player AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T1.Role_Id = T3.Role_Id WHERE T2.Player_Name = 'SC Ganguly'", "tokens": ["What", "is", "the", "difference", "between", "the", "number", "of", "matches", "where", "SC", "Ganguly", "played", "as", "a", "Captain", "and", "those", "matches", "where", "he", "played", "other", "roles", "?"], "entities": [{"id": 3, "type": "table", "value": "player_match"}, {"id": 1, "type": "column", "value": "player_name"}, {"id": 2, "type": "value", "value": "SC Ganguly"}, {"id": 6, "type": "column", "value": "player_id"}, {"id": 5, "type": "column", "value": "role_id"}, {"id": 4, "type": "table", "value": "player"}, {"id": 0, "type": "table", "value": "rolee"}, {"id": 7, "type": "value", "value": "0"}, {"id": 8, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [23]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [10, 11]}, {"entity_id": 3, "token_idxs": [8, 18]}, {"entity_id": 4, "token_idxs": [21]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [12]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "B-TABLE", "O"]} {"question_id": 7350, "db_id": "coinmarketcap", "dber_id": "bird:train.json:6284", "question": "Please name the coin that ranked first among the coins traded on April 29, 2013.", "SQL": "SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-29' AND T2.cmc_rank = 1", "tokens": ["Please", "name", "the", "coin", "that", "ranked", "first", "among", "the", "coins", "traded", "on", "April", "29", ",", "2013", "."], "entities": [{"id": 2, "type": "table", "value": "historical"}, {"id": 6, "type": "value", "value": "2013-04-29"}, {"id": 7, "type": "column", "value": "cmc_rank"}, {"id": 4, "type": "column", "value": "coin_id"}, {"id": 1, "type": "table", "value": "coins"}, {"id": 0, "type": "column", "value": "name"}, {"id": 5, "type": "column", "value": "date"}, {"id": 3, "type": "column", "value": "id"}, {"id": 8, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [3]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [12, 13, 14, 15]}, {"entity_id": 7, "token_idxs": [5]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 6065, "db_id": "simpson_episodes", "dber_id": "bird:train.json:4217", "question": "Provide the episode number, title and rating of which were aired in October, 2008.", "SQL": "SELECT episode, title, rating FROM Episode WHERE SUBSTR(air_date, 1, 7) LIKE '2008-10%';", "tokens": ["Provide", "the", "episode", "number", ",", "title", "and", "rating", "of", "which", "were", "aired", "in", "October", ",", "2008", "."], "entities": [{"id": 4, "type": "value", "value": "2008-10%"}, {"id": 5, "type": "column", "value": "air_date"}, {"id": 0, "type": "table", "value": "episode"}, {"id": 1, "type": "column", "value": "episode"}, {"id": 3, "type": "column", "value": "rating"}, {"id": 2, "type": "column", "value": "title"}, {"id": 6, "type": "value", "value": "1"}, {"id": 7, "type": "value", "value": "7"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": [15]}, {"entity_id": 5, "token_idxs": [11]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 15177, "db_id": "student_club", "dber_id": "bird:dev.json:1361", "question": "What is the total cost of the pizzas for all the events?", "SQL": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Pizza'", "tokens": ["What", "is", "the", "total", "cost", "of", "the", "pizzas", "for", "all", "the", "events", "?"], "entities": [{"id": 1, "type": "column", "value": "expense_description"}, {"id": 0, "type": "table", "value": "expense"}, {"id": 2, "type": "value", "value": "Pizza"}, {"id": 3, "type": "column", "value": "cost"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 7428, "db_id": "local_govt_and_lot", "dber_id": "spider:train_spider.json:4844", "question": "What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?", "SQL": "SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party'", "tokens": ["What", "is", "the", "distinct", "service", "types", "that", "are", "provided", "by", "the", "organization", "which", "has", "detail", "'", "Denesik", "and", "Sons", "Party", "'", "?"], "entities": [{"id": 4, "type": "value", "value": "Denesik and Sons Party"}, {"id": 3, "type": "column", "value": "organization_details"}, {"id": 0, "type": "column", "value": "service_type_code"}, {"id": 5, "type": "column", "value": "organization_id"}, {"id": 2, "type": "table", "value": "organizations"}, {"id": 1, "type": "table", "value": "services"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": [16, 17, 18, 19]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O"]} {"question_id": 317, "db_id": "food_inspection_2", "dber_id": "bird:train.json:6225", "question": "How many employees are living in Hoffman Estates, IL?", "SQL": "SELECT COUNT(employee_id) FROM employee WHERE state = 'IL' AND city = 'Hoffman Estates'", "tokens": ["How", "many", "employees", "are", "living", "in", "Hoffman", "Estates", ",", "IL", "?"], "entities": [{"id": 5, "type": "value", "value": "Hoffman Estates"}, {"id": 1, "type": "column", "value": "employee_id"}, {"id": 0, "type": "table", "value": "employee"}, {"id": 2, "type": "column", "value": "state"}, {"id": 4, "type": "column", "value": "city"}, {"id": 3, "type": "value", "value": "IL"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [6]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "B-VALUE", "O"]} {"question_id": 7062, "db_id": "conference", "dber_id": "bird:test.json:1068", "question": "What are the names, locations, and founding years for all institutions?", "SQL": "SELECT institution_name , LOCATION , founded FROM institution", "tokens": ["What", "are", "the", "names", ",", "locations", ",", "and", "founding", "years", "for", "all", "institutions", "?"], "entities": [{"id": 1, "type": "column", "value": "institution_name"}, {"id": 0, "type": "table", "value": "institution"}, {"id": 2, "type": "column", "value": "location"}, {"id": 3, "type": "column", "value": "founded"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 10145, "db_id": "cre_Doc_Tracking_DB", "dber_id": "spider:train_spider.json:4225", "question": "Find the starting date and ending data in location for the document named \"Robin CV\".", "SQL": "SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"", "tokens": ["Find", "the", "starting", "date", "and", "ending", "data", "in", "location", "for", "the", "document", "named", "\"", "Robin", "CV", "\"", "."], "entities": [{"id": 0, "type": "column", "value": "date_in_location_from"}, {"id": 1, "type": "column", "value": "date_in_locaton_to"}, {"id": 2, "type": "table", "value": "document_locations"}, {"id": 3, "type": "table", "value": "all_documents"}, {"id": 4, "type": "column", "value": "document_name"}, {"id": 6, "type": "column", "value": "document_id"}, {"id": 5, "type": "column", "value": "Robin CV"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6, 7]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [12]}, {"entity_id": 5, "token_idxs": [14, 15]}, {"entity_id": 6, "token_idxs": [11]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O"]} {"question_id": 8317, "db_id": "public_review_platform", "dber_id": "bird:train.json:3787", "question": "How many more \"Chinese\" than \"Filipino\" Yelp businesses?", "SQL": "SELECT SUM(CASE WHEN T1.category_name LIKE 'Chinese' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.category_name LIKE 'Filipino' THEN 1 ELSE 0 END) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id", "tokens": ["How", "many", "more", "\"", "Chinese", "\"", "than", "\"", "Filipino", "\"", "Yelp", "businesses", "?"], "entities": [{"id": 1, "type": "table", "value": "business_categories"}, {"id": 5, "type": "column", "value": "category_name"}, {"id": 2, "type": "column", "value": "category_id"}, {"id": 0, "type": "table", "value": "categories"}, {"id": 7, "type": "value", "value": "Filipino"}, {"id": 6, "type": "value", "value": "Chinese"}, {"id": 3, "type": "value", "value": "0"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [2]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 8830, "db_id": "chicago_crime", "dber_id": "bird:train.json:8720", "question": "What is the name of the district with the highest number of domestic violence cases?", "SQL": "SELECT T2.district_name FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.domestic = 'TRUE' GROUP BY T2.district_name ORDER BY COUNT(T1.district_no) DESC LIMIT 1", "tokens": ["What", "is", "the", "name", "of", "the", "district", "with", "the", "highest", "number", "of", "domestic", "violence", "cases", "?"], "entities": [{"id": 0, "type": "column", "value": "district_name"}, {"id": 5, "type": "column", "value": "district_no"}, {"id": 2, "type": "table", "value": "district"}, {"id": 3, "type": "column", "value": "domestic"}, {"id": 1, "type": "table", "value": "crime"}, {"id": 4, "type": "value", "value": "TRUE"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O"]} {"question_id": 1375, "db_id": "movie_1", "dber_id": "spider:train_spider.json:2453", "question": "In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently?", "SQL": "SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year", "tokens": ["In", "what", "years", "did", "a", "movie", "receive", "a", "4", "or", "5", "star", "rating", ",", "and", "list", "the", "years", "from", "oldest", "to", "most", "recently", "?"], "entities": [{"id": 2, "type": "table", "value": "rating"}, {"id": 1, "type": "table", "value": "movie"}, {"id": 3, "type": "column", "value": "stars"}, {"id": 0, "type": "column", "value": "year"}, {"id": 5, "type": "column", "value": "mid"}, {"id": 4, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 7651, "db_id": "movie_3", "dber_id": "bird:train.json:9230", "question": "Give the title of the film starred by Liza Bergman with the highest replacement cost.", "SQL": "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 = 'Liza' AND T1.last_name = 'Bergman' ORDER BY replacement_cost DESC LIMIT 1", "tokens": ["Give", "the", "title", "of", "the", "film", "starred", "by", "Liza", "Bergman", "with", "the", "highest", "replacement", "cost", "."], "entities": [{"id": 2, "type": "column", "value": "replacement_cost"}, {"id": 4, "type": "table", "value": "film_actor"}, {"id": 6, "type": "column", "value": "first_name"}, {"id": 8, "type": "column", "value": "last_name"}, {"id": 10, "type": "column", "value": "actor_id"}, {"id": 5, "type": "column", "value": "film_id"}, {"id": 9, "type": "value", "value": "Bergman"}, {"id": 0, "type": "column", "value": "title"}, {"id": 3, "type": "table", "value": "actor"}, {"id": 1, "type": "table", "value": "film"}, {"id": 7, "type": "value", "value": "Liza"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [8]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [9]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-VALUE", "O", "O", "O", "B-COLUMN", "B-TABLE", "O"]} {"question_id": 12320, "db_id": "advertising_agencies", "dber_id": "bird:test.json:2126", "question": "How many meetings are there for each client id?", "SQL": "SELECT client_id , count(*) FROM Meetings GROUP BY client_id", "tokens": ["How", "many", "meetings", "are", "there", "for", "each", "client", "i", "d", "?"], "entities": [{"id": 1, "type": "column", "value": "client_id"}, {"id": 0, "type": "table", "value": "meetings"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [7, 8, 9]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O"]} {"question_id": 3228, "db_id": "vehicle_driver", "dber_id": "bird:test.json:181", "question": "What are the vehicle ids and models which have been driven by more than 2 drivers or been driven by the driver named 'Jeff Gordon'?", "SQL": "SELECT T1.vehicle_id , T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id JOIN driver AS T3 ON T2.driver_id = T3.driver_id WHERE T3.name = 'Jeff Gordon' UNION SELECT T1.vehicle_id , T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T2.vehicle_id HAVING count(*) > 2", "tokens": ["What", "are", "the", "vehicle", "ids", "and", "models", "which", "have", "been", "driven", "by", "more", "than", "2", "drivers", "or", "been", "driven", "by", "the", "driver", "named", "'", "Jeff", "Gordon", "'", "?"], "entities": [{"id": 6, "type": "table", "value": "vehicle_driver"}, {"id": 4, "type": "value", "value": "Jeff Gordon"}, {"id": 0, "type": "column", "value": "vehicle_id"}, {"id": 8, "type": "column", "value": "driver_id"}, {"id": 5, "type": "table", "value": "vehicle"}, {"id": 2, "type": "table", "value": "driver"}, {"id": 1, "type": "column", "value": "model"}, {"id": 3, "type": "column", "value": "name"}, {"id": 7, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [21]}, {"entity_id": 3, "token_idxs": [22]}, {"entity_id": 4, "token_idxs": [24, 25]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [14]}, {"entity_id": 8, "token_idxs": [15]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O"]} {"question_id": 7019, "db_id": "shakespeare", "dber_id": "bird:train.json:2986", "question": "What is the title of the first ever work of William Shakespeare?", "SQL": "SELECT Title FROM works WHERE Date = ( SELECT MIN(Date) FROM works )", "tokens": ["What", "is", "the", "title", "of", "the", "first", "ever", "work", "of", "William", "Shakespeare", "?"], "entities": [{"id": 0, "type": "table", "value": "works"}, {"id": 1, "type": "column", "value": "title"}, {"id": 2, "type": "column", "value": "date"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O"]} {"question_id": 3585, "db_id": "disney", "dber_id": "bird:train.json:4707", "question": "Name the villain of the movie with Scott Weinger and Brad Kane as voice actors.", "SQL": "SELECT T1.villian FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T2.`voice-actor` = 'Scott Weinger Brad Kane'", "tokens": ["Name", "the", "villain", "of", "the", "movie", "with", "Scott", "Weinger", "and", "Brad", "Kane", "as", "voice", "actors", "."], "entities": [{"id": 4, "type": "value", "value": "Scott Weinger Brad Kane"}, {"id": 2, "type": "table", "value": "voice-actors"}, {"id": 3, "type": "column", "value": "voice-actor"}, {"id": 5, "type": "column", "value": "movie_title"}, {"id": 1, "type": "table", "value": "characters"}, {"id": 0, "type": "column", "value": "villian"}, {"id": 6, "type": "column", "value": "movie"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [14]}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": [7, 8, 9, 10, 11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "B-COLUMN", "B-TABLE", "O"]} {"question_id": 4649, "db_id": "activity_1", "dber_id": "spider:train_spider.json:6769", "question": "How many faculty members participate in an activity?", "SQL": "SELECT count(DISTINCT FacID) FROM Faculty_participates_in", "tokens": ["How", "many", "faculty", "members", "participate", "in", "an", "activity", "?"], "entities": [{"id": 0, "type": "table", "value": "faculty_participates_in"}, {"id": 1, "type": "column", "value": "facid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4, 5]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "O"]} {"question_id": 3657, "db_id": "climbing", "dber_id": "spider:train_spider.json:1114", "question": "List the names of climbers whose country is not Switzerland.", "SQL": "SELECT Name FROM climber WHERE Country != \"Switzerland\"", "tokens": ["List", "the", "names", "of", "climbers", "whose", "country", "is", "not", "Switzerland", "."], "entities": [{"id": 3, "type": "column", "value": "Switzerland"}, {"id": 0, "type": "table", "value": "climber"}, {"id": 2, "type": "column", "value": "country"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O"]} {"question_id": 2471, "db_id": "mondial_geo", "dber_id": "bird:train.json:8477", "question": "Among the organizations where headquarters are in the 'USA', what is the percentage of the them are in 'Washington'?", "SQL": "SELECT CAST(SUM(CASE WHEN T2.City = 'Washington' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.City) FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE T2.Country = 'USA'", "tokens": ["Among", "the", "organizations", "where", "headquarters", "are", "in", "the", "'", "USA", "'", ",", "what", "is", "the", "percentage", "of", "the", "them", "are", "in", "'", "Washington", "'", "?"], "entities": [{"id": 1, "type": "table", "value": "organization"}, {"id": 9, "type": "value", "value": "Washington"}, {"id": 0, "type": "table", "value": "country"}, {"id": 2, "type": "column", "value": "country"}, {"id": 4, "type": "column", "value": "code"}, {"id": 6, "type": "column", "value": "city"}, {"id": 3, "type": "value", "value": "USA"}, {"id": 5, "type": "value", "value": "100"}, {"id": 7, "type": "value", "value": "0"}, {"id": 8, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"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, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [22]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 11401, "db_id": "legislator", "dber_id": "bird:train.json:4887", "question": "What is the religion of current legislator Sherrod Brown?", "SQL": "SELECT religion_bio FROM current WHERE official_full_name = 'Sherrod Brown'", "tokens": ["What", "is", "the", "religion", "of", "current", "legislator", "Sherrod", "Brown", "?"], "entities": [{"id": 2, "type": "column", "value": "official_full_name"}, {"id": 3, "type": "value", "value": "Sherrod Brown"}, {"id": 1, "type": "column", "value": "religion_bio"}, {"id": 0, "type": "table", "value": "current"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [7, 8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O"]} {"question_id": 12374, "db_id": "conference", "dber_id": "bird:test.json:1096", "question": "What are the names and locations of the universities that did not have any staff participating in any conferences in 2004?", "SQL": "SELECT T1.Institution_Name , T1.location FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id = T2.institution_id WHERE T2.staff_id NOT IN (SELECT T4.staff_id FROM Conference AS T3 JOIN Conference_participation AS T4 ON T3.conference_id = T4.conference_id WHERE T3.year = 2004)", "tokens": ["What", "are", "the", "names", "and", "locations", "of", "the", "universities", "that", "did", "not", "have", "any", "staff", "participating", "in", "any", "conferences", "in", "2004", "?"], "entities": [{"id": 7, "type": "table", "value": "conference_participation"}, {"id": 0, "type": "column", "value": "institution_name"}, {"id": 4, "type": "column", "value": "institution_id"}, {"id": 10, "type": "column", "value": "conference_id"}, {"id": 2, "type": "table", "value": "institution"}, {"id": 6, "type": "table", "value": "conference"}, {"id": 1, "type": "column", "value": "location"}, {"id": 5, "type": "column", "value": "staff_id"}, {"id": 3, "type": "table", "value": "staff"}, {"id": 8, "type": "column", "value": "year"}, {"id": 9, "type": "value", "value": "2004"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [8, 9, 10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 5794, "db_id": "music_4", "dber_id": "spider:train_spider.json:6153", "question": "Return the dates of ceremony and the results of all music festivals", "SQL": "SELECT Date_of_ceremony , RESULT FROM music_festival", "tokens": ["Return", "the", "dates", "of", "ceremony", "and", "the", "results", "of", "all", "music", "festivals"], "entities": [{"id": 1, "type": "column", "value": "date_of_ceremony"}, {"id": 0, "type": "table", "value": "music_festival"}, {"id": 2, "type": "column", "value": "result"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10, 11]}, {"entity_id": 1, "token_idxs": [2, 3, 4]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "I-TABLE"]} {"question_id": 651, "db_id": "law_episode", "dber_id": "bird:train.json:1332", "question": "How many episodes are credited to Jerry Orbach?", "SQL": "SELECT COUNT(T2.person_id) FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Jerry Orbach'", "tokens": ["How", "many", "episodes", "are", "credited", "to", "Jerry", "Orbach", "?"], "entities": [{"id": 3, "type": "value", "value": "Jerry Orbach"}, {"id": 4, "type": "column", "value": "person_id"}, {"id": 0, "type": "table", "value": "credit"}, {"id": 1, "type": "table", "value": "person"}, {"id": 2, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "I-TABLE", "O", "B-TABLE", "O", "B-COLUMN"]} {"question_id": 4889, "db_id": "mental_health_survey", "dber_id": "bird:train.json:4606", "question": "How many people wrote comments for the question \"Any additional notes or comments.\"?", "SQL": "SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Any additional notes or comments' AND T1.AnswerText IS NOT NULL", "tokens": ["How", "many", "people", "wrote", "comments", "for", "the", "question", "\"", "Any", "additional", "notes", "or", "comments", ".", "\"", "?"], "entities": [{"id": 5, "type": "value", "value": "Any additional notes or comments"}, {"id": 4, "type": "column", "value": "questiontext"}, {"id": 3, "type": "column", "value": "questionid"}, {"id": 6, "type": "column", "value": "answertext"}, {"id": 1, "type": "table", "value": "question"}, {"id": 0, "type": "table", "value": "answer"}, {"id": 2, "type": "column", "value": "userid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": [10, 11, 12, 13]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O"]} {"question_id": 12254, "db_id": "cre_Docs_and_Epenses", "dber_id": "spider:train_spider.json:6403", "question": "Show the ids and names of all documents.", "SQL": "SELECT document_id , document_name FROM Documents", "tokens": ["Show", "the", "ids", "and", "names", "of", "all", "documents", "."], "entities": [{"id": 2, "type": "column", "value": "document_name"}, {"id": 1, "type": "column", "value": "document_id"}, {"id": 0, "type": "table", "value": "documents"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 4133, "db_id": "university", "dber_id": "bird:train.json:8126", "question": "Calculate number of male students in Emory University in 2011.", "SQL": "SELECT CAST((T1.num_students - (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 T2.university_name = 'Emory University' AND T1.year = 2011", "tokens": ["Calculate", "number", "of", "male", "students", "in", "Emory", "University", "in", "2011", "."], "entities": [{"id": 10, "type": "column", "value": "pct_female_students"}, {"id": 6, "type": "value", "value": "Emory University"}, {"id": 0, "type": "table", "value": "university_year"}, {"id": 5, "type": "column", "value": "university_name"}, {"id": 3, "type": "column", "value": "university_id"}, {"id": 9, "type": "column", "value": "num_students"}, {"id": 1, "type": "table", "value": "university"}, {"id": 7, "type": "column", "value": "year"}, {"id": 8, "type": "value", "value": "2011"}, {"id": 2, "type": "value", "value": "100"}, {"id": 4, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [6]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [9]}, {"entity_id": 9, "token_idxs": [4]}, {"entity_id": 10, "token_idxs": [3]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "B-TABLE", "O", "B-VALUE", "O"]} {"question_id": 10882, "db_id": "customers_card_transactions", "dber_id": "spider:train_spider.json:710", "question": "Count the number of credit cards that the customer with first name Blanche and last name Huels has.", "SQL": "SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Blanche\" AND T2.customer_last_name = \"Huels\" AND T1.card_type_code = \"Credit\"", "tokens": ["Count", "the", "number", "of", "credit", "cards", "that", "the", "customer", "with", "first", "name", "Blanche", "and", "last", "name", "Huels", "has", "."], "entities": [{"id": 3, "type": "column", "value": "customer_first_name"}, {"id": 5, "type": "column", "value": "customer_last_name"}, {"id": 0, "type": "table", "value": "customers_cards"}, {"id": 7, "type": "column", "value": "card_type_code"}, {"id": 2, "type": "column", "value": "customer_id"}, {"id": 1, "type": "table", "value": "customers"}, {"id": 4, "type": "column", "value": "Blanche"}, {"id": 8, "type": "column", "value": "Credit"}, {"id": 6, "type": "column", "value": "Huels"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10, 11]}, {"entity_id": 4, "token_idxs": [12]}, {"entity_id": 5, "token_idxs": [14, 15]}, {"entity_id": 6, "token_idxs": [16]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [4]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O", "O"]} {"question_id": 1137, "db_id": "cre_Doc_Tracking_DB", "dber_id": "spider:train_spider.json:4186", "question": "What is the location code for the country \"Canada\"?", "SQL": "SELECT location_code FROM Ref_locations WHERE location_name = \"Canada\"", "tokens": ["What", "is", "the", "location", "code", "for", "the", "country", "\"", "Canada", "\"", "?"], "entities": [{"id": 0, "type": "table", "value": "ref_locations"}, {"id": 1, "type": "column", "value": "location_code"}, {"id": 2, "type": "column", "value": "location_name"}, {"id": 3, "type": "column", "value": "Canada"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O"]} {"question_id": 5344, "db_id": "online_exams", "dber_id": "bird:test.json:231", "question": "Show all information on students.", "SQL": "SELECT * FROM Students", "tokens": ["Show", "all", "information", "on", "students", "."], "entities": [{"id": 0, "type": "table", "value": "students"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 12592, "db_id": "cre_Doc_Tracking_DB", "dber_id": "spider:train_spider.json:4233", "question": "What are the name and code of the location with the smallest number of documents?", "SQL": "SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1", "tokens": ["What", "are", "the", "name", "and", "code", "of", "the", "location", "with", "the", "smallest", "number", "of", "documents", "?"], "entities": [{"id": 2, "type": "table", "value": "document_locations"}, {"id": 0, "type": "column", "value": "location_code"}, {"id": 1, "type": "column", "value": "location_name"}, {"id": 3, "type": "table", "value": "ref_locations"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [2]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O"]} {"question_id": 15483, "db_id": "address", "dber_id": "bird:train.json:5124", "question": "Name the bad alias of Geneva, AL.", "SQL": "SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Geneva' AND T2.state = 'AL'", "tokens": ["Name", "the", "bad", "alias", "of", "Geneva", ",", "AL", "."], "entities": [{"id": 0, "type": "column", "value": "bad_alias"}, {"id": 2, "type": "table", "value": "zip_data"}, {"id": 3, "type": "column", "value": "zip_code"}, {"id": 5, "type": "value", "value": "Geneva"}, {"id": 1, "type": "table", "value": "avoid"}, {"id": 6, "type": "column", "value": "state"}, {"id": 4, "type": "column", "value": "city"}, {"id": 7, "type": "value", "value": "AL"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [5]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [7]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O"]} {"question_id": 11731, "db_id": "car_racing", "dber_id": "bird:test.json:1591", "question": "How many drivers are there?", "SQL": "SELECT count(*) FROM driver", "tokens": ["How", "many", "drivers", "are", "there", "?"], "entities": [{"id": 0, "type": "table", "value": "driver"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O"]} {"question_id": 2662, "db_id": "codebase_community", "dber_id": "bird:dev.json:663", "question": "What is the id of the youngest user?", "SQL": "SELECT Id FROM users WHERE Age = ( SELECT MIN(Age) FROM users )", "tokens": ["What", "is", "the", "i", "d", "of", "the", "youngest", "user", "?"], "entities": [{"id": 0, "type": "table", "value": "users"}, {"id": 2, "type": "column", "value": "age"}, {"id": 1, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 10942, "db_id": "chicago_crime", "dber_id": "bird:train.json:8671", "question": "Calculate the total beat of the crimes reported in a community area in the central side with population of 50,000 and above.", "SQL": "SELECT 1.0 * SUM(CASE WHEN T1.population > 50000 THEN T2.beat ELSE 0 END) AS sum FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.side = 'Central'", "tokens": ["Calculate", "the", "total", "beat", "of", "the", "crimes", "reported", "in", "a", "community", "area", "in", "the", "central", "side", "with", "population", "of", "50,000", "and", "above", "."], "entities": [{"id": 5, "type": "column", "value": "community_area_no"}, {"id": 0, "type": "table", "value": "community_area"}, {"id": 8, "type": "column", "value": "population"}, {"id": 3, "type": "value", "value": "Central"}, {"id": 1, "type": "table", "value": "crime"}, {"id": 9, "type": "value", "value": "50000"}, {"id": 2, "type": "column", "value": "side"}, {"id": 7, "type": "column", "value": "beat"}, {"id": 4, "type": "value", "value": "1.0"}, {"id": 6, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10, 11]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [15]}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [3]}, {"entity_id": 8, "token_idxs": [17]}, {"entity_id": 9, "token_idxs": [19]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O"]} {"question_id": 15113, "db_id": "car_retails", "dber_id": "bird:train.json:1645", "question": "What is the percentage of employees are in Paris office?", "SQL": "SELECT CAST(COUNT(CASE WHEN t1.city = 'Paris' THEN t2.employeeNumber ELSE NULL END) AS REAL) * 100 / COUNT(t2.employeeNumber) FROM offices AS t1 INNER JOIN employees AS t2 ON t1.officeCode = t2.officeCode", "tokens": ["What", "is", "the", "percentage", "of", "employees", "are", "in", "Paris", "office", "?"], "entities": [{"id": 4, "type": "column", "value": "employeenumber"}, {"id": 2, "type": "column", "value": "officecode"}, {"id": 1, "type": "table", "value": "employees"}, {"id": 0, "type": "table", "value": "offices"}, {"id": 6, "type": "value", "value": "Paris"}, {"id": 5, "type": "column", "value": "city"}, {"id": 3, "type": "value", "value": "100"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [8]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "B-TABLE", "O"]} {"question_id": 14262, "db_id": "works_cycles", "dber_id": "bird:train.json:7227", "question": "When is the modified date of the phone number \"1500 555-0143\"?", "SQL": "SELECT ModifiedDate FROM PersonPhone WHERE PhoneNumber = '1 (11) 500 555-0143'", "tokens": ["When", "is", "the", "modified", "date", "of", "the", "phone", "number", "\"", "1500", "555", "-", "0143", "\"", "?"], "entities": [{"id": 3, "type": "value", "value": "1 (11) 500 555-0143"}, {"id": 1, "type": "column", "value": "modifieddate"}, {"id": 0, "type": "table", "value": "personphone"}, {"id": 2, "type": "column", "value": "phonenumber"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O"]} {"question_id": 10415, "db_id": "soccer_2016", "dber_id": "bird:train.json:2031", "question": "What is the role of W Jaffer in season year 2012?", "SQL": "SELECT T4.Role_Desc FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id INNER JOIN Rolee AS T4 ON T2.Role_Id = T4.Role_Id INNER JOIN Season AS T5 ON T3.Season_Id = T5.Season_Id WHERE T1.Player_name = 'W Jaffer' AND T5.Season_Year = 2012", "tokens": ["What", "is", "the", "role", "of", "W", "Jaffer", "in", "season", "year", "2012", "?"], "entities": [{"id": 11, "type": "table", "value": "player_match"}, {"id": 4, "type": "column", "value": "player_name"}, {"id": 6, "type": "column", "value": "season_year"}, {"id": 0, "type": "column", "value": "role_desc"}, {"id": 3, "type": "column", "value": "season_id"}, {"id": 13, "type": "column", "value": "player_id"}, {"id": 5, "type": "value", "value": "W Jaffer"}, {"id": 12, "type": "column", "value": "match_id"}, {"id": 9, "type": "column", "value": "role_id"}, {"id": 1, "type": "table", "value": "season"}, {"id": 10, "type": "table", "value": "player"}, {"id": 2, "type": "table", "value": "rolee"}, {"id": 8, "type": "table", "value": "match"}, {"id": 7, "type": "value", "value": "2012"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [5, 6]}, {"entity_id": 6, "token_idxs": [9]}, {"entity_id": 7, "token_idxs": [10]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [3]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O"]} {"question_id": 8928, "db_id": "cre_Doc_Tracking_DB", "dber_id": "spider:train_spider.json:4209", "question": "What are the roles with three or more employees? Give me the role codes.", "SQL": "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3", "tokens": ["What", "are", "the", "roles", "with", "three", "or", "more", "employees", "?", "Give", "me", "the", "role", "codes", "."], "entities": [{"id": 0, "type": "table", "value": "employees"}, {"id": 1, "type": "column", "value": "role_code"}, {"id": 2, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [13, 14]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]} {"question_id": 3611, "db_id": "sports_competition", "dber_id": "spider:train_spider.json:3362", "question": "For each position, what is the average number of points for players in that position?", "SQL": "SELECT POSITION , avg(Points) FROM player GROUP BY POSITION", "tokens": ["For", "each", "position", ",", "what", "is", "the", "average", "number", "of", "points", "for", "players", "in", "that", "position", "?"], "entities": [{"id": 1, "type": "column", "value": "position"}, {"id": 0, "type": "table", "value": "player"}, {"id": 2, "type": "column", "value": "points"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O"]} {"question_id": 821, "db_id": "culture_company", "dber_id": "spider:train_spider.json:6980", "question": "Show all publishers which do not have a book in 1989.", "SQL": "SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989", "tokens": ["Show", "all", "publishers", "which", "do", "not", "have", "a", "book", "in", "1989", "."], "entities": [{"id": 0, "type": "table", "value": "book_club"}, {"id": 1, "type": "column", "value": "publisher"}, {"id": 2, "type": "column", "value": "year"}, {"id": 3, "type": "value", "value": "1989"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O"]} {"question_id": 12781, "db_id": "student_assessment", "dber_id": "spider:train_spider.json:103", "question": "What are all info of students who registered courses but not attended courses?", "SQL": "SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "tokens": ["What", "are", "all", "info", "of", "students", "who", "registered", "courses", "but", "not", "attended", "courses", "?"], "entities": [{"id": 0, "type": "table", "value": "student_course_registrations"}, {"id": 2, "type": "table", "value": "student_course_attendance"}, {"id": 1, "type": "column", "value": "student_id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7, 8]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [11, 12]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O", "O", "B-TABLE", "I-TABLE", "O"]} {"question_id": 3814, "db_id": "address", "dber_id": "bird:train.json:5098", "question": "How many counties are there in Alabama?", "SQL": "SELECT COUNT(T2.county) FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Alabama'", "tokens": ["How", "many", "counties", "are", "there", "in", "Alabama", "?"], "entities": [{"id": 5, "type": "column", "value": "abbreviation"}, {"id": 1, "type": "table", "value": "country"}, {"id": 3, "type": "value", "value": "Alabama"}, {"id": 4, "type": "column", "value": "county"}, {"id": 0, "type": "table", "value": "state"}, {"id": 6, "type": "column", "value": "state"}, {"id": 2, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "O"]} {"question_id": 58, "db_id": "retail_world", "dber_id": "bird:train.json:6534", "question": "What are the ID and description of the condiments category?", "SQL": "SELECT CategoryID, Description FROM Categories WHERE CategoryName = 'Condiments'", "tokens": ["What", "are", "the", "ID", "and", "description", "of", "the", "condiments", "category", "?"], "entities": [{"id": 3, "type": "column", "value": "categoryname"}, {"id": 2, "type": "column", "value": "description"}, {"id": 0, "type": "table", "value": "categories"}, {"id": 1, "type": "column", "value": "categoryid"}, {"id": 4, "type": "value", "value": "Condiments"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-VALUE", "B-TABLE", "O"]} {"question_id": 320, "db_id": "olympics", "dber_id": "bird:train.json:4985", "question": "What is the average height of male athletes playing basketball sport?", "SQL": "SELECT AVG(T5.height) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id INNER JOIN competitor_event AS T3 ON T2.id = T3.event_id INNER JOIN games_competitor AS T4 ON T3.competitor_id = T4.id INNER JOIN person AS T5 ON T4.person_id = T5.id WHERE T1.sport_name = 'Basketball' AND T5.gender = 'M'", "tokens": ["What", "is", "the", "average", "height", "of", "male", "athletes", "playing", "basketball", "sport", "?"], "entities": [{"id": 2, "type": "table", "value": "games_competitor"}, {"id": 9, "type": "table", "value": "competitor_event"}, {"id": 10, "type": "column", "value": "competitor_id"}, {"id": 5, "type": "column", "value": "sport_name"}, {"id": 6, "type": "value", "value": "Basketball"}, {"id": 3, "type": "column", "value": "person_id"}, {"id": 13, "type": "column", "value": "event_id"}, {"id": 14, "type": "column", "value": "sport_id"}, {"id": 0, "type": "table", "value": "person"}, {"id": 1, "type": "column", "value": "height"}, {"id": 7, "type": "column", "value": "gender"}, {"id": 11, "type": "table", "value": "sport"}, {"id": 12, "type": "table", "value": "event"}, {"id": 4, "type": "column", "value": "id"}, {"id": 8, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [9]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [6]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": [10]}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "B-VALUE", "B-TABLE", "O"]} {"question_id": 12873, "db_id": "college_2", "dber_id": "spider:train_spider.json:1365", "question": "What are the titles of courses that are in the Statistics department but not the Psychology department?", "SQL": "SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology'", "tokens": ["What", "are", "the", "titles", "of", "courses", "that", "are", "in", "the", "Statistics", "department", "but", "not", "the", "Psychology", "department", "?"], "entities": [{"id": 3, "type": "value", "value": "Statistics"}, {"id": 4, "type": "value", "value": "Psychology"}, {"id": 2, "type": "column", "value": "dept_name"}, {"id": 0, "type": "table", "value": "course"}, {"id": 1, "type": "column", "value": "title"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [15]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O"]} {"question_id": 7149, "db_id": "student_loan", "dber_id": "bird:train.json:4542", "question": "List the names of disabled students enlisted in the navy.", "SQL": "SELECT T1.name FROM enlist AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.organ = 'navy'", "tokens": ["List", "the", "names", "of", "disabled", "students", "enlisted", "in", "the", "navy", "."], "entities": [{"id": 2, "type": "table", "value": "disabled"}, {"id": 1, "type": "table", "value": "enlist"}, {"id": 3, "type": "column", "value": "organ"}, {"id": 0, "type": "column", "value": "name"}, {"id": 4, "type": "value", "value": "navy"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "B-VALUE", "O"]} {"question_id": 11498, "db_id": "california_schools", "dber_id": "bird:dev.json:26", "question": "State the names and full communication address of high schools in Monterey which has more than 800 free or reduced price meals for ages 15-17?", "SQL": "SELECT T1.`School Name`, T2.Street, T2.City, T2.State, T2.Zip FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Monterey' AND T1.`Free Meal Count (Ages 5-17)` > 800 AND T1.`School Type` = 'High Schools (Public)'", "tokens": ["State", "the", "names", "and", "full", "communication", "address", "of", "high", "schools", "in", "Monterey", "which", "has", "more", "than", "800", "free", "or", "reduced", "price", "meals", "for", "ages", "15", "-", "17", "?"], "entities": [{"id": 10, "type": "column", "value": "Free Meal Count (Ages 5-17)"}, {"id": 13, "type": "value", "value": "High Schools (Public)"}, {"id": 0, "type": "column", "value": "School Name"}, {"id": 12, "type": "column", "value": "School Type"}, {"id": 9, "type": "value", "value": "Monterey"}, {"id": 6, "type": "table", "value": "schools"}, {"id": 7, "type": "column", "value": "cdscode"}, {"id": 1, "type": "column", "value": "street"}, {"id": 8, "type": "column", "value": "county"}, {"id": 3, "type": "column", "value": "state"}, {"id": 2, "type": "column", "value": "city"}, {"id": 5, "type": "table", "value": "frpm"}, {"id": 4, "type": "column", "value": "zip"}, {"id": 11, "type": "value", "value": "800"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [9]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [11]}, {"entity_id": 10, "token_idxs": [17, 21, 22, 23, 24, 25, 26]}, {"entity_id": 11, "token_idxs": [16]}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": [8]}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O"]} {"question_id": 4978, "db_id": "real_estate_rentals", "dber_id": "bird:test.json:1413", "question": "Return the first name of the user who owns the most properties.", "SQL": "SELECT T1.first_name FROM Users AS T1 JOIN Properties AS T2 ON T2.owner_user_id = T1.User_id GROUP BY T1.User_id ORDER BY count(*) DESC LIMIT 1;", "tokens": ["Return", "the", "first", "name", "of", "the", "user", "who", "owns", "the", "most", "properties", "."], "entities": [{"id": 4, "type": "column", "value": "owner_user_id"}, {"id": 1, "type": "column", "value": "first_name"}, {"id": 3, "type": "table", "value": "properties"}, {"id": 0, "type": "column", "value": "user_id"}, {"id": 2, "type": "table", "value": "users"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]} {"question_id": 14358, "db_id": "sales", "dber_id": "bird:train.json:5450", "question": "How many \"Mountain-500 Black 42\" were sold in total?", "SQL": "SELECT SUM(T2.Quantity) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Mountain-500 Black, 42'", "tokens": ["How", "many", "\"", "Mountain-500", "Black", "42", "\"", "were", "sold", "in", "total", "?"], "entities": [{"id": 3, "type": "value", "value": "Mountain-500 Black, 42"}, {"id": 5, "type": "column", "value": "productid"}, {"id": 0, "type": "table", "value": "products"}, {"id": 4, "type": "column", "value": "quantity"}, {"id": 1, "type": "table", "value": "sales"}, {"id": 2, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [3, 4, 5]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O"]} {"question_id": 15866, "db_id": "bakery_1", "dber_id": "bird:test.json:1530", "question": "Give the distinct ids for goods that cost less than any Tart.", "SQL": "SELECT DISTINCT id FROM goods WHERE price < (SELECT max(price) FROM goods WHERE food = \"Tart\")", "tokens": ["Give", "the", "distinct", "ids", "for", "goods", "that", "cost", "less", "than", "any", "Tart", "."], "entities": [{"id": 0, "type": "table", "value": "goods"}, {"id": 2, "type": "column", "value": "price"}, {"id": 3, "type": "column", "value": "food"}, {"id": 4, "type": "column", "value": "Tart"}, {"id": 1, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O"]} {"question_id": 13626, "db_id": "club_leader", "dber_id": "bird:test.json:653", "question": "Show the names of club leaders and the names of clubs they joined.", "SQL": "SELECT T3.Name , T2.Club_Name FROM club_leader AS T1 JOIN club AS T2 ON T1.Club_ID = T2.Club_ID JOIN member AS T3 ON T1.Member_ID = T3.Member_ID", "tokens": ["Show", "the", "names", "of", "club", "leaders", "and", "the", "names", "of", "clubs", "they", "joined", "."], "entities": [{"id": 3, "type": "table", "value": "club_leader"}, {"id": 1, "type": "column", "value": "club_name"}, {"id": 5, "type": "column", "value": "member_id"}, {"id": 6, "type": "column", "value": "club_id"}, {"id": 2, "type": "table", "value": "member"}, {"id": 0, "type": "column", "value": "name"}, {"id": 4, "type": "table", "value": "club"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [5]}, {"entity_id": 4, "token_idxs": [4]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [10]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-COLUMN", "O", "B-TABLE", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O"]} {"question_id": 3470, "db_id": "synthea", "dber_id": "bird:train.json:1483", "question": "How many unmarried women were checked for normal pregnancy?", "SQL": "SELECT COUNT(DISTINCT T2.patient) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Normal pregnancy' AND T2.gender = 'F' AND T2.marital = 'S'", "tokens": ["How", "many", "unmarried", "women", "were", "checked", "for", "normal", "pregnancy", "?"], "entities": [{"id": 4, "type": "value", "value": "Normal pregnancy"}, {"id": 3, "type": "column", "value": "description"}, {"id": 0, "type": "table", "value": "conditions"}, {"id": 1, "type": "table", "value": "patients"}, {"id": 2, "type": "column", "value": "patient"}, {"id": 7, "type": "column", "value": "marital"}, {"id": 5, "type": "column", "value": "gender"}, {"id": 6, "type": "value", "value": "F"}, {"id": 8, "type": "value", "value": "S"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O"]} {"question_id": 9502, "db_id": "customers_and_orders", "dber_id": "bird:test.json:278", "question": "Give the code of the payment method that is most commonly used.", "SQL": "SELECT payment_method_code FROM Customers GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1", "tokens": ["Give", "the", "code", "of", "the", "payment", "method", "that", "is", "most", "commonly", "used", "."], "entities": [{"id": 1, "type": "column", "value": "payment_method_code"}, {"id": 0, "type": "table", "value": "customers"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O"]} {"question_id": 9195, "db_id": "books", "dber_id": "bird:train.json:6022", "question": "Who published the book \"The Secret Garden\"?", "SQL": "SELECT DISTINCT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.title = 'The Secret Garden'", "tokens": ["Who", "published", "the", "book", "\"", "The", "Secret", "Garden", "\"", "?"], "entities": [{"id": 4, "type": "value", "value": "The Secret Garden"}, {"id": 0, "type": "column", "value": "publisher_name"}, {"id": 5, "type": "column", "value": "publisher_id"}, {"id": 2, "type": "table", "value": "publisher"}, {"id": 3, "type": "column", "value": "title"}, {"id": 1, "type": "table", "value": "book"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [1]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [5, 6, 7]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "B-TABLE", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O"]} {"question_id": 4010, "db_id": "works_cycles", "dber_id": "bird:train.json:7333", "question": "State the vendor for product number WB-H098.", "SQL": "SELECT T3.Name FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.ProductNumber = 'WB-H098'", "tokens": ["State", "the", "vendor", "for", "product", "number", "WB", "-", "H098", "."], "entities": [{"id": 6, "type": "column", "value": "businessentityid"}, {"id": 2, "type": "column", "value": "productnumber"}, {"id": 5, "type": "table", "value": "productvendor"}, {"id": 7, "type": "column", "value": "productid"}, {"id": 3, "type": "value", "value": "WB-H098"}, {"id": 4, "type": "table", "value": "product"}, {"id": 1, "type": "table", "value": "vendor"}, {"id": 0, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [6, 7, 8]}, {"entity_id": 4, "token_idxs": [4]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "B-TABLE", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "I-VALUE", "I-VALUE", "O"]} {"question_id": 13030, "db_id": "beer_factory", "dber_id": "bird:train.json:5243", "question": "Of the 4 root beers that Frank-Paul Santangelo purchased on 2014/7/7, how many of them were in cans?", "SQL": "SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeer AS T3 ON T2.RootBeerID = T3.RootBeerID WHERE T1.First = 'Frank-Paul' AND T1.Last = 'Santangelo' AND T2.TransactionDate = '2014-07-07' AND T3.ContainerType = 'Can'", "tokens": ["Of", "the", "4", "root", "beers", "that", "Frank", "-", "Paul", "Santangelo", "purchased", "on", "2014/7/7", ",", "how", "many", "of", "them", "were", "in", "cans", "?"], "entities": [{"id": 9, "type": "column", "value": "transactiondate"}, {"id": 11, "type": "column", "value": "containertype"}, {"id": 3, "type": "table", "value": "transaction"}, {"id": 1, "type": "column", "value": "customerid"}, {"id": 4, "type": "column", "value": "rootbeerid"}, {"id": 6, "type": "value", "value": "Frank-Paul"}, {"id": 8, "type": "value", "value": "Santangelo"}, {"id": 10, "type": "value", "value": "2014-07-07"}, {"id": 2, "type": "table", "value": "customers"}, {"id": 0, "type": "table", "value": "rootbeer"}, {"id": 5, "type": "column", "value": "first"}, {"id": 7, "type": "column", "value": "last"}, {"id": 12, "type": "value", "value": "Can"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [6, 7, 8]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [9]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": [12]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": [20]}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_id": 16, "token_idxs": []}, {"entity_id": 17, "token_idxs": []}, {"entity_id": 18, "token_idxs": []}, {"entity_id": 19, "token_idxs": []}], "dber_tags": ["O", "O", "O", "B-TABLE", "I-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "B-VALUE", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O"]}