{"question_id": 1389, "db_id": "books", "dber_id": "bird:train.json:5990", "question": "Which year has the most customer orders?", "SQL": "SELECT strftime('%Y', order_date) FROM cust_order GROUP BY strftime('%Y', order_date) ORDER BY COUNT(strftime('%Y', order_date)) DESC LIMIT 1", "tokens": ["Which", "year", "has", "the", "most", "customer", "orders", "?"], "entities": [{"id": 0, "type": "table", "value": "cust_order"}, {"id": 2, "type": "column", "value": "order_date"}, {"id": 1, "type": "value", "value": "%Y"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [1]}, {"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-VALUE", "O", "O", "O", "B-TABLE", "B-COLUMN", "O"]}
{"question_id": 7179, "db_id": "e_government", "dber_id": "spider:train_spider.json:6323", "question": "What is the last name of the contact individual from the Labour party organization who was contacted most recently?", "SQL": "SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = \"Labour Party\" ORDER BY t2.date_contact_to DESC LIMIT 1", "tokens": ["What", "is", "the", "last", "name", "of", "the", "contact", "individual", "from", "the", "Labour", "party", "organization", "who", "was", "contacted", "most", "recently", "?"], "entities": [{"id": 6, "type": "table", "value": "organization_contact_individuals"}, {"id": 0, "type": "column", "value": "individual_last_name"}, {"id": 2, "type": "column", "value": "organization_name"}, {"id": 4, "type": "column", "value": "date_contact_to"}, {"id": 8, "type": "column", "value": "organization_id"}, {"id": 5, "type": "table", "value": "organizations"}, {"id": 7, "type": "column", "value": "individual_id"}, {"id": 3, "type": "column", "value": "Labour Party"}, {"id": 1, "type": "table", "value": "individuals"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11, 12]}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": [13]}, {"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", "I-COLUMN", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "O"]}
{"question_id": 11573, "db_id": "icfp_1", "dber_id": "spider:train_spider.json:2920", "question": "Retrieve all the last names of authors in alphabetical order.", "SQL": "SELECT lname FROM authors ORDER BY lname", "tokens": ["Retrieve", "all", "the", "last", "names", "of", "authors", "in", "alphabetical", "order", "."], "entities": [{"id": 0, "type": "table", "value": "authors"}, {"id": 1, "type": "column", "value": "lname"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-TABLE", "O", "O", "O", "O"]}
{"question_id": 4892, "db_id": "soccer_2016", "dber_id": "bird:train.json:1900", "question": "What percentage of players have Legbreak skill?", "SQL": "SELECT CAST(SUM(CASE WHEN T2.Bowling_skill = ' Legbreak' THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(T1.Player_Id) FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id", "tokens": ["What", "percentage", "of", "players", "have", "Legbreak", "skill", "?"], "entities": [{"id": 1, "type": "table", "value": "bowling_style"}, {"id": 2, "type": "column", "value": "bowling_skill"}, {"id": 3, "type": "column", "value": "bowling_id"}, {"id": 5, "type": "column", "value": "player_id"}, {"id": 8, "type": "value", "value": " Legbreak"}, {"id": 0, "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": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [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", "B-TABLE", "O", "B-VALUE", "B-COLUMN", "O"]}
{"question_id": 7359, "db_id": "european_football_2", "dber_id": "bird:dev.json:1043", "question": "What is the short name of the football team Queens Park Rangers?", "SQL": "SELECT team_short_name FROM Team WHERE team_long_name = 'Queens Park Rangers'", "tokens": ["What", "is", "the", "short", "name", "of", "the", "football", "team", "Queens", "Park", "Rangers", "?"], "entities": [{"id": 3, "type": "value", "value": "Queens Park Rangers"}, {"id": 1, "type": "column", "value": "team_short_name"}, {"id": 2, "type": "column", "value": "team_long_name"}, {"id": 0, "type": "table", "value": "team"}], "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": [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": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-VALUE", "I-VALUE", "I-VALUE", "O"]}
{"question_id": 15221, "db_id": "sales_in_weather", "dber_id": "bird:train.json:8162", "question": "Which weather station does store no.20 belong to?", "SQL": "SELECT station_nbr FROM relation WHERE store_nbr = 20", "tokens": ["Which", "weather", "station", "does", "store", "no.20", "belong", "to", "?"], "entities": [{"id": 1, "type": "column", "value": "station_nbr"}, {"id": 2, "type": "column", "value": "store_nbr"}, {"id": 0, "type": "table", "value": "relation"}, {"id": 3, "type": "value", "value": "20"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6, 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", "B-TABLE", "O", "O", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 12665, "db_id": "hockey", "dber_id": "bird:train.json:7674", "question": "Among the players who were born in July and August, how many of them got in the Hall of Fame?", "SQL": "SELECT COUNT(T1.playerID) FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID WHERE T1.birthMon IN (7, 8)", "tokens": ["Among", "the", "players", "who", "were", "born", "in", "July", "and", "August", ",", "how", "many", "of", "them", "got", "in", "the", "Hall", "of", "Fame", "?"], "entities": [{"id": 2, "type": "column", "value": "birthmon"}, {"id": 5, "type": "column", "value": "playerid"}, {"id": 0, "type": "table", "value": "master"}, {"id": 6, "type": "column", "value": "hofid"}, {"id": 1, "type": "table", "value": "hof"}, {"id": 3, "type": "value", "value": "7"}, {"id": 4, "type": "value", "value": "8"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": [9]}, {"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", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 6653, "db_id": "donor", "dber_id": "bird:train.json:3227", "question": "What is the number of the year round school in Los Angeles?", "SQL": "SELECT COUNT(school_year_round) FROM projects WHERE school_city = 'Los Angeles' AND school_year_round = 't'", "tokens": ["What", "is", "the", "number", "of", "the", "year", "round", "school", "in", "Los", "Angeles", "?"], "entities": [{"id": 1, "type": "column", "value": "school_year_round"}, {"id": 2, "type": "column", "value": "school_city"}, {"id": 3, "type": "value", "value": "Los Angeles"}, {"id": 0, "type": "table", "value": "projects"}, {"id": 4, "type": "value", "value": "t"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6, 7, 8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [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": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "I-COLUMN", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 10587, "db_id": "hockey", "dber_id": "bird:train.json:7797", "question": "Which Minnesota North Stars' goalkeeper had the most Goal Againsts in his play time?", "SQL": "SELECT playerID FROM Goalies AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T2.name = 'Minnesota North Stars' GROUP BY T1.playerID ORDER BY SUM(T1.GA) DESC LIMIT 1", "tokens": ["Which", "Minnesota", "North", "Stars", "'", "goalkeeper", "had", "the", "most", "Goal", "Againsts", "in", "his", "play", "time", "?"], "entities": [{"id": 4, "type": "value", "value": "Minnesota North Stars"}, {"id": 0, "type": "column", "value": "playerid"}, {"id": 1, "type": "table", "value": "goalies"}, {"id": 2, "type": "table", "value": "teams"}, {"id": 3, "type": "column", "value": "name"}, {"id": 6, "type": "column", "value": "tmid"}, {"id": 7, "type": "column", "value": "year"}, {"id": 5, "type": "column", "value": "ga"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [13]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [1, 2, 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", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 1697, "db_id": "human_resources", "dber_id": "bird:train.json:8965", "question": "How much is the salary of the first ever employee that was hired?", "SQL": "SELECT salary FROM employee ORDER BY hiredate ASC LIMIT 1", "tokens": ["How", "much", "is", "the", "salary", "of", "the", "first", "ever", "employee", "that", "was", "hired", "?"], "entities": [{"id": 0, "type": "table", "value": "employee"}, {"id": 2, "type": "column", "value": "hiredate"}, {"id": 1, "type": "column", "value": "salary"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [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", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O"]}
{"question_id": 1040, "db_id": "codebase_comments", "dber_id": "bird:train.json:578", "question": "In the \"https://github.com/wallerdev/htmlsharp.git\", give all the linearized sequenced of API calls.", "SQL": "SELECT T3.ApiCalls FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId INNER JOIN Method AS T3 ON T2.Id = T3.SolutionId WHERE T1.Url = 'https://github.com/wallerdev/htmlsharp.git'", "tokens": ["In", "the", "\"", "https://github.com/wallerdev/htmlsharp.git", "\"", ",", "give", "all", "the", "linearized", "sequenced", "of", "API", "calls", "."], "entities": [{"id": 3, "type": "value", "value": "https://github.com/wallerdev/htmlsharp.git"}, {"id": 7, "type": "column", "value": "solutionid"}, {"id": 0, "type": "column", "value": "apicalls"}, {"id": 5, "type": "table", "value": "solution"}, {"id": 1, "type": "table", "value": "method"}, {"id": 8, "type": "column", "value": "repoid"}, {"id": 4, "type": "table", "value": "repo"}, {"id": 2, "type": "column", "value": "url"}, {"id": 6, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12, 13]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 6291, "db_id": "candidate_poll", "dber_id": "spider:train_spider.json:2409", "question": "What are the average height and weight across males (sex is M)?", "SQL": "SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M'", "tokens": ["What", "are", "the", "average", "height", "and", "weight", "across", "males", "(", "sex", "is", "M", ")", "?"], "entities": [{"id": 0, "type": "table", "value": "people"}, {"id": 3, "type": "column", "value": "height"}, {"id": 4, "type": "column", "value": "weight"}, {"id": 1, "type": "column", "value": "sex"}, {"id": 2, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": [4]}, {"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", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O"]}
{"question_id": 11770, "db_id": "university", "dber_id": "bird:train.json:8100", "question": "Which ranking system is criteria \"Total Shanghai\" in?", "SQL": "SELECT T1.system_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T2.criteria_name = 'Total Shanghai'", "tokens": ["Which", "ranking", "system", "is", "criteria", "\"", "Total", "Shanghai", "\"", "in", "?"], "entities": [{"id": 6, "type": "column", "value": "ranking_system_id"}, {"id": 2, "type": "table", "value": "ranking_criteria"}, {"id": 1, "type": "table", "value": "ranking_system"}, {"id": 4, "type": "value", "value": "Total Shanghai"}, {"id": 3, "type": "column", "value": "criteria_name"}, {"id": 0, "type": "column", "value": "system_name"}, {"id": 5, "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": []}, {"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": [9]}, {"entity_id": 10, "token_idxs": [8]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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"]}
{"question_id": 14165, "db_id": "pilot_1", "dber_id": "bird:test.json:1143", "question": "Find pilots who own plane Piper Cub but not B-52 Bomber.", "SQL": "SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub' EXCEPT SELECT pilot_name FROM pilotskills WHERE plane_name = 'B-52 Bomber'", "tokens": ["Find", "pilots", "who", "own", "plane", "Piper", "Cub", "but", "not", "B-52", "Bomber", "."], "entities": [{"id": 0, "type": "table", "value": "pilotskills"}, {"id": 4, "type": "value", "value": "B-52 Bomber"}, {"id": 1, "type": "column", "value": "pilot_name"}, {"id": 2, "type": "column", "value": "plane_name"}, {"id": 3, "type": "value", "value": "Piper Cub"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [5, 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", "B-COLUMN", "O", "O", "B-COLUMN", "B-VALUE", "I-VALUE", "O", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 9512, "db_id": "college_1", "dber_id": "spider:train_spider.json:3311", "question": "Find the first names of all instructors who have taught some course and the course description.", "SQL": "SELECT T2.emp_fname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code", "tokens": ["Find", "the", "first", "names", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "the", "course", "description", "."], "entities": [{"id": 1, "type": "column", "value": "crs_description"}, {"id": 0, "type": "column", "value": "emp_fname"}, {"id": 4, "type": "table", "value": "employee"}, {"id": 5, "type": "column", "value": "crs_code"}, {"id": 6, "type": "column", "value": "prof_num"}, {"id": 7, "type": "column", "value": "emp_num"}, {"id": 2, "type": "table", "value": "course"}, {"id": 3, "type": "table", "value": "class"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [15]}, {"entity_id": 2, "token_idxs": [14]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"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", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O"]}
{"question_id": 1127, "db_id": "tv_shows", "dber_id": "bird:test.json:145", "question": "List the affiliations shared by more than three city channels.", "SQL": "SELECT Affiliation FROM city_channel GROUP BY Affiliation HAVING COUNT(*) > 3", "tokens": ["List", "the", "affiliations", "shared", "by", "more", "than", "three", "city", "channels", "."], "entities": [{"id": 0, "type": "table", "value": "city_channel"}, {"id": 1, "type": "column", "value": "affiliation"}, {"id": 2, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8, 9]}, {"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-VALUE", "B-TABLE", "I-TABLE", "O"]}
{"question_id": 9939, "db_id": "cre_Theme_park", "dber_id": "spider:train_spider.json:5935", "question": "Show the average price of hotels for each star rating code.", "SQL": "SELECT star_rating_code , avg(price_range) FROM HOTELS GROUP BY star_rating_code", "tokens": ["Show", "the", "average", "price", "of", "hotels", "for", "each", "star", "rating", "code", "."], "entities": [{"id": 1, "type": "column", "value": "star_rating_code"}, {"id": 2, "type": "column", "value": "price_range"}, {"id": 0, "type": "table", "value": "hotels"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [8, 9, 10]}, {"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-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O"]}
{"question_id": 12509, "db_id": "student_club", "dber_id": "bird:dev.json:1371", "question": "How many members attended the \"Women's Soccer\" event?", "SQL": "SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'", "tokens": ["How", "many", "members", "attended", "the", "\"", "Women", "'s", "Soccer", "\"", "event", "?"], "entities": [{"id": 3, "type": "value", "value": "Women's Soccer"}, {"id": 4, "type": "column", "value": "link_to_member"}, {"id": 6, "type": "column", "value": "link_to_event"}, {"id": 1, "type": "table", "value": "attendance"}, {"id": 2, "type": "column", "value": "event_name"}, {"id": 5, "type": "column", "value": "event_id"}, {"id": 0, "type": "table", "value": "event"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6, 7, 8]}, {"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", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "B-TABLE", "O"]}
{"question_id": 6691, "db_id": "movielens", "dber_id": "bird:train.json:2322", "question": "Please give the ids of the oldest films that got the most ratings.", "SQL": "SELECT DISTINCT T1.movieid FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T1.rating = 5 AND T2.year = 1", "tokens": ["Please", "give", "the", "ids", "of", "the", "oldest", "films", "that", "got", "the", "most", "ratings", "."], "entities": [{"id": 0, "type": "column", "value": "movieid"}, {"id": 1, "type": "table", "value": "u2base"}, {"id": 2, "type": "table", "value": "movies"}, {"id": 3, "type": "column", "value": "rating"}, {"id": 5, "type": "column", "value": "year"}, {"id": 4, "type": "value", "value": "5"}, {"id": 6, "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": [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", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 12855, "db_id": "synthea", "dber_id": "bird:train.json:1380", "question": "How many allergies does Mrs. Saundra Monahan have?", "SQL": "SELECT COUNT(DISTINCT T2.code) FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mrs.' AND T1.first = 'Saundra' AND T1.last = 'Monahan'", "tokens": ["How", "many", "allergies", "does", "Mrs.", "Saundra", "Monahan", "have", "?"], "entities": [{"id": 1, "type": "table", "value": "allergies"}, {"id": 0, "type": "table", "value": "patients"}, {"id": 3, "type": "column", "value": "patient"}, {"id": 7, "type": "value", "value": "Saundra"}, {"id": 9, "type": "value", "value": "Monahan"}, {"id": 4, "type": "column", "value": "prefix"}, {"id": 6, "type": "column", "value": "first"}, {"id": 2, "type": "column", "value": "code"}, {"id": 5, "type": "value", "value": "Mrs."}, {"id": 8, "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": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [4]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [5]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [6]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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-VALUE", "B-VALUE", "O", "O"]}
{"question_id": 3853, "db_id": "app_store", "dber_id": "bird:train.json:2548", "question": "What percentage of no comment reviews are from \"Teen\" content rating apps?", "SQL": "SELECT CAST(COUNT(CASE WHEN T1.`Content Rating` = 'Teen' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.App) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Translated_Review = 'nan'", "tokens": ["What", "percentage", "of", "no", "comment", "reviews", "are", "from", "\"", "Teen", "\"", "content", "rating", "apps", "?"], "entities": [{"id": 2, "type": "column", "value": "translated_review"}, {"id": 7, "type": "column", "value": "Content Rating"}, {"id": 1, "type": "table", "value": "user_reviews"}, {"id": 0, "type": "table", "value": "playstore"}, {"id": 8, "type": "value", "value": "Teen"}, {"id": 3, "type": "value", "value": "nan"}, {"id": 4, "type": "column", "value": "app"}, {"id": 5, "type": "value", "value": "100"}, {"id": 6, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [6]}, {"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": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 13214, "db_id": "club_leader", "dber_id": "bird:test.json:645", "question": "List the names of members in ascending order of age.", "SQL": "SELECT Name FROM member ORDER BY Age ASC", "tokens": ["List", "the", "names", "of", "members", "in", "ascending", "order", "of", "age", "."], "entities": [{"id": 0, "type": "table", "value": "member"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "age"}], "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": 11945, "db_id": "donor", "dber_id": "bird:train.json:3258", "question": "What are the coordinates of the school where project 'Look, Look, We Need a Nook!' Was donated to and what resource type is it?", "SQL": "SELECT T2.school_latitude, T2.school_longitude, T2.resource_type FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Look, Look, We Need a Nook!'", "tokens": ["What", "are", "the", "coordinates", "of", "the", "school", "where", "project", "'", "Look", ",", "Look", ",", "We", "Need", "a", "Nook", "!", "'", "Was", "donated", "to", "and", "what", "resource", "type", "is", "it", "?"], "entities": [{"id": 6, "type": "value", "value": "Look, Look, We Need a Nook!"}, {"id": 1, "type": "column", "value": "school_longitude"}, {"id": 0, "type": "column", "value": "school_latitude"}, {"id": 2, "type": "column", "value": "resource_type"}, {"id": 7, "type": "column", "value": "projectid"}, {"id": 4, "type": "table", "value": "projects"}, {"id": 3, "type": "table", "value": "essays"}, {"id": 5, "type": "column", "value": "title"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [25, 26]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [10, 11, 12, 13, 14, 15, 16, 17, 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", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O"]}
{"question_id": 5183, "db_id": "movie_platform", "dber_id": "bird:train.json:144", "question": "For all list titles with at least 200 movies in the list, what is their average number of followers?", "SQL": "SELECT AVG(list_followers) FROM lists WHERE list_movie_number > 200", "tokens": ["For", "all", "list", "titles", "with", "at", "least", "200", "movies", "in", "the", "list", ",", "what", "is", "their", "average", "number", "of", "followers", "?"], "entities": [{"id": 1, "type": "column", "value": "list_movie_number"}, {"id": 3, "type": "column", "value": "list_followers"}, {"id": 0, "type": "table", "value": "lists"}, {"id": 2, "type": "value", "value": "200"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [6, 7]}, {"entity_id": 3, "token_idxs": [12, 13, 14]}, {"entity_id": 4, "token_idxs": [16, 17, 18]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-VALUE", "I-VALUE", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O"]}
{"question_id": 406, "db_id": "world", "dber_id": "bird:train.json:7836", "question": "How many percent of countries in North America use English?", "SQL": "SELECT CAST(SUM(IIF(T2.Language = 'English', 1, 0)) AS REAL) * 100 / COUNT(T1.Code) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode", "tokens": ["How", "many", "percent", "of", "countries", "in", "North", "America", "use", "English", "?"], "entities": [{"id": 1, "type": "table", "value": "countrylanguage"}, {"id": 3, "type": "column", "value": "countrycode"}, {"id": 7, "type": "column", "value": "language"}, {"id": 0, "type": "table", "value": "country"}, {"id": 8, "type": "value", "value": "English"}, {"id": 2, "type": "column", "value": "code"}, {"id": 4, "type": "value", "value": "100"}, {"id": 5, "type": "value", "value": "1"}, {"id": 6, "type": "value", "value": "0"}], "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": [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", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 6484, "db_id": "insurance_policies", "dber_id": "spider:train_spider.json:3874", "question": "Who are the customers that had more than 1 policy? List the customer details and id.", "SQL": "SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING count(*) > 1", "tokens": ["Who", "are", "the", "customers", "that", "had", "more", "than", "1", "policy", "?", "List", "the", "customer", "details", "and", "i", "d."], "entities": [{"id": 3, "type": "table", "value": "customer_policies"}, {"id": 1, "type": "column", "value": "customer_details"}, {"id": 0, "type": "column", "value": "customer_id"}, {"id": 2, "type": "table", "value": "customers"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [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", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 3878, "db_id": "world", "dber_id": "bird:train.json:7859", "question": "What is the official language of China?", "SQL": "SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'China' AND T2.IsOfficial = 'T'", "tokens": ["What", "is", "the", "official", "language", "of", "China", "?"], "entities": [{"id": 2, "type": "table", "value": "countrylanguage"}, {"id": 4, "type": "column", "value": "countrycode"}, {"id": 7, "type": "column", "value": "isofficial"}, {"id": 0, "type": "column", "value": "language"}, {"id": 1, "type": "table", "value": "country"}, {"id": 6, "type": "value", "value": "China"}, {"id": 3, "type": "column", "value": "code"}, {"id": 5, "type": "column", "value": "name"}, {"id": 8, "type": "value", "value": "T"}], "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": [6]}, {"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", "B-COLUMN", "O", "B-VALUE", "O"]}
{"question_id": 15740, "db_id": "wine_1", "dber_id": "spider:train_spider.json:6570", "question": "What are the distinct wineries which produce wines costing between 50 and 100?", "SQL": "SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100", "tokens": ["What", "are", "the", "distinct", "wineries", "which", "produce", "wines", "costing", "between", "50", "and", "100", "?"], "entities": [{"id": 1, "type": "column", "value": "winery"}, {"id": 2, "type": "column", "value": "price"}, {"id": 0, "type": "table", "value": "wine"}, {"id": 4, "type": "value", "value": "100"}, {"id": 3, "type": "value", "value": "50"}], "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": [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", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 3116, "db_id": "hockey", "dber_id": "bird:train.json:7708", "question": "Which year was the goalie who had the most postseaon shots Against in 2008 born?", "SQL": "SELECT T1.birthYear FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 2008 ORDER BY T2.PostSA DESC LIMIT 1", "tokens": ["Which", "year", "was", "the", "goalie", "who", "had", "the", "most", "postseaon", "shots", "Against", "in", "2008", "born", "?"], "entities": [{"id": 0, "type": "column", "value": "birthyear"}, {"id": 6, "type": "column", "value": "playerid"}, {"id": 2, "type": "table", "value": "goalies"}, {"id": 1, "type": "table", "value": "master"}, {"id": 5, "type": "column", "value": "postsa"}, {"id": 3, "type": "column", "value": "year"}, {"id": 4, "type": "value", "value": "2008"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [1]}, {"entity_id": 4, "token_idxs": [13]}, {"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", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 13004, "db_id": "book_publishing_company", "dber_id": "bird:train.json:215", "question": "What's the royalty for the bestseller book?", "SQL": "SELECT royalty FROM titles ORDER BY ytd_sales DESC LIMIT 1", "tokens": ["What", "'s", "the", "royalty", "for", "the", "bestseller", "book", "?"], "entities": [{"id": 2, "type": "column", "value": "ytd_sales"}, {"id": 1, "type": "column", "value": "royalty"}, {"id": 0, "type": "table", "value": "titles"}], "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": 13143, "db_id": "donor", "dber_id": "bird:train.json:3167", "question": "Who is the largest donor by amount? Give the donation id and the total amount of the donation.", "SQL": "SELECT donationid, donation_total FROM donations ORDER BY donation_total DESC LIMIT 1", "tokens": ["Who", "is", "the", "largest", "donor", "by", "amount", "?", "Give", "the", "donation", "i", "d", "and", "the", "total", "amount", "of", "the", "donation", "."], "entities": [{"id": 2, "type": "column", "value": "donation_total"}, {"id": 1, "type": "column", "value": "donationid"}, {"id": 0, "type": "table", "value": "donations"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [11, 12]}, {"entity_id": 2, "token_idxs": [19]}, {"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", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 7140, "db_id": "perpetrator", "dber_id": "spider:train_spider.json:2318", "question": "List the names of perpetrators in descending order of the year.", "SQL": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Year DESC", "tokens": ["List", "the", "names", "of", "perpetrators", "in", "descending", "order", "of", "the", "year", "."], "entities": [{"id": 2, "type": "table", "value": "perpetrator"}, {"id": 4, "type": "column", "value": "people_id"}, {"id": 1, "type": "table", "value": "people"}, {"id": 0, "type": "column", "value": "name"}, {"id": 3, "type": "column", "value": "year"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [4]}, {"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", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 10015, "db_id": "epinions_1", "dber_id": "spider:train_spider.json:1712", "question": "Find the name of the source user with the highest average trust score.", "SQL": "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.source_u_id GROUP BY T2.source_u_id ORDER BY avg(trust) DESC LIMIT 1", "tokens": ["Find", "the", "name", "of", "the", "source", "user", "with", "the", "highest", "average", "trust", "score", "."], "entities": [{"id": 0, "type": "column", "value": "source_u_id"}, {"id": 2, "type": "table", "value": "useracct"}, {"id": 3, "type": "table", "value": "trust"}, {"id": 5, "type": "column", "value": "trust"}, {"id": 1, "type": "column", "value": "name"}, {"id": 4, "type": "column", "value": "u_id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"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", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 15680, "db_id": "bike_1", "dber_id": "spider:train_spider.json:189", "question": "For each station, return its longitude and the average duration of trips that started from the station.", "SQL": "SELECT T1.name , T1.long , avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id", "tokens": ["For", "each", "station", ",", "return", "its", "longitude", "and", "the", "average", "duration", "of", "trips", "that", "started", "from", "the", "station", "."], "entities": [{"id": 0, "type": "column", "value": "start_station_id"}, {"id": 5, "type": "column", "value": "duration"}, {"id": 3, "type": "table", "value": "station"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "long"}, {"id": 4, "type": "table", "value": "trip"}, {"id": 6, "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": [13, 14]}, {"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-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O"]}
{"question_id": 6389, "db_id": "synthea", "dber_id": "bird:train.json:1426", "question": "Which procedures and medications were received by the patient with the third-degree burn?", "SQL": "SELECT DISTINCT T1.DESCRIPTION, T3.DESCRIPTION FROM procedures AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT INNER JOIN medications AS T3 ON T2.patient = T3.PATIENT WHERE T2.DESCRIPTION = 'Third degree burn'", "tokens": ["Which", "procedures", "and", "medications", "were", "received", "by", "the", "patient", "with", "the", "third", "-", "degree", "burn", "?"], "entities": [{"id": 2, "type": "value", "value": "Third degree burn"}, {"id": 0, "type": "column", "value": "description"}, {"id": 1, "type": "table", "value": "medications"}, {"id": 3, "type": "table", "value": "procedures"}, {"id": 4, "type": "table", "value": "conditions"}, {"id": 5, "type": "column", "value": "patient"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [11, 12, 13, 14]}, {"entity_id": 3, "token_idxs": [1]}, {"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": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_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", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]}
{"question_id": 16070, "db_id": "olympics", "dber_id": "bird:train.json:5051", "question": "How many Belgian men have competed in an Olympic Games?", "SQL": "SELECT COUNT(T2.person_id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Belgium' AND T3.gender = 'M'", "tokens": ["How", "many", "Belgian", "men", "have", "competed", "in", "an", "Olympic", "Games", "?"], "entities": [{"id": 3, "type": "table", "value": "person_region"}, {"id": 5, "type": "column", "value": "region_name"}, {"id": 2, "type": "table", "value": "noc_region"}, {"id": 1, "type": "column", "value": "person_id"}, {"id": 9, "type": "column", "value": "region_id"}, {"id": 6, "type": "value", "value": "Belgium"}, {"id": 0, "type": "table", "value": "person"}, {"id": 7, "type": "column", "value": "gender"}, {"id": 4, "type": "column", "value": "id"}, {"id": 8, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [2]}, {"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-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "I-TABLE"]}
{"question_id": 14727, "db_id": "customers_card_transactions", "dber_id": "spider:train_spider.json:738", "question": "Return the average transaction amount, as well as the total amount of all transactions.", "SQL": "SELECT avg(transaction_amount) , sum(transaction_amount) FROM Financial_transactions", "tokens": ["Return", "the", "average", "transaction", "amount", ",", "as", "well", "as", "the", "total", "amount", "of", "all", "transactions", "."], "entities": [{"id": 0, "type": "table", "value": "financial_transactions"}, {"id": 1, "type": "column", "value": "transaction_amount"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"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", "O", "O", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 5409, "db_id": "e_learning", "dber_id": "spider:train_spider.json:3836", "question": "Find the student ID and login name of the student with the most course enrollments", "SQL": "SELECT T1.student_id , T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "tokens": ["Find", "the", "student", "ID", "and", "login", "name", "of", "the", "student", "with", "the", "most", "course", "enrollments"], "entities": [{"id": 2, "type": "table", "value": "student_course_enrolment"}, {"id": 0, "type": "column", "value": "student_id"}, {"id": 1, "type": "column", "value": "login_name"}, {"id": 3, "type": "table", "value": "students"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [5, 6]}, {"entity_id": 2, "token_idxs": [12, 13, 14]}, {"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", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE"]}
{"question_id": 6224, "db_id": "tracking_software_problems", "dber_id": "spider:train_spider.json:5370", "question": "Find the ids of the problems that are reported by the staff whose last name is Bosco.", "SQL": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = \"Bosco\"", "tokens": ["Find", "the", "ids", "of", "the", "problems", "that", "are", "reported", "by", "the", "staff", "whose", "last", "name", "is", "Bosco", "."], "entities": [{"id": 5, "type": "column", "value": "reported_by_staff_id"}, {"id": 3, "type": "column", "value": "staff_last_name"}, {"id": 0, "type": "column", "value": "problem_id"}, {"id": 1, "type": "table", "value": "problems"}, {"id": 6, "type": "column", "value": "staff_id"}, {"id": 2, "type": "table", "value": "staff"}, {"id": 4, "type": "column", "value": "Bosco"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [13, 14]}, {"entity_id": 4, "token_idxs": [16]}, {"entity_id": 5, "token_idxs": [8, 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", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O"]}
{"question_id": 12054, "db_id": "restaurant_bills", "dber_id": "bird:test.json:625", "question": "Find the customer with the highest membership level and return his or her card credit.", "SQL": "SELECT Card_Credit FROM customer ORDER BY Level_of_Membership DESC LIMIT 1", "tokens": ["Find", "the", "customer", "with", "the", "highest", "membership", "level", "and", "return", "his", "or", "her", "card", "credit", "."], "entities": [{"id": 2, "type": "column", "value": "level_of_membership"}, {"id": 1, "type": "column", "value": "card_credit"}, {"id": 0, "type": "table", "value": "customer"}], "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": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [9]}, {"entity_id": 7, "token_idxs": [11, 12, 13]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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-COLUMN", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 13885, "db_id": "student_club", "dber_id": "bird:dev.json:1347", "question": "Tell the hometown county for \"Adela O'Gallagher\".", "SQL": "SELECT T2.county FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Adela' AND T1.last_name = 'O''Gallagher'", "tokens": ["Tell", "the", "hometown", "county", "for", "\"", "Adela", "O'Gallagher", "\"", "."], "entities": [{"id": 8, "type": "value", "value": "O'Gallagher"}, {"id": 5, "type": "column", "value": "first_name"}, {"id": 7, "type": "column", "value": "last_name"}, {"id": 2, "type": "table", "value": "zip_code"}, {"id": 4, "type": "column", "value": "zip_code"}, {"id": 0, "type": "column", "value": "county"}, {"id": 1, "type": "table", "value": "member"}, {"id": 6, "type": "value", "value": "Adela"}, {"id": 3, "type": "column", "value": "zip"}], "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": [6]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [7]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-VALUE", "O", "O"]}
{"question_id": 1133, "db_id": "insurance_policies", "dber_id": "spider:train_spider.json:3886", "question": "Which kind of policy type was chosen by the most customers?", "SQL": "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1", "tokens": ["Which", "kind", "of", "policy", "type", "was", "chosen", "by", "the", "most", "customers", "?"], "entities": [{"id": 0, "type": "table", "value": "customer_policies"}, {"id": 1, "type": "column", "value": "policy_type_code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"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", "O", "O", "B-TABLE", "O"]}
{"question_id": 13042, "db_id": "trains", "dber_id": "bird:train.json:719", "question": "How many eastbound trains have rectangular-shaped head cars?", "SQL": "SELECT COUNT(T.train_id) FROM (SELECT T1.train_id FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 1 AND T2.direction = 'east' AND T1.shape = 'rectangle' GROUP BY T1.train_id)as T", "tokens": ["How", "many", "eastbound", "trains", "have", "rectangular", "-", "shaped", "head", "cars", "?"], "entities": [{"id": 6, "type": "column", "value": "direction"}, {"id": 9, "type": "value", "value": "rectangle"}, {"id": 0, "type": "column", "value": "train_id"}, {"id": 4, "type": "column", "value": "position"}, {"id": 2, "type": "table", "value": "trains"}, {"id": 8, "type": "column", "value": "shape"}, {"id": 1, "type": "table", "value": "cars"}, {"id": 7, "type": "value", "value": "east"}, {"id": 3, "type": "column", "value": "id"}, {"id": 5, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [9]}, {"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": [2]}, {"entity_id": 8, "token_idxs": [7]}, {"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-VALUE", "B-TABLE", "O", "B-VALUE", "O", "B-COLUMN", "O", "B-TABLE", "O"]}
{"question_id": 6304, "db_id": "address", "dber_id": "bird:train.json:5202", "question": "Calculate the percentage of households in residential areas of countries over 10000.", "SQL": "SELECT CAST(COUNT(CASE WHEN T2.households > 10000 THEN T1.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T1.zip_code) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code", "tokens": ["Calculate", "the", "percentage", "of", "households", "in", "residential", "areas", "of", "countries", "over", "10000", "."], "entities": [{"id": 4, "type": "column", "value": "households"}, {"id": 1, "type": "table", "value": "zip_data"}, {"id": 2, "type": "column", "value": "zip_code"}, {"id": 0, "type": "table", "value": "country"}, {"id": 5, "type": "value", "value": "10000"}, {"id": 3, "type": "value", "value": "100"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [4]}, {"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", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "O"]}
{"question_id": 8565, "db_id": "video_game", "dber_id": "bird:test.json:1967", "question": "Show the title of games that are played by both players from college \"Oklahoma\" and players from college \"Auburn\".", "SQL": "SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.College = \"Oklahoma\" INTERSECT SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.College = \"Auburn\"", "tokens": ["Show", "the", "title", "of", "games", "that", "are", "played", "by", "both", "players", "from", "college", "\"", "Oklahoma", "\"", "and", "players", "from", "college", "\"", "Auburn", "\"", "."], "entities": [{"id": 6, "type": "table", "value": "game_player"}, {"id": 7, "type": "column", "value": "player_id"}, {"id": 3, "type": "column", "value": "Oklahoma"}, {"id": 2, "type": "column", "value": "college"}, {"id": 8, "type": "column", "value": "game_id"}, {"id": 1, "type": "table", "value": "player"}, {"id": 4, "type": "column", "value": "Auburn"}, {"id": 0, "type": "column", "value": "title"}, {"id": 5, "type": "table", "value": "game"}], "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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_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", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 3680, "db_id": "restaurant", "dber_id": "bird:train.json:1765", "question": "What is the full address of the restaurant named \"Sanuki Restaurant\"?", "SQL": "SELECT T2.city, T1.street_num, T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.label = 'sanuki restaurant'", "tokens": ["What", "is", "the", "full", "address", "of", "the", "restaurant", "named", "\"", "Sanuki", "Restaurant", "\"", "?"], "entities": [{"id": 6, "type": "value", "value": "sanuki restaurant"}, {"id": 7, "type": "column", "value": "id_restaurant"}, {"id": 2, "type": "column", "value": "street_name"}, {"id": 4, "type": "table", "value": "generalinfo"}, {"id": 1, "type": "column", "value": "street_num"}, {"id": 3, "type": "table", "value": "location"}, {"id": 5, "type": "column", "value": "label"}, {"id": 0, "type": "column", "value": "city"}], "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": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [10, 11]}, {"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", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 771, "db_id": "food_inspection_2", "dber_id": "bird:train.json:6113", "question": "Please list the assumed name of all the facilities inspected by Joshua Rosa.", "SQL": "SELECT DISTINCT T3.dba_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Joshua' AND T1.last_name = 'Rosa'", "tokens": ["Please", "list", "the", "assumed", "name", "of", "all", "the", "facilities", "inspected", "by", "Joshua", "Rosa", "."], "entities": [{"id": 1, "type": "table", "value": "establishment"}, {"id": 9, "type": "column", "value": "employee_id"}, {"id": 3, "type": "table", "value": "inspection"}, {"id": 4, "type": "column", "value": "license_no"}, {"id": 5, "type": "column", "value": "first_name"}, {"id": 7, "type": "column", "value": "last_name"}, {"id": 0, "type": "column", "value": "dba_name"}, {"id": 2, "type": "table", "value": "employee"}, {"id": 6, "type": "value", "value": "Joshua"}, {"id": 8, "type": "value", "value": "Rosa"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [11]}, {"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": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-VALUE", "B-VALUE", "O"]}
{"question_id": 14983, "db_id": "public_review_platform", "dber_id": "bird:train.json:4033", "question": "Among the users who received high compliments from other users, which users joined Yelp earliest?", "SQL": "SELECT T2.user_id FROM Users AS T1 INNER JOIN Users_Compliments AS T2 ON T1.user_id = T2.user_id WHERE T2.number_of_compliments = 'High' AND T1.user_yelping_since_year = ( SELECT MIN(user_yelping_since_year) FROM Users )", "tokens": ["Among", "the", "users", "who", "received", "high", "compliments", "from", "other", "users", ",", "which", "users", "joined", "Yelp", "earliest", "?"], "entities": [{"id": 5, "type": "column", "value": "user_yelping_since_year"}, {"id": 3, "type": "column", "value": "number_of_compliments"}, {"id": 2, "type": "table", "value": "users_compliments"}, {"id": 0, "type": "column", "value": "user_id"}, {"id": 1, "type": "table", "value": "users"}, {"id": 4, "type": "value", "value": "High"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [5]}, {"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", "O", "B-VALUE", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O"]}
{"question_id": 10894, "db_id": "address", "dber_id": "bird:train.json:5229", "question": "How many postal points with unique post office types are there in Ohio?", "SQL": "SELECT COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Ohio' AND T2.type = 'Unique Post Office'", "tokens": ["How", "many", "postal", "points", "with", "unique", "post", "office", "types", "are", "there", "in", "Ohio", "?"], "entities": [{"id": 8, "type": "value", "value": "Unique Post Office"}, {"id": 3, "type": "column", "value": "abbreviation"}, {"id": 1, "type": "table", "value": "zip_data"}, {"id": 2, "type": "column", "value": "zip_code"}, {"id": 0, "type": "table", "value": "state"}, {"id": 4, "type": "column", "value": "state"}, {"id": 5, "type": "column", "value": "name"}, {"id": 6, "type": "value", "value": "Ohio"}, {"id": 7, "type": "column", "value": "type"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10, 11]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [12]}, {"entity_id": 7, "token_idxs": [8]}, {"entity_id": 8, "token_idxs": [5, 6, 7]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O"]}
{"question_id": 11946, "db_id": "restaurant", "dber_id": "bird:train.json:1695", "question": "Identify all the restaurants in Marin County by their id.", "SQL": "SELECT T1.id_restaurant FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'marin county'", "tokens": ["Identify", "all", "the", "restaurants", "in", "Marin", "County", "by", "their", "i", "d."], "entities": [{"id": 0, "type": "column", "value": "id_restaurant"}, {"id": 4, "type": "value", "value": "marin county"}, {"id": 1, "type": "table", "value": "generalinfo"}, {"id": 2, "type": "table", "value": "geographic"}, {"id": 3, "type": "column", "value": "county"}, {"id": 5, "type": "column", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 9, 10]}, {"entity_id": 1, "token_idxs": []}, {"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": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN"]}
{"question_id": 998, "db_id": "tracking_grants_for_research", "dber_id": "spider:train_spider.json:4373", "question": "What are the details of all organizations that are described as Sponsors and sort the results in ascending order?", "SQL": "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details", "tokens": ["What", "are", "the", "details", "of", "all", "organizations", "that", "are", "described", "as", "Sponsors", "and", "sort", "the", "results", "in", "ascending", "order", "?"], "entities": [{"id": 3, "type": "column", "value": "organisation_type_description"}, {"id": 0, "type": "column", "value": "organisation_details"}, {"id": 2, "type": "table", "value": "organisation_types"}, {"id": 5, "type": "column", "value": "organisation_type"}, {"id": 1, "type": "table", "value": "organisations"}, {"id": 4, "type": "value", "value": "Sponsor"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [13, 14]}, {"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-COLUMN", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O"]}
{"question_id": 10530, "db_id": "gymnast", "dber_id": "spider:train_spider.json:1758", "question": "What are the distinct hometowns of gymnasts with total points more than 57.5?", "SQL": "SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T1.Total_Points > 57.5", "tokens": ["What", "are", "the", "distinct", "hometowns", "of", "gymnasts", "with", "total", "points", "more", "than", "57.5", "?"], "entities": [{"id": 3, "type": "column", "value": "total_points"}, {"id": 5, "type": "column", "value": "gymnast_id"}, {"id": 6, "type": "column", "value": "people_id"}, {"id": 0, "type": "column", "value": "hometown"}, {"id": 1, "type": "table", "value": "gymnast"}, {"id": 2, "type": "table", "value": "people"}, {"id": 4, "type": "value", "value": "57.5"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [8, 9]}, {"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", "B-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O"]}
{"question_id": 488, "db_id": "mondial_geo", "dber_id": "bird:train.json:8473", "question": "Which country has the least organization membership?", "SQL": "SELECT country FROM organization WHERE country IN ( SELECT Code FROM country ) GROUP BY country ORDER BY COUNT(NAME) LIMIT 1", "tokens": ["Which", "country", "has", "the", "least", "organization", "membership", "?"], "entities": [{"id": 0, "type": "table", "value": "organization"}, {"id": 1, "type": "column", "value": "country"}, {"id": 2, "type": "table", "value": "country"}, {"id": 3, "type": "column", "value": "name"}, {"id": 4, "type": "column", "value": "code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [1]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_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", "O"]}
{"question_id": 8669, "db_id": "retail_complains", "dber_id": "bird:train.json:354", "question": "Write down the call id of clients whose first name start with alphabet \"B\".", "SQL": "SELECT T2.call_id FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.first LIKE 'B%'", "tokens": ["Write", "down", "the", "call", "i", "d", "of", "clients", "whose", "first", "name", "start", "with", "alphabet", "\"", "B", "\"", "."], "entities": [{"id": 2, "type": "table", "value": "callcenterlogs"}, {"id": 6, "type": "column", "value": "rand client"}, {"id": 5, "type": "column", "value": "client_id"}, {"id": 0, "type": "column", "value": "call_id"}, {"id": 1, "type": "table", "value": "client"}, {"id": 3, "type": "column", "value": "first"}, {"id": 4, "type": "value", "value": "B%"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4, 5]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9]}, {"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", "I-COLUMN", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 11968, "db_id": "address_1", "dber_id": "bird:test.json:814", "question": "What is the distance between Boston and Newark?", "SQL": "SELECT distance FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code JOIN City AS T3 ON T1.city2_code = T3.city_code WHERE T2.city_name = \"Boston\" AND T3.city_name = \"Newark\"", "tokens": ["What", "is", "the", "distance", "between", "Boston", "and", "Newark", "?"], "entities": [{"id": 2, "type": "table", "value": "direct_distance"}, {"id": 3, "type": "column", "value": "city2_code"}, {"id": 8, "type": "column", "value": "city1_code"}, {"id": 4, "type": "column", "value": "city_code"}, {"id": 5, "type": "column", "value": "city_name"}, {"id": 0, "type": "column", "value": "distance"}, {"id": 6, "type": "column", "value": "Boston"}, {"id": 7, "type": "column", "value": "Newark"}, {"id": 1, "type": "table", "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-TABLE", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 5050, "db_id": "movie_3", "dber_id": "bird:train.json:9249", "question": "Among the movies, what percentage are horror?", "SQL": "SELECT CAST(SUM(IIF(T2.name = 'horror', 1, 0)) AS REAL) * 100 / COUNT(T2.category_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id", "tokens": ["Among", "the", "movies", ",", "what", "percentage", "are", "horror", "?"], "entities": [{"id": 0, "type": "table", "value": "film_category"}, {"id": 2, "type": "column", "value": "category_id"}, {"id": 1, "type": "table", "value": "category"}, {"id": 7, "type": "value", "value": "horror"}, {"id": 6, "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": [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", "O", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 12670, "db_id": "mondial_geo", "dber_id": "bird:train.json:8367", "question": "What is the difference in population between the two nations where the tallest peak is located?", "SQL": "SELECT * FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Country = T2.Country INNER JOIN country AS T4 ON T4.Code = T3.Country WHERE T1.Name = ( SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1 )", "tokens": ["What", "is", "the", "difference", "in", "population", "between", "the", "two", "nations", "where", "the", "tallest", "peak", "is", "located", "?"], "entities": [{"id": 6, "type": "table", "value": "geo_mountain"}, {"id": 2, "type": "table", "value": "province"}, {"id": 5, "type": "table", "value": "mountain"}, {"id": 7, "type": "column", "value": "mountain"}, {"id": 0, "type": "table", "value": "country"}, {"id": 4, "type": "column", "value": "country"}, {"id": 8, "type": "column", "value": "height"}, {"id": 1, "type": "column", "value": "name"}, {"id": 3, "type": "column", "value": "code"}], "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", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 7618, "db_id": "customers_and_orders", "dber_id": "bird:test.json:300", "question": "Give the order status code that is most frequent across customer orders.", "SQL": "SELECT order_status_code FROM Customer_orders GROUP BY order_status_code ORDER BY count(*) DESC LIMIT 1", "tokens": ["Give", "the", "order", "status", "code", "that", "is", "most", "frequent", "across", "customer", "orders", "."], "entities": [{"id": 1, "type": "column", "value": "order_status_code"}, {"id": 0, "type": "table", "value": "customer_orders"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10, 11]}, {"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", "O", "O", "B-TABLE", "I-TABLE", "O"]}
{"question_id": 14952, "db_id": "flight_4", "dber_id": "spider:train_spider.json:6808", "question": "What is the total number of airlines?", "SQL": "SELECT count(*) FROM airlines", "tokens": ["What", "is", "the", "total", "number", "of", "airlines", "?"], "entities": [{"id": 0, "type": "table", "value": "airlines"}], "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": []}, {"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"]}
{"question_id": 7041, "db_id": "movies_4", "dber_id": "bird:train.json:519", "question": "List all the keywords with \"christmas\" in them.", "SQL": "SELECT keyword_name FROM keyword WHERE keyword_name LIKE '%christmas%'", "tokens": ["List", "all", "the", "keywords", "with", "\"", "christmas", "\"", "in", "them", "."], "entities": [{"id": 1, "type": "column", "value": "keyword_name"}, {"id": 2, "type": "value", "value": "%christmas%"}, {"id": 0, "type": "table", "value": "keyword"}], "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": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-VALUE", "O", "O", "O", "O"]}
{"question_id": 13674, "db_id": "customers_and_addresses", "dber_id": "spider:train_spider.json:6091", "question": "Find the state and country of all cities with post code starting with 4.", "SQL": "SELECT state_province_county , country FROM addresses WHERE zip_postcode LIKE \"4%\"", "tokens": ["Find", "the", "state", "and", "country", "of", "all", "cities", "with", "post", "code", "starting", "with", "4", "."], "entities": [{"id": 1, "type": "column", "value": "state_province_county"}, {"id": 3, "type": "column", "value": "zip_postcode"}, {"id": 0, "type": "table", "value": "addresses"}, {"id": 2, "type": "column", "value": "country"}, {"id": 4, "type": "column", "value": "4%"}], "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": [9, 10]}, {"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", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O"]}
{"question_id": 4061, "db_id": "retail_world", "dber_id": "bird:train.json:6595", "question": "Provide the category name of the Chef Anton's Gumbo Mix product that New Orleans Cajun Delights company has.", "SQL": "SELECT T3.CategoryName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN Categories AS T3 ON T2.CategoryID = T3.CategoryID WHERE T1.CompanyName = 'New Orleans Cajun Delights' AND T2.ProductName LIKE 'Chef Anton%s Gumbo Mix'", "tokens": ["Provide", "the", "category", "name", "of", "the", "Chef", "Anton", "'s", "Gumbo", "Mix", "product", "that", "New", "Orleans", "Cajun", "Delights", "company", "has", "."], "entities": [{"id": 6, "type": "value", "value": "New Orleans Cajun Delights"}, {"id": 8, "type": "value", "value": "Chef Anton%s Gumbo Mix"}, {"id": 0, "type": "column", "value": "categoryname"}, {"id": 5, "type": "column", "value": "companyname"}, {"id": 7, "type": "column", "value": "productname"}, {"id": 1, "type": "table", "value": "categories"}, {"id": 4, "type": "column", "value": "categoryid"}, {"id": 9, "type": "column", "value": "supplierid"}, {"id": 2, "type": "table", "value": "suppliers"}, {"id": 3, "type": "table", "value": "products"}], "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": [2]}, {"entity_id": 5, "token_idxs": [17]}, {"entity_id": 6, "token_idxs": [13, 14, 15, 16]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [6, 7, 8, 9, 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-COLUMN", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "O", "O"]}
{"question_id": 12900, "db_id": "european_football_2", "dber_id": "bird:dev.json:1093", "question": "What is the average overall rating of the players born before the year 1986?", "SQL": "SELECT SUM(t2.overall_rating) / COUNT(t1.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t1.birthday, 1, 4) < '1986'", "tokens": ["What", "is", "the", "average", "overall", "rating", "of", "the", "players", "born", "before", "the", "year", "1986", "?"], "entities": [{"id": 1, "type": "table", "value": "player_attributes"}, {"id": 7, "type": "column", "value": "overall_rating"}, {"id": 3, "type": "column", "value": "player_api_id"}, {"id": 4, "type": "column", "value": "birthday"}, {"id": 0, "type": "table", "value": "player"}, {"id": 2, "type": "value", "value": "1986"}, {"id": 8, "type": "column", "value": "id"}, {"id": 5, "type": "value", "value": "1"}, {"id": 6, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"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": [4, 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", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 13697, "db_id": "program_share", "dber_id": "spider:train_spider.json:3759", "question": "Count the number of distinct channel owners.", "SQL": "SELECT count(DISTINCT OWNER) FROM channel", "tokens": ["Count", "the", "number", "of", "distinct", "channel", "owners", "."], "entities": [{"id": 0, "type": "table", "value": "channel"}, {"id": 1, "type": "column", "value": "owner"}], "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"]}
{"question_id": 3139, "db_id": "olympics", "dber_id": "bird:train.json:4965", "question": "How many persons participated in the Sapporo Olympics?", "SQL": "SELECT COUNT(T1.person_id) FROM games_competitor AS T1 INNER JOIN games_city AS T2 ON T1.games_id = T2.games_id INNER JOIN city AS T3 ON T2.city_id = T3.id WHERE T3.city_name = 'Sapporo'", "tokens": ["How", "many", "persons", "participated", "in", "the", "Sapporo", "Olympics", "?"], "entities": [{"id": 4, "type": "table", "value": "games_competitor"}, {"id": 5, "type": "table", "value": "games_city"}, {"id": 1, "type": "column", "value": "city_name"}, {"id": 3, "type": "column", "value": "person_id"}, {"id": 8, "type": "column", "value": "games_id"}, {"id": 2, "type": "value", "value": "Sapporo"}, {"id": 6, "type": "column", "value": "city_id"}, {"id": 0, "type": "table", "value": "city"}, {"id": 7, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"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", "O", "O"]}
{"question_id": 1269, "db_id": "small_bank_1", "dber_id": "spider:train_spider.json:1779", "question": "Count the number of accounts.", "SQL": "SELECT count(*) FROM accounts", "tokens": ["Count", "the", "number", "of", "accounts", "."], "entities": [{"id": 0, "type": "table", "value": "accounts"}], "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": 7744, "db_id": "cre_Theme_park", "dber_id": "spider:train_spider.json:5928", "question": "Find the details of all the markets that are accessible by walk or bus.", "SQL": "SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = \"walk\" OR T2.How_to_Get_There = \"bus\"", "tokens": ["Find", "the", "details", "of", "all", "the", "markets", "that", "are", "accessible", "by", "walk", "or", "bus", "."], "entities": [{"id": 4, "type": "column", "value": "tourist_attraction_id"}, {"id": 2, "type": "table", "value": "tourist_attractions"}, {"id": 5, "type": "column", "value": "how_to_get_there"}, {"id": 0, "type": "column", "value": "market_details"}, {"id": 1, "type": "table", "value": "street_markets"}, {"id": 3, "type": "column", "value": "market_id"}, {"id": 6, "type": "column", "value": "walk"}, {"id": 7, "type": "column", "value": "bus"}], "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": [11]}, {"entity_id": 7, "token_idxs": [13]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-COLUMN", "O", "B-COLUMN", "O"]}
{"question_id": 6912, "db_id": "wine_1", "dber_id": "spider:train_spider.json:6589", "question": "List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.", "SQL": "SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR", "tokens": ["List", "the", "grape", ",", "winery", "and", "year", "of", "the", "wines", "whose", "price", "is", "bigger", "than", "100", "ordered", "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": [2]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": [11]}, {"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-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "O", "O"]}
{"question_id": 4371, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1168", "question": "The oldest SJS patient's medical laboratory work was completed on what date, and what age was the patient when they initially arrived at the hospital?", "SQL": "SELECT T1.Date, STRFTIME('%Y', T2.`First Date`) - STRFTIME('%Y', T2.Birthday),T2.Birthday FROM Laboratory AS T1 INNER JOIN Patient AS T2 ON T1.ID = T2.ID WHERE T2.Diagnosis = 'SJS' AND T2.Birthday IS NOT NULL ORDER BY T2.Birthday ASC LIMIT 1", "tokens": ["The", "oldest", "SJS", "patient", "'s", "medical", "laboratory", "work", "was", "completed", "on", "what", "date", ",", "and", "what", "age", "was", "the", "patient", "when", "they", "initially", "arrived", "at", "the", "hospital", "?"], "entities": [{"id": 2, "type": "table", "value": "laboratory"}, {"id": 8, "type": "column", "value": "First Date"}, {"id": 5, "type": "column", "value": "diagnosis"}, {"id": 1, "type": "column", "value": "birthday"}, {"id": 3, "type": "table", "value": "patient"}, {"id": 0, "type": "column", "value": "date"}, {"id": 6, "type": "value", "value": "SJS"}, {"id": 4, "type": "column", "value": "id"}, {"id": 7, "type": "value", "value": "%Y"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [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", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 1824, "db_id": "professional_basketball", "dber_id": "bird:train.json:2918", "question": "Which player from Wake Forest college did the most offensive rebounds than defensive rebounds in the all-star? Please mention the full name of the player including the middle name if have any.", "SQL": "SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.college = 'Wake Forest' AND T2.o_rebounds > T2.d_rebounds", "tokens": ["Which", "player", "from", "Wake", "Forest", "college", "did", "the", "most", "offensive", "rebounds", "than", "defensive", "rebounds", "in", "the", "all", "-", "star", "?", "Please", "mention", "the", "full", "name", "of", "the", "player", "including", "the", "middle", "name", "if", "have", "any", "."], "entities": [{"id": 4, "type": "table", "value": "player_allstar"}, {"id": 7, "type": "value", "value": "Wake Forest"}, {"id": 1, "type": "column", "value": "middlename"}, {"id": 8, "type": "column", "value": "o_rebounds"}, {"id": 9, "type": "column", "value": "d_rebounds"}, {"id": 0, "type": "column", "value": "firstname"}, {"id": 2, "type": "column", "value": "lastname"}, {"id": 5, "type": "column", "value": "playerid"}, {"id": 3, "type": "table", "value": "players"}, {"id": 6, "type": "column", "value": "college"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [31]}, {"entity_id": 1, "token_idxs": [30]}, {"entity_id": 2, "token_idxs": [24]}, {"entity_id": 3, "token_idxs": [27]}, {"entity_id": 4, "token_idxs": [16, 17, 18]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [5]}, {"entity_id": 7, "token_idxs": [3, 4]}, {"entity_id": 8, "token_idxs": [9, 10]}, {"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", "B-VALUE", "I-VALUE", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "O"]}
{"question_id": 106, "db_id": "public_review_platform", "dber_id": "bird:train.json:3940", "question": "List at least 5 active business ID that are good for groups and dancing.", "SQL": "SELECT T2.business_id FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T2.attribute_value LIKE 'TRUE' AND T1.attribute_name LIKE 'Good for Dancing' AND T1.attribute_name LIKE 'Good for Groups' LIMIT 5", "tokens": ["List", "at", "least", "5", "active", "business", "ID", "that", "are", "good", "for", "groups", "and", "dancing", "."], "entities": [{"id": 3, "type": "table", "value": "business_attributes"}, {"id": 7, "type": "value", "value": "Good for Dancing"}, {"id": 4, "type": "column", "value": "attribute_value"}, {"id": 8, "type": "value", "value": "Good for Groups"}, {"id": 6, "type": "column", "value": "attribute_name"}, {"id": 9, "type": "column", "value": "attribute_id"}, {"id": 0, "type": "column", "value": "business_id"}, {"id": 2, "type": "table", "value": "attributes"}, {"id": 1, "type": "table", "value": "business"}, {"id": 5, "type": "value", "value": "TRUE"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"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": [13]}, {"entity_id": 8, "token_idxs": [9, 10, 11]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 6537, "db_id": "shipping", "dber_id": "bird:train.json:5646", "question": "How many customers who live in California that are retailers?", "SQL": "SELECT COUNT(*) FROM customer WHERE cust_type = 'retailer' AND state = 'CA'", "tokens": ["How", "many", "customers", "who", "live", "in", "California", "that", "are", "retailers", "?"], "entities": [{"id": 1, "type": "column", "value": "cust_type"}, {"id": 0, "type": "table", "value": "customer"}, {"id": 2, "type": "value", "value": "retailer"}, {"id": 3, "type": "column", "value": "state"}, {"id": 4, "type": "value", "value": "CA"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"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", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O"]}
{"question_id": 8808, "db_id": "european_football_1", "dber_id": "bird:train.json:2772", "question": "How many draw games happened on 2018/8/7 for National League?", "SQL": "SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'National League' AND T1.Date = '2018-08-07' AND T1.FTR = 'D'", "tokens": ["How", "many", "draw", "games", "happened", "on", "2018/8/7", "for", "National", "League", "?"], "entities": [{"id": 6, "type": "value", "value": "National League"}, {"id": 8, "type": "value", "value": "2018-08-07"}, {"id": 1, "type": "table", "value": "divisions"}, {"id": 4, "type": "column", "value": "division"}, {"id": 0, "type": "table", "value": "matchs"}, {"id": 5, "type": "column", "value": "name"}, {"id": 7, "type": "column", "value": "date"}, {"id": 2, "type": "column", "value": "ftr"}, {"id": 3, "type": "column", "value": "div"}, {"id": 9, "type": "value", "value": "D"}], "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": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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": 15222, "db_id": "conference", "dber_id": "bird:test.json:1057", "question": "List all conference name, year, and location.", "SQL": "SELECT conference_name , YEAR , LOCATION FROM conference", "tokens": ["List", "all", "conference", "name", ",", "year", ",", "and", "location", "."], "entities": [{"id": 1, "type": "column", "value": "conference_name"}, {"id": 0, "type": "table", "value": "conference"}, {"id": 3, "type": "column", "value": "location"}, {"id": 2, "type": "column", "value": "year"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"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", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O"]}
{"question_id": 2584, "db_id": "restaurant", "dber_id": "bird:train.json:1703", "question": "Please list any five cities that have an unidentified county and region.", "SQL": "SELECT city FROM geographic WHERE county = 'unknown' AND region = 'unknown' LIMIT 5", "tokens": ["Please", "list", "any", "five", "cities", "that", "have", "an", "unidentified", "county", "and", "region", "."], "entities": [{"id": 0, "type": "table", "value": "geographic"}, {"id": 3, "type": "value", "value": "unknown"}, {"id": 2, "type": "column", "value": "county"}, {"id": 4, "type": "column", "value": "region"}, {"id": 1, "type": "column", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [9]}, {"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", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O"]}
{"question_id": 3505, "db_id": "activity_1", "dber_id": "spider:train_spider.json:6746", "question": "Find the faculty rank that has the least members.", "SQL": "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1", "tokens": ["Find", "the", "faculty", "rank", "that", "has", "the", "least", "members", "."], "entities": [{"id": 0, "type": "table", "value": "faculty"}, {"id": 1, "type": "column", "value": "rank"}], "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": []}, {"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", "O"]}
{"question_id": 10987, "db_id": "machine_repair", "dber_id": "spider:train_spider.json:2248", "question": "What are the teams with the most technicians?", "SQL": "SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1", "tokens": ["What", "are", "the", "teams", "with", "the", "most", "technicians", "?"], "entities": [{"id": 0, "type": "table", "value": "technician"}, {"id": 1, "type": "column", "value": "team"}], "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": 3788, "db_id": "image_and_language", "dber_id": "bird:train.json:7547", "question": "How many object samples in image no.908 are in the class of tip?", "SQL": "SELECT SUM(CASE WHEN T2.OBJ_CLASS = 'tip' THEN 1 ELSE 0 END) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 908", "tokens": ["How", "many", "object", "samples", "in", "image", "no.908", "are", "in", "the", "class", "of", "tip", "?"], "entities": [{"id": 4, "type": "column", "value": "obj_class_id"}, {"id": 1, "type": "table", "value": "obj_classes"}, {"id": 7, "type": "column", "value": "obj_class"}, {"id": 0, "type": "table", "value": "img_obj"}, {"id": 2, "type": "column", "value": "img_id"}, {"id": 3, "type": "value", "value": "908"}, {"id": 8, "type": "value", "value": "tip"}, {"id": 5, "type": "value", "value": "0"}, {"id": 6, "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": [6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [10]}, {"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", "B-COLUMN", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O"]}
{"question_id": 14118, "db_id": "insurance_fnol", "dber_id": "spider:train_spider.json:909", "question": "What is the name of the customer who has the most policies listed?", "SQL": "SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1", "tokens": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "the", "most", "policies", "listed", "?"], "entities": [{"id": 2, "type": "table", "value": "customers_policies"}, {"id": 0, "type": "column", "value": "customer_name"}, {"id": 3, "type": "column", "value": "customer_id"}, {"id": 1, "type": "table", "value": "customers"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [6]}, {"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", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O"]}
{"question_id": 9569, "db_id": "music_1", "dber_id": "spider:train_spider.json:3571", "question": "What are the names of all songs that have a lower rating than some song of blues genre?", "SQL": "SELECT song_name FROM song WHERE rating < (SELECT max(rating) FROM song WHERE genre_is = \"blues\")", "tokens": ["What", "are", "the", "names", "of", "all", "songs", "that", "have", "a", "lower", "rating", "than", "some", "song", "of", "blues", "genre", "?"], "entities": [{"id": 1, "type": "column", "value": "song_name"}, {"id": 3, "type": "column", "value": "genre_is"}, {"id": 2, "type": "column", "value": "rating"}, {"id": 4, "type": "column", "value": "blues"}, {"id": 0, "type": "table", "value": "song"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": [13]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [17]}, {"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", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-TABLE", "O", "B-COLUMN", "B-COLUMN", "O"]}
{"question_id": 2414, "db_id": "superstore", "dber_id": "bird:train.json:2453", "question": "Who is the customer with an order shipped on March 5, 2013, in the eastern region?", "SQL": "SELECT DISTINCT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Ship Date` = '2013-03-05'", "tokens": ["Who", "is", "the", "customer", "with", "an", "order", "shipped", "on", "March", "5", ",", "2013", ",", "in", "the", "eastern", "region", "?"], "entities": [{"id": 1, "type": "table", "value": "east_superstore"}, {"id": 0, "type": "column", "value": "Customer Name"}, {"id": 5, "type": "column", "value": "Customer ID"}, {"id": 4, "type": "value", "value": "2013-03-05"}, {"id": 3, "type": "column", "value": "Ship Date"}, {"id": 2, "type": "table", "value": "people"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [16, 17]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [7]}, {"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", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-TABLE", "I-TABLE", "O"]}
{"question_id": 13660, "db_id": "dorm_1", "dber_id": "spider:train_spider.json:5686", "question": "Find the average age of all students living in the each city.", "SQL": "SELECT avg(age) , city_code FROM student GROUP BY city_code", "tokens": ["Find", "the", "average", "age", "of", "all", "students", "living", "in", "the", "each", "city", "."], "entities": [{"id": 1, "type": "column", "value": "city_code"}, {"id": 0, "type": "table", "value": "student"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [11]}, {"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", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 2504, "db_id": "flight_4", "dber_id": "spider:train_spider.json:6837", "question": "Find the name and city of the airport which is the source for the most number of flight routes.", "SQL": "SELECT T1.name , T1.city , T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1", "tokens": ["Find", "the", "name", "and", "city", "of", "the", "airport", "which", "is", "the", "source", "for", "the", "most", "number", "of", "flight", "routes", "."], "entities": [{"id": 0, "type": "column", "value": "src_apid"}, {"id": 3, "type": "table", "value": "airports"}, {"id": 4, "type": "table", "value": "routes"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "city"}, {"id": 5, "type": "column", "value": "apid"}], "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": [7]}, {"entity_id": 4, "token_idxs": [18]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 8702, "db_id": "donor", "dber_id": "bird:train.json:3209", "question": "Is donor “22cbc920c9b5fa08dfb331422f5926b5” a teacher?", "SQL": "SELECT DISTINCT is_teacher_acct FROM donations WHERE donor_acctid = '22cbc920c9b5fa08dfb331422f5926b5'", "tokens": ["Is", "donor", "“", "22cbc920c9b5fa08dfb331422f5926b5", "”", "a", "teacher", "?"], "entities": [{"id": 3, "type": "value", "value": "22cbc920c9b5fa08dfb331422f5926b5"}, {"id": 1, "type": "column", "value": "is_teacher_acct"}, {"id": 2, "type": "column", "value": "donor_acctid"}, {"id": 0, "type": "table", "value": "donations"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [1]}, {"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", "B-COLUMN", "O"]}
{"question_id": 8797, "db_id": "works_cycles", "dber_id": "bird:train.json:7194", "question": "How many people with the name Alex are single and occupying organization level of 1?", "SQL": "SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.FirstName = 'Alex' AND T1.MaritalStatus = 'S' AND T1.OrganizationLevel = 1", "tokens": ["How", "many", "people", "with", "the", "name", "Alex", "are", "single", "and", "occupying", "organization", "level", "of", "1", "?"], "entities": [{"id": 7, "type": "column", "value": "organizationlevel"}, {"id": 2, "type": "column", "value": "businessentityid"}, {"id": 5, "type": "column", "value": "maritalstatus"}, {"id": 3, "type": "column", "value": "firstname"}, {"id": 0, "type": "table", "value": "employee"}, {"id": 1, "type": "table", "value": "person"}, {"id": 4, "type": "value", "value": "Alex"}, {"id": 6, "type": "value", "value": "S"}, {"id": 8, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5, 6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_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-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 7244, "db_id": "codebase_community", "dber_id": "bird:dev.json:703", "question": "Among the tags with tag ID below 15, how many of them have 20 count of posts and below?", "SQL": "SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15", "tokens": ["Among", "the", "tags", "with", "tag", "ID", "below", "15", ",", "how", "many", "of", "them", "have", "20", "count", "of", "posts", "and", "below", "?"], "entities": [{"id": 2, "type": "column", "value": "count"}, {"id": 0, "type": "table", "value": "tags"}, {"id": 1, "type": "column", "value": "id"}, {"id": 3, "type": "value", "value": "20"}, {"id": 4, "type": "value", "value": "15"}], "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": [14]}, {"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", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "O"]}
{"question_id": 14824, "db_id": "movie_3", "dber_id": "bird:train.json:9155", "question": "How many films did actor Daryl Wahlberg appear in?", "SQL": "SELECT COUNT(T1.film_id) FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id WHERE T2.first_name = 'DARYL' AND T2.last_name = 'WAHLBERG'", "tokens": ["How", "many", "films", "did", "actor", "Daryl", "Wahlberg", "appear", "in", "?"], "entities": [{"id": 0, "type": "table", "value": "film_actor"}, {"id": 4, "type": "column", "value": "first_name"}, {"id": 6, "type": "column", "value": "last_name"}, {"id": 3, "type": "column", "value": "actor_id"}, {"id": 7, "type": "value", "value": "WAHLBERG"}, {"id": 2, "type": "column", "value": "film_id"}, {"id": 1, "type": "table", "value": "actor"}, {"id": 5, "type": "value", "value": "DARYL"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"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": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-TABLE", "B-VALUE", "B-VALUE", "O", "O", "O"]}
{"question_id": 6118, "db_id": "csu_1", "dber_id": "spider:train_spider.json:2331", "question": "What campuses opened before 1800?", "SQL": "SELECT campus FROM campuses WHERE YEAR < 1800", "tokens": ["What", "campuses", "opened", "before", "1800", "?"], "entities": [{"id": 0, "type": "table", "value": "campuses"}, {"id": 1, "type": "column", "value": "campus"}, {"id": 2, "type": "column", "value": "year"}, {"id": 3, "type": "value", "value": "1800"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"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", "B-TABLE", "O", "O", "B-VALUE", "O"]}
{"question_id": 11757, "db_id": "allergy_1", "dber_id": "spider:train_spider.json:450", "question": "What is allergy type of a cat allergy?", "SQL": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"", "tokens": ["What", "is", "allergy", "type", "of", "a", "cat", "allergy", "?"], "entities": [{"id": 0, "type": "table", "value": "allergy_type"}, {"id": 1, "type": "column", "value": "allergytype"}, {"id": 2, "type": "column", "value": "allergy"}, {"id": 3, "type": "column", "value": "Cat"}], "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": [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", "B-COLUMN", "O", "O", "B-COLUMN", "B-COLUMN", "O"]}
{"question_id": 434, "db_id": "toxicology", "dber_id": "bird:dev.json:212", "question": "Which element is the least numerous in non-carcinogenic molecules?", "SQL": "SELECT T.element FROM (SELECT T1.element, COUNT(DISTINCT T1.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '-' GROUP BY T1.element ORDER BY COUNT(DISTINCT T1.molecule_id) ASC LIMIT 1) t", "tokens": ["Which", "element", "is", "the", "least", "numerous", "in", "non", "-", "carcinogenic", "molecules", "?"], "entities": [{"id": 5, "type": "column", "value": "molecule_id"}, {"id": 2, "type": "table", "value": "molecule"}, {"id": 0, "type": "column", "value": "element"}, {"id": 3, "type": "column", "value": "label"}, {"id": 1, "type": "table", "value": "atom"}, {"id": 4, "type": "value", "value": "-"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [10]}, {"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", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-TABLE", "O"]}
{"question_id": 8379, "db_id": "cs_semester", "dber_id": "bird:train.json:947", "question": "For the students with an intelligence of 5, list the full name and courses taken by them who have less than a 3 GPA.", "SQL": "SELECT T1.f_name, T1.l_name, T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.intelligence = 5 AND T1.gpa < 3", "tokens": ["For", "the", "students", "with", "an", "intelligence", "of", "5", ",", "list", "the", "full", "name", "and", "courses", "taken", "by", "them", "who", "have", "less", "than", "a", "3", "GPA", "."], "entities": [{"id": 5, "type": "table", "value": "registration"}, {"id": 7, "type": "column", "value": "intelligence"}, {"id": 11, "type": "column", "value": "student_id"}, {"id": 6, "type": "column", "value": "course_id"}, {"id": 4, "type": "table", "value": "student"}, {"id": 0, "type": "column", "value": "f_name"}, {"id": 1, "type": "column", "value": "l_name"}, {"id": 3, "type": "table", "value": "course"}, {"id": 2, "type": "column", "value": "name"}, {"id": 9, "type": "column", "value": "gpa"}, {"id": 8, "type": "value", "value": "5"}, {"id": 10, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": [2]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [5]}, {"entity_id": 8, "token_idxs": [7]}, {"entity_id": 9, "token_idxs": [24]}, {"entity_id": 10, "token_idxs": [23]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O"]}
{"question_id": 7433, "db_id": "software_company", "dber_id": "bird:train.json:8539", "question": "Among the male customers with an level of education of 4 and below, list their income K.", "SQL": "SELECT INCOME_K FROM Demog WHERE GEOID IN ( SELECT GEOID FROM Customers WHERE EDUCATIONNUM < 4 AND SEX = 'Male' )", "tokens": ["Among", "the", "male", "customers", "with", "an", "level", "of", "education", "of", "4", "and", "below", ",", "list", "their", "income", "K."], "entities": [{"id": 4, "type": "column", "value": "educationnum"}, {"id": 3, "type": "table", "value": "customers"}, {"id": 1, "type": "column", "value": "income_k"}, {"id": 0, "type": "table", "value": "demog"}, {"id": 2, "type": "column", "value": "geoid"}, {"id": 7, "type": "value", "value": "Male"}, {"id": 6, "type": "column", "value": "sex"}, {"id": 5, "type": "value", "value": "4"}], "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", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 958, "db_id": "regional_sales", "dber_id": "bird:train.json:2733", "question": "Name the product that was registered in the sales order 'SO - 0005951'.", "SQL": "SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.OrderNumber = 'SO - 0005951' THEN T1.`Product Name` ELSE NULL END AS T FROM Products T1 INNER JOIN `Sales Orders` T2 ON T2._ProductID = T1.ProductID ) WHERE T IS NOT NULL", "tokens": ["Name", "the", "product", "that", "was", "registered", "in", "the", "sales", "order", "'", "SO", "-", "0005951", "'", "."], "entities": [{"id": 2, "type": "table", "value": "Sales Orders"}, {"id": 5, "type": "column", "value": "Product Name"}, {"id": 7, "type": "value", "value": "SO - 0005951"}, {"id": 6, "type": "column", "value": "ordernumber"}, {"id": 3, "type": "column", "value": "_productid"}, {"id": 4, "type": "column", "value": "productid"}, {"id": 1, "type": "table", "value": "products"}, {"id": 0, "type": "column", "value": "t"}], "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": []}, {"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", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 1891, "db_id": "cre_Doc_Tracking_DB", "dber_id": "spider:train_spider.json:4220", "question": "Show the location name for document \"Robin CV\".", "SQL": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"", "tokens": ["Show", "the", "location", "name", "for", "document", "\"", "Robin", "CV", "\"", "."], "entities": [{"id": 5, "type": "table", "value": "document_locations"}, {"id": 0, "type": "column", "value": "location_name"}, {"id": 1, "type": "table", "value": "ref_locations"}, {"id": 2, "type": "column", "value": "document_name"}, {"id": 4, "type": "table", "value": "all_documents"}, {"id": 6, "type": "column", "value": "location_code"}, {"id": 7, "type": "column", "value": "document_id"}, {"id": 3, "type": "column", "value": "Robin CV"}], "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": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"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", "I-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O"]}
{"question_id": 9654, "db_id": "vehicle_driver", "dber_id": "bird:test.json:169", "question": "What is the average top speed of vehicles?", "SQL": "SELECT avg(top_speed) FROM vehicle", "tokens": ["What", "is", "the", "average", "top", "speed", "of", "vehicles", "?"], "entities": [{"id": 1, "type": "column", "value": "top_speed"}, {"id": 0, "type": "table", "value": "vehicle"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [4, 5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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"]}
{"question_id": 6865, "db_id": "insurance_policies", "dber_id": "spider:train_spider.json:3860", "question": "Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled.", "SQL": "SELECT Date_Claim_Made , Date_Claim_Settled FROM Claims WHERE Amount_Claimed > ( SELECT avg(Amount_Claimed) FROM Claims )", "tokens": ["Among", "all", "the", "claims", ",", "which", "claims", "have", "a", "claimed", "amount", "larger", "than", "the", "average", "?", "List", "the", "date", "the", "claim", "was", "made", "and", "the", "date", "it", "was", "settled", "."], "entities": [{"id": 2, "type": "column", "value": "date_claim_settled"}, {"id": 1, "type": "column", "value": "date_claim_made"}, {"id": 3, "type": "column", "value": "amount_claimed"}, {"id": 0, "type": "table", "value": "claims"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [18, 19, 20, 21, 22]}, {"entity_id": 2, "token_idxs": [25, 26, 27, 28]}, {"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", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O"]}
{"question_id": 14166, "db_id": "film_rank", "dber_id": "spider:train_spider.json:4134", "question": "What is the average number of cities of markets with low film market estimate bigger than 10000?", "SQL": "SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000", "tokens": ["What", "is", "the", "average", "number", "of", "cities", "of", "markets", "with", "low", "film", "market", "estimate", "bigger", "than", "10000", "?"], "entities": [{"id": 0, "type": "table", "value": "film_market_estimation"}, {"id": 4, "type": "column", "value": "number_cities"}, {"id": 2, "type": "column", "value": "low_estimate"}, {"id": 5, "type": "column", "value": "market_id"}, {"id": 1, "type": "table", "value": "market"}, {"id": 3, "type": "value", "value": "10000"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [12]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": [16]}, {"entity_id": 4, "token_idxs": [4, 5, 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", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-TABLE", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "O"]}
{"question_id": 14331, "db_id": "legislator", "dber_id": "bird:train.json:4760", "question": "How many male legislators are Roman Catholic?", "SQL": "SELECT COUNT(*) FROM current WHERE religion_bio = 'Roman Catholic' AND gender_bio = 'M'", "tokens": ["How", "many", "male", "legislators", "are", "Roman", "Catholic", "?"], "entities": [{"id": 2, "type": "value", "value": "Roman Catholic"}, {"id": 1, "type": "column", "value": "religion_bio"}, {"id": 3, "type": "column", "value": "gender_bio"}, {"id": 0, "type": "table", "value": "current"}, {"id": 4, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [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-VALUE", "O", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 1982, "db_id": "sales", "dber_id": "bird:train.json:5364", "question": "Count the total quantity for sales from id 1 to 10.", "SQL": "SELECT SUM(Quantity) FROM Sales WHERE SalesID BETWEEN 1 AND 10", "tokens": ["Count", "the", "total", "quantity", "for", "sales", "from", "i", "d", "1", "to", "10", "."], "entities": [{"id": 4, "type": "column", "value": "quantity"}, {"id": 1, "type": "column", "value": "salesid"}, {"id": 0, "type": "table", "value": "sales"}, {"id": 3, "type": "value", "value": "10"}, {"id": 2, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [7, 8]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [11]}, {"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", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 7251, "db_id": "superhero", "dber_id": "bird:dev.json:790", "question": "Calculate the difference between Emil Blonsky's weight and Charles Chandler's weight.", "SQL": "SELECT ( SELECT weight_kg FROM superhero WHERE full_name LIKE 'Emil Blonsky' ) - ( SELECT weight_kg FROM superhero WHERE full_name LIKE 'Charles Chandler' ) AS CALCULATE", "tokens": ["Calculate", "the", "difference", "between", "Emil", "Blonsky", "'s", "weight", "and", "Charles", "Chandler", "'s", "weight", "."], "entities": [{"id": 4, "type": "value", "value": "Charles Chandler"}, {"id": 3, "type": "value", "value": "Emil Blonsky"}, {"id": 0, "type": "table", "value": "superhero"}, {"id": 1, "type": "column", "value": "weight_kg"}, {"id": 2, "type": "column", "value": "full_name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [12]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [4, 5]}, {"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-VALUE", "I-VALUE", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-COLUMN", "O"]}
{"question_id": 5753, "db_id": "legislator", "dber_id": "bird:train.json:4775", "question": "Give the YouTube ID of the channel 'RepWassermanSchultz.'", "SQL": "SELECT youtube_id FROM `social-media` WHERE youtube = 'RepWassermanSchultz'", "tokens": ["Give", "the", "YouTube", "ID", "of", "the", "channel", "'", "RepWassermanSchultz", ".", "'"], "entities": [{"id": 3, "type": "value", "value": "RepWassermanSchultz"}, {"id": 0, "type": "table", "value": "social-media"}, {"id": 1, "type": "column", "value": "youtube_id"}, {"id": 2, "type": "column", "value": "youtube"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [2]}, {"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-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 15219, "db_id": "sales", "dber_id": "bird:train.json:5415", "question": "List the full name of the customer who purchased the most quantity of products.", "SQL": "SELECT T1.FirstName, T1.LastName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID ORDER BY T2.Quantity DESC LIMIT 1", "tokens": ["List", "the", "full", "name", "of", "the", "customer", "who", "purchased", "the", "most", "quantity", "of", "products", "."], "entities": [{"id": 5, "type": "column", "value": "customerid"}, {"id": 0, "type": "column", "value": "firstname"}, {"id": 2, "type": "table", "value": "customers"}, {"id": 1, "type": "column", "value": "lastname"}, {"id": 4, "type": "column", "value": "quantity"}, {"id": 3, "type": "table", "value": "sales"}], "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": [7, 8]}, {"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", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O"]}
{"question_id": 4471, "db_id": "customers_and_addresses", "dber_id": "spider:train_spider.json:6059", "question": "What is the average amount of items ordered in each order?", "SQL": "SELECT avg(order_quantity) FROM order_items", "tokens": ["What", "is", "the", "average", "amount", "of", "items", "ordered", "in", "each", "order", "?"], "entities": [{"id": 1, "type": "column", "value": "order_quantity"}, {"id": 0, "type": "table", "value": "order_items"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6, 7]}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-COLUMN", "O"]}
{"question_id": 5507, "db_id": "tracking_share_transactions", "dber_id": "spider:train_spider.json:5859", "question": "How many distinct transaction types are used in the transactions?", "SQL": "SELECT COUNT(DISTINCT transaction_type_code) FROM TRANSACTIONS", "tokens": ["How", "many", "distinct", "transaction", "types", "are", "used", "in", "the", "transactions", "?"], "entities": [{"id": 1, "type": "column", "value": "transaction_type_code"}, {"id": 0, "type": "table", "value": "transactions"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"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", "O", "B-TABLE", "O"]}
{"question_id": 14485, "db_id": "movie_platform", "dber_id": "bird:train.json:13", "question": "For movie titled 'Welcome to the Dollhouse', how many percentage of the ratings were rated with highest score.", "SQL": "SELECT CAST(SUM(CASE WHEN T2.rating_score = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'Welcome to the Dollhouse'", "tokens": ["For", "movie", "titled", "'", "Welcome", "to", "the", "Dollhouse", "'", ",", "how", "many", "percentage", "of", "the", "ratings", "were", "rated", "with", "highest", "score", "."], "entities": [{"id": 3, "type": "value", "value": "Welcome to the Dollhouse"}, {"id": 8, "type": "column", "value": "rating_score"}, {"id": 2, "type": "column", "value": "movie_title"}, {"id": 4, "type": "column", "value": "movie_id"}, {"id": 1, "type": "table", "value": "ratings"}, {"id": 0, "type": "table", "value": "movies"}, {"id": 5, "type": "value", "value": "100"}, {"id": 6, "type": "value", "value": "0"}, {"id": 7, "type": "value", "value": "1"}, {"id": 9, "type": "value", "value": "5"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [15]}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": [4, 5, 6, 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": [20]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_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", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 6455, "db_id": "hockey", "dber_id": "bird:train.json:7689", "question": "Did legendsID \"P194502\" personally attend his Hall of Fame dedication?", "SQL": "SELECT IIF(T1.note = 'posthumous', 'YES', 'NO') FROM AwardsMisc AS T1 RIGHT JOIN Master AS T2 ON T1.ID = T2.playerID WHERE T2.legendsID = 'P194502'", "tokens": ["Did", "legendsID", "\"", "P194502", "\"", "personally", "attend", "his", "Hall", "of", "Fame", "dedication", "?"], "entities": [{"id": 0, "type": "table", "value": "awardsmisc"}, {"id": 9, "type": "value", "value": "posthumous"}, {"id": 2, "type": "column", "value": "legendsid"}, {"id": 7, "type": "column", "value": "playerid"}, {"id": 3, "type": "value", "value": "P194502"}, {"id": 1, "type": "table", "value": "master"}, {"id": 8, "type": "column", "value": "note"}, {"id": 4, "type": "value", "value": "YES"}, {"id": 5, "type": "value", "value": "NO"}, {"id": 6, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [1]}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [0]}, {"entity_id": 7, "token_idxs": []}, {"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": ["B-COLUMN", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "O", "O"]}
{"question_id": 9883, "db_id": "manufacturer", "dber_id": "spider:train_spider.json:3389", "question": "How many furniture components are there in total?", "SQL": "SELECT sum(num_of_component) FROM furniture", "tokens": ["How", "many", "furniture", "components", "are", "there", "in", "total", "?"], "entities": [{"id": 1, "type": "column", "value": "num_of_component"}, {"id": 0, "type": "table", "value": "furniture"}], "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": []}, {"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"]}
{"question_id": 10926, "db_id": "works_cycles", "dber_id": "bird:train.json:7148", "question": "What is the minimum shipping charge for \"OVERSEAS - DELUXE\"?", "SQL": "SELECT ShipBase FROM ShipMethod WHERE Name = 'OVERSEAS - DELUXE'", "tokens": ["What", "is", "the", "minimum", "shipping", "charge", "for", "\"", "OVERSEAS", "-", "DELUXE", "\"", "?"], "entities": [{"id": 3, "type": "value", "value": "OVERSEAS - DELUXE"}, {"id": 0, "type": "table", "value": "shipmethod"}, {"id": 1, "type": "column", "value": "shipbase"}, {"id": 2, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"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", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 3295, "db_id": "car_racing", "dber_id": "bird:test.json:1629", "question": "List the names of teams that do not have any drivers.", "SQL": "SELECT Team FROM team WHERE Team_ID NOT IN (SELECT Team_ID FROM team_driver)", "tokens": ["List", "the", "names", "of", "teams", "that", "do", "not", "have", "any", "drivers", "."], "entities": [{"id": 3, "type": "table", "value": "team_driver"}, {"id": 2, "type": "column", "value": "team_id"}, {"id": 0, "type": "table", "value": "team"}, {"id": 1, "type": "column", "value": "team"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [10]}, {"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", "B-TABLE", "B-COLUMN", "O", "O", "O", "B-TABLE", "B-COLUMN", "O"]}
{"question_id": 16027, "db_id": "gas_company", "dber_id": "spider:train_spider.json:2028", "question": "What are the names of the managers for gas stations that are operated by the ExxonMobil company?", "SQL": "SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil'", "tokens": ["What", "are", "the", "names", "of", "the", "managers", "for", "gas", "stations", "that", "are", "operated", "by", "the", "ExxonMobil", "company", "?"], "entities": [{"id": 4, "type": "table", "value": "station_company"}, {"id": 0, "type": "column", "value": "manager_name"}, {"id": 1, "type": "table", "value": "gas_station"}, {"id": 3, "type": "value", "value": "ExxonMobil"}, {"id": 6, "type": "column", "value": "station_id"}, {"id": 7, "type": "column", "value": "company_id"}, {"id": 2, "type": "column", "value": "company"}, {"id": 5, "type": "table", "value": "company"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 6]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [15]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [16]}, {"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-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 11769, "db_id": "chicago_crime", "dber_id": "bird:train.json:8684", "question": "Find the ward office's address and phone number of the ward where the most crimes without arrest occurred.", "SQL": "SELECT T2.ward_office_address, T2.ward_office_phone FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.arrest = 'FALSE' GROUP BY T2.ward_office_address, T2.ward_office_phone ORDER BY COUNT(T1.arrest) DESC LIMIT 1", "tokens": ["Find", "the", "ward", "office", "'s", "address", "and", "phone", "number", "of", "the", "ward", "where", "the", "most", "crimes", "without", "arrest", "occurred", "."], "entities": [{"id": 0, "type": "column", "value": "ward_office_address"}, {"id": 1, "type": "column", "value": "ward_office_phone"}, {"id": 6, "type": "column", "value": "ward_no"}, {"id": 4, "type": "column", "value": "arrest"}, {"id": 2, "type": "table", "value": "crime"}, {"id": 5, "type": "value", "value": "FALSE"}, {"id": 3, "type": "table", "value": "ward"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3, 4, 5]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [15]}, {"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", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O"]}
{"question_id": 9977, "db_id": "law_episode", "dber_id": "bird:train.json:1340", "question": "What is the episode rating with the most award won?", "SQL": "SELECT T1.rating FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.result = 'Winner' GROUP BY T1.episode_id ORDER BY COUNT(T2.award_id) DESC LIMIT 1", "tokens": ["What", "is", "the", "episode", "rating", "with", "the", "most", "award", "won", "?"], "entities": [{"id": 0, "type": "column", "value": "episode_id"}, {"id": 6, "type": "column", "value": "award_id"}, {"id": 2, "type": "table", "value": "episode"}, {"id": 1, "type": "column", "value": "rating"}, {"id": 4, "type": "column", "value": "result"}, {"id": 5, "type": "value", "value": "Winner"}, {"id": 3, "type": "table", "value": "award"}], "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": []}, {"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", "B-COLUMN", "O", "O", "O", "O"]}
{"question_id": 15063, "db_id": "music_tracker", "dber_id": "bird:train.json:2079", "question": "List the name of artists who have released albums and mixtape from 1980 to 1985 in \"dance\" genre.", "SQL": "SELECT COUNT(T1.artist) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'dance' AND T1.groupYear BETWEEN 1980 AND 1985 AND T1.releaseType LIKE 'album' OR T1.releaseType LIKE 'mixtape'", "tokens": ["List", "the", "name", "of", "artists", "who", "have", "released", "albums", "and", "mixtape", "from", "1980", "to", "1985", "in", "\"", "dance", "\"", "genre", "."], "entities": [{"id": 4, "type": "column", "value": "releasetype"}, {"id": 8, "type": "column", "value": "groupyear"}, {"id": 0, "type": "table", "value": "torrents"}, {"id": 5, "type": "value", "value": "mixtape"}, {"id": 2, "type": "column", "value": "artist"}, {"id": 7, "type": "value", "value": "dance"}, {"id": 11, "type": "value", "value": "album"}, {"id": 1, "type": "table", "value": "tags"}, {"id": 9, "type": "value", "value": "1980"}, {"id": 10, "type": "value", "value": "1985"}, {"id": 6, "type": "column", "value": "tag"}, {"id": 3, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [9, 10]}, {"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-TABLE", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 10647, "db_id": "books", "dber_id": "bird:train.json:5930", "question": "List the title of the earliest published Japanese book.", "SQL": "SELECT T1.title FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_name = 'Japanese' ORDER BY T1.publication_date ASC LIMIT 1", "tokens": ["List", "the", "title", "of", "the", "earliest", "published", "Japanese", "book", "."], "entities": [{"id": 5, "type": "column", "value": "publication_date"}, {"id": 2, "type": "table", "value": "book_language"}, {"id": 3, "type": "column", "value": "language_name"}, {"id": 6, "type": "column", "value": "language_id"}, {"id": 4, "type": "value", "value": "Japanese"}, {"id": 0, "type": "column", "value": "title"}, {"id": 1, "type": "table", "value": "book"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [8]}, {"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": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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-COLUMN", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 14327, "db_id": "store_1", "dber_id": "spider:train_spider.json:601", "question": "List top 10 employee work longest in the company. List employee's first and last name.", "SQL": "SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;", "tokens": ["List", "top", "10", "employee", "work", "longest", "in", "the", "company", ".", "List", "employee", "'s", "first", "and", "last", "name", "."], "entities": [{"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": "hire_date"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": [2]}, {"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", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O"]}
{"question_id": 14097, "db_id": "bike_share_1", "dber_id": "bird:train.json:9074", "question": "List out all end stations for a bicycle that were making a trip starting from 2nd at South Park station? Only retain the unique value.", "SQL": "SELECT DISTINCT end_station_name FROM trip WHERE start_station_name = '2nd at South Park'", "tokens": ["List", "out", "all", "end", "stations", "for", "a", "bicycle", "that", "were", "making", "a", "trip", "starting", "from", "2nd", "at", "South", "Park", "station", "?", "Only", "retain", "the", "unique", "value", "."], "entities": [{"id": 2, "type": "column", "value": "start_station_name"}, {"id": 3, "type": "value", "value": "2nd at South Park"}, {"id": 1, "type": "column", "value": "end_station_name"}, {"id": 0, "type": "table", "value": "trip"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [19]}, {"entity_id": 3, "token_idxs": [15, 16, 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", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 14834, "db_id": "customers_card_transactions", "dber_id": "spider:train_spider.json:730", "question": "What are the different card type codes?", "SQL": "SELECT DISTINCT card_type_code FROM Customers_Cards", "tokens": ["What", "are", "the", "different", "card", "type", "codes", "?"], "entities": [{"id": 0, "type": "table", "value": "customers_cards"}, {"id": 1, "type": "column", "value": "card_type_code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4, 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", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O"]}
{"question_id": 12634, "db_id": "university_basketball", "dber_id": "spider:train_spider.json:987", "question": "What is the highest acc percent score in the competition?", "SQL": "SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1", "tokens": ["What", "is", "the", "highest", "acc", "percent", "score", "in", "the", "competition", "?"], "entities": [{"id": 0, "type": "table", "value": "basketball_match"}, {"id": 1, "type": "column", "value": "acc_percent"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"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"]}
{"question_id": 9, "db_id": "shipping", "dber_id": "bird:train.json:5667", "question": "What model year of truck delivered the ship ID 1233?", "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 = '1233'", "tokens": ["What", "model", "year", "of", "truck", "delivered", "the", "ship", "ID", "1233", "?"], "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": "1233"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1, 2]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [7, 8]}, {"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", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O"]}
{"question_id": 14494, "db_id": "movie_3", "dber_id": "bird:train.json:9131", "question": "Among the films that the customer RUTH MARTINEZ has rented, what is the title of the one with the highest replacement cost?", "SQL": "SELECT T4.title FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'RUTH' AND T1.last_name = 'MARTINEZ' ORDER BY T4.replacement_cost DESC LIMIT 1", "tokens": ["Among", "the", "films", "that", "the", "customer", "RUTH", "MARTINEZ", "has", "rented", ",", "what", "is", "the", "title", "of", "the", "one", "with", "the", "highest", "replacement", "cost", "?"], "entities": [{"id": 2, "type": "column", "value": "replacement_cost"}, {"id": 11, "type": "column", "value": "inventory_id"}, {"id": 12, "type": "column", "value": "customer_id"}, {"id": 5, "type": "column", "value": "first_name"}, {"id": 3, "type": "table", "value": "inventory"}, {"id": 7, "type": "column", "value": "last_name"}, {"id": 8, "type": "value", "value": "MARTINEZ"}, {"id": 9, "type": "table", "value": "customer"}, {"id": 4, "type": "column", "value": "film_id"}, {"id": 10, "type": "table", "value": "rental"}, {"id": 0, "type": "column", "value": "title"}, {"id": 1, "type": "table", "value": "film"}, {"id": 6, "type": "value", "value": "RUTH"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [21, 22]}, {"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": [7]}, {"entity_id": 9, "token_idxs": [5]}, {"entity_id": 10, "token_idxs": [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", "O", "B-TABLE", "O", "O", "B-TABLE", "B-VALUE", "B-VALUE", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 128, "db_id": "college_2", "dber_id": "spider:train_spider.json:1419", "question": "What are the ids of courses without prerequisites?", "SQL": "SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq", "tokens": ["What", "are", "the", "ids", "of", "courses", "without", "prerequisites", "?"], "entities": [{"id": 2, "type": "column", "value": "course_id"}, {"id": 0, "type": "table", "value": "course"}, {"id": 1, "type": "table", "value": "prereq"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [7]}, {"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-TABLE", "O", "B-TABLE", "O"]}
{"question_id": 10844, "db_id": "address", "dber_id": "bird:train.json:5231", "question": "Calculate the percentage of congress representatives from the Democrat party. Among them, how many postal points are in the Hawaii state?", "SQL": "SELECT CAST(SUM(CASE WHEN T1.party = 'Democrat' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*), SUM(CASE WHEN T1.state = 'Hawaii' THEN 1 ELSE 0 END) FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district", "tokens": ["Calculate", "the", "percentage", "of", "congress", "representatives", "from", "the", "Democrat", "party", ".", "Among", "them", ",", "how", "many", "postal", "points", "are", "in", "the", "Hawaii", "state", "?"], "entities": [{"id": 2, "type": "column", "value": "cognress_rep_id"}, {"id": 1, "type": "table", "value": "zip_congress"}, {"id": 0, "type": "table", "value": "congress"}, {"id": 3, "type": "column", "value": "district"}, {"id": 10, "type": "value", "value": "Democrat"}, {"id": 8, "type": "value", "value": "Hawaii"}, {"id": 7, "type": "column", "value": "state"}, {"id": 9, "type": "column", "value": "party"}, {"id": 4, "type": "value", "value": "100"}, {"id": 5, "type": "value", "value": "0"}, {"id": 6, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [21]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"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", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 3164, "db_id": "bakery_1", "dber_id": "bird:test.json:1570", "question": "Give the ids of cookes that are cheaper than any croissant.", "SQL": "SELECT id FROM goods WHERE food = \"Cookie\" AND price < (SELECT min(price) FROM goods WHERE food = 'Croissant')", "tokens": ["Give", "the", "ids", "of", "cookes", "that", "are", "cheaper", "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": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [4]}, {"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", "O", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 11169, "db_id": "loan_1", "dber_id": "spider:train_spider.json:3009", "question": "What is the total number of customers across banks?", "SQL": "SELECT sum(no_of_customers) FROM bank", "tokens": ["What", "is", "the", "total", "number", "of", "customers", "across", "banks", "?"], "entities": [{"id": 1, "type": "column", "value": "no_of_customers"}, {"id": 0, "type": "table", "value": "bank"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 6]}, {"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", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-COLUMN"]}
{"question_id": 2426, "db_id": "music_tracker", "dber_id": "bird:train.json:2055", "question": "Please list the releases that have been downloaded for more than 20000 times.", "SQL": "SELECT groupName FROM torrents WHERE totalSnatched > 20000", "tokens": ["Please", "list", "the", "releases", "that", "have", "been", "downloaded", "for", "more", "than", "20000", "times", "."], "entities": [{"id": 2, "type": "column", "value": "totalsnatched"}, {"id": 1, "type": "column", "value": "groupname"}, {"id": 0, "type": "table", "value": "torrents"}, {"id": 3, "type": "value", "value": "20000"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"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": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-VALUE", "O", "O"]}
{"question_id": 7953, "db_id": "human_resources", "dber_id": "bird:train.json:8961", "question": "If Jose Rodriguez tried his best, how many percentage can his salary raise without changing his position?", "SQL": "SELECT 100 * (CAST(REPLACE(SUBSTR(T2.maxsalary, 4), ',', '') AS REAL) - CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) / CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL) AS per FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.firstname = 'Jose' AND T1.lastname = 'Rodriguez'", "tokens": ["If", "Jose", "Rodriguez", "tried", "his", "best", ",", "how", "many", "percentage", "can", "his", "salary", "raise", "without", "changing", "his", "position", "?"], "entities": [{"id": 2, "type": "column", "value": "positionid"}, {"id": 3, "type": "column", "value": "firstname"}, {"id": 6, "type": "value", "value": "Rodriguez"}, {"id": 11, "type": "column", "value": "maxsalary"}, {"id": 0, "type": "table", "value": "employee"}, {"id": 1, "type": "table", "value": "position"}, {"id": 5, "type": "column", "value": "lastname"}, {"id": 9, "type": "column", "value": "salary"}, {"id": 4, "type": "value", "value": "Jose"}, {"id": 7, "type": "value", "value": "100"}, {"id": 8, "type": "value", "value": ","}, {"id": 10, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [17]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [1]}, {"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": [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", "B-VALUE", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 12753, "db_id": "activity_1", "dber_id": "spider:train_spider.json:6761", "question": "Show the ids for all the faculty members who have at least 2 students.", "SQL": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2", "tokens": ["Show", "the", "ids", "for", "all", "the", "faculty", "members", "who", "have", "at", "least", "2", "students", "."], "entities": [{"id": 1, "type": "table", "value": "faculty"}, {"id": 2, "type": "table", "value": "student"}, {"id": 4, "type": "column", "value": "advisor"}, {"id": 0, "type": "column", "value": "facid"}, {"id": 3, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [13]}, {"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", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 11612, "db_id": "works_cycles", "dber_id": "bird:train.json:7279", "question": "How many products are out of stock?", "SQL": "SELECT COUNT(ProductID) FROM ProductVendor WHERE OnOrderQty = 0", "tokens": ["How", "many", "products", "are", "out", "of", "stock", "?"], "entities": [{"id": 0, "type": "table", "value": "productvendor"}, {"id": 1, "type": "column", "value": "onorderqty"}, {"id": 3, "type": "column", "value": "productid"}, {"id": 2, "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": [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", "O", "O"]}
{"question_id": 11864, "db_id": "legislator", "dber_id": "bird:train.json:4876", "question": "How many districts did John Conyers, Jr. serve in total?", "SQL": "SELECT COUNT(T3.district) FROM ( SELECT T2.district FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'John Conyers, Jr.' GROUP BY T2.district ) T3", "tokens": ["How", "many", "districts", "did", "John", "Conyers", ",", "Jr.", "serve", "in", "total", "?"], "entities": [{"id": 3, "type": "column", "value": "official_full_name"}, {"id": 4, "type": "value", "value": "John Conyers, Jr."}, {"id": 2, "type": "table", "value": "current-terms"}, {"id": 5, "type": "column", "value": "bioguide_id"}, {"id": 0, "type": "column", "value": "district"}, {"id": 6, "type": "column", "value": "bioguide"}, {"id": 1, "type": "table", "value": "current"}], "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": [4, 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", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O"]}
{"question_id": 8666, "db_id": "dorm_1", "dber_id": "spider:train_spider.json:5681", "question": "How many diffrent dorm amenities are there?", "SQL": "SELECT count(*) FROM dorm_amenity", "tokens": ["How", "many", "diffrent", "dorm", "amenities", "are", "there", "?"], "entities": [{"id": 0, "type": "table", "value": "dorm_amenity"}], "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": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O"]}
{"question_id": 7373, "db_id": "bike_share_1", "dber_id": "bird:train.json:9034", "question": "List the days in 2013 when rain and fog occurred together and find the id of bikes borrowed on these days.", "SQL": "SELECT T2.date, T1.bike_id FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE SUBSTR(CAST(T2.date AS TEXT), -4) = '2013' AND T2.events = 'Fog-Rain'", "tokens": ["List", "the", "days", "in", "2013", "when", "rain", "and", "fog", "occurred", "together", "and", "find", "the", "i", "d", "of", "bikes", "borrowed", "on", "these", "days", "."], "entities": [{"id": 4, "type": "column", "value": "zip_code"}, {"id": 7, "type": "value", "value": "Fog-Rain"}, {"id": 1, "type": "column", "value": "bike_id"}, {"id": 3, "type": "table", "value": "weather"}, {"id": 6, "type": "column", "value": "events"}, {"id": 0, "type": "column", "value": "date"}, {"id": 2, "type": "table", "value": "trip"}, {"id": 5, "type": "value", "value": "2013"}, {"id": 8, "type": "value", "value": "-4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [14, 15, 17]}, {"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": [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-VALUE", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O"]}
{"question_id": 1988, "db_id": "car_retails", "dber_id": "bird:train.json:1583", "question": "How many customers who are in Norway and have credit line under 220000?", "SQL": "SELECT COUNT(creditLimit) FROM customers WHERE creditLimit < 220000 AND country = 'Norway'", "tokens": ["How", "many", "customers", "who", "are", "in", "Norway", "and", "have", "credit", "line", "under", "220000", "?"], "entities": [{"id": 1, "type": "column", "value": "creditlimit"}, {"id": 0, "type": "table", "value": "customers"}, {"id": 3, "type": "column", "value": "country"}, {"id": 2, "type": "value", "value": "220000"}, {"id": 4, "type": "value", "value": "Norway"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [9]}, {"entity_id": 2, "token_idxs": [12]}, {"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-TABLE", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O"]}
{"question_id": 4499, "db_id": "retails", "dber_id": "bird:train.json:6877", "question": "Please list the names of all the suppliers for parts under Brand#55.", "SQL": "SELECT T3.s_name FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey WHERE T1.p_brand = 'Brand#55'", "tokens": ["Please", "list", "the", "names", "of", "all", "the", "suppliers", "for", "parts", "under", "Brand#55", "."], "entities": [{"id": 6, "type": "column", "value": "ps_suppkey"}, {"id": 9, "type": "column", "value": "ps_partkey"}, {"id": 7, "type": "column", "value": "s_suppkey"}, {"id": 8, "type": "column", "value": "p_partkey"}, {"id": 1, "type": "table", "value": "supplier"}, {"id": 3, "type": "value", "value": "Brand#55"}, {"id": 5, "type": "table", "value": "partsupp"}, {"id": 2, "type": "column", "value": "p_brand"}, {"id": 0, "type": "column", "value": "s_name"}, {"id": 4, "type": "table", "value": "part"}], "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": [11]}, {"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", "O", "B-TABLE", "O", "B-TABLE", "O", "B-VALUE", "O"]}
{"question_id": 5559, "db_id": "browser_web", "dber_id": "spider:train_spider.json:1839", "question": "List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'.", "SQL": "SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'CACHEbox' INTERSECT SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'Fasterfox'", "tokens": ["List", "the", "names", "of", "the", "browser", "that", "are", "compatible", "with", "both", "'", "CACHEbox", "'", "and", "'", "Fasterfox", "'", "."], "entities": [{"id": 5, "type": "table", "value": "accelerator_compatible_browser"}, {"id": 4, "type": "table", "value": "web_client_accelerator"}, {"id": 8, "type": "column", "value": "accelerator_id"}, {"id": 6, "type": "column", "value": "browser_id"}, {"id": 3, "type": "value", "value": "Fasterfox"}, {"id": 2, "type": "value", "value": "CACHEbox"}, {"id": 1, "type": "table", "value": "browser"}, {"id": 0, "type": "column", "value": "name"}, {"id": 7, "type": "column", "value": "id"}], "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": [16]}, {"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": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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-TABLE", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 14101, "db_id": "olympics", "dber_id": "bird:train.json:5078", "question": "Provide the age of the tallest competitor.", "SQL": "SELECT T2.age FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T1.height DESC LIMIT 1", "tokens": ["Provide", "the", "age", "of", "the", "tallest", "competitor", "."], "entities": [{"id": 2, "type": "table", "value": "games_competitor"}, {"id": 5, "type": "column", "value": "person_id"}, {"id": 1, "type": "table", "value": "person"}, {"id": 3, "type": "column", "value": "height"}, {"id": 0, "type": "column", "value": "age"}, {"id": 4, "type": "column", "value": "id"}], "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": []}, {"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"]}
{"question_id": 5085, "db_id": "vehicle_rent", "dber_id": "bird:test.json:434", "question": "Return the name of the discount that corresponds to the most rental history records.", "SQL": "SELECT T2.name FROM renting_history AS T1 JOIN discount AS T2 ON T1.discount_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1", "tokens": ["Return", "the", "name", "of", "the", "discount", "that", "corresponds", "to", "the", "most", "rental", "history", "records", "."], "entities": [{"id": 2, "type": "table", "value": "renting_history"}, {"id": 4, "type": "column", "value": "discount_id"}, {"id": 3, "type": "table", "value": "discount"}, {"id": 1, "type": "column", "value": "name"}, {"id": 0, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [11, 12]}, {"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", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O"]}
{"question_id": 7668, "db_id": "allergy_1", "dber_id": "spider:train_spider.json:530", "question": "How many male students (sex is 'M') are allergic to any type of food?", "SQL": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", "tokens": ["How", "many", "male", "students", "(", "sex", "is", "'", "M", "'", ")", "are", "allergic", "to", "any", "type", "of", "food", "?"], "entities": [{"id": 5, "type": "table", "value": "allergy_type"}, {"id": 4, "type": "table", "value": "has_allergy"}, {"id": 6, "type": "column", "value": "allergytype"}, {"id": 0, "type": "table", "value": "student"}, {"id": 8, "type": "column", "value": "allergy"}, {"id": 3, "type": "column", "value": "stuid"}, {"id": 7, "type": "column", "value": "food"}, {"id": 1, "type": "column", "value": "sex"}, {"id": 2, "type": "column", "value": "M"}], "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": []}, {"entity_id": 6, "token_idxs": [15]}, {"entity_id": 7, "token_idxs": [17]}, {"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", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O"]}
{"question_id": 15943, "db_id": "retails", "dber_id": "bird:train.json:6776", "question": "What is the average discount for the parts made by Manufacturer#5?", "SQL": "SELECT AVG(T3.l_discount) FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN lineitem AS T3 ON T2.ps_suppkey = T3.l_suppkey WHERE T1.p_mfgr = 'Manufacturer#5'", "tokens": ["What", "is", "the", "average", "discount", "for", "the", "parts", "made", "by", "Manufacturer#5", "?"], "entities": [{"id": 2, "type": "value", "value": "Manufacturer#5"}, {"id": 3, "type": "column", "value": "l_discount"}, {"id": 6, "type": "column", "value": "ps_suppkey"}, {"id": 9, "type": "column", "value": "ps_partkey"}, {"id": 7, "type": "column", "value": "l_suppkey"}, {"id": 8, "type": "column", "value": "p_partkey"}, {"id": 0, "type": "table", "value": "lineitem"}, {"id": 5, "type": "table", "value": "partsupp"}, {"id": 1, "type": "column", "value": "p_mfgr"}, {"id": 4, "type": "table", "value": "part"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [4]}, {"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-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O"]}
{"question_id": 1612, "db_id": "chicago_crime", "dber_id": "bird:train.json:8694", "question": "List all the crimes of the narcotic type that exist.", "SQL": "SELECT secondary_description FROM IUCR WHERE primary_description = 'NARCOTICS' GROUP BY secondary_description", "tokens": ["List", "all", "the", "crimes", "of", "the", "narcotic", "type", "that", "exist", "."], "entities": [{"id": 1, "type": "column", "value": "secondary_description"}, {"id": 2, "type": "column", "value": "primary_description"}, {"id": 3, "type": "value", "value": "NARCOTICS"}, {"id": 0, "type": "table", "value": "iucr"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "O", "O", "O"]}
{"question_id": 12590, "db_id": "baseball_1", "dber_id": "spider:train_spider.json:3676", "question": "Find the number of tied games (the value of \"ties\" is '1') in 1885 postseason.", "SQL": "SELECT count(*) FROM postseason WHERE YEAR = 1885 AND ties = 1;", "tokens": ["Find", "the", "number", "of", "tied", "games", "(", "the", "value", "of", "\"", "ties", "\"", "is", "'", "1", "'", ")", "in", "1885", "postseason", "."], "entities": [{"id": 0, "type": "table", "value": "postseason"}, {"id": 1, "type": "column", "value": "year"}, {"id": 2, "type": "value", "value": "1885"}, {"id": 3, "type": "column", "value": "ties"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [20]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [19]}, {"entity_id": 3, "token_idxs": [11]}, {"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", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 7633, "db_id": "works_cycles", "dber_id": "bird:train.json:7111", "question": "How many vendors are having their products ordered with an average delivery time of 25 days?", "SQL": "SELECT COUNT(DISTINCT BusinessEntityID) FROM ProductVendor WHERE AverageLeadTime = 25", "tokens": ["How", "many", "vendors", "are", "having", "their", "products", "ordered", "with", "an", "average", "delivery", "time", "of", "25", "days", "?"], "entities": [{"id": 3, "type": "column", "value": "businessentityid"}, {"id": 1, "type": "column", "value": "averageleadtime"}, {"id": 0, "type": "table", "value": "productvendor"}, {"id": 2, "type": "value", "value": "25"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [10]}, {"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", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 96, "db_id": "world_development_indicators", "dber_id": "bird:train.json:2216", "question": "What are the full names of the countries in South Asia that belongs to the low income group?", "SQL": "SELECT LongName FROM Country WHERE IncomeGroup = 'Low income' AND Region = 'South Asia'", "tokens": ["What", "are", "the", "full", "names", "of", "the", "countries", "in", "South", "Asia", "that", "belongs", "to", "the", "low", "income", "group", "?"], "entities": [{"id": 2, "type": "column", "value": "incomegroup"}, {"id": 3, "type": "value", "value": "Low income"}, {"id": 5, "type": "value", "value": "South Asia"}, {"id": 1, "type": "column", "value": "longname"}, {"id": 0, "type": "table", "value": "country"}, {"id": 4, "type": "column", "value": "region"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [17]}, {"entity_id": 3, "token_idxs": [15, 16]}, {"entity_id": 4, "token_idxs": []}, {"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", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O"]}
{"question_id": 475, "db_id": "works_cycles", "dber_id": "bird:train.json:7181", "question": "What is the stocked quantity of products manufactured from location ID 40?", "SQL": "SELECT COUNT(*) FROM WorkOrderRouting AS T1 INNER JOIN BillOfMaterials AS T2 ON T1.LocationID = T2.ProductAssemblyID INNER JOIN WorkOrder AS T3 ON T3.WorkOrderID = T1.WorkOrderID WHERE T1.LocationID = 40", "tokens": ["What", "is", "the", "stocked", "quantity", "of", "products", "manufactured", "from", "location", "ID", "40", "?"], "entities": [{"id": 6, "type": "column", "value": "productassemblyid"}, {"id": 3, "type": "table", "value": "workorderrouting"}, {"id": 4, "type": "table", "value": "billofmaterials"}, {"id": 5, "type": "column", "value": "workorderid"}, {"id": 1, "type": "column", "value": "locationid"}, {"id": 0, "type": "table", "value": "workorder"}, {"id": 2, "type": "value", "value": "40"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"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": [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-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O"]}
{"question_id": 15327, "db_id": "institution_sports", "dber_id": "bird:test.json:1646", "question": "What are the names of institutions, ordered by the years in which they were founded?", "SQL": "SELECT Name FROM institution ORDER BY Founded ASC", "tokens": ["What", "are", "the", "names", "of", "institutions", ",", "ordered", "by", "the", "years", "in", "which", "they", "were", "founded", "?"], "entities": [{"id": 0, "type": "table", "value": "institution"}, {"id": 2, "type": "column", "value": "founded"}, {"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": [15]}, {"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", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 14746, "db_id": "works_cycles", "dber_id": "bird:train.json:7314", "question": "List all staff in the Shipping and Receiving department who are hired in 2009.", "SQL": "SELECT T1.FirstName, T1.LastName FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmployeeDepartmentHistory AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID INNER JOIN Department AS T4 ON T3.DepartmentID = T4.DepartmentID WHERE STRFTIME('%Y', T2.HireDate) = '2009' AND T4.Name = 'Shipping and Receiving'", "tokens": ["List", "all", "staff", "in", "the", "Shipping", "and", "Receiving", "department", "who", "are", "hired", "in", "2009", "."], "entities": [{"id": 3, "type": "table", "value": "employeedepartmenthistory"}, {"id": 7, "type": "value", "value": "Shipping and Receiving"}, {"id": 10, "type": "column", "value": "businessentityid"}, {"id": 4, "type": "column", "value": "departmentid"}, {"id": 2, "type": "table", "value": "department"}, {"id": 0, "type": "column", "value": "firstname"}, {"id": 1, "type": "column", "value": "lastname"}, {"id": 9, "type": "table", "value": "employee"}, {"id": 12, "type": "column", "value": "hiredate"}, {"id": 8, "type": "table", "value": "person"}, {"id": 5, "type": "value", "value": "2009"}, {"id": 6, "type": "column", "value": "name"}, {"id": 11, "type": "value", "value": "%Y"}], "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": []}, {"entity_id": 5, "token_idxs": [13]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [5, 6, 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": [11]}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O"]}
{"question_id": 7886, "db_id": "flight_company", "dber_id": "spider:train_spider.json:6374", "question": "What are the ids and names of the companies that operated more than one flight?", "SQL": "SELECT T1.id , T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY T1.id HAVING count(*) > 1", "tokens": ["What", "are", "the", "ids", "and", "names", "of", "the", "companies", "that", "operated", "more", "than", "one", "flight", "?"], "entities": [{"id": 2, "type": "table", "value": "operate_company"}, {"id": 5, "type": "column", "value": "company_id"}, {"id": 3, "type": "table", "value": "flight"}, {"id": 1, "type": "column", "value": "name"}, {"id": 0, "type": "column", "value": "id"}, {"id": 4, "type": "value", "value": "1"}], "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": [13]}, {"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", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 10770, "db_id": "talkingdata", "dber_id": "bird:train.json:1243", "question": "Which brand is most common among people in their twenties?", "SQL": "SELECT T.phone_brand FROM ( SELECT T2.phone_brand, COUNT(T2.phone_brand) AS num FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.age BETWEEN 20 AND 30 GROUP BY T2.phone_brand ) AS T ORDER BY T.num DESC LIMIT 1", "tokens": ["Which", "brand", "is", "most", "common", "among", "people", "in", "their", "twenties", "?"], "entities": [{"id": 3, "type": "table", "value": "phone_brand_device_model2"}, {"id": 0, "type": "column", "value": "phone_brand"}, {"id": 2, "type": "table", "value": "gender_age"}, {"id": 7, "type": "column", "value": "device_id"}, {"id": 1, "type": "column", "value": "num"}, {"id": 4, "type": "column", "value": "age"}, {"id": 5, "type": "value", "value": "20"}, {"id": 6, "type": "value", "value": "30"}], "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-COLUMN", "O", "O", "O"]}
{"question_id": 2724, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1243", "question": "For all patients who are older than 55 years old, what is the percentage of female who has abnormal prothrombin time (PT)?", "SQL": "SELECT CAST(SUM(CASE WHEN T2.PT >= 14 AND T1.SEX = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) > 55", "tokens": ["For", "all", "patients", "who", "are", "older", "than", "55", "years", "old", ",", "what", "is", "the", "percentage", "of", "female", "who", "has", "abnormal", "prothrombin", "time", "(", "PT", ")", "?"], "entities": [{"id": 1, "type": "table", "value": "laboratory"}, {"id": 6, "type": "column", "value": "birthday"}, {"id": 0, "type": "table", "value": "patient"}, {"id": 4, "type": "value", "value": "100"}, {"id": 11, "type": "column", "value": "sex"}, {"id": 2, "type": "value", "value": "55"}, {"id": 3, "type": "column", "value": "id"}, {"id": 5, "type": "value", "value": "%Y"}, {"id": 9, "type": "column", "value": "pt"}, {"id": 10, "type": "value", "value": "14"}, {"id": 7, "type": "value", "value": "0"}, {"id": 8, "type": "value", "value": "1"}, {"id": 12, "type": "value", "value": "F"}], "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": [8]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [20, 21, 22, 23, 24]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": [16]}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O"]}
{"question_id": 11597, "db_id": "chinook_1", "dber_id": "spider:train_spider.json:853", "question": "How many distinct cities does the employees live in?", "SQL": "SELECT COUNT(DISTINCT city) FROM EMPLOYEE", "tokens": ["How", "many", "distinct", "cities", "does", "the", "employees", "live", "in", "?"], "entities": [{"id": 0, "type": "table", "value": "employee"}, {"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", "O", "O"]}
{"question_id": 4279, "db_id": "movie_3", "dber_id": "bird:train.json:9214", "question": "Mention the language of Untouchables Sunrise film and calculate its rental cost per day.", "SQL": "SELECT T2.name, T1.replacement_cost / T1.rental_duration AS cost FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'UNTOUCHABLES SUNRISE'", "tokens": ["Mention", "the", "language", "of", "Untouchables", "Sunrise", "film", "and", "calculate", "its", "rental", "cost", "per", "day", "."], "entities": [{"id": 4, "type": "value", "value": "UNTOUCHABLES SUNRISE"}, {"id": 5, "type": "column", "value": "replacement_cost"}, {"id": 6, "type": "column", "value": "rental_duration"}, {"id": 7, "type": "column", "value": "language_id"}, {"id": 2, "type": "table", "value": "language"}, {"id": 3, "type": "column", "value": "title"}, {"id": 0, "type": "column", "value": "name"}, {"id": 1, "type": "table", "value": "film"}], "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": [4, 5]}, {"entity_id": 5, "token_idxs": [11]}, {"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-TABLE", "O", "B-VALUE", "I-VALUE", "B-TABLE", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O"]}
{"question_id": 12257, "db_id": "donor", "dber_id": "bird:train.json:3262", "question": "Which resource type is commonly bought by the Los Angeles Unified School District?", "SQL": "SELECT T1.project_resource_type FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_district = 'Los Angeles Unif Sch Dist' GROUP BY T2.school_district ORDER BY COUNT(T1.project_resource_type) DESC LIMIT 1", "tokens": ["Which", "resource", "type", "is", "commonly", "bought", "by", "the", "Los", "Angeles", "Unified", "School", "District", "?"], "entities": [{"id": 4, "type": "value", "value": "Los Angeles Unif Sch Dist"}, {"id": 1, "type": "column", "value": "project_resource_type"}, {"id": 0, "type": "column", "value": "school_district"}, {"id": 2, "type": "table", "value": "resources"}, {"id": 5, "type": "column", "value": "projectid"}, {"id": 3, "type": "table", "value": "projects"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11, 12]}, {"entity_id": 1, "token_idxs": [1, 2]}, {"entity_id": 2, "token_idxs": []}, {"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", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 5763, "db_id": "bakery_1", "dber_id": "bird:test.json:1490", "question": "What is the id and flavor of the cheapest cookie?", "SQL": "SELECT id , flavor FROM goods WHERE food = \"Cookie\" ORDER BY price LIMIT 1", "tokens": ["What", "is", "the", "i", "d", "and", "flavor", "of", "the", "cheapest", "cookie", "?"], "entities": [{"id": 2, "type": "column", "value": "flavor"}, {"id": 4, "type": "column", "value": "Cookie"}, {"id": 0, "type": "table", "value": "goods"}, {"id": 5, "type": "column", "value": "price"}, {"id": 3, "type": "column", "value": "food"}, {"id": 1, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": []}, {"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-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 1343, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1283", "question": "For the patients with the normal glutamic pylvic transaminase level, how many of them are male?", "SQL": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GOT < 60 AND T1.SEX = 'M'", "tokens": ["For", "the", "patients", "with", "the", "normal", "glutamic", "pylvic", "transaminase", "level", ",", "how", "many", "of", "them", "are", "male", "?"], "entities": [{"id": 1, "type": "table", "value": "laboratory"}, {"id": 0, "type": "table", "value": "patient"}, {"id": 3, "type": "column", "value": "got"}, {"id": 5, "type": "column", "value": "sex"}, {"id": 2, "type": "column", "value": "id"}, {"id": 4, "type": "value", "value": "60"}, {"id": 6, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3, 4, 5, 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", "B-TABLE", "I-TABLE", "I-TABLE", "I-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 10868, "db_id": "college_1", "dber_id": "spider:train_spider.json:3284", "question": "What are the course codes for every class that the student with the last name Smithson took?", "SQL": "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson'", "tokens": ["What", "are", "the", "course", "codes", "for", "every", "class", "that", "the", "student", "with", "the", "last", "name", "Smithson", "took", "?"], "entities": [{"id": 7, "type": "column", "value": "class_code"}, {"id": 2, "type": "column", "value": "stu_lname"}, {"id": 0, "type": "column", "value": "crs_code"}, {"id": 3, "type": "value", "value": "Smithson"}, {"id": 1, "type": "table", "value": "student"}, {"id": 6, "type": "column", "value": "stu_num"}, {"id": 5, "type": "table", "value": "enroll"}, {"id": 4, "type": "table", "value": "class"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": [13, 14]}, {"entity_id": 3, "token_idxs": [15]}, {"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-TABLE", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O"]}
{"question_id": 10975, "db_id": "driving_school", "dber_id": "spider:train_spider.json:6667", "question": "What is the date of birth of every customer whose status code is 'Good Customer'?", "SQL": "SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'", "tokens": ["What", "is", "the", "date", "of", "birth", "of", "every", "customer", "whose", "status", "code", "is", "'", "Good", "Customer", "'", "?"], "entities": [{"id": 2, "type": "column", "value": "customer_status_code"}, {"id": 1, "type": "column", "value": "date_of_birth"}, {"id": 3, "type": "value", "value": "Good Customer"}, {"id": 0, "type": "table", "value": "customers"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [15]}, {"entity_id": 1, "token_idxs": [3, 4, 5]}, {"entity_id": 2, "token_idxs": [8, 10, 11]}, {"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", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "B-TABLE", "O", "O"]}
{"question_id": 9224, "db_id": "airline", "dber_id": "bird:train.json:5839", "question": "Give the number of planes that took off from Los Angeles International airport on 2018/8/27.", "SQL": "SELECT SUM(CASE WHEN T2.FL_DATE = '2018/8/27' THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'Los Angeles, CA: Los Angeles International'", "tokens": ["Give", "the", "number", "of", "planes", "that", "took", "off", "from", "Los", "Angeles", "International", "airport", "on", "2018/8/27", "."], "entities": [{"id": 3, "type": "value", "value": "Los Angeles, CA: Los Angeles International"}, {"id": 2, "type": "column", "value": "description"}, {"id": 9, "type": "value", "value": "2018/8/27"}, {"id": 0, "type": "table", "value": "airports"}, {"id": 1, "type": "table", "value": "airlines"}, {"id": 8, "type": "column", "value": "fl_date"}, {"id": 5, "type": "column", "value": "origin"}, {"id": 4, "type": "column", "value": "code"}, {"id": 6, "type": "value", "value": "0"}, {"id": 7, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"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": [6]}, {"entity_id": 6, "token_idxs": []}, {"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-TABLE", "O", "O", "O", "B-COLUMN", "B-VALUE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O"]}
{"question_id": 11145, "db_id": "apartment_rentals", "dber_id": "spider:train_spider.json:1249", "question": "How many bookings does each booking status have? List the booking status code and the number of corresponding bookings.", "SQL": "SELECT \tbooking_status_code , COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code", "tokens": ["How", "many", "bookings", "does", "each", "booking", "status", "have", "?", "List", "the", "booking", "status", "code", "and", "the", "number", "of", "corresponding", "bookings", "."], "entities": [{"id": 1, "type": "column", "value": "booking_status_code"}, {"id": 0, "type": "table", "value": "apartment_bookings"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"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": [7]}, {"entity_id": 7, "token_idxs": [17, 18, 19, 20]}, {"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", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 14385, "db_id": "college_1", "dber_id": "spider:train_spider.json:3325", "question": "What is the last name of the student who got a grade A in the class with code 10018.", "SQL": "SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018", "tokens": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "got", "a", "grade", "A", "in", "the", "class", "with", "code", "10018", "."], "entities": [{"id": 4, "type": "column", "value": "enroll_grade"}, {"id": 6, "type": "column", "value": "class_code"}, {"id": 0, "type": "column", "value": "stu_lname"}, {"id": 1, "type": "table", "value": "student"}, {"id": 3, "type": "column", "value": "stu_num"}, {"id": 2, "type": "table", "value": "enroll"}, {"id": 7, "type": "value", "value": "10018"}, {"id": 5, "type": "value", "value": "A"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": [12]}, {"entity_id": 6, "token_idxs": [15, 17]}, {"entity_id": 7, "token_idxs": [18]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-VALUE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-VALUE", "O"]}
{"question_id": 9932, "db_id": "public_review_platform", "dber_id": "bird:train.json:3775", "question": "What percentage more for the \"Women's Clothing\" Yelp businesses to \"Men's Clothing\"?", "SQL": "SELECT CAST(SUM(CASE WHEN T2.category_name LIKE 'Women''s Clothing' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) - CAST(SUM(CASE WHEN T2.category_name LIKE 'Men''s Clothing' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) AS \"more percentage\" FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id", "tokens": ["What", "percentage", "more", "for", "the", "\"", "Women", "'s", "Clothing", "\"", "Yelp", "businesses", "to", "\"", "Men", "'s", "Clothing", "\"", "?"], "entities": [{"id": 0, "type": "table", "value": "business_categories"}, {"id": 8, "type": "value", "value": "Women's Clothing"}, {"id": 9, "type": "value", "value": "Men's Clothing"}, {"id": 7, "type": "column", "value": "category_name"}, {"id": 2, "type": "column", "value": "category_id"}, {"id": 4, "type": "column", "value": "business_id"}, {"id": 1, "type": "table", "value": "categories"}, {"id": 3, "type": "value", "value": "100"}, {"id": 5, "type": "value", "value": "0"}, {"id": 6, "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": [11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [6, 7, 8]}, {"entity_id": 9, "token_idxs": [14, 15, 16]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "I-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 6888, "db_id": "student_loan", "dber_id": "bird:train.json:4480", "question": "How many students enlisted in the navy?", "SQL": "SELECT COUNT(name) FROM enlist WHERE organ = 'navy'", "tokens": ["How", "many", "students", "enlisted", "in", "the", "navy", "?"], "entities": [{"id": 0, "type": "table", "value": "enlist"}, {"id": 1, "type": "column", "value": "organ"}, {"id": 2, "type": "value", "value": "navy"}, {"id": 3, "type": "column", "value": "name"}], "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": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-VALUE", "O"]}
{"question_id": 14809, "db_id": "sales", "dber_id": "bird:train.json:5429", "question": "Give the product's name brought by Aaron Alexander.", "SQL": "SELECT DISTINCT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T3.FirstName = 'Aaron' AND T3.LastName = 'Alexander'", "tokens": ["Give", "the", "product", "'s", "name", "brought", "by", "Aaron", "Alexander", "."], "entities": [{"id": 4, "type": "column", "value": "customerid"}, {"id": 1, "type": "table", "value": "customers"}, {"id": 5, "type": "column", "value": "firstname"}, {"id": 8, "type": "value", "value": "Alexander"}, {"id": 9, "type": "column", "value": "productid"}, {"id": 2, "type": "table", "value": "products"}, {"id": 7, "type": "column", "value": "lastname"}, {"id": 3, "type": "table", "value": "sales"}, {"id": 6, "type": "value", "value": "Aaron"}, {"id": 0, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"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": [7]}, {"entity_id": 7, "token_idxs": []}, {"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-COLUMN", "O", "O", "B-VALUE", "B-VALUE", "O"]}
{"question_id": 12205, "db_id": "college_2", "dber_id": "spider:train_spider.json:1418", "question": "Find the id of the courses that do not have any prerequisite?", "SQL": "SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq", "tokens": ["Find", "the", "i", "d", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?"], "entities": [{"id": 2, "type": "column", "value": "course_id"}, {"id": 0, "type": "table", "value": "course"}, {"id": 1, "type": "table", "value": "prereq"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [12]}, {"entity_id": 2, "token_idxs": [2, 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", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 15167, "db_id": "customers_and_orders", "dber_id": "bird:test.json:287", "question": "What is the product type with least number of products?", "SQL": "SELECT product_type_code FROM Products GROUP BY product_type_code ORDER BY count(*) ASC LIMIT 1", "tokens": ["What", "is", "the", "product", "type", "with", "least", "number", "of", "products", "?"], "entities": [{"id": 1, "type": "column", "value": "product_type_code"}, {"id": 0, "type": "table", "value": "products"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"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", "O", "B-TABLE", "O"]}
{"question_id": 3872, "db_id": "address_1", "dber_id": "bird:test.json:798", "question": "Give the state that has the most students.", "SQL": "SELECT T1.state FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.state ORDER BY count(*) DESC LIMIT 1", "tokens": ["Give", "the", "state", "that", "has", "the", "most", "students", "."], "entities": [{"id": 3, "type": "column", "value": "city_code"}, {"id": 2, "type": "table", "value": "student"}, {"id": 0, "type": "column", "value": "state"}, {"id": 1, "type": "table", "value": "city"}], "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-COLUMN", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 7564, "db_id": "world_development_indicators", "dber_id": "bird:train.json:2165", "question": "Which high income group countries are from Asia?", "SQL": "SELECT CountryCode, Region FROM Country WHERE (IncomeGroup = 'High income: OECD' OR IncomeGroup = 'High income: nonOECD') AND Region LIKE '%Asia%'", "tokens": ["Which", "high", "income", "group", "countries", "are", "from", "Asia", "?"], "entities": [{"id": 6, "type": "value", "value": "High income: nonOECD"}, {"id": 5, "type": "value", "value": "High income: OECD"}, {"id": 1, "type": "column", "value": "countrycode"}, {"id": 4, "type": "column", "value": "incomegroup"}, {"id": 0, "type": "table", "value": "country"}, {"id": 2, "type": "column", "value": "region"}, {"id": 3, "type": "value", "value": "%Asia%"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": [2, 3]}, {"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-COLUMN", "I-COLUMN", "B-TABLE", "O", "O", "B-VALUE", "O"]}
{"question_id": 5663, "db_id": "formula_1", "dber_id": "spider:train_spider.json:2224", "question": "For each race name, What is the maximum fastest lap speed for races after 2004 ordered by year?", "SQL": "SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "tokens": ["For", "each", "race", "name", ",", "What", "is", "the", "maximum", "fastest", "lap", "speed", "for", "races", "after", "2004", "ordered", "by", "year", "?"], "entities": [{"id": 5, "type": "column", "value": "fastestlapspeed"}, {"id": 3, "type": "table", "value": "results"}, {"id": 6, "type": "column", "value": "raceid"}, {"id": 2, "type": "table", "value": "races"}, {"id": 0, "type": "column", "value": "name"}, {"id": 1, "type": "column", "value": "year"}, {"id": 4, "type": "value", "value": "2014"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [18]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [15]}, {"entity_id": 5, "token_idxs": [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", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "B-VALUE", "O", "O", "B-COLUMN", "O"]}
{"question_id": 14117, "db_id": "medicine_enzyme_interaction", "dber_id": "spider:train_spider.json:954", "question": "What is the id and name of the enzyme that can interact with the most medicines as an activator?", "SQL": "SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "tokens": ["What", "is", "the", "i", "d", "and", "name", "of", "the", "enzyme", "that", "can", "interact", "with", "the", "most", "medicines", "as", "an", "activator", "?"], "entities": [{"id": 3, "type": "table", "value": "medicine_enzyme_interaction"}, {"id": 4, "type": "column", "value": "interaction_type"}, {"id": 5, "type": "value", "value": "activitor"}, {"id": 6, "type": "column", "value": "enzyme_id"}, {"id": 2, "type": "table", "value": "enzyme"}, {"id": 1, "type": "column", "value": "name"}, {"id": 0, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 4]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [16]}, {"entity_id": 4, "token_idxs": [12]}, {"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", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O"]}
{"question_id": 90, "db_id": "cre_Doc_Tracking_DB", "dber_id": "spider:train_spider.json:4234", "question": "What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?", "SQL": "SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;", "tokens": ["What", "are", "the", "names", "of", "the", "employees", "who", "authorised", "the", "destruction", "and", "the", "employees", "who", "destroyed", "the", "corresponding", "documents", "?"], "entities": [{"id": 5, "type": "column", "value": "destruction_authorised_by_employee_id"}, {"id": 2, "type": "table", "value": "documents_to_be_destroyed"}, {"id": 3, "type": "column", "value": "destroyed_by_employee_id"}, {"id": 0, "type": "column", "value": "employee_name"}, {"id": 4, "type": "column", "value": "employee_id"}, {"id": 1, "type": "table", "value": "employees"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [18]}, {"entity_id": 3, "token_idxs": [13, 14, 15]}, {"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", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O"]}
{"question_id": 960, "db_id": "superhero", "dber_id": "bird:dev.json:812", "question": "List down at least five full names of superheroes with blue eyes.", "SQL": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T2.colour = 'Blue' LIMIT 5", "tokens": ["List", "down", "at", "least", "five", "full", "names", "of", "superheroes", "with", "blue", "eyes", "."], "entities": [{"id": 0, "type": "column", "value": "superhero_name"}, {"id": 5, "type": "column", "value": "eye_colour_id"}, {"id": 1, "type": "table", "value": "superhero"}, {"id": 2, "type": "table", "value": "colour"}, {"id": 3, "type": "column", "value": "colour"}, {"id": 4, "type": "value", "value": "Blue"}, {"id": 6, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [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", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-VALUE", "B-COLUMN", "O"]}
{"question_id": 6227, "db_id": "student_club", "dber_id": "bird:dev.json:1384", "question": "How many income generated by Grant Gilmour?", "SQL": "SELECT T2.amount FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Grant' AND T1.last_name = 'Gilmour'", "tokens": ["How", "many", "income", "generated", "by", "Grant", "Gilmour", "?"], "entities": [{"id": 4, "type": "column", "value": "link_to_member"}, {"id": 5, "type": "column", "value": "first_name"}, {"id": 3, "type": "column", "value": "member_id"}, {"id": 7, "type": "column", "value": "last_name"}, {"id": 8, "type": "value", "value": "Gilmour"}, {"id": 0, "type": "column", "value": "amount"}, {"id": 1, "type": "table", "value": "member"}, {"id": 2, "type": "table", "value": "income"}, {"id": 6, "type": "value", "value": "Grant"}], "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": []}, {"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": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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-VALUE", "O"]}
{"question_id": 9432, "db_id": "chinook_1", "dber_id": "spider:train_spider.json:857", "question": "Find all the customer last names that do not have invoice totals larger than 20.", "SQL": "SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20", "tokens": ["Find", "all", "the", "customer", "last", "names", "that", "do", "not", "have", "invoice", "totals", "larger", "than", "20", "."], "entities": [{"id": 5, "type": "column", "value": "customerid"}, {"id": 0, "type": "table", "value": "customer"}, {"id": 1, "type": "column", "value": "lastname"}, {"id": 2, "type": "table", "value": "invoice"}, {"id": 3, "type": "column", "value": "total"}, {"id": 4, "type": "value", "value": "20"}], "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": [11]}, {"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-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "O"]}
{"question_id": 10177, "db_id": "boat_1", "dber_id": "bird:test.json:904", "question": "What is the name, rating, and age for every sailor? And order them by rating and age.", "SQL": "SELECT name , rating , age FROM Sailors ORDER BY rating , age", "tokens": ["What", "is", "the", "name", ",", "rating", ",", "and", "age", "for", "every", "sailor", "?", "And", "order", "them", "by", "rating", "and", "age", "."], "entities": [{"id": 0, "type": "table", "value": "sailors"}, {"id": 2, "type": "column", "value": "rating"}, {"id": 1, "type": "column", "value": "name"}, {"id": 3, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [2, 10]}, {"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", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 6615, "db_id": "simpson_episodes", "dber_id": "bird:train.json:4323", "question": "Which title is the winner of Best International TV Series in 2017?", "SQL": "SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award = 'Best International TV Series' AND SUBSTR(T1.year, 1, 4) = '2017';", "tokens": ["Which", "title", "is", "the", "winner", "of", "Best", "International", "TV", "Series", "in", "2017", "?"], "entities": [{"id": 5, "type": "value", "value": "Best International TV Series"}, {"id": 3, "type": "column", "value": "episode_id"}, {"id": 2, "type": "table", "value": "episode"}, {"id": 0, "type": "column", "value": "title"}, {"id": 1, "type": "table", "value": "award"}, {"id": 4, "type": "column", "value": "award"}, {"id": 6, "type": "value", "value": "2017"}, {"id": 7, "type": "column", "value": "year"}, {"id": 8, "type": "value", "value": "1"}, {"id": 9, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"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", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 13218, "db_id": "works_cycles", "dber_id": "bird:train.json:7295", "question": "Please list the website purchasing links of the vendors from whom the product Hex Nut 5 can be purchased.", "SQL": "SELECT T3.PurchasingWebServiceURL FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T2.Name = 'Hex Nut 5'", "tokens": ["Please", "list", "the", "website", "purchasing", "links", "of", "the", "vendors", "from", "whom", "the", "product", "Hex", "Nut", "5", "can", "be", "purchased", "."], "entities": [{"id": 0, "type": "column", "value": "purchasingwebserviceurl"}, {"id": 6, "type": "column", "value": "businessentityid"}, {"id": 4, "type": "table", "value": "productvendor"}, {"id": 3, "type": "value", "value": "Hex Nut 5"}, {"id": 7, "type": "column", "value": "productid"}, {"id": 5, "type": "table", "value": "product"}, {"id": 1, "type": "table", "value": "vendor"}, {"id": 2, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4, 5]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [13, 14, 15]}, {"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", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O"]}
{"question_id": 13443, "db_id": "tracking_orders", "dber_id": "spider:train_spider.json:6942", "question": "What are the names of the customers who bought product \"food\" at least once?", "SQL": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*) >= 1", "tokens": ["What", "are", "the", "names", "of", "the", "customers", "who", "bought", "product", "\"", "food", "\"", "at", "least", "once", "?"], "entities": [], "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", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 7752, "db_id": "ice_hockey_draft", "dber_id": "bird:train.json:6952", "question": "How many players who were drafted by the Toronto Maple Leafs have played over 300 games in their first 7 years of the NHL career?", "SQL": "SELECT COUNT(ELITEID) FROM PlayerInfo WHERE overallby = 'Toronto Maple Leafs' AND sum_7yr_GP > 300", "tokens": ["How", "many", "players", "who", "were", "drafted", "by", "the", "Toronto", "Maple", "Leafs", "have", "played", "over", "300", "games", "in", "their", "first", "7", "years", "of", "the", "NHL", "career", "?"], "entities": [{"id": 3, "type": "value", "value": "Toronto Maple Leafs"}, {"id": 0, "type": "table", "value": "playerinfo"}, {"id": 4, "type": "column", "value": "sum_7yr_gp"}, {"id": 2, "type": "column", "value": "overallby"}, {"id": 1, "type": "column", "value": "eliteid"}, {"id": 5, "type": "value", "value": "300"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": [8, 9, 10]}, {"entity_id": 4, "token_idxs": [18, 19, 20]}, {"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", "B-TABLE", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O"]}
{"question_id": 8346, "db_id": "machine_repair", "dber_id": "spider:train_spider.json:2241", "question": "Show the name of technicians aged either 36 or 37", "SQL": "SELECT Name FROM technician WHERE Age = 36 OR Age = 37", "tokens": ["Show", "the", "name", "of", "technicians", "aged", "either", "36", "or", "37"], "entities": [{"id": 0, "type": "table", "value": "technician"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "age"}, {"id": 3, "type": "value", "value": "36"}, {"id": 4, "type": "value", "value": "37"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [7]}, {"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", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE"]}
{"question_id": 916, "db_id": "tracking_software_problems", "dber_id": "spider:train_spider.json:5356", "question": "Find all the ids and dates of the logs for the problem whose id is 10.", "SQL": "SELECT problem_log_id , log_entry_date FROM problem_log WHERE problem_id = 10", "tokens": ["Find", "all", "the", "ids", "and", "dates", "of", "the", "logs", "for", "the", "problem", "whose", "i", "d", "is", "10", "."], "entities": [{"id": 1, "type": "column", "value": "problem_log_id"}, {"id": 2, "type": "column", "value": "log_entry_date"}, {"id": 0, "type": "table", "value": "problem_log"}, {"id": 3, "type": "column", "value": "problem_id"}, {"id": 4, "type": "value", "value": "10"}], "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": [11, 13, 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", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O"]}
{"question_id": 2608, "db_id": "superstore", "dber_id": "bird:train.json:2357", "question": "What was the original price of Xerox 1952 ordered by Aimee Bixby on 2014/9/10?", "SQL": "SELECT DISTINCT T2.Sales / (1 - T2.Discount) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Aimee Bixby' AND T3.`Product Name` = 'Xerox 1952' AND T2.`Order Date` = '2014-09-10'", "tokens": ["What", "was", "the", "original", "price", "of", "Xerox", "1952", "ordered", "by", "Aimee", "Bixby", "on", "2014/9/10", "?"], "entities": [{"id": 3, "type": "table", "value": "central_superstore"}, {"id": 5, "type": "column", "value": "Customer Name"}, {"id": 7, "type": "column", "value": "Product Name"}, {"id": 6, "type": "value", "value": "Aimee Bixby"}, {"id": 13, "type": "column", "value": "Customer ID"}, {"id": 4, "type": "column", "value": "Product ID"}, {"id": 8, "type": "value", "value": "Xerox 1952"}, {"id": 9, "type": "column", "value": "Order Date"}, {"id": 10, "type": "value", "value": "2014-09-10"}, {"id": 12, "type": "column", "value": "discount"}, {"id": 0, "type": "table", "value": "product"}, {"id": 2, "type": "table", "value": "people"}, {"id": 1, "type": "column", "value": "sales"}, {"id": 11, "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": []}, {"entity_id": 6, "token_idxs": [10, 11]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [6, 7]}, {"entity_id": 9, "token_idxs": [8]}, {"entity_id": 10, "token_idxs": [13]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "I-VALUE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 12272, "db_id": "hr_1", "dber_id": "spider:train_spider.json:3447", "question": "display the employee ID for each employee and the date on which he ended his previous job.", "SQL": "SELECT employee_id , MAX(end_date) FROM job_history GROUP BY employee_id", "tokens": ["display", "the", "employee", "ID", "for", "each", "employee", "and", "the", "date", "on", "which", "he", "ended", "his", "previous", "job", "."], "entities": [{"id": 0, "type": "table", "value": "job_history"}, {"id": 1, "type": "column", "value": "employee_id"}, {"id": 2, "type": "column", "value": "end_date"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [16]}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 1588, "db_id": "toxicology", "dber_id": "bird:dev.json:270", "question": "Among the molecules with element Calcium, are they mostly carcinogenic or non carcinogenic?", "SQL": "SELECT T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'ca' GROUP BY T2.label ORDER BY COUNT(T2.label) DESC LIMIT 1", "tokens": ["Among", "the", "molecules", "with", "element", "Calcium", ",", "are", "they", "mostly", "carcinogenic", "or", "non", "carcinogenic", "?"], "entities": [{"id": 5, "type": "column", "value": "molecule_id"}, {"id": 2, "type": "table", "value": "molecule"}, {"id": 3, "type": "column", "value": "element"}, {"id": 0, "type": "column", "value": "label"}, {"id": 1, "type": "table", "value": "atom"}, {"id": 4, "type": "value", "value": "ca"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": [4]}, {"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-TABLE", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 3608, "db_id": "book_publishing_company", "dber_id": "bird:train.json:184", "question": "List all employees who are at the maximum level in their job designation.", "SQL": "SELECT T1.fname, T1.lname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.job_lvl = T2.max_lvl", "tokens": ["List", "all", "employees", "who", "are", "at", "the", "maximum", "level", "in", "their", "job", "designation", "."], "entities": [{"id": 2, "type": "table", "value": "employee"}, {"id": 4, "type": "column", "value": "job_lvl"}, {"id": 5, "type": "column", "value": "max_lvl"}, {"id": 6, "type": "column", "value": "job_id"}, {"id": 0, "type": "column", "value": "fname"}, {"id": 1, "type": "column", "value": "lname"}, {"id": 3, "type": "table", "value": "jobs"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": [8]}, {"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", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-TABLE", "O", "O"]}
{"question_id": 4386, "db_id": "soccer_2016", "dber_id": "bird:train.json:1903", "question": "Which player became the man of the series in the year 2012? Give the name and country of this player.", "SQL": "SELECT T2.Player_Name, T3.Country_Name FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T1.Season_Year = 2012", "tokens": ["Which", "player", "became", "the", "man", "of", "the", "series", "in", "the", "year", "2012", "?", "Give", "the", "name", "and", "country", "of", "this", "player", "."], "entities": [{"id": 8, "type": "column", "value": "man_of_the_series"}, {"id": 1, "type": "column", "value": "country_name"}, {"id": 0, "type": "column", "value": "player_name"}, {"id": 3, "type": "column", "value": "season_year"}, {"id": 7, "type": "column", "value": "country_id"}, {"id": 9, "type": "column", "value": "player_id"}, {"id": 2, "type": "table", "value": "country"}, {"id": 5, "type": "table", "value": "season"}, {"id": 6, "type": "table", "value": "player"}, {"id": 4, "type": "value", "value": "2012"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [15]}, {"entity_id": 1, "token_idxs": [17]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [1]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [4, 5, 6, 7]}, {"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", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O"]}
{"question_id": 14013, "db_id": "hr_1", "dber_id": "spider:train_spider.json:3511", "question": "display the department id and the total salary for those departments which contains at least two employees.", "SQL": "SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2", "tokens": ["display", "the", "department", "i", "d", "and", "the", "total", "salary", "for", "those", "departments", "which", "contains", "at", "least", "two", "employees", "."], "entities": [{"id": 1, "type": "column", "value": "department_id"}, {"id": 0, "type": "table", "value": "employees"}, {"id": 3, "type": "column", "value": "salary"}, {"id": 2, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [17]}, {"entity_id": 1, "token_idxs": [2, 3, 4]}, {"entity_id": 2, "token_idxs": [16]}, {"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", "I-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 8834, "db_id": "superhero", "dber_id": "bird:dev.json:725", "question": "How many superheroes are published by Marvel Comics?", "SQL": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Marvel Comics'", "tokens": ["How", "many", "superheroes", "are", "published", "by", "Marvel", "Comics", "?"], "entities": [{"id": 2, "type": "column", "value": "publisher_name"}, {"id": 3, "type": "value", "value": "Marvel Comics"}, {"id": 5, "type": "column", "value": "publisher_id"}, {"id": 0, "type": "table", "value": "superhero"}, {"id": 1, "type": "table", "value": "publisher"}, {"id": 4, "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": [6, 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", "B-TABLE", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 4351, "db_id": "legislator", "dber_id": "bird:train.json:4840", "question": "Provide the full name and birth date of the legislator with a contact form of http://www.brown.senate.gov/contact/.", "SQL": "SELECT T1.official_full_name, T1.birthday_bio FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.contact_form = 'http://www.brown.senate.gov/contact/'", "tokens": ["Provide", "the", "full", "name", "and", "birth", "date", "of", "the", "legislator", "with", "a", "contact", "form", "of", "http://www.brown.senate.gov/contact/."], "entities": [{"id": 5, "type": "value", "value": "http://www.brown.senate.gov/contact/"}, {"id": 0, "type": "column", "value": "official_full_name"}, {"id": 3, "type": "table", "value": "current-terms"}, {"id": 1, "type": "column", "value": "birthday_bio"}, {"id": 4, "type": "column", "value": "contact_form"}, {"id": 6, "type": "column", "value": "bioguide_id"}, {"id": 7, "type": "column", "value": "bioguide"}, {"id": 2, "type": "table", "value": "current"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [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", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 15848, "db_id": "shipping", "dber_id": "bird:train.json:5592", "question": "State the headquarter of the truck which completed shipment no.1045.", "SQL": "SELECT T1.make FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = 1045", "tokens": ["State", "the", "headquarter", "of", "the", "truck", "which", "completed", "shipment", "no.1045", "."], "entities": [{"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": 0, "type": "column", "value": "make"}, {"id": 4, "type": "value", "value": "1045"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [0]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [8]}, {"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-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "B-VALUE", "O"]}
{"question_id": 13353, "db_id": "boat_1", "dber_id": "bird:test.json:900", "question": "How many reservations for each boat did the sailors with an id greater than 1 make?", "SQL": "SELECT bid , count(*) FROM Reserves WHERE sid > 1 GROUP BY bid", "tokens": ["How", "many", "reservations", "for", "each", "boat", "did", "the", "sailors", "with", "an", "i", "d", "greater", "than", "1", "make", "?"], "entities": [{"id": 0, "type": "table", "value": "reserves"}, {"id": 1, "type": "column", "value": "bid"}, {"id": 2, "type": "column", "value": "sid"}, {"id": 3, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [11, 12]}, {"entity_id": 3, "token_idxs": [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-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 6275, "db_id": "movie_3", "dber_id": "bird:train.json:9291", "question": "Which city does the address 1623 Kingstown Drive belong to?", "SQL": "SELECT T1.city FROM city AS T1 INNER JOIN address AS T2 ON T2.city_id = T1.city_id WHERE T2.address = '1623 Kingstown Drive'", "tokens": ["Which", "city", "does", "the", "address", "1623", "Kingstown", "Drive", "belong", "to", "?"], "entities": [{"id": 4, "type": "value", "value": "1623 Kingstown Drive"}, {"id": 2, "type": "table", "value": "address"}, {"id": 3, "type": "column", "value": "address"}, {"id": 5, "type": "column", "value": "city_id"}, {"id": 0, "type": "column", "value": "city"}, {"id": 1, "type": "table", "value": "city"}], "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": [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", "O", "B-COLUMN", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O"]}
{"question_id": 15126, "db_id": "movie_platform", "dber_id": "bird:train.json:126", "question": "How many critics were given to the movie that got the most movie popularity number.", "SQL": "SELECT COUNT(T1.critic) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_popularity = ( SELECT MAX(movie_popularity) FROM movies )", "tokens": ["How", "many", "critics", "were", "given", "to", "the", "movie", "that", "got", "the", "most", "movie", "popularity", "number", "."], "entities": [{"id": 2, "type": "column", "value": "movie_popularity"}, {"id": 4, "type": "column", "value": "movie_id"}, {"id": 0, "type": "table", "value": "ratings"}, {"id": 1, "type": "table", "value": "movies"}, {"id": 3, "type": "column", "value": "critic"}], "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"]}
{"question_id": 10280, "db_id": "music_2", "dber_id": "spider:train_spider.json:5223", "question": "What is the type of vocals that the band member with the last name \"Heilo\" played the most?", "SQL": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = \"Heilo\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1", "tokens": ["What", "is", "the", "type", "of", "vocals", "that", "the", "band", "member", "with", "the", "last", "name", "\"", "Heilo", "\"", "played", "the", "most", "?"], "entities": [{"id": 3, "type": "column", "value": "lastname"}, {"id": 5, "type": "column", "value": "bandmate"}, {"id": 1, "type": "table", "value": "vocals"}, {"id": 4, "type": "column", "value": "Heilo"}, {"id": 0, "type": "column", "value": "type"}, {"id": 2, "type": "table", "value": "band"}, {"id": 6, "type": "column", "value": "id"}], "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": [12, 13]}, {"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", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O"]}
{"question_id": 3257, "db_id": "planet_1", "dber_id": "bird:test.json:1929", "question": "Find the number of employees who do not have clearance in Mars .", "SQL": "select count(*) from employee where employeeid not in ( select t2.employeeid from has_clearance as t1 join employee as t2 on t1.employee = t2.employeeid join planet as t3 on t1.planet = t3.planetid where t3.name = \"mars\" );", "tokens": ["Find", "the", "number", "of", "employees", "who", "do", "not", "have", "clearance", "in", "Mars", "."], "entities": [{"id": 5, "type": "table", "value": "has_clearance"}, {"id": 1, "type": "column", "value": "employeeid"}, {"id": 0, "type": "table", "value": "employee"}, {"id": 7, "type": "column", "value": "planetid"}, {"id": 8, "type": "column", "value": "employee"}, {"id": 2, "type": "table", "value": "planet"}, {"id": 6, "type": "column", "value": "planet"}, {"id": 3, "type": "column", "value": "name"}, {"id": 4, "type": "column", "value": "mars"}], "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": [11]}, {"entity_id": 5, "token_idxs": [8, 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", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "O"]}
{"question_id": 14153, "db_id": "soccer_2016", "dber_id": "bird:train.json:1826", "question": "How many umpires are from South Africa?", "SQL": "SELECT SUM(CASE WHEN T1.Country_Name = 'South Africa' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN Umpire AS T2 ON T1.Country_ID = T2.Umpire_Country", "tokens": ["How", "many", "umpires", "are", "from", "South", "Africa", "?"], "entities": [{"id": 3, "type": "column", "value": "umpire_country"}, {"id": 6, "type": "column", "value": "country_name"}, {"id": 7, "type": "value", "value": "South Africa"}, {"id": 2, "type": "column", "value": "country_id"}, {"id": 0, "type": "table", "value": "country"}, {"id": 1, "type": "table", "value": "umpire"}, {"id": 4, "type": "value", "value": "0"}, {"id": 5, "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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [5, 6]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "O"]}
{"question_id": 5718, "db_id": "donor", "dber_id": "bird:train.json:3244", "question": "For the donation of the project 'Awesome Audiobooks Make Avid Readers', what was the percentage of the tip in the total amount?", "SQL": "SELECT CAST(SUM(T2.donation_optional_support) AS REAL) * 100 / SUM(T2.donation_total) FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Awesome Audiobooks Make Avid Readers'", "tokens": ["For", "the", "donation", "of", "the", "project", "'", "Awesome", "Audiobooks", "Make", "Avid", "Readers", "'", ",", "what", "was", "the", "percentage", "of", "the", "tip", "in", "the", "total", "amount", "?"], "entities": [{"id": 3, "type": "value", "value": "Awesome Audiobooks Make Avid Readers"}, {"id": 7, "type": "column", "value": "donation_optional_support"}, {"id": 6, "type": "column", "value": "donation_total"}, {"id": 1, "type": "table", "value": "donations"}, {"id": 4, "type": "column", "value": "projectid"}, {"id": 0, "type": "table", "value": "essays"}, {"id": 2, "type": "column", "value": "title"}, {"id": 5, "type": "value", "value": "100"}], "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-TABLE", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 3910, "db_id": "flight_4", "dber_id": "spider:train_spider.json:6831", "question": "Find the name, city, and country of the airport that has the highest latitude.", "SQL": "SELECT name , city , country FROM airports ORDER BY elevation DESC LIMIT 1", "tokens": ["Find", "the", "name", ",", "city", ",", "and", "country", "of", "the", "airport", "that", "has", "the", "highest", "latitude", "."], "entities": [{"id": 4, "type": "column", "value": "elevation"}, {"id": 0, "type": "table", "value": "airports"}, {"id": 3, "type": "column", "value": "country"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"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", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 13105, "db_id": "region_building", "dber_id": "bird:test.json:326", "question": "List the names of regions in alphabetical order.", "SQL": "SELECT Name FROM region ORDER BY Name ASC", "tokens": ["List", "the", "names", "of", "regions", "in", "alphabetical", "order", "."], "entities": [{"id": 0, "type": "table", "value": "region"}, {"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": 14737, "db_id": "shooting", "dber_id": "bird:train.json:2469", "question": "From the cases where the subject are male, list the case number and the location and subject status.", "SQL": "SELECT T1.case_number, T1.location, T1.subject_statuses FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'M'", "tokens": ["From", "the", "cases", "where", "the", "subject", "are", "male", ",", "list", "the", "case", "number", "and", "the", "location", "and", "subject", "status", "."], "entities": [{"id": 2, "type": "column", "value": "subject_statuses"}, {"id": 0, "type": "column", "value": "case_number"}, {"id": 3, "type": "table", "value": "incidents"}, {"id": 1, "type": "column", "value": "location"}, {"id": 4, "type": "table", "value": "subjects"}, {"id": 5, "type": "column", "value": "gender"}, {"id": 6, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11, 12]}, {"entity_id": 1, "token_idxs": [15]}, {"entity_id": 2, "token_idxs": [18]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [17]}, {"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", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "O"]}
{"question_id": 5514, "db_id": "synthea", "dber_id": "bird:train.json:1420", "question": "List the procedures received by Emmy Waelchi.", "SQL": "SELECT T2.DESCRIPTION FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Emmy' AND T1.last = 'Waelchi'", "tokens": ["List", "the", "procedures", "received", "by", "Emmy", "Waelchi", "."], "entities": [{"id": 0, "type": "column", "value": "description"}, {"id": 2, "type": "table", "value": "procedures"}, {"id": 1, "type": "table", "value": "patients"}, {"id": 3, "type": "column", "value": "patient"}, {"id": 7, "type": "value", "value": "Waelchi"}, {"id": 4, "type": "column", "value": "first"}, {"id": 5, "type": "value", "value": "Emmy"}, {"id": 6, "type": "column", "value": "last"}], "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": []}, {"entity_id": 5, "token_idxs": [5]}, {"entity_id": 6, "token_idxs": [0]}, {"entity_id": 7, "token_idxs": [6]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "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-VALUE", "O"]}
{"question_id": 53, "db_id": "cre_Drama_Workshop_Groups", "dber_id": "spider:train_spider.json:5162", "question": "What are the names of the workshop groups that have bookings with status code \"stop\"?", "SQL": "SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = \"stop\"", "tokens": ["What", "are", "the", "names", "of", "the", "workshop", "groups", "that", "have", "bookings", "with", "status", "code", "\"", "stop", "\"", "?"], "entities": [{"id": 2, "type": "table", "value": "drama_workshop_groups"}, {"id": 5, "type": "column", "value": "workshop_group_id"}, {"id": 3, "type": "column", "value": "status_code"}, {"id": 0, "type": "column", "value": "store_name"}, {"id": 1, "type": "table", "value": "bookings"}, {"id": 4, "type": "column", "value": "stop"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [16, 17]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": [10]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [2]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-COLUMN", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE"]}
{"question_id": 9016, "db_id": "retail_world", "dber_id": "bird:train.json:6617", "question": "Which products by Plutzer Lebensmittelgromrkte AG were discontinued and what are their price?", "SQL": "SELECT T1.UnitPrice FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Plutzer Lebensmittelgromrkte AG' AND T1.Discontinued = 1", "tokens": ["Which", "products", "by", "Plutzer", "Lebensmittelgromrkte", "AG", "were", "discontinued", "and", "what", "are", "their", "price", "?"], "entities": [{"id": 5, "type": "value", "value": "Plutzer Lebensmittelgromrkte AG"}, {"id": 6, "type": "column", "value": "discontinued"}, {"id": 4, "type": "column", "value": "companyname"}, {"id": 3, "type": "column", "value": "supplierid"}, {"id": 0, "type": "column", "value": "unitprice"}, {"id": 2, "type": "table", "value": "suppliers"}, {"id": 1, "type": "table", "value": "products"}, {"id": 7, "type": "value", "value": "1"}], "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": [7, 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-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "B-COLUMN", "O", "O"]}
{"question_id": 4451, "db_id": "ship_1", "dber_id": "spider:train_spider.json:6238", "question": "Find the captain rank that has some captains in both Cutter and Armed schooner classes.", "SQL": "SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner'", "tokens": ["Find", "the", "captain", "rank", "that", "has", "some", "captains", "in", "both", "Cutter", "and", "Armed", "schooner", "classes", "."], "entities": [{"id": 4, "type": "value", "value": "Armed schooner"}, {"id": 0, "type": "table", "value": "captain"}, {"id": 3, "type": "value", "value": "Cutter"}, {"id": 2, "type": "column", "value": "class"}, {"id": 1, "type": "column", "value": "rank"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [14]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [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", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O"]}
{"question_id": 12382, "db_id": "soccer_3", "dber_id": "bird:test.json:21", "question": "What are the names of players from the club managed by Sam Allardyce?", "SQL": "SELECT T2.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.Manager = \"Sam Allardyce\"", "tokens": ["What", "are", "the", "names", "of", "players", "from", "the", "club", "managed", "by", "Sam", "Allardyce", "?"], "entities": [{"id": 4, "type": "column", "value": "Sam Allardyce"}, {"id": 3, "type": "column", "value": "manager"}, {"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"}], "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": [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", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 8179, "db_id": "codebase_community", "dber_id": "bird:dev.json:688", "question": "Identify the number of posts that have been viewed over 35000 times but have received no comments from other users.", "SQL": "SELECT COUNT(Id) FROM posts WHERE ViewCount > 35000 AND CommentCount = 0", "tokens": ["Identify", "the", "number", "of", "posts", "that", "have", "been", "viewed", "over", "35000", "times", "but", "have", "received", "no", "comments", "from", "other", "users", "."], "entities": [{"id": 4, "type": "column", "value": "commentcount"}, {"id": 2, "type": "column", "value": "viewcount"}, {"id": 0, "type": "table", "value": "posts"}, {"id": 3, "type": "value", "value": "35000"}, {"id": 1, "type": "column", "value": "id"}, {"id": 5, "type": "value", "value": "0"}], "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": [10]}, {"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", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O"]}
{"question_id": 7973, "db_id": "software_company", "dber_id": "bird:train.json:8524", "question": "How many of the first 60,000 customers from the place with the highest average income per month have sent a true response to the incentive mailing sent by the marketing department?", "SQL": "SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T2.RESPONSE = 'true' ORDER BY T3.INCOME_K DESC LIMIT 1", "tokens": ["How", "many", "of", "the", "first", "60,000", "customers", "from", "the", "place", "with", "the", "highest", "average", "income", "per", "month", "have", "sent", "a", "true", "response", "to", "the", "incentive", "mailing", "sent", "by", "the", "marketing", "department", "?"], "entities": [{"id": 6, "type": "table", "value": "mailings1_2"}, {"id": 5, "type": "table", "value": "customers"}, {"id": 1, "type": "column", "value": "response"}, {"id": 3, "type": "column", "value": "income_k"}, {"id": 0, "type": "table", "value": "demog"}, {"id": 7, "type": "column", "value": "geoid"}, {"id": 8, "type": "column", "value": "refid"}, {"id": 2, "type": "value", "value": "true"}, {"id": 4, "type": "column", "value": "id"}], "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": [4]}, {"entity_id": 4, "token_idxs": [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-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 9246, "db_id": "apartment_rentals", "dber_id": "spider:train_spider.json:1194", "question": "How many apartment bookings are there in total?", "SQL": "SELECT count(*) FROM Apartment_Bookings", "tokens": ["How", "many", "apartment", "bookings", "are", "there", "in", "total", "?"], "entities": [{"id": 0, "type": "table", "value": "apartment_bookings"}], "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", "O", "O"]}
{"question_id": 6482, "db_id": "medicine_enzyme_interaction", "dber_id": "spider:train_spider.json:975", "question": "find the number of medicines offered by each trade.", "SQL": "SELECT trade_name , count(*) FROM medicine GROUP BY trade_name", "tokens": ["find", "the", "number", "of", "medicines", "offered", "by", "each", "trade", "."], "entities": [{"id": 1, "type": "column", "value": "trade_name"}, {"id": 0, "type": "table", "value": "medicine"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"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", "B-TABLE", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 3467, "db_id": "music_4", "dber_id": "spider:train_spider.json:6160", "question": "Give the songs included in volumes that have more than 1 week on top.", "SQL": "SELECT Song FROM volume WHERE Weeks_on_Top > 1", "tokens": ["Give", "the", "songs", "included", "in", "volumes", "that", "have", "more", "than", "1", "week", "on", "top", "."], "entities": [{"id": 2, "type": "column", "value": "weeks_on_top"}, {"id": 0, "type": "table", "value": "volume"}, {"id": 1, "type": "column", "value": "song"}, {"id": 3, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [11, 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", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O"]}
{"question_id": 3150, "db_id": "assets_maintenance", "dber_id": "spider:train_spider.json:3133", "question": "List all every engineer's first name, last name, details and coresponding skill description.", "SQL": "SELECT T1.first_name , T1.last_name , T1.other_details , T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id", "tokens": ["List", "all", "every", "engineer", "'s", "first", "name", ",", "last", "name", ",", "details", "and", "coresponding", "skill", "description", "."], "entities": [{"id": 5, "type": "table", "value": "maintenance_engineers"}, {"id": 3, "type": "column", "value": "skill_description"}, {"id": 6, "type": "table", "value": "engineer_skills"}, {"id": 2, "type": "column", "value": "other_details"}, {"id": 8, "type": "column", "value": "engineer_id"}, {"id": 0, "type": "column", "value": "first_name"}, {"id": 1, "type": "column", "value": "last_name"}, {"id": 7, "type": "column", "value": "skill_id"}, {"id": 4, "type": "table", "value": "skills"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5, 6]}, {"entity_id": 1, "token_idxs": [8, 9]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [15]}, {"entity_id": 4, "token_idxs": [14]}, {"entity_id": 5, "token_idxs": [3]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O"]}
{"question_id": 10794, "db_id": "simpson_episodes", "dber_id": "bird:train.json:4306", "question": "How many people were not born in Connecticut, USA?", "SQL": "SELECT COUNT(name) FROM Person WHERE birth_region != 'Connecticut' AND birth_country != 'USA';", "tokens": ["How", "many", "people", "were", "not", "born", "in", "Connecticut", ",", "USA", "?"], "entities": [{"id": 4, "type": "column", "value": "birth_country"}, {"id": 2, "type": "column", "value": "birth_region"}, {"id": 3, "type": "value", "value": "Connecticut"}, {"id": 0, "type": "table", "value": "person"}, {"id": 1, "type": "column", "value": "name"}, {"id": 5, "type": "value", "value": "USA"}], "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": []}, {"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-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 5539, "db_id": "baseball_1", "dber_id": "spider:train_spider.json:3656", "question": "Find the average height of the players who belong to the college called 'Yale University'.", "SQL": "SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University';", "tokens": ["Find", "the", "average", "height", "of", "the", "players", "who", "belong", "to", "the", "college", "called", "'", "Yale", "University", "'", "."], "entities": [{"id": 2, "type": "value", "value": "Yale University"}, {"id": 5, "type": "table", "value": "player_college"}, {"id": 6, "type": "column", "value": "college_id"}, {"id": 1, "type": "column", "value": "name_full"}, {"id": 7, "type": "column", "value": "player_id"}, {"id": 0, "type": "table", "value": "college"}, {"id": 3, "type": "column", "value": "height"}, {"id": 4, "type": "table", "value": "player"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [14, 15]}, {"entity_id": 3, "token_idxs": [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", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 3673, "db_id": "works_cycles", "dber_id": "bird:train.json:7326", "question": "List the person who owns a distinguish credt card.", "SQL": "SELECT T3.FirstName, T3.LastName FROM CreditCard AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.CreditCardID = T2.CreditCardID INNER JOIN Person AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.CardType = 'Distinguish'", "tokens": ["List", "the", "person", "who", "owns", "a", "distinguish", "credt", "card", "."], "entities": [{"id": 6, "type": "table", "value": "personcreditcard"}, {"id": 7, "type": "column", "value": "businessentityid"}, {"id": 8, "type": "column", "value": "creditcardid"}, {"id": 4, "type": "value", "value": "Distinguish"}, {"id": 5, "type": "table", "value": "creditcard"}, {"id": 0, "type": "column", "value": "firstname"}, {"id": 1, "type": "column", "value": "lastname"}, {"id": 3, "type": "column", "value": "cardtype"}, {"id": 2, "type": "table", "value": "person"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [0]}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [6]}, {"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": ["B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "B-TABLE", "B-COLUMN", "O"]}
{"question_id": 14387, "db_id": "pilot_1", "dber_id": "bird:test.json:1171", "question": "List in alphabetic order the names of pilots whose age is greater than some pilots having plane Piper Cub.", "SQL": "SELECT pilot_name FROM pilotskills WHERE age > (SELECT min(age) FROM pilotskills WHERE plane_name = 'Piper Cub') ORDER BY pilot_name", "tokens": ["List", "in", "alphabetic", "order", "the", "names", "of", "pilots", "whose", "age", "is", "greater", "than", "some", "pilots", "having", "plane", "Piper", "Cub", "."], "entities": [{"id": 0, "type": "table", "value": "pilotskills"}, {"id": 1, "type": "column", "value": "pilot_name"}, {"id": 3, "type": "column", "value": "plane_name"}, {"id": 4, "type": "value", "value": "Piper Cub"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": [5, 7]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [16]}, {"entity_id": 4, "token_idxs": [17, 18]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 2780, "db_id": "california_schools", "dber_id": "bird:dev.json:49", "question": "Which different county has the most number of closed schools? Please provide the name of each school as well as the closure date.", "SQL": "SELECT DISTINCT County, School, ClosedDate FROM schools WHERE County = ( SELECT County FROM schools WHERE StatusType = 'Closed' GROUP BY County ORDER BY COUNT(School) DESC LIMIT 1 ) AND StatusType = 'Closed' AND school IS NOT NULL", "tokens": ["Which", "different", "county", "has", "the", "most", "number", "of", "closed", "schools", "?", "Please", "provide", "the", "name", "of", "each", "school", "as", "well", "as", "the", "closure", "date", "."], "entities": [{"id": 3, "type": "column", "value": "closeddate"}, {"id": 4, "type": "column", "value": "statustype"}, {"id": 0, "type": "table", "value": "schools"}, {"id": 1, "type": "column", "value": "county"}, {"id": 2, "type": "column", "value": "school"}, {"id": 5, "type": "value", "value": "Closed"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [17]}, {"entity_id": 3, "token_idxs": [22, 23]}, {"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": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 15909, "db_id": "university", "dber_id": "bird:train.json:8004", "question": "Between 2011 to 2016, in which countries can you find the universities where at least 50% of its students are international students?", "SQL": "SELECT DISTINCT T3.country_name FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T2.pct_international_students > 50 AND T2.year BETWEEN 2011 AND 2016", "tokens": ["Between", "2011", "to", "2016", ",", "in", "which", "countries", "can", "you", "find", "the", "universities", "where", "at", "least", "50", "%", "of", "its", "students", "are", "international", "students", "?"], "entities": [{"id": 6, "type": "column", "value": "pct_international_students"}, {"id": 3, "type": "table", "value": "university_year"}, {"id": 11, "type": "column", "value": "university_id"}, {"id": 0, "type": "column", "value": "country_name"}, {"id": 2, "type": "table", "value": "university"}, {"id": 5, "type": "column", "value": "country_id"}, {"id": 1, "type": "table", "value": "country"}, {"id": 8, "type": "column", "value": "year"}, {"id": 9, "type": "value", "value": "2011"}, {"id": 10, "type": "value", "value": "2016"}, {"id": 4, "type": "column", "value": "id"}, {"id": 7, "type": "value", "value": "50"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [3]}, {"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", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 15146, "db_id": "video_game", "dber_id": "bird:test.json:1943", "question": "How many players have rank of the year smaller than 3?", "SQL": "SELECT count(*) FROM player WHERE Rank_of_the_year <= 3", "tokens": ["How", "many", "players", "have", "rank", "of", "the", "year", "smaller", "than", "3", "?"], "entities": [{"id": 1, "type": "column", "value": "rank_of_the_year"}, {"id": 0, "type": "table", "value": "player"}, {"id": 2, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [4, 5, 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", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O"]}
{"question_id": 1193, "db_id": "cre_Doc_Tracking_DB", "dber_id": "spider:train_spider.json:4181", "question": "How many locations are listed in the database?", "SQL": "SELECT count(*) FROM Ref_locations", "tokens": ["How", "many", "locations", "are", "listed", "in", "the", "database", "?"], "entities": [{"id": 0, "type": "table", "value": "ref_locations"}], "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"]}
{"question_id": 2143, "db_id": "movie_3", "dber_id": "bird:train.json:9392", "question": "What films did Burt Dukakis got star in?", "SQL": "SELECT T3.title FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.first_name = 'BURT' AND T2.last_name = 'DUKAKIS'", "tokens": ["What", "films", "did", "Burt", "Dukakis", "got", "star", "in", "?"], "entities": [{"id": 2, "type": "table", "value": "film_actor"}, {"id": 5, "type": "column", "value": "first_name"}, {"id": 7, "type": "column", "value": "last_name"}, {"id": 9, "type": "column", "value": "actor_id"}, {"id": 4, "type": "column", "value": "film_id"}, {"id": 8, "type": "value", "value": "DUKAKIS"}, {"id": 0, "type": "column", "value": "title"}, {"id": 3, "type": "table", "value": "actor"}, {"id": 1, "type": "table", "value": "film"}, {"id": 6, "type": "value", "value": "BURT"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [3]}, {"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", "B-TABLE", "O", "B-VALUE", "B-VALUE", "O", "O", "O", "O"]}
{"question_id": 8900, "db_id": "university", "dber_id": "bird:train.json:8032", "question": "Provide the ID of the university with the highest percentage of female students in 2012.", "SQL": "SELECT university_id FROM university_year WHERE year = 2012 ORDER BY pct_female_students DESC LIMIT 1", "tokens": ["Provide", "the", "ID", "of", "the", "university", "with", "the", "highest", "percentage", "of", "female", "students", "in", "2012", "."], "entities": [{"id": 4, "type": "column", "value": "pct_female_students"}, {"id": 0, "type": "table", "value": "university_year"}, {"id": 1, "type": "column", "value": "university_id"}, {"id": 2, "type": "column", "value": "year"}, {"id": 3, "type": "value", "value": "2012"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2, 5]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": [9, 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", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O"]}
{"question_id": 7612, "db_id": "movie_1", "dber_id": "spider:train_spider.json:2469", "question": "What are the names of all movies that were created after the most recent Steven Spielberg film?", "SQL": "SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = \"Steven Spielberg\")", "tokens": ["What", "are", "the", "names", "of", "all", "movies", "that", "were", "created", "after", "the", "most", "recent", "Steven", "Spielberg", "film", "?"], "entities": [{"id": 4, "type": "column", "value": "Steven Spielberg"}, {"id": 3, "type": "column", "value": "director"}, {"id": 0, "type": "table", "value": "movie"}, {"id": 1, "type": "column", "value": "title"}, {"id": 2, "type": "column", "value": "year"}], "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": [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", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O"]}
{"question_id": 3492, "db_id": "talkingdata", "dber_id": "bird:train.json:1111", "question": "Provide the total number of the male users that use OPPO as their phone brand.", "SQL": "SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'OPPO' AND T1.gender = 'M'", "tokens": ["Provide", "the", "total", "number", "of", "the", "male", "users", "that", "use", "OPPO", "as", "their", "phone", "brand", "."], "entities": [{"id": 1, "type": "table", "value": "phone_brand_device_model2"}, {"id": 3, "type": "column", "value": "phone_brand"}, {"id": 0, "type": "table", "value": "gender_age"}, {"id": 2, "type": "column", "value": "device_id"}, {"id": 5, "type": "column", "value": "gender"}, {"id": 4, "type": "value", "value": "OPPO"}, {"id": 6, "type": "value", "value": "M"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"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": [12]}, {"entity_id": 6, "token_idxs": [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", "O", "B-TABLE", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O"]}
{"question_id": 15161, "db_id": "donor", "dber_id": "bird:train.json:3228", "question": "State the number of public magnet schools in New York Manhattan.", "SQL": "SELECT COUNT(schoolid) FROM projects WHERE school_county = 'New York (Manhattan)' AND school_magnet = 't'", "tokens": ["State", "the", "number", "of", "public", "magnet", "schools", "in", "New", "York", "Manhattan", "."], "entities": [{"id": 3, "type": "value", "value": "New York (Manhattan)"}, {"id": 2, "type": "column", "value": "school_county"}, {"id": 4, "type": "column", "value": "school_magnet"}, {"id": 0, "type": "table", "value": "projects"}, {"id": 1, "type": "column", "value": "schoolid"}, {"id": 5, "type": "value", "value": "t"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [8, 9, 10]}, {"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-COLUMN", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O"]}
{"question_id": 2144, "db_id": "book_1", "dber_id": "bird:test.json:577", "question": "What is the title of the book written by Plato has price lower than the average sale price of all books?", "SQL": "SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = \"Plato\" AND T1.saleprice < (SELECT avg(saleprice) FROM Book)", "tokens": ["What", "is", "the", "title", "of", "the", "book", "written", "by", "Plato", "has", "price", "lower", "than", "the", "average", "sale", "price", "of", "all", "books", "?"], "entities": [{"id": 3, "type": "table", "value": "author_book"}, {"id": 8, "type": "column", "value": "saleprice"}, {"id": 5, "type": "column", "value": "idauthor"}, {"id": 1, "type": "table", "value": "author"}, {"id": 4, "type": "column", "value": "author"}, {"id": 0, "type": "column", "value": "title"}, {"id": 7, "type": "column", "value": "Plato"}, {"id": 2, "type": "table", "value": "book"}, {"id": 6, "type": "column", "value": "name"}, {"id": 9, "type": "column", "value": "isbn"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [7]}, {"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-TABLE", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O"]}
{"question_id": 5155, "db_id": "toxicology", "dber_id": "bird:dev.json:252", "question": "What are the atoms that can bond with the atom that has the element lead?", "SQL": "SELECT T2.atom_id, T2.atom_id2 FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T1.element = 'pb'", "tokens": ["What", "are", "the", "atoms", "that", "can", "bond", "with", "the", "atom", "that", "has", "the", "element", "lead", "?"], "entities": [{"id": 3, "type": "table", "value": "connected"}, {"id": 1, "type": "column", "value": "atom_id2"}, {"id": 0, "type": "column", "value": "atom_id"}, {"id": 4, "type": "column", "value": "element"}, {"id": 2, "type": "table", "value": "atom"}, {"id": 5, "type": "value", "value": "pb"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [3]}, {"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", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 11490, "db_id": "shooting", "dber_id": "bird:train.json:2462", "question": "What is the percentage of the cases involved more than 3 officers from year 2010 to 2015?", "SQL": "SELECT CAST(SUM(IIF(officer_count > 3, 1, 0)) AS REAL) * 100 / COUNT(case_number) FROM incidents WHERE STRFTIME('%Y', date) BETWEEN '2010' AND '2015'", "tokens": ["What", "is", "the", "percentage", "of", "the", "cases", "involved", "more", "than", "3", "officers", "from", "year", "2010", "to", "2015", "?"], "entities": [{"id": 9, "type": "column", "value": "officer_count"}, {"id": 6, "type": "column", "value": "case_number"}, {"id": 0, "type": "table", "value": "incidents"}, {"id": 1, "type": "value", "value": "2010"}, {"id": 2, "type": "value", "value": "2015"}, {"id": 4, "type": "column", "value": "date"}, {"id": 5, "type": "value", "value": "100"}, {"id": 3, "type": "value", "value": "%Y"}, {"id": 7, "type": "value", "value": "1"}, {"id": 8, "type": "value", "value": "0"}, {"id": 10, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [14]}, {"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": [6]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [11]}, {"entity_id": 10, "token_idxs": [10]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "B-VALUE", "B-COLUMN", "O", "B-VALUE", "B-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 12612, "db_id": "voter_2", "dber_id": "spider:train_spider.json:5484", "question": "Find the first and last name of all the students of age 18 who have vice president votes.", "SQL": "SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18", "tokens": ["Find", "the", "first", "and", "last", "name", "of", "all", "the", "students", "of", "age", "18", "who", "have", "vice", "president", "votes", "."], "entities": [{"id": 7, "type": "column", "value": "vice_president_vote"}, {"id": 3, "type": "table", "value": "voting_record"}, {"id": 2, "type": "table", "value": "student"}, {"id": 0, "type": "column", "value": "fname"}, {"id": 1, "type": "column", "value": "lname"}, {"id": 6, "type": "column", "value": "stuid"}, {"id": 4, "type": "column", "value": "age"}, {"id": 5, "type": "value", "value": "18"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [4, 5]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [17]}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": [12]}, {"entity_id": 6, "token_idxs": []}, {"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", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "B-VALUE", "O", "O", "B-COLUMN", "I-COLUMN", "B-TABLE", "O"]}
{"question_id": 11274, "db_id": "game_1", "dber_id": "spider:train_spider.json:5975", "question": "Show all video games and their types in the order of their names.", "SQL": "SELECT gname , gtype FROM Video_games ORDER BY gname", "tokens": ["Show", "all", "video", "games", "and", "their", "types", "in", "the", "order", "of", "their", "names", "."], "entities": [{"id": 0, "type": "table", "value": "video_games"}, {"id": 1, "type": "column", "value": "gname"}, {"id": 2, "type": "column", "value": "gtype"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [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", "O", "B-TABLE", "I-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 9173, "db_id": "address", "dber_id": "bird:train.json:5159", "question": "Provide the average elevation of the cities with alias Amherst.", "SQL": "SELECT AVG(T2.elevation) FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.alias = 'Amherst'", "tokens": ["Provide", "the", "average", "elevation", "of", "the", "cities", "with", "alias", "Amherst", "."], "entities": [{"id": 4, "type": "column", "value": "elevation"}, {"id": 1, "type": "table", "value": "zip_data"}, {"id": 5, "type": "column", "value": "zip_code"}, {"id": 3, "type": "value", "value": "Amherst"}, {"id": 0, "type": "table", "value": "alias"}, {"id": 2, "type": "column", "value": "alias"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9]}, {"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", "O", "O", "O", "O", "B-TABLE", "B-VALUE", "O"]}
{"question_id": 711, "db_id": "document_management", "dber_id": "spider:train_spider.json:4517", "question": "What are all the section titles of the document named \"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": ["What", "are", "all", "the", "section", "titles", "of", "the", "document", "named", "\"", "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": [4, 5]}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": []}, {"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", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O"]}
{"question_id": 15819, "db_id": "airline", "dber_id": "bird:train.json:5895", "question": "What is the air carrier's description of the cancelled flights?", "SQL": "SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.CANCELLED = 1 GROUP BY T1.Description", "tokens": ["What", "is", "the", "air", "carrier", "'s", "description", "of", "the", "cancelled", "flights", "?"], "entities": [{"id": 6, "type": "column", "value": "op_carrier_airline_id"}, {"id": 1, "type": "table", "value": "Air Carriers"}, {"id": 0, "type": "column", "value": "description"}, {"id": 3, "type": "column", "value": "cancelled"}, {"id": 2, "type": "table", "value": "airlines"}, {"id": 5, "type": "column", "value": "code"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [3, 4, 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", "O", "B-TABLE", "I-TABLE", "I-TABLE", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 15840, "db_id": "flight_company", "dber_id": "spider:train_spider.json:6378", "question": "How many airports haven't the pilot 'Thompson' driven an aircraft?", "SQL": "SELECT count(*) FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot = 'Thompson' );", "tokens": ["How", "many", "airports", "have", "n't", "the", "pilot", "'", "Thompson", "'", "driven", "an", "aircraft", "?"], "entities": [{"id": 3, "type": "column", "value": "airport_id"}, {"id": 5, "type": "value", "value": "Thompson"}, {"id": 0, "type": "table", "value": "airport"}, {"id": 2, "type": "table", "value": "flight"}, {"id": 4, "type": "column", "value": "pilot"}, {"id": 1, "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": [6]}, {"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", "O", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O"]}
{"question_id": 4012, "db_id": "customers_and_orders", "dber_id": "bird:test.json:272", "question": "What are the ids and names of all customers?", "SQL": "SELECT customer_id , customer_name FROM Customers", "tokens": ["What", "are", "the", "ids", "and", "names", "of", "all", "customers", "?"], "entities": [{"id": 2, "type": "column", "value": "customer_name"}, {"id": 1, "type": "column", "value": "customer_id"}, {"id": 0, "type": "table", "value": "customers"}], "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": []}, {"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"]}
{"question_id": 14608, "db_id": "cre_Students_Information_Systems", "dber_id": "bird:test.json:465", "question": "Which students have gone through any event? List the students' biographical data and event date.", "SQL": "SELECT T1.bio_data , T2.event_date FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id = T2.student_id", "tokens": ["Which", "students", "have", "gone", "through", "any", "event", "?", "List", "the", "students", "'", "biographical", "data", "and", "event", "date", "."], "entities": [{"id": 3, "type": "table", "value": "student_events"}, {"id": 1, "type": "column", "value": "event_date"}, {"id": 4, "type": "column", "value": "student_id"}, {"id": 0, "type": "column", "value": "bio_data"}, {"id": 2, "type": "table", "value": "students"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12, 13]}, {"entity_id": 1, "token_idxs": [15, 16]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [1]}, {"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", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 11489, "db_id": "california_schools", "dber_id": "bird:dev.json:32", "question": "What is the eligible free or reduced price meal rate for the top 5 schools in grades 1-12 with the highest free or reduced price meal count of the schools with the ownership code 66?", "SQL": "SELECT CAST(T1.`FRPM Count (K-12)` AS REAL) / T1.`Enrollment (K-12)` FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.SOC = 66 ORDER BY T1.`FRPM Count (K-12)` DESC LIMIT 5", "tokens": ["What", "is", "the", "eligible", "free", "or", "reduced", "price", "meal", "rate", "for", "the", "top", "5", "schools", "in", "grades", "1", "-", "12", "with", "the", "highest", "free", "or", "reduced", "price", "meal", "count", "of", "the", "schools", "with", "the", "ownership", "code", "66", "?"], "entities": [{"id": 4, "type": "column", "value": "FRPM Count (K-12)"}, {"id": 5, "type": "column", "value": "Enrollment (K-12)"}, {"id": 1, "type": "table", "value": "schools"}, {"id": 6, "type": "column", "value": "cdscode"}, {"id": 0, "type": "table", "value": "frpm"}, {"id": 2, "type": "column", "value": "soc"}, {"id": 3, "type": "value", "value": "66"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [14]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [36]}, {"entity_id": 4, "token_idxs": [27, 28]}, {"entity_id": 5, "token_idxs": [17, 18, 19]}, {"entity_id": 6, "token_idxs": [35]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-VALUE", "O"]}
{"question_id": 2579, "db_id": "soccer_2", "dber_id": "spider:train_spider.json:5037", "question": "What is the count of states with college students playing in the mid position but not as goalies?", "SQL": "SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie')", "tokens": ["What", "is", "the", "count", "of", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "but", "not", "as", "goalies", "?"], "entities": [{"id": 1, "type": "table", "value": "college"}, {"id": 2, "type": "table", "value": "tryout"}, {"id": 5, "type": "value", "value": "goalie"}, {"id": 0, "type": "column", "value": "state"}, {"id": 6, "type": "column", "value": "cname"}, {"id": 3, "type": "column", "value": "ppos"}, {"id": 4, "type": "value", "value": "mid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [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-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 8308, "db_id": "apartment_rentals", "dber_id": "spider:train_spider.json:1229", "question": "Which apartments have bookings with status code \"Confirmed\"? Return their apartment numbers.", "SQL": "SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Confirmed\"", "tokens": ["Which", "apartments", "have", "bookings", "with", "status", "code", "\"", "Confirmed", "\"", "?", "Return", "their", "apartment", "numbers", "."], "entities": [{"id": 3, "type": "column", "value": "booking_status_code"}, {"id": 1, "type": "table", "value": "apartment_bookings"}, {"id": 0, "type": "column", "value": "apt_number"}, {"id": 2, "type": "table", "value": "apartments"}, {"id": 4, "type": "column", "value": "Confirmed"}, {"id": 5, "type": "column", "value": "apt_id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [1]}, {"entity_id": 3, "token_idxs": [5, 6]}, {"entity_id": 4, "token_idxs": [8]}, {"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-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O"]}
{"question_id": 15440, "db_id": "music_4", "dber_id": "spider:train_spider.json:6192", "question": "What are the famous titles of artists who have not only had volumes that spent more than 2 weeks on top but also volumes that spent less than 2 weeks on top?", "SQL": "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2", "tokens": ["What", "are", "the", "famous", "titles", "of", "artists", "who", "have", "not", "only", "had", "volumes", "that", "spent", "more", "than", "2", "weeks", "on", "top", "but", "also", "volumes", "that", "spent", "less", "than", "2", "weeks", "on", "top", "?"], "entities": [{"id": 0, "type": "column", "value": "famous_title"}, {"id": 3, "type": "column", "value": "weeks_on_top"}, {"id": 5, "type": "column", "value": "artist_id"}, {"id": 1, "type": "table", "value": "artist"}, {"id": 2, "type": "table", "value": "volume"}, {"id": 4, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [15]}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"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-TABLE", "I-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 13659, "db_id": "financial", "dber_id": "bird:dev.json:159", "question": "List all the withdrawals in cash transactions that the client with the id 3356 makes.", "SQL": "SELECT T4.trans_id FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN account AS T3 ON T2.account_id = T3.account_id INNER JOIN trans AS T4 ON T3.account_id = T4.account_id WHERE T1.client_id = 3356 AND T4.operation = 'VYBER'", "tokens": ["List", "all", "the", "withdrawals", "in", "cash", "transactions", "that", "the", "client", "with", "the", "i", "d", "3356", "makes", "."], "entities": [{"id": 3, "type": "column", "value": "account_id"}, {"id": 4, "type": "column", "value": "client_id"}, {"id": 6, "type": "column", "value": "operation"}, {"id": 0, "type": "column", "value": "trans_id"}, {"id": 2, "type": "table", "value": "account"}, {"id": 8, "type": "table", "value": "client"}, {"id": 1, "type": "table", "value": "trans"}, {"id": 7, "type": "value", "value": "VYBER"}, {"id": 5, "type": "value", "value": "3356"}, {"id": 9, "type": "table", "value": "disp"}], "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": [12, 13]}, {"entity_id": 5, "token_idxs": [14]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"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", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O"]}
{"question_id": 5442, "db_id": "formula_1", "dber_id": "spider:train_spider.json:2162", "question": "What are the forenames and surnames of all unique drivers who had a lap time of less than 93000 milliseconds?", "SQL": "SELECT DISTINCT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000", "tokens": ["What", "are", "the", "forenames", "and", "surnames", "of", "all", "unique", "drivers", "who", "had", "a", "lap", "time", "of", "less", "than", "93000", "milliseconds", "?"], "entities": [{"id": 4, "type": "column", "value": "milliseconds"}, {"id": 0, "type": "column", "value": "forename"}, {"id": 3, "type": "table", "value": "laptimes"}, {"id": 6, "type": "column", "value": "driverid"}, {"id": 1, "type": "column", "value": "surname"}, {"id": 2, "type": "table", "value": "drivers"}, {"id": 5, "type": "value", "value": "93000"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": [13, 14]}, {"entity_id": 4, "token_idxs": [19]}, {"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", "B-TABLE", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "B-VALUE", "B-COLUMN", "O"]}
{"question_id": 158, "db_id": "coinmarketcap", "dber_id": "bird:train.json:6270", "question": "Which crytocurrency was traded in the highest value on 2016/1/8?", "SQL": "SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2016-01-08' AND T2.volume_24h = ( SELECT MAX(volume_24h) FROM historical WHERE date = '2016-01-08' )", "tokens": ["Which", "crytocurrency", "was", "traded", "in", "the", "highest", "value", "on", "2016/1/8", "?"], "entities": [{"id": 2, "type": "table", "value": "historical"}, {"id": 6, "type": "value", "value": "2016-01-08"}, {"id": 7, "type": "column", "value": "volume_24h"}, {"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"}], "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": [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", "O", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 520, "db_id": "wine_1", "dber_id": "spider:train_spider.json:6562", "question": "What are the names of wines, sorted by price ascending?", "SQL": "SELECT DISTINCT Name FROM WINE ORDER BY price", "tokens": ["What", "are", "the", "names", "of", "wines", ",", "sorted", "by", "price", "ascending", "?"], "entities": [{"id": 2, "type": "column", "value": "price"}, {"id": 0, "type": "table", "value": "wine"}, {"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": [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", "O"]}
{"question_id": 6211, "db_id": "formula_1", "dber_id": "bird:dev.json:913", "question": "In which country can I find the circuit with the highest altitude?", "SQL": "SELECT country FROM circuits ORDER BY alt DESC LIMIT 1", "tokens": ["In", "which", "country", "can", "I", "find", "the", "circuit", "with", "the", "highest", "altitude", "?"], "entities": [{"id": 0, "type": "table", "value": "circuits"}, {"id": 1, "type": "column", "value": "country"}, {"id": 2, "type": "column", "value": "alt"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [2]}, {"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", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 14036, "db_id": "works_cycles", "dber_id": "bird:train.json:7099", "question": "What type of transaction was made with the only yellow product, size 62 and with a minimum inventory stock of 500 units?", "SQL": "SELECT DISTINCT T2.TransactionType FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Size = 62 AND T1.Color = 'Yellow' AND T1.SafetyStockLevel = 500", "tokens": ["What", "type", "of", "transaction", "was", "made", "with", "the", "only", "yellow", "product", ",", "size", "62", "and", "with", "a", "minimum", "inventory", "stock", "of", "500", "units", "?"], "entities": [{"id": 2, "type": "table", "value": "transactionhistory"}, {"id": 8, "type": "column", "value": "safetystocklevel"}, {"id": 0, "type": "column", "value": "transactiontype"}, {"id": 3, "type": "column", "value": "productid"}, {"id": 1, "type": "table", "value": "product"}, {"id": 7, "type": "value", "value": "Yellow"}, {"id": 6, "type": "column", "value": "color"}, {"id": 4, "type": "column", "value": "size"}, {"id": 9, "type": "value", "value": "500"}, {"id": 5, "type": "value", "value": "62"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1, 2, 3]}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [12]}, {"entity_id": 5, "token_idxs": [13]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [9]}, {"entity_id": 8, "token_idxs": [19]}, {"entity_id": 9, "token_idxs": [21]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_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", "I-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "O"]}
{"question_id": 11526, "db_id": "manufactory_1", "dber_id": "spider:train_spider.json:5295", "question": "What are the names of products produced by both Creative Labs and Sony?", "SQL": "SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony'", "tokens": ["What", "are", "the", "names", "of", "products", "produced", "by", "both", "Creative", "Labs", "and", "Sony", "?"], "entities": [{"id": 2, "type": "table", "value": "manufacturers"}, {"id": 3, "type": "value", "value": "Creative Labs"}, {"id": 5, "type": "column", "value": "manufacturer"}, {"id": 1, "type": "table", "value": "products"}, {"id": 0, "type": "column", "value": "name"}, {"id": 4, "type": "value", "value": "Sony"}, {"id": 6, "type": "column", "value": "code"}], "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": [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", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 1232, "db_id": "beer_factory", "dber_id": "bird:train.json:5272", "question": "Which brand of root beer did Jayne Collins give the lowest rating?", "SQL": "SELECT T3.BrandName FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T1.First = 'Jayne' AND T1.Last = 'Collins' AND T2.StarRating = 1", "tokens": ["Which", "brand", "of", "root", "beer", "did", "Jayne", "Collins", "give", "the", "lowest", "rating", "?"], "entities": [{"id": 3, "type": "table", "value": "rootbeerreview"}, {"id": 1, "type": "table", "value": "rootbeerbrand"}, {"id": 9, "type": "column", "value": "starrating"}, {"id": 11, "type": "column", "value": "customerid"}, {"id": 0, "type": "column", "value": "brandname"}, {"id": 2, "type": "table", "value": "customers"}, {"id": 4, "type": "column", "value": "brandid"}, {"id": 8, "type": "value", "value": "Collins"}, {"id": 5, "type": "column", "value": "first"}, {"id": 6, "type": "value", "value": "Jayne"}, {"id": 7, "type": "column", "value": "last"}, {"id": 10, "type": "value", "value": "1"}], "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": []}, {"entity_id": 4, "token_idxs": [1]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [6]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [7]}, {"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", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O", "B-VALUE", "B-VALUE", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 3456, "db_id": "codebase_comments", "dber_id": "bird:train.json:605", "question": "List the summary of the method \"Castle.MonoRail.Framework.Test.StubViewComponentContext.RenderSection\".", "SQL": "SELECT DISTINCT Summary FROM Method WHERE Name = 'Castle.MonoRail.Framework.Test.StubViewComponentContext.RenderSection'", "tokens": ["List", "the", "summary", "of", "the", "method", "\"", "Castle", ".", "MonoRail", ".", "Framework", ".", "Test", ".", "StubViewComponentContext", ".", "RenderSection", "\"", "."], "entities": [{"id": 3, "type": "value", "value": "Castle.MonoRail.Framework.Test.StubViewComponentContext.RenderSection"}, {"id": 1, "type": "column", "value": "summary"}, {"id": 0, "type": "table", "value": "method"}, {"id": 2, "type": "column", "value": "name"}], "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": [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]}, {"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", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 9064, "db_id": "music_1", "dber_id": "spider:train_spider.json:3587", "question": "What is the language that was used most often in songs with resolution above 500?", "SQL": "SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1", "tokens": ["What", "is", "the", "language", "that", "was", "used", "most", "often", "in", "songs", "with", "resolution", "above", "500", "?"], "entities": [{"id": 2, "type": "column", "value": "artist_name"}, {"id": 3, "type": "column", "value": "resolution"}, {"id": 1, "type": "column", "value": "languages"}, {"id": 0, "type": "table", "value": "song"}, {"id": 4, "type": "value", "value": "500"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": []}, {"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": []}, {"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", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O"]}
{"question_id": 4506, "db_id": "computer_student", "dber_id": "bird:train.json:979", "question": "Find the ID of advisor of student ID 80 and state the level of courses taught by him/her.", "SQL": "SELECT T1.p_id_dummy, T2.courseLevel FROM advisedBy AS T1 INNER JOIN course AS T2 ON T1.p_id = T2.course_id INNER JOIN taughtBy AS T3 ON T2.course_id = T3.course_id WHERE T1.p_id = 80", "tokens": ["Find", "the", "ID", "of", "advisor", "of", "student", "ID", "80", "and", "state", "the", "level", "of", "courses", "taught", "by", "him", "/", "her", "."], "entities": [{"id": 1, "type": "column", "value": "courselevel"}, {"id": 0, "type": "column", "value": "p_id_dummy"}, {"id": 5, "type": "table", "value": "advisedby"}, {"id": 7, "type": "column", "value": "course_id"}, {"id": 2, "type": "table", "value": "taughtby"}, {"id": 6, "type": "table", "value": "course"}, {"id": 3, "type": "column", "value": "p_id"}, {"id": 4, "type": "value", "value": "80"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [12]}, {"entity_id": 2, "token_idxs": [15, 16]}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": [4]}, {"entity_id": 6, "token_idxs": [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", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "B-TABLE", "I-TABLE", "O", "O", "O", "O"]}
{"question_id": 13948, "db_id": "voter_2", "dber_id": "spider:train_spider.json:5444", "question": "Find the number of students in total.", "SQL": "SELECT count(*) FROM STUDENT", "tokens": ["Find", "the", "number", "of", "students", "in", "total", "."], "entities": [{"id": 0, "type": "table", "value": "student"}], "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"]}
{"question_id": 3582, "db_id": "sales_in_weather", "dber_id": "bird:train.json:8213", "question": "How many units are being sold for item 1 when the average temperature is 83?", "SQL": "SELECT SUM(units) FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.item_nbr = 1 AND T1.tavg = 83", "tokens": ["How", "many", "units", "are", "being", "sold", "for", "item", "1", "when", "the", "average", "temperature", "is", "83", "?"], "entities": [{"id": 3, "type": "table", "value": "sales_in_weather"}, {"id": 4, "type": "column", "value": "store_nbr"}, {"id": 0, "type": "table", "value": "relation"}, {"id": 5, "type": "column", "value": "item_nbr"}, {"id": 2, "type": "table", "value": "weather"}, {"id": 1, "type": "column", "value": "units"}, {"id": 7, "type": "column", "value": "tavg"}, {"id": 9, "type": "column", "value": "date"}, {"id": 8, "type": "value", "value": "83"}, {"id": 6, "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": [8]}, {"entity_id": 7, "token_idxs": [11]}, {"entity_id": 8, "token_idxs": [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", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "B-VALUE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O"]}
{"question_id": 11830, "db_id": "movie_platform", "dber_id": "bird:train.json:142", "question": "Provide list titles created by user who are eligible for trial when he created the list.", "SQL": "SELECT DISTINCT T2.list_title FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_eligible_for_trial = 1", "tokens": ["Provide", "list", "titles", "created", "by", "user", "who", "are", "eligible", "for", "trial", "when", "he", "created", "the", "list", "."], "entities": [{"id": 3, "type": "column", "value": "user_eligible_for_trial"}, {"id": 1, "type": "table", "value": "lists_users"}, {"id": 0, "type": "column", "value": "list_title"}, {"id": 5, "type": "column", "value": "list_id"}, {"id": 2, "type": "table", "value": "lists"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [3]}, {"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", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O"]}
{"question_id": 8785, "db_id": "synthea", "dber_id": "bird:train.json:1425", "question": "Who had to take Clopidogrel 75 MG Oral Tablet for over 10 years?", "SQL": "SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Clopidogrel 75 MG Oral Tablet' AND strftime('%Y', T2.STOP) - strftime('%Y', T2.START) > 10", "tokens": ["Who", "had", "to", "take", "Clopidogrel", "75", "MG", "Oral", "Tablet", "for", "over", "10", "years", "?"], "entities": [{"id": 6, "type": "value", "value": "Clopidogrel 75 MG Oral Tablet"}, {"id": 3, "type": "table", "value": "medications"}, {"id": 5, "type": "column", "value": "description"}, {"id": 2, "type": "table", "value": "patients"}, {"id": 4, "type": "column", "value": "patient"}, {"id": 0, "type": "column", "value": "first"}, {"id": 10, "type": "column", "value": "start"}, {"id": 1, "type": "column", "value": "last"}, {"id": 9, "type": "column", "value": "stop"}, {"id": 7, "type": "value", "value": "10"}, {"id": 8, "type": "value", "value": "%Y"}], "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": [4, 5, 6, 7]}, {"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", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "B-VALUE", "B-VALUE", "O"]}
{"question_id": 4673, "db_id": "books", "dber_id": "bird:train.json:6050", "question": "Who is the author of the book The Mystery in the Rocky Mountains?", "SQL": "SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T1.title = 'The Mystery in the Rocky Mountains'", "tokens": ["Who", "is", "the", "author", "of", "the", "book", "The", "Mystery", "in", "the", "Rocky", "Mountains", "?"], "entities": [{"id": 3, "type": "value", "value": "The Mystery in the Rocky Mountains"}, {"id": 0, "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": 1, "type": "table", "value": "author"}, {"id": 2, "type": "column", "value": "title"}, {"id": 4, "type": "table", "value": "book"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [7, 8, 9, 10, 11, 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", "B-TABLE", "O", "O", "B-TABLE", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]}
{"question_id": 1049, "db_id": "retail_world", "dber_id": "bird:train.json:6612", "question": "How many orders were shipped via Federal Shipping?", "SQL": "SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Federal Shipping' AND T1.ShipVia = 3", "tokens": ["How", "many", "orders", "were", "shipped", "via", "Federal", "Shipping", "?"], "entities": [{"id": 6, "type": "value", "value": "Federal Shipping"}, {"id": 5, "type": "column", "value": "companyname"}, {"id": 4, "type": "column", "value": "shipperid"}, {"id": 1, "type": "table", "value": "shippers"}, {"id": 2, "type": "column", "value": "orderid"}, {"id": 3, "type": "column", "value": "shipvia"}, {"id": 0, "type": "table", "value": "orders"}, {"id": 7, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"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": [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-COLUMN", "B-COLUMN", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 9440, "db_id": "behavior_monitoring", "dber_id": "spider:train_spider.json:3105", "question": "Find the ids and first names of the 3 teachers that have the most number of assessment notes?", "SQL": "SELECT T1.teacher_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 3", "tokens": ["Find", "the", "ids", "and", "first", "names", "of", "the", "3", "teachers", "that", "have", "the", "most", "number", "of", "assessment", "notes", "?"], "entities": [{"id": 2, "type": "table", "value": "assessment_notes"}, {"id": 0, "type": "column", "value": "teacher_id"}, {"id": 1, "type": "column", "value": "first_name"}, {"id": 3, "type": "table", "value": "teachers"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [4, 5]}, {"entity_id": 2, "token_idxs": [16, 17]}, {"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-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "O"]}
{"question_id": 14103, "db_id": "customers_and_addresses", "dber_id": "spider:train_spider.json:6111", "question": "What is the payment method of the customer that has purchased the least quantity of items?", "SQL": "SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1", "tokens": ["What", "is", "the", "payment", "method", "of", "the", "customer", "that", "has", "purchased", "the", "least", "quantity", "of", "items", "?"], "entities": [{"id": 4, "type": "table", "value": "customer_orders"}, {"id": 1, "type": "column", "value": "payment_method"}, {"id": 6, "type": "column", "value": "order_quantity"}, {"id": 0, "type": "column", "value": "customer_name"}, {"id": 2, "type": "table", "value": "order_items"}, {"id": 7, "type": "column", "value": "customer_id"}, {"id": 3, "type": "table", "value": "customers"}, {"id": 5, "type": "column", "value": "order_id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [12]}, {"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", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "B-TABLE", "O", "O"]}
{"question_id": 14161, "db_id": "student_loan", "dber_id": "bird:train.json:4406", "question": "What is the total number of students in the school?", "SQL": "SELECT COUNT(name) FROM person", "tokens": ["What", "is", "the", "total", "number", "of", "students", "in", "the", "school", "?"], "entities": [{"id": 0, "type": "table", "value": "person"}, {"id": 1, "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": []}, {"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"]}
{"question_id": 7962, "db_id": "student_club", "dber_id": "bird:dev.json:1466", "question": "Write the full name of the club member with the position of 'Secretary' and list which college the club member belongs to.", "SQL": "SELECT T1.first_name, T1.last_name, college FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Secretary'", "tokens": ["Write", "the", "full", "name", "of", "the", "club", "member", "with", "the", "position", "of", "'", "Secretary", "'", "and", "list", "which", "college", "the", "club", "member", "belongs", "to", "."], "entities": [{"id": 8, "type": "column", "value": "link_to_major"}, {"id": 0, "type": "column", "value": "first_name"}, {"id": 1, "type": "column", "value": "last_name"}, {"id": 6, "type": "value", "value": "Secretary"}, {"id": 5, "type": "column", "value": "position"}, {"id": 7, "type": "column", "value": "major_id"}, {"id": 2, "type": "column", "value": "college"}, {"id": 3, "type": "table", "value": "member"}, {"id": 4, "type": "table", "value": "major"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [18]}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [10]}, {"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", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O"]}
{"question_id": 3269, "db_id": "chicago_crime", "dber_id": "bird:train.json:8685", "question": "Give the case number and coordinates of the places where child abduction is reported.", "SQL": "SELECT T1.case_number, T1.latitude, T1.longitude FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T2.iucr_no = T1.iucr_no WHERE T2.secondary_description = 'CHILD ABDUCTION'", "tokens": ["Give", "the", "case", "number", "and", "coordinates", "of", "the", "places", "where", "child", "abduction", "is", "reported", "."], "entities": [{"id": 5, "type": "column", "value": "secondary_description"}, {"id": 6, "type": "value", "value": "CHILD ABDUCTION"}, {"id": 0, "type": "column", "value": "case_number"}, {"id": 2, "type": "column", "value": "longitude"}, {"id": 1, "type": "column", "value": "latitude"}, {"id": 7, "type": "column", "value": "iucr_no"}, {"id": 3, "type": "table", "value": "crime"}, {"id": 4, "type": "table", "value": "iucr"}], "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": [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", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O"]}
{"question_id": 8099, "db_id": "chicago_crime", "dber_id": "bird:train.json:8733", "question": "What is the percentage of severe cases that are related to sexual assault?", "SQL": "SELECT CAST(SUM(CASE WHEN primary_description = 'CRIM SEXUAL ASSAULT' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM IUCR WHERE index_code = 'I'", "tokens": ["What", "is", "the", "percentage", "of", "severe", "cases", "that", "are", "related", "to", "sexual", "assault", "?"], "entities": [{"id": 6, "type": "column", "value": "primary_description"}, {"id": 7, "type": "value", "value": "CRIM SEXUAL ASSAULT"}, {"id": 1, "type": "column", "value": "index_code"}, {"id": 0, "type": "table", "value": "iucr"}, {"id": 3, "type": "value", "value": "100"}, {"id": 2, "type": "value", "value": "I"}, {"id": 4, "type": "value", "value": "0"}, {"id": 5, "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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [11, 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", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 6126, "db_id": "student_loan", "dber_id": "bird:train.json:4515", "question": "What is the average absent month for a unemployed male students?", "SQL": "SELECT AVG(T2.month) AS avg FROM unemployed AS T1 INNER JOIN longest_absense_from_school AS T2 ON T2.name = T1.name INNER JOIN male AS T3 ON T3.name = T2.name", "tokens": ["What", "is", "the", "average", "absent", "month", "for", "a", "unemployed", "male", "students", "?"], "entities": [{"id": 3, "type": "table", "value": "longest_absense_from_school"}, {"id": 2, "type": "table", "value": "unemployed"}, {"id": 1, "type": "column", "value": "month"}, {"id": 0, "type": "table", "value": "male"}, {"id": 4, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [8]}, {"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-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "B-TABLE", "O", "O"]}
{"question_id": 4011, "db_id": "shakespeare", "dber_id": "bird:train.json:3008", "question": "In \"A Lover's Complaint\", what is the description of Act 1, Scene 1?", "SQL": "SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1 AND T2.Scene = 1 AND T1.Title = 'A Lover''s Complaint'", "tokens": ["In", "\"", "A", "Lover", "'s", "Complaint", "\"", ",", "what", "is", "the", "description", "of", "Act", "1", ",", "Scene", "1", "?"], "entities": [{"id": 9, "type": "value", "value": "A Lover's Complaint"}, {"id": 0, "type": "column", "value": "description"}, {"id": 2, "type": "table", "value": "chapters"}, {"id": 4, "type": "column", "value": "work_id"}, {"id": 1, "type": "table", "value": "works"}, {"id": 7, "type": "column", "value": "scene"}, {"id": 8, "type": "column", "value": "title"}, {"id": 5, "type": "column", "value": "act"}, {"id": 3, "type": "column", "value": "id"}, {"id": 6, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [13]}, {"entity_id": 6, "token_idxs": [14, 17]}, {"entity_id": 7, "token_idxs": [16]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [2, 3, 4, 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-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-VALUE", "O", "B-COLUMN", "B-VALUE", "O"]}
{"question_id": 2925, "db_id": "retail_world", "dber_id": "bird:train.json:6443", "question": "Which region does Hoffman Estates belong to?", "SQL": "SELECT T2.RegionDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T1.TerritoryDescription = 'Hoffman Estates'", "tokens": ["Which", "region", "does", "Hoffman", "Estates", "belong", "to", "?"], "entities": [{"id": 3, "type": "column", "value": "territorydescription"}, {"id": 0, "type": "column", "value": "regiondescription"}, {"id": 4, "type": "value", "value": "Hoffman Estates"}, {"id": 1, "type": "table", "value": "territories"}, {"id": 5, "type": "column", "value": "regionid"}, {"id": 2, "type": "table", "value": "region"}], "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": [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", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "O"]}
{"question_id": 10318, "db_id": "legislator", "dber_id": "bird:train.json:4758", "question": "How many legislators have an Instagram account?", "SQL": "SELECT COUNT(*) FROM `social-media` WHERE instagram IS NOT NULL AND instagram <> ''", "tokens": ["How", "many", "legislators", "have", "an", "Instagram", "account", "?"], "entities": [{"id": 0, "type": "table", "value": "social-media"}, {"id": 1, "type": "column", "value": "instagram"}], "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": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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"]}
{"question_id": 5180, "db_id": "synthea", "dber_id": "bird:train.json:1377", "question": "State the prevalence rate of condition no. 368581000119106.", "SQL": "SELECT DISTINCT T1.\"PREVALENCE RATE\" FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON lower(T1.ITEM) = lower(T2.DESCRIPTION) WHERE T2.code = '368581000119106'", "tokens": ["State", "the", "prevalence", "rate", "of", "condition", "no", ".", "368581000119106", "."], "entities": [{"id": 0, "type": "column", "value": "PREVALENCE RATE"}, {"id": 1, "type": "table", "value": "all_prevalences"}, {"id": 4, "type": "value", "value": "368581000119106"}, {"id": 6, "type": "column", "value": "description"}, {"id": 2, "type": "table", "value": "conditions"}, {"id": 3, "type": "column", "value": "code"}, {"id": 5, "type": "column", "value": "item"}], "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": [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", "O", "B-COLUMN", "O", "O"]}
{"question_id": 13116, "db_id": "apartment_rentals", "dber_id": "spider:train_spider.json:1218", "question": "Return the date of birth for all the guests with gender code \"Male\".", "SQL": "SELECT date_of_birth FROM Guests WHERE gender_code = \"Male\"", "tokens": ["Return", "the", "date", "of", "birth", "for", "all", "the", "guests", "with", "gender", "code", "\"", "Male", "\"", "."], "entities": [{"id": 1, "type": "column", "value": "date_of_birth"}, {"id": 2, "type": "column", "value": "gender_code"}, {"id": 0, "type": "table", "value": "guests"}, {"id": 3, "type": "column", "value": "Male"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [2, 3, 4]}, {"entity_id": 2, "token_idxs": [10, 11]}, {"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", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O"]}
{"question_id": 2184, "db_id": "toxicology", "dber_id": "bird:dev.json:196", "question": "In the non-carcinogenic molecules, how many contain chlorine atoms?", "SQL": "SELECT COUNT(DISTINCT T1.molecule_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.element = 'cl' AND T1.label = '-'", "tokens": ["In", "the", "non", "-", "carcinogenic", "molecules", ",", "how", "many", "contain", "chlorine", "atoms", "?"], "entities": [{"id": 2, "type": "column", "value": "molecule_id"}, {"id": 0, "type": "table", "value": "molecule"}, {"id": 3, "type": "column", "value": "element"}, {"id": 5, "type": "column", "value": "label"}, {"id": 1, "type": "table", "value": "atom"}, {"id": 4, "type": "value", "value": "cl"}, {"id": 6, "type": "value", "value": "-"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [11]}, {"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": [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-VALUE", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 15622, "db_id": "wine_1", "dber_id": "spider:train_spider.json:6544", "question": "Give the names and scores of wines made from white grapes.", "SQL": "SELECT T2.Name , T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"White\"", "tokens": ["Give", "the", "names", "and", "scores", "of", "wines", "made", "from", "white", "grapes", "."], "entities": [{"id": 2, "type": "table", "value": "grapes"}, {"id": 1, "type": "column", "value": "score"}, {"id": 4, "type": "column", "value": "color"}, {"id": 5, "type": "column", "value": "White"}, {"id": 6, "type": "column", "value": "grape"}, {"id": 0, "type": "column", "value": "name"}, {"id": 3, "type": "table", "value": "wine"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [10]}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": []}, {"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", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "B-TABLE", "O"]}
{"question_id": 12818, "db_id": "beer_factory", "dber_id": "bird:train.json:5310", "question": "What brand of beer has been the worst rated most times?", "SQL": "SELECT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T2.BrandID = T1.BrandID WHERE T2.StarRating = 1 GROUP BY T1.BrandName ORDER BY COUNT(T1.BrandName) DESC LIMIT 1", "tokens": ["What", "brand", "of", "beer", "has", "been", "the", "worst", "rated", "most", "times", "?"], "entities": [{"id": 2, "type": "table", "value": "rootbeerreview"}, {"id": 1, "type": "table", "value": "rootbeerbrand"}, {"id": 3, "type": "column", "value": "starrating"}, {"id": 0, "type": "column", "value": "brandname"}, {"id": 5, "type": "column", "value": "brandid"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"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": [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-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O"]}
{"question_id": 441, "db_id": "csu_1", "dber_id": "spider:train_spider.json:2384", "question": "How many undergraduates are there in \"San Jose State University\" in year 2004?", "SQL": "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Jose State University\"", "tokens": ["How", "many", "undergraduates", "are", "there", "in", "\"", "San", "Jose", "State", "University", "\"", "in", "year", "2004", "?"], "entities": [{"id": 7, "type": "column", "value": "San Jose State University"}, {"id": 0, "type": "table", "value": "discipline_enrollments"}, {"id": 2, "type": "column", "value": "undergraduate"}, {"id": 1, "type": "table", "value": "campuses"}, {"id": 3, "type": "column", "value": "campus"}, {"id": 5, "type": "column", "value": "year"}, {"id": 6, "type": "value", "value": "2004"}, {"id": 4, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [7, 8]}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [13]}, {"entity_id": 6, "token_idxs": [14]}, {"entity_id": 7, "token_idxs": [9, 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", "I-TABLE", "B-COLUMN", "I-COLUMN", "B-TABLE", "O", "B-COLUMN", "B-VALUE", "O"]}
{"question_id": 6049, "db_id": "chicago_crime", "dber_id": "bird:train.json:8650", "question": "List down the neighborhood areas of Douglas.", "SQL": "SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Douglas'", "tokens": ["List", "down", "the", "neighborhood", "areas", "of", "Douglas", "."], "entities": [{"id": 3, "type": "column", "value": "community_area_name"}, {"id": 0, "type": "column", "value": "neighborhood_name"}, {"id": 5, "type": "column", "value": "community_area_no"}, {"id": 1, "type": "table", "value": "community_area"}, {"id": 2, "type": "table", "value": "neighborhood"}, {"id": 4, "type": "value", "value": "Douglas"}], "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": []}, {"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-TABLE", "O", "B-VALUE", "O"]}
{"question_id": 15513, "db_id": "works_cycles", "dber_id": "bird:train.json:7114", "question": "Please list the top three employees with the most unused sick leave along with their position titles.", "SQL": "SELECT JobTitle FROM Employee ORDER BY SickLeaveHours DESC LIMIT 3", "tokens": ["Please", "list", "the", "top", "three", "employees", "with", "the", "most", "unused", "sick", "leave", "along", "with", "their", "position", "titles", "."], "entities": [{"id": 2, "type": "column", "value": "sickleavehours"}, {"id": 0, "type": "table", "value": "employee"}, {"id": 1, "type": "column", "value": "jobtitle"}], "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": [10, 11]}, {"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-TABLE", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 12302, "db_id": "movie_platform", "dber_id": "bird:train.json:165", "question": "What is the name of the movie that was rated recently by user 57756708?", "SQL": "SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 57756708 ORDER BY T1.rating_timestamp_utc DESC LIMIT 1", "tokens": ["What", "is", "the", "name", "of", "the", "movie", "that", "was", "rated", "recently", "by", "user", "57756708", "?"], "entities": [{"id": 5, "type": "column", "value": "rating_timestamp_utc"}, {"id": 0, "type": "column", "value": "movie_title"}, {"id": 4, "type": "value", "value": "57756708"}, {"id": 6, "type": "column", "value": "movie_id"}, {"id": 1, "type": "table", "value": "ratings"}, {"id": 3, "type": "column", "value": "user_id"}, {"id": 2, "type": "table", "value": "movies"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [5]}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [8]}, {"entity_id": 7, "token_idxs": [11, 12]}, {"entity_id": 8, "token_idxs": [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", "O", "O", "O", "O", "B-COLUMN", "B-VALUE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O"]}
{"question_id": 8935, "db_id": "video_games", "dber_id": "bird:train.json:3367", "question": "List the region name where games reached 300000 sales and above.", "SQL": "SELECT DISTINCT T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.num_sales * 100000 > 300000", "tokens": ["List", "the", "region", "name", "where", "games", "reached", "300000", "sales", "and", "above", "."], "entities": [{"id": 2, "type": "table", "value": "region_sales"}, {"id": 0, "type": "column", "value": "region_name"}, {"id": 5, "type": "column", "value": "region_id"}, {"id": 6, "type": "column", "value": "num_sales"}, {"id": 1, "type": "table", "value": "region"}, {"id": 3, "type": "value", "value": "300000"}, {"id": 7, "type": "value", "value": "100000"}, {"id": 4, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [2]}, {"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": [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", "B-COLUMN", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O"]}
{"question_id": 8883, "db_id": "beer_factory", "dber_id": "bird:train.json:5303", "question": "What is the difference in the average number of sales per day of root beer brands that contain honey and that don’t contain honey.", "SQL": "SELECT (CAST(SUM(CASE WHEN T1.Honey = 'TRUE' THEN 1 ELSE 0 END) AS REAL) / COUNT(DISTINCT T3.TransactionDate)) - (CAST(SUM(CASE WHEN T1.Honey <> 'TRUE' THEN 1 ELSE 0 END) AS REAL) / COUNT(DISTINCT T3.TransactionDate)) FROM rootbeerbrand AS T1 INNER JOIN rootbeer AS T2 ON T1.BrandID = T2.BrandID INNER JOIN `transaction` AS T3 ON T2.RootBeerID = T3.RootBeerID", "tokens": ["What", "is", "the", "difference", "in", "the", "average", "number", "of", "sales", "per", "day", "of", "root", "beer", "brands", "that", "contain", "honey", "and", "that", "do", "n’t", "contain", "honey", "."], "entities": [{"id": 5, "type": "column", "value": "transactiondate"}, {"id": 1, "type": "table", "value": "rootbeerbrand"}, {"id": 0, "type": "table", "value": "transaction"}, {"id": 3, "type": "column", "value": "rootbeerid"}, {"id": 2, "type": "table", "value": "rootbeer"}, {"id": 4, "type": "column", "value": "brandid"}, {"id": 8, "type": "column", "value": "honey"}, {"id": 9, "type": "value", "value": "TRUE"}, {"id": 6, "type": "value", "value": "0"}, {"id": 7, "type": "value", "value": "1"}], "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-TABLE", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 8689, "db_id": "authors", "dber_id": "bird:train.json:3587", "question": "Please list the names of the authors of the paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\".", "SQL": "SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'", "tokens": ["Please", "list", "the", "names", "of", "the", "authors", "of", "the", "paper", "\"", "Hypermethylation", "of", "the", "<", "I", ">", "TPEF", "/", "HPP1", "Gene", "in", "Primary", "and", "Metastatic", "Colorectal", "Cancers", "\"", "."], "entities": [{"id": 4, "type": "value", "value": "Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers"}, {"id": 2, "type": "table", "value": "paperauthor"}, {"id": 6, "type": "column", "value": "paperid"}, {"id": 1, "type": "table", "value": "paper"}, {"id": 3, "type": "column", "value": "title"}, {"id": 0, "type": "column", "value": "name"}, {"id": 5, "type": "column", "value": "id"}], "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": []}, {"entity_id": 4, "token_idxs": [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 3733, "db_id": "csu_1", "dber_id": "spider:train_spider.json:2383", "question": "How many faculty members are at the university that gave the least number of degrees in 2001?", "SQL": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1", "tokens": ["How", "many", "faculty", "members", "are", "at", "the", "university", "that", "gave", "the", "least", "number", "of", "degrees", "in", "2001", "?"], "entities": [{"id": 5, "type": "table", "value": "campuses"}, {"id": 0, "type": "column", "value": "faculty"}, {"id": 1, "type": "table", "value": "degrees"}, {"id": 4, "type": "column", "value": "degrees"}, {"id": 6, "type": "table", "value": "faculty"}, {"id": 8, "type": "column", "value": "campus"}, {"id": 2, "type": "column", "value": "year"}, {"id": 3, "type": "value", "value": "2001"}, {"id": 7, "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": [16]}, {"entity_id": 4, "token_idxs": [14]}, {"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", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-VALUE", "O"]}
{"question_id": 15895, "db_id": "retail_world", "dber_id": "bird:train.json:6546", "question": "Describe the supplier companies, cities and products which total production amount is more than 120.", "SQL": "SELECT T2.CompanyName, T2.City, T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.UnitsInStock + UnitsOnOrder > 120", "tokens": ["Describe", "the", "supplier", "companies", ",", "cities", "and", "products", "which", "total", "production", "amount", "is", "more", "than", "120", "."], "entities": [{"id": 7, "type": "column", "value": "unitsinstock"}, {"id": 8, "type": "column", "value": "unitsonorder"}, {"id": 0, "type": "column", "value": "companyname"}, {"id": 2, "type": "column", "value": "productname"}, {"id": 6, "type": "column", "value": "supplierid"}, {"id": 4, "type": "table", "value": "suppliers"}, {"id": 3, "type": "table", "value": "products"}, {"id": 1, "type": "column", "value": "city"}, {"id": 5, "type": "value", "value": "120"}], "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": [7]}, {"entity_id": 4, "token_idxs": [2]}, {"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", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 1489, "db_id": "bike_share_1", "dber_id": "bird:train.json:9056", "question": "What was the mean humidity of a trip with id 4275?", "SQL": "SELECT T2.mean_humidity FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.id = 4275", "tokens": ["What", "was", "the", "mean", "humidity", "of", "a", "trip", "with", "i", "d", "4275", "?"], "entities": [{"id": 0, "type": "column", "value": "mean_humidity"}, {"id": 5, "type": "column", "value": "zip_code"}, {"id": 2, "type": "table", "value": "weather"}, {"id": 1, "type": "table", "value": "trip"}, {"id": 4, "type": "value", "value": "4275"}, {"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": []}, {"entity_id": 3, "token_idxs": [9, 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", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O"]}
{"question_id": 5107, "db_id": "activity_1", "dber_id": "spider:train_spider.json:6748", "question": "How many male and female assistant professors do we have?", "SQL": "SELECT sex , count(*) FROM Faculty WHERE rank = \"AsstProf\" GROUP BY sex", "tokens": ["How", "many", "male", "and", "female", "assistant", "professors", "do", "we", "have", "?"], "entities": [{"id": 3, "type": "column", "value": "AsstProf"}, {"id": 0, "type": "table", "value": "faculty"}, {"id": 2, "type": "column", "value": "rank"}, {"id": 1, "type": "column", "value": "sex"}], "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": []}, {"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"]}
{"question_id": 15331, "db_id": "sales_in_weather", "dber_id": "bird:train.json:8152", "question": "How many more units of item no.16 were sold on the day with the highest max temperature in 2012 in store no.5 than in store no.10?", "SQL": "SELECT ( SELECT SUM(units) 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 T1.item_nbr = 16 AND T1.`date` LIKE '%2012%' AND T1.store_nbr = 5 GROUP BY tmax ORDER BY T3.tmax DESC LIMIT 1 ) - ( SELECT SUM(units) 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 T1.item_nbr = 16 AND T1.`date` LIKE '%2012%' AND T1.store_nbr = 6 GROUP BY tmax ORDER BY T3.tmax DESC LIMIT 1 )", "tokens": ["How", "many", "more", "units", "of", "item", "no.16", "were", "sold", "on", "the", "day", "with", "the", "highest", "max", "temperature", "in", "2012", "in", "store", "no.5", "than", "in", "store", "no.10", "?"], "entities": [{"id": 3, "type": "table", "value": "sales_in_weather"}, {"id": 5, "type": "column", "value": "station_nbr"}, {"id": 10, "type": "column", "value": "store_nbr"}, {"id": 4, "type": "table", "value": "relation"}, {"id": 6, "type": "column", "value": "item_nbr"}, {"id": 1, "type": "table", "value": "weather"}, {"id": 9, "type": "value", "value": "%2012%"}, {"id": 2, "type": "column", "value": "units"}, {"id": 0, "type": "column", "value": "tmax"}, {"id": 8, "type": "column", "value": "date"}, {"id": 7, "type": "value", "value": "16"}, {"id": 11, "type": "value", "value": "5"}, {"id": 12, "type": "value", "value": "6"}], "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": [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", "B-TABLE", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 11851, "db_id": "movie_3", "dber_id": "bird:train.json:9104", "question": "How many films have a rental duration of over 6 days?", "SQL": "SELECT COUNT(film_id) FROM film WHERE rental_duration > 6", "tokens": ["How", "many", "films", "have", "a", "rental", "duration", "of", "over", "6", "days", "?"], "entities": [{"id": 1, "type": "column", "value": "rental_duration"}, {"id": 3, "type": "column", "value": "film_id"}, {"id": 0, "type": "table", "value": "film"}, {"id": 2, "type": "value", "value": "6"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5, 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", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 4349, "db_id": "bike_1", "dber_id": "spider:train_spider.json:173", "question": "What are the name, latitude, and city of the station with the lowest latitude?", "SQL": "SELECT name , lat , city FROM station ORDER BY lat LIMIT 1", "tokens": ["What", "are", "the", "name", ",", "latitude", ",", "and", "city", "of", "the", "station", "with", "the", "lowest", "latitude", "?"], "entities": [{"id": 0, "type": "table", "value": "station"}, {"id": 1, "type": "column", "value": "name"}, {"id": 3, "type": "column", "value": "city"}, {"id": 2, "type": "column", "value": "lat"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [3]}, {"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": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-TABLE", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 14084, "db_id": "student_loan", "dber_id": "bird:train.json:4517", "question": "Calculate the average duration of absense of disabled male students.", "SQL": "SELECT AVG(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T2.name = T1.name INNER JOIN male AS T3 ON T3.name = T2.name", "tokens": ["Calculate", "the", "average", "duration", "of", "absense", "of", "disabled", "male", "students", "."], "entities": [{"id": 2, "type": "table", "value": "longest_absense_from_school"}, {"id": 3, "type": "table", "value": "disabled"}, {"id": 1, "type": "column", "value": "month"}, {"id": 0, "type": "table", "value": "male"}, {"id": 4, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-TABLE", "B-TABLE", "O", "O"]}
{"question_id": 14586, "db_id": "e_government", "dber_id": "spider:train_spider.json:6339", "question": "Count the number of different payment method codes used by parties.", "SQL": "SELECT count(DISTINCT payment_method_code) FROM parties", "tokens": ["Count", "the", "number", "of", "different", "payment", "method", "codes", "used", "by", "parties", "."], "entities": [{"id": 1, "type": "column", "value": "payment_method_code"}, {"id": 0, "type": "table", "value": "parties"}], "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": [6, 7, 8, 9]}, {"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", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 14396, "db_id": "beer_factory", "dber_id": "bird:train.json:5238", "question": "How many transactions had Frank-Paul Santangelo made in July, 2014?", "SQL": "SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Frank-Paul' AND T1.Last = 'Santangelo' AND STRFTIME('%Y-%m', T2.TransactionDate) = '2014-07'", "tokens": ["How", "many", "transactions", "had", "Frank", "-", "Paul", "Santangelo", "made", "in", "July", ",", "2014", "?"], "entities": [{"id": 9, "type": "column", "value": "transactiondate"}, {"id": 1, "type": "table", "value": "transaction"}, {"id": 2, "type": "column", "value": "customerid"}, {"id": 4, "type": "value", "value": "Frank-Paul"}, {"id": 6, "type": "value", "value": "Santangelo"}, {"id": 0, "type": "table", "value": "customers"}, {"id": 7, "type": "value", "value": "2014-07"}, {"id": 3, "type": "column", "value": "first"}, {"id": 8, "type": "value", "value": "%Y-%m"}, {"id": 5, "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": []}, {"entity_id": 4, "token_idxs": [4, 5, 6]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [7]}, {"entity_id": 7, "token_idxs": [10, 11, 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", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "B-VALUE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O"]}
{"question_id": 15802, "db_id": "video_games", "dber_id": "bird:train.json:3444", "question": "List by name all the games released in the year 2010.", "SQL": "SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id WHERE T3.release_year = '2010'", "tokens": ["List", "by", "name", "all", "the", "games", "released", "in", "the", "year", "2010", "."], "entities": [{"id": 7, "type": "column", "value": "game_publisher_id"}, {"id": 5, "type": "table", "value": "game_publisher"}, {"id": 1, "type": "table", "value": "game_platform"}, {"id": 2, "type": "column", "value": "release_year"}, {"id": 0, "type": "column", "value": "game_name"}, {"id": 8, "type": "column", "value": "game_id"}, {"id": 3, "type": "value", "value": "2010"}, {"id": 4, "type": "table", "value": "game"}, {"id": 6, "type": "column", "value": "id"}], "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": [10]}, {"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", "B-COLUMN", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 6932, "db_id": "advertising_agencies", "dber_id": "bird:test.json:2069", "question": "Show agency ids and details with at least 2 clients.", "SQL": "SELECT T1.agency_id , T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id = T2.agency_id GROUP BY T1.agency_id HAVING count(*) >= 2", "tokens": ["Show", "agency", "ids", "and", "details", "with", "at", "least", "2", "clients", "."], "entities": [{"id": 1, "type": "column", "value": "agency_details"}, {"id": 0, "type": "column", "value": "agency_id"}, {"id": 2, "type": "table", "value": "agencies"}, {"id": 3, "type": "table", "value": "clients"}, {"id": 4, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": [8]}, {"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", "O", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "O"]}
{"question_id": 9333, "db_id": "car_retails", "dber_id": "bird:train.json:1545", "question": "Which different vendor has the most amount of orders? Calculate the total estimated earnings.", "SQL": "SELECT DISTINCT T1.productVendor, T1.MSRP - T1.buyPrice FROM products AS T1 INNER JOIN orderdetails AS T2 ON T1.productCode = T2.productCode GROUP BY T1.productVendor, T1.MSRP, T1.buyPrice ORDER BY COUNT(T2.quantityOrdered) DESC LIMIT 1", "tokens": ["Which", "different", "vendor", "has", "the", "most", "amount", "of", "orders", "?", "Calculate", "the", "total", "estimated", "earnings", "."], "entities": [{"id": 6, "type": "column", "value": "quantityordered"}, {"id": 0, "type": "column", "value": "productvendor"}, {"id": 4, "type": "table", "value": "orderdetails"}, {"id": 5, "type": "column", "value": "productcode"}, {"id": 2, "type": "column", "value": "buyprice"}, {"id": 3, "type": "table", "value": "products"}, {"id": 1, "type": "column", "value": "msrp"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": [7, 8]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [14]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O"]}
{"question_id": 8890, "db_id": "computer_student", "dber_id": "bird:train.json:997", "question": "Please list the IDs of the professors that teaches more than 3 courses.", "SQL": "SELECT T1.p_id FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.professor = 1 GROUP BY T1.p_id HAVING COUNT(DISTINCT T1.course_id) > 3", "tokens": ["Please", "list", "the", "IDs", "of", "the", "professors", "that", "teaches", "more", "than", "3", "courses", "."], "entities": [{"id": 3, "type": "column", "value": "professor"}, {"id": 6, "type": "column", "value": "course_id"}, {"id": 1, "type": "table", "value": "taughtby"}, {"id": 2, "type": "table", "value": "person"}, {"id": 0, "type": "column", "value": "p_id"}, {"id": 4, "type": "value", "value": "1"}, {"id": 5, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [11]}, {"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", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O"]}
{"question_id": 10726, "db_id": "music_2", "dber_id": "spider:train_spider.json:5202", "question": "What are all the instruments used?", "SQL": "SELECT DISTINCT instrument FROM Instruments", "tokens": ["What", "are", "all", "the", "instruments", "used", "?"], "entities": [{"id": 0, "type": "table", "value": "instruments"}, {"id": 1, "type": "column", "value": "instrument"}], "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"]}
{"question_id": 4114, "db_id": "retails", "dber_id": "bird:train.json:6820", "question": "List all the dates of the urgent orders.", "SQL": "SELECT o_orderdate FROM orders WHERE o_orderpriority = '1-URGENT'", "tokens": ["List", "all", "the", "dates", "of", "the", "urgent", "orders", "."], "entities": [{"id": 2, "type": "column", "value": "o_orderpriority"}, {"id": 1, "type": "column", "value": "o_orderdate"}, {"id": 3, "type": "value", "value": "1-URGENT"}, {"id": 0, "type": "table", "value": "orders"}], "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": [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", "O", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 12977, "db_id": "e_commerce", "dber_id": "bird:test.json:75", "question": "What are the invoice statuses for all orderes that have not been shipped out yet?", "SQL": "SELECT invoice_status_code FROM Invoices WHERE invoice_number NOT IN ( SELECT invoice_number FROM Shipments )", "tokens": ["What", "are", "the", "invoice", "statuses", "for", "all", "orderes", "that", "have", "not", "been", "shipped", "out", "yet", "?"], "entities": [{"id": 1, "type": "column", "value": "invoice_status_code"}, {"id": 2, "type": "column", "value": "invoice_number"}, {"id": 3, "type": "table", "value": "shipments"}, {"id": 0, "type": "table", "value": "invoices"}], "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": [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-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O"]}
{"question_id": 722, "db_id": "chicago_crime", "dber_id": "bird:train.json:8654", "question": "Provide the occurrence date and location of the deceptive practice due to the unlawful use of recorded sound.", "SQL": "SELECT T2.date, T2.latitude, T2.longitude FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no WHERE T1.primary_description = 'DECEPTIVE PRACTICE' AND T1.secondary_description = 'UNLAWFUL USE OF RECORDED SOUND'", "tokens": ["Provide", "the", "occurrence", "date", "and", "location", "of", "the", "deceptive", "practice", "due", "to", "the", "unlawful", "use", "of", "recorded", "sound", "."], "entities": [{"id": 9, "type": "value", "value": "UNLAWFUL USE OF RECORDED SOUND"}, {"id": 8, "type": "column", "value": "secondary_description"}, {"id": 6, "type": "column", "value": "primary_description"}, {"id": 7, "type": "value", "value": "DECEPTIVE PRACTICE"}, {"id": 2, "type": "column", "value": "longitude"}, {"id": 1, "type": "column", "value": "latitude"}, {"id": 5, "type": "column", "value": "iucr_no"}, {"id": 4, "type": "table", "value": "crime"}, {"id": 0, "type": "column", "value": "date"}, {"id": 3, "type": "table", "value": "iucr"}], "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": []}, {"entity_id": 7, "token_idxs": [8, 9]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [13, 14, 15, 16, 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", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]}
{"question_id": 15250, "db_id": "baseball_1", "dber_id": "spider:train_spider.json:3632", "question": "Compute the average salary of the players in the team called 'Boston Red Stockings'.", "SQL": "SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'", "tokens": ["Compute", "the", "average", "salary", "of", "the", "players", "in", "the", "team", "called", "'", "Boston", "Red", "Stockings", "'", "."], "entities": [{"id": 3, "type": "value", "value": "Boston Red Stockings"}, {"id": 6, "type": "column", "value": "team_id_br"}, {"id": 5, "type": "column", "value": "team_id"}, {"id": 0, "type": "table", "value": "salary"}, {"id": 4, "type": "column", "value": "salary"}, {"id": 1, "type": "table", "value": "team"}, {"id": 2, "type": "column", "value": "name"}], "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": [12, 13, 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", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 3566, "db_id": "school_bus", "dber_id": "spider:train_spider.json:6352", "question": "Show all different home cities.", "SQL": "SELECT DISTINCT home_city FROM driver", "tokens": ["Show", "all", "different", "home", "cities", "."], "entities": [{"id": 1, "type": "column", "value": "home_city"}, {"id": 0, "type": "table", "value": "driver"}], "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"]}
{"question_id": 9157, "db_id": "california_schools", "dber_id": "bird:dev.json:8", "question": "What is the number of SAT test takers of the schools with the highest FRPM count for K-12 students?", "SQL": "SELECT NumTstTakr FROM satscores WHERE cds = ( SELECT CDSCode FROM frpm ORDER BY `FRPM Count (K-12)` DESC LIMIT 1 )", "tokens": ["What", "is", "the", "number", "of", "SAT", "test", "takers", "of", "the", "schools", "with", "the", "highest", "FRPM", "count", "for", "K-12", "students", "?"], "entities": [{"id": 5, "type": "column", "value": "FRPM Count (K-12)"}, {"id": 1, "type": "column", "value": "numtsttakr"}, {"id": 0, "type": "table", "value": "satscores"}, {"id": 4, "type": "column", "value": "cdscode"}, {"id": 3, "type": "table", "value": "frpm"}, {"id": 2, "type": "column", "value": "cds"}], "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": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [14, 15, 16, 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", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O"]}
{"question_id": 11087, "db_id": "movie_platform", "dber_id": "bird:train.json:143", "question": "Among the lists with at least one follower, how many were created by user who was subscriber when created the list?", "SQL": "SELECT COUNT(T1.list_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers >= 1 AND T1.user_subscriber = 1", "tokens": ["Among", "the", "lists", "with", "at", "least", "one", "follower", ",", "how", "many", "were", "created", "by", "user", "who", "was", "subscriber", "when", "created", "the", "list", "?"], "entities": [{"id": 5, "type": "column", "value": "user_subscriber"}, {"id": 3, "type": "column", "value": "list_followers"}, {"id": 0, "type": "table", "value": "lists_users"}, {"id": 2, "type": "column", "value": "list_id"}, {"id": 1, "type": "table", "value": "lists"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [21]}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": [6]}, {"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", "O", "O", "O", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 14496, "db_id": "sakila_1", "dber_id": "spider:train_spider.json:2948", "question": "Which film has the highest rental rate? And what is the rate?", "SQL": "SELECT title , rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1", "tokens": ["Which", "film", "has", "the", "highest", "rental", "rate", "?", "And", "what", "is", "the", "rate", "?"], "entities": [{"id": 2, "type": "column", "value": "rental_rate"}, {"id": 1, "type": "column", "value": "title"}, {"id": 0, "type": "table", "value": "film"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": [4, 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", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O"]}
{"question_id": 9489, "db_id": "flight_1", "dber_id": "spider:train_spider.json:372", "question": "What is the average and largest salary of all employees?", "SQL": "SELECT avg(salary) , max(salary) FROM Employee", "tokens": ["What", "is", "the", "average", "and", "largest", "salary", "of", "all", "employees", "?"], "entities": [{"id": 0, "type": "table", "value": "employee"}, {"id": 1, "type": "column", "value": "salary"}], "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": []}, {"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", "O", "O", "O", "O", "O"]}
{"question_id": 4462, "db_id": "public_review_platform", "dber_id": "bird:train.json:3837", "question": "How long does business number 12 in Scottsdale stay open on day number 3?", "SQL": "SELECT T2.closing_time - T2.opening_time AS \"hour\" FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.business_id = 12 AND T1.city LIKE 'Scottsdale' AND T2.day_id = 3", "tokens": ["How", "long", "does", "business", "number", "12", "in", "Scottsdale", "stay", "open", "on", "day", "number", "3", "?"], "entities": [{"id": 1, "type": "table", "value": "business_hours"}, {"id": 2, "type": "column", "value": "closing_time"}, {"id": 3, "type": "column", "value": "opening_time"}, {"id": 4, "type": "column", "value": "business_id"}, {"id": 7, "type": "value", "value": "Scottsdale"}, {"id": 0, "type": "table", "value": "business"}, {"id": 8, "type": "column", "value": "day_id"}, {"id": 6, "type": "column", "value": "city"}, {"id": 5, "type": "value", "value": "12"}, {"id": 9, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [5]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [7]}, {"entity_id": 8, "token_idxs": [11]}, {"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", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "B-VALUE", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-VALUE", "O"]}
{"question_id": 6873, "db_id": "retail_world", "dber_id": "bird:train.json:6499", "question": "How many territories are there in the Eastern region?", "SQL": "SELECT COUNT(T1.RegionID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Eastern'", "tokens": ["How", "many", "territories", "are", "there", "in", "the", "Eastern", "region", "?"], "entities": [{"id": 2, "type": "column", "value": "regiondescription"}, {"id": 0, "type": "table", "value": "territories"}, {"id": 4, "type": "column", "value": "regionid"}, {"id": 3, "type": "value", "value": "Eastern"}, {"id": 1, "type": "table", "value": "region"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [8]}, {"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", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 8938, "db_id": "app_store", "dber_id": "bird:train.json:2526", "question": "Which apps have multiple genres and what is the total sentiment subjectivity of these apps?", "SQL": "SELECT SUM(T2.Sentiment_Subjectivity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Genres > 1", "tokens": ["Which", "apps", "have", "multiple", "genres", "and", "what", "is", "the", "total", "sentiment", "subjectivity", "of", "these", "apps", "?"], "entities": [{"id": 4, "type": "column", "value": "sentiment_subjectivity"}, {"id": 1, "type": "table", "value": "user_reviews"}, {"id": 0, "type": "table", "value": "playstore"}, {"id": 2, "type": "column", "value": "genres"}, {"id": 5, "type": "column", "value": "app"}, {"id": 3, "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": [10, 11]}, {"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-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O"]}
{"question_id": 35, "db_id": "e_government", "dber_id": "spider:train_spider.json:6333", "question": "Count the number of cities in the state of Colorado.", "SQL": "SELECT count(*) FROM addresses WHERE state_province_county = \"Colorado\"", "tokens": ["Count", "the", "number", "of", "cities", "in", "the", "state", "of", "Colorado", "."], "entities": [{"id": 1, "type": "column", "value": "state_province_county"}, {"id": 0, "type": "table", "value": "addresses"}, {"id": 2, "type": "column", "value": "Colorado"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-COLUMN", "O"]}
{"question_id": 14293, "db_id": "department_store", "dber_id": "spider:train_spider.json:4748", "question": "What is the code of the product type with an average price higher than the average price of all products?", "SQL": "SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg(product_price) > (SELECT avg(product_price) FROM products)", "tokens": ["What", "is", "the", "code", "of", "the", "product", "type", "with", "an", "average", "price", "higher", "than", "the", "average", "price", "of", "all", "products", "?"], "entities": [{"id": 1, "type": "column", "value": "product_type_code"}, {"id": 2, "type": "column", "value": "product_price"}, {"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": [4]}, {"entity_id": 3, "token_idxs": [8]}, {"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", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 3044, "db_id": "csu_1", "dber_id": "spider:train_spider.json:2360", "question": "Find the names of the campus which has more faculties in 2002 than every campus in Orange county.", "SQL": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = \"Orange\")", "tokens": ["Find", "the", "names", "of", "the", "campus", "which", "has", "more", "faculties", "in", "2002", "than", "every", "campus", "in", "Orange", "county", "."], "entities": [{"id": 1, "type": "table", "value": "campuses"}, {"id": 2, "type": "table", "value": "faculty"}, {"id": 6, "type": "column", "value": "faculty"}, {"id": 0, "type": "column", "value": "campus"}, {"id": 7, "type": "column", "value": "county"}, {"id": 8, "type": "column", "value": "Orange"}, {"id": 4, "type": "column", "value": "year"}, {"id": 5, "type": "value", "value": "2002"}, {"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": [3]}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": [10]}, {"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-TABLE", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "O", "O"]}
{"question_id": 14764, "db_id": "beer_factory", "dber_id": "bird:train.json:5295", "question": "What is the average cost of root beers purchased for more than 2 dollars and sold in bottles?", "SQL": "SELECT AVG(T2.PurchasePrice) FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T1.ContainerType = 'Bottle' AND T2.PurchasePrice > 2", "tokens": ["What", "is", "the", "average", "cost", "of", "root", "beers", "purchased", "for", "more", "than", "2", "dollars", "and", "sold", "in", "bottles", "?"], "entities": [{"id": 0, "type": "table", "value": "rootbeerbrand"}, {"id": 1, "type": "column", "value": "purchaseprice"}, {"id": 5, "type": "column", "value": "containertype"}, {"id": 3, "type": "table", "value": "transaction"}, {"id": 8, "type": "column", "value": "rootbeerid"}, {"id": 2, "type": "table", "value": "rootbeer"}, {"id": 4, "type": "column", "value": "brandid"}, {"id": 6, "type": "value", "value": "Bottle"}, {"id": 7, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [8]}, {"entity_id": 2, "token_idxs": [6, 7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [17]}, {"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", "O", "O", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 7579, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1191", "question": "What percentage of male patients who first presented to the hospital in 1981 were diagnosed with BEHCET?", "SQL": "SELECT CAST(SUM(CASE WHEN Diagnosis = 'BEHCET' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(ID) FROM Patient WHERE STRFTIME('%Y', `First Date`) = '1981' AND SEX = 'M'", "tokens": ["What", "percentage", "of", "male", "patients", "who", "first", "presented", "to", "the", "hospital", "in", "1981", "were", "diagnosed", "with", "BEHCET", "?"], "entities": [{"id": 7, "type": "column", "value": "First Date"}, {"id": 10, "type": "column", "value": "diagnosis"}, {"id": 0, "type": "table", "value": "patient"}, {"id": 11, "type": "value", "value": "BEHCET"}, {"id": 1, "type": "value", "value": "1981"}, {"id": 2, "type": "column", "value": "sex"}, {"id": 4, "type": "value", "value": "100"}, {"id": 5, "type": "column", "value": "id"}, {"id": 6, "type": "value", "value": "%Y"}, {"id": 3, "type": "value", "value": "M"}, {"id": 8, "type": "value", "value": "0"}, {"id": 9, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [3, 4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [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", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O"]}
{"question_id": 5143, "db_id": "real_estate_rentals", "dber_id": "bird:test.json:1461", "question": "Return the number of rooms with each different room size.", "SQL": "SELECT room_size , count(*) FROM Rooms GROUP BY room_size", "tokens": ["Return", "the", "number", "of", "rooms", "with", "each", "different", "room", "size", "."], "entities": [{"id": 1, "type": "column", "value": "room_size"}, {"id": 0, "type": "table", "value": "rooms"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [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", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 14785, "db_id": "cs_semester", "dber_id": "bird:train.json:892", "question": "Among the most popular professors, how many are females?", "SQL": "SELECT COUNT(prof_id) FROM prof WHERE gender = 'Female' AND popularity = ( SELECT MAX(popularity) FROM prof )", "tokens": ["Among", "the", "most", "popular", "professors", ",", "how", "many", "are", "females", "?"], "entities": [{"id": 4, "type": "column", "value": "popularity"}, {"id": 1, "type": "column", "value": "prof_id"}, {"id": 2, "type": "column", "value": "gender"}, {"id": 3, "type": "value", "value": "Female"}, {"id": 0, "type": "table", "value": "prof"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9]}, {"entity_id": 4, "token_idxs": [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-TABLE", "O", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 9459, "db_id": "club_1", "dber_id": "spider:train_spider.json:4319", "question": "Compute the average age of the members in the club \"Tennis Club\".", "SQL": "SELECT avg(t3.age) 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 = \"Tennis Club\"", "tokens": ["Compute", "the", "average", "age", "of", "the", "members", "in", "the", "club", "\"", "Tennis", "Club", "\"", "."], "entities": [{"id": 5, "type": "table", "value": "member_of_club"}, {"id": 2, "type": "column", "value": "Tennis Club"}, {"id": 1, "type": "column", "value": "clubname"}, {"id": 0, "type": "table", "value": "student"}, {"id": 7, "type": "column", "value": "clubid"}, {"id": 6, "type": "column", "value": "stuid"}, {"id": 4, "type": "table", "value": "club"}, {"id": 3, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": [12]}, {"entity_id": 5, "token_idxs": [6, 7, 8]}, {"entity_id": 6, "token_idxs": []}, {"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-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "B-COLUMN", "O", "B-COLUMN", "B-TABLE", "O", "O"]}
{"question_id": 3450, "db_id": "retail_world", "dber_id": "bird:train.json:6625", "question": "What are the highest salary earn by the the employee and what is his/her position in the company?", "SQL": "SELECT Salary, Title FROM Employees WHERE Salary = ( SELECT MAX(Salary) FROM Employees )", "tokens": ["What", "are", "the", "highest", "salary", "earn", "by", "the", "the", "employee", "and", "what", "is", "his", "/", "her", "position", "in", "the", "company", "?"], "entities": [{"id": 0, "type": "table", "value": "employees"}, {"id": 1, "type": "column", "value": "salary"}, {"id": 2, "type": "column", "value": "title"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"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", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 14468, "db_id": "dorm_1", "dber_id": "spider:train_spider.json:5691", "question": "How many dorms have amenities?", "SQL": "SELECT count(DISTINCT dormid) FROM has_amenity", "tokens": ["How", "many", "dorms", "have", "amenities", "?"], "entities": [{"id": 0, "type": "table", "value": "has_amenity"}, {"id": 1, "type": "column", "value": "dormid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3, 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", "B-TABLE", "I-TABLE", "O"]}
{"question_id": 14833, "db_id": "talkingdata", "dber_id": "bird:train.json:1165", "question": "Calculate the percentage of male users among all device users.", "SQL": "SELECT SUM(IIF(gender = 'M', 1, 0)) / COUNT(device_id) AS per FROM gender_age", "tokens": ["Calculate", "the", "percentage", "of", "male", "users", "among", "all", "device", "users", "."], "entities": [{"id": 0, "type": "table", "value": "gender_age"}, {"id": 1, "type": "column", "value": "device_id"}, {"id": 4, "type": "column", "value": "gender"}, {"id": 2, "type": "value", "value": "1"}, {"id": 3, "type": "value", "value": "0"}, {"id": 5, "type": "value", "value": "M"}], "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": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-COLUMN", "O", "O"]}
{"question_id": 11787, "db_id": "student_club", "dber_id": "bird:dev.json:1426", "question": "List the last name of members with a major in environmental engineering and include its department and college name.", "SQL": "SELECT T2.last_name, T1.department, T1.college FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Member' AND T1.major_name = 'Environmental Engineering'", "tokens": ["List", "the", "last", "name", "of", "members", "with", "a", "major", "in", "environmental", "engineering", "and", "include", "its", "department", "and", "college", "name", "."], "entities": [{"id": 10, "type": "value", "value": "Environmental Engineering"}, {"id": 6, "type": "column", "value": "link_to_major"}, {"id": 1, "type": "column", "value": "department"}, {"id": 9, "type": "column", "value": "major_name"}, {"id": 0, "type": "column", "value": "last_name"}, {"id": 5, "type": "column", "value": "major_id"}, {"id": 7, "type": "column", "value": "position"}, {"id": 2, "type": "column", "value": "college"}, {"id": 4, "type": "table", "value": "member"}, {"id": 8, "type": "value", "value": "Member"}, {"id": 3, "type": "table", "value": "major"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [15]}, {"entity_id": 2, "token_idxs": [17]}, {"entity_id": 3, "token_idxs": [8]}, {"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": [18]}, {"entity_id": 10, "token_idxs": [10, 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-TABLE", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "B-COLUMN", "O"]}
{"question_id": 2615, "db_id": "codebase_community", "dber_id": "bird:dev.json:659", "question": "How many tags have post count between 5,000 to 7,000?", "SQL": "SELECT COUNT(Id) FROM tags WHERE Count BETWEEN 5000 AND 7000", "tokens": ["How", "many", "tags", "have", "post", "count", "between", "5,000", "to", "7,000", "?"], "entities": [{"id": 1, "type": "column", "value": "count"}, {"id": 0, "type": "table", "value": "tags"}, {"id": 2, "type": "value", "value": "5000"}, {"id": 3, "type": "value", "value": "7000"}, {"id": 4, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [5]}, {"entity_id": 2, "token_idxs": [7]}, {"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-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 5238, "db_id": "beer_factory", "dber_id": "bird:train.json:5353", "question": "How many stars did Urijah Faber rate for Frostie?", "SQL": "SELECT T2.StarRating FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T1.First = 'Urijah' AND T1.Last = 'Faber' AND T3.BrandName = 'Frostie'", "tokens": ["How", "many", "stars", "did", "Urijah", "Faber", "rate", "for", "Frostie", "?"], "entities": [{"id": 3, "type": "table", "value": "rootbeerreview"}, {"id": 1, "type": "table", "value": "rootbeerbrand"}, {"id": 0, "type": "column", "value": "starrating"}, {"id": 11, "type": "column", "value": "customerid"}, {"id": 2, "type": "table", "value": "customers"}, {"id": 9, "type": "column", "value": "brandname"}, {"id": 4, "type": "column", "value": "brandid"}, {"id": 10, "type": "value", "value": "Frostie"}, {"id": 6, "type": "value", "value": "Urijah"}, {"id": 5, "type": "column", "value": "first"}, {"id": 8, "type": "value", "value": "Faber"}, {"id": 7, "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": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [4]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [5]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": [8]}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-VALUE", "O"]}
{"question_id": 14156, "db_id": "public_review_platform", "dber_id": "bird:train.json:4107", "question": "What is the most common type of compliments that a user has received from other users?", "SQL": "SELECT T2.compliment_type FROM Users_Compliments AS T1 INNER JOIN Compliments AS T2 ON T1.compliment_id = T2.compliment_id GROUP BY T2.compliment_type ORDER BY COUNT(T2.compliment_type) DESC LIMIT 1", "tokens": ["What", "is", "the", "most", "common", "type", "of", "compliments", "that", "a", "user", "has", "received", "from", "other", "users", "?"], "entities": [{"id": 1, "type": "table", "value": "users_compliments"}, {"id": 0, "type": "column", "value": "compliment_type"}, {"id": 3, "type": "column", "value": "compliment_id"}, {"id": 2, "type": "table", "value": "compliments"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [10, 15]}, {"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", "O", "O", "B-COLUMN", "O", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 7305, "db_id": "university", "dber_id": "bird:train.json:8047", "question": "How many universities had over 30000 students in 2011?", "SQL": "SELECT COUNT(*) FROM university_year WHERE year = 2011 AND num_students > 30000", "tokens": ["How", "many", "universities", "had", "over", "30000", "students", "in", "2011", "?"], "entities": [{"id": 0, "type": "table", "value": "university_year"}, {"id": 3, "type": "column", "value": "num_students"}, {"id": 4, "type": "value", "value": "30000"}, {"id": 1, "type": "column", "value": "year"}, {"id": 2, "type": "value", "value": "2011"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [8]}, {"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": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "O"]}
{"question_id": 14960, "db_id": "cre_Doc_Tracking_DB", "dber_id": "spider:train_spider.json:4194", "question": "Show the description for role name \"Proof Reader\".", "SQL": "SELECT role_description FROM ROLES WHERE role_name = \"Proof Reader\"", "tokens": ["Show", "the", "description", "for", "role", "name", "\"", "Proof", "Reader", "\"", "."], "entities": [{"id": 1, "type": "column", "value": "role_description"}, {"id": 3, "type": "column", "value": "Proof Reader"}, {"id": 2, "type": "column", "value": "role_name"}, {"id": 0, "type": "table", "value": "roles"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [5]}, {"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", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O"]}
{"question_id": 8856, "db_id": "menu", "dber_id": "bird:train.json:5492", "question": "How many menus were created for steamship?", "SQL": "SELECT COUNT(*) FROM Menu WHERE venue = 'STEAMSHIP'", "tokens": ["How", "many", "menus", "were", "created", "for", "steamship", "?"], "entities": [{"id": 2, "type": "value", "value": "STEAMSHIP"}, {"id": 1, "type": "column", "value": "venue"}, {"id": 0, "type": "table", "value": "menu"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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"]}
{"question_id": 4033, "db_id": "county_public_safety", "dber_id": "spider:train_spider.json:2536", "question": "List the distinct police forces of counties whose location is not on east side.", "SQL": "SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != \"East\"", "tokens": ["List", "the", "distinct", "police", "forces", "of", "counties", "whose", "location", "is", "not", "on", "east", "side", "."], "entities": [{"id": 0, "type": "table", "value": "county_public_safety"}, {"id": 1, "type": "column", "value": "police_force"}, {"id": 2, "type": "column", "value": "location"}, {"id": 3, "type": "column", "value": "East"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"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-COLUMN", "I-COLUMN", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O"]}
{"question_id": 8947, "db_id": "swimming", "dber_id": "spider:train_spider.json:5610", "question": "Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?", "SQL": "SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000", "tokens": ["Which", "country", "has", "both", "stadiums", "with", "capacity", "greater", "than", "60000", "and", "stadiums", "with", "capacity", "less", "than", "50000", "?"], "entities": [{"id": 2, "type": "column", "value": "capacity"}, {"id": 0, "type": "table", "value": "stadium"}, {"id": 1, "type": "column", "value": "country"}, {"id": 3, "type": "value", "value": "60000"}, {"id": 4, "type": "value", "value": "50000"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [9]}, {"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", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 2417, "db_id": "university", "dber_id": "bird:train.json:8056", "question": "Which country has the University of São Paulo?", "SQL": "SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'University of São Paulo'", "tokens": ["Which", "country", "has", "the", "University", "of", "São", "Paulo", "?"], "entities": [{"id": 4, "type": "value", "value": "University of São Paulo"}, {"id": 3, "type": "column", "value": "university_name"}, {"id": 0, "type": "column", "value": "country_name"}, {"id": 1, "type": "table", "value": "university"}, {"id": 5, "type": "column", "value": "country_id"}, {"id": 2, "type": "table", "value": "country"}, {"id": 6, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"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", "O", "B-TABLE", "B-VALUE", "I-VALUE", "I-VALUE", "O"]}
{"question_id": 15448, "db_id": "university_rank", "dber_id": "bird:test.json:1760", "question": "What are the names, cities, and states of all universities in alphabetical order (by name of the university).", "SQL": "SELECT university_name , city , state FROM University ORDER BY university_name", "tokens": ["What", "are", "the", "names", ",", "cities", ",", "and", "states", "of", "all", "universities", "in", "alphabetical", "order", "(", "by", "name", "of", "the", "university", ")", "."], "entities": [{"id": 1, "type": "column", "value": "university_name"}, {"id": 0, "type": "table", "value": "university"}, {"id": 3, "type": "column", "value": "state"}, {"id": 2, "type": "column", "value": "city"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [3, 17, 20]}, {"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", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 12067, "db_id": "network_2", "dber_id": "spider:train_spider.json:4446", "question": "Find the name of the person who has friends with age above 40 but not under age 30?", "SQL": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)", "tokens": ["Find", "the", "name", "of", "the", "person", "who", "has", "friends", "with", "age", "above", "40", "but", "not", "under", "age", "30", "?"], "entities": [{"id": 2, "type": "table", "value": "personfriend"}, {"id": 1, "type": "table", "value": "person"}, {"id": 3, "type": "column", "value": "friend"}, {"id": 0, "type": "column", "value": "name"}, {"id": 4, "type": "column", "value": "age"}, {"id": 5, "type": "value", "value": "40"}, {"id": 6, "type": "value", "value": "30"}], "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": [8]}, {"entity_id": 4, "token_idxs": [10, 16]}, {"entity_id": 5, "token_idxs": [12]}, {"entity_id": 6, "token_idxs": [17]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "B-VALUE", "O"]}
{"question_id": 1160, "db_id": "toxicology", "dber_id": "bird:dev.json:306", "question": "Which molecules have triple bonds and list all the elements they contain.", "SQL": "SELECT DISTINCT T1.molecule_id, T2.element FROM bond AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '#'", "tokens": ["Which", "molecules", "have", "triple", "bonds", "and", "list", "all", "the", "elements", "they", "contain", "."], "entities": [{"id": 0, "type": "column", "value": "molecule_id"}, {"id": 4, "type": "column", "value": "bond_type"}, {"id": 1, "type": "column", "value": "element"}, {"id": 2, "type": "table", "value": "bond"}, {"id": 3, "type": "table", "value": "atom"}, {"id": 5, "type": "value", "value": "#"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [9]}, {"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", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O"]}
{"question_id": 8821, "db_id": "e_commerce", "dber_id": "bird:test.json:52", "question": "Which product are listed in orders most frequently? List the id, product name and price.", "SQL": "SELECT T1.product_id , T1.product_name , T1.product_price FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id ORDER BY count(*) DESC LIMIT 1", "tokens": ["Which", "product", "are", "listed", "in", "orders", "most", "frequently", "?", "List", "the", "i", "d", ",", "product", "name", "and", "price", "."], "entities": [{"id": 2, "type": "column", "value": "product_price"}, {"id": 1, "type": "column", "value": "product_name"}, {"id": 4, "type": "table", "value": "order_items"}, {"id": 0, "type": "column", "value": "product_id"}, {"id": 3, "type": "table", "value": "products"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [15]}, {"entity_id": 2, "token_idxs": [2]}, {"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", "B-COLUMN", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O"]}
{"question_id": 9485, "db_id": "simpson_episodes", "dber_id": "bird:train.json:4185", "question": "How many crew have their own nickname? List their full name along with the nickname.", "SQL": "SELECT COUNT(name) FROM Person WHERE nickname IS NOT NULL;", "tokens": ["How", "many", "crew", "have", "their", "own", "nickname", "?", "List", "their", "full", "name", "along", "with", "the", "nickname", "."], "entities": [{"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": [10]}, {"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", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O"]}
{"question_id": 8540, "db_id": "bakery_1", "dber_id": "bird:test.json:1519", "question": "How many goods are available for each food type?", "SQL": "SELECT count(*) , food FROM goods GROUP BY food", "tokens": ["How", "many", "goods", "are", "available", "for", "each", "food", "type", "?"], "entities": [{"id": 0, "type": "table", "value": "goods"}, {"id": 1, "type": "column", "value": "food"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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"]}
{"question_id": 3510, "db_id": "restaurant_1", "dber_id": "spider:train_spider.json:2838", "question": "How many times has the student Linda Smith visited Subway?", "SQL": "SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\" AND Restaurant.ResName = \"Subway\";", "tokens": ["How", "many", "times", "has", "the", "student", "Linda", "Smith", "visited", "Subway", "?"], "entities": [{"id": 2, "type": "table", "value": "visits_restaurant"}, {"id": 0, "type": "table", "value": "restaurant"}, {"id": 1, "type": "table", "value": "student"}, {"id": 8, "type": "column", "value": "resname"}, {"id": 9, "type": "column", "value": "Subway"}, {"id": 3, "type": "column", "value": "resid"}, {"id": 4, "type": "column", "value": "fname"}, {"id": 5, "type": "column", "value": "Linda"}, {"id": 6, "type": "column", "value": "lname"}, {"id": 7, "type": "column", "value": "Smith"}, {"id": 10, "type": "column", "value": "stuid"}], "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": []}, {"entity_id": 5, "token_idxs": [6]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [7]}, {"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", "O", "O", "B-TABLE", "B-COLUMN", "B-COLUMN", "B-TABLE", "B-COLUMN", "O"]}
{"question_id": 13809, "db_id": "bike_share_1", "dber_id": "bird:train.json:9067", "question": "How many docks were left at the end station for trip ID4069?", "SQL": "SELECT SUM(T2.docks_available) FROM trip AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.end_station_id WHERE T1.ID = 4069", "tokens": ["How", "many", "docks", "were", "left", "at", "the", "end", "station", "for", "trip", "ID4069", "?"], "entities": [{"id": 4, "type": "column", "value": "docks_available"}, {"id": 6, "type": "column", "value": "end_station_id"}, {"id": 5, "type": "column", "value": "station_id"}, {"id": 1, "type": "table", "value": "status"}, {"id": 0, "type": "table", "value": "trip"}, {"id": 3, "type": "value", "value": "4069"}, {"id": 2, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": [2]}, {"entity_id": 5, "token_idxs": [8]}, {"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", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "B-TABLE", "B-VALUE", "O"]}
{"question_id": 525, "db_id": "wrestler", "dber_id": "spider:train_spider.json:1865", "question": "How many eliminations did each team have?", "SQL": "SELECT Team , COUNT(*) FROM elimination GROUP BY Team", "tokens": ["How", "many", "eliminations", "did", "each", "team", "have", "?"], "entities": [{"id": 0, "type": "table", "value": "elimination"}, {"id": 1, "type": "column", "value": "team"}], "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", "O"]}
{"question_id": 14625, "db_id": "company_employee", "dber_id": "spider:train_spider.json:4107", "question": "Show names of companies and that of employees in descending order of number of years working for that employee.", "SQL": "SELECT T3.Name , T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working", "tokens": ["Show", "names", "of", "companies", "and", "that", "of", "employees", "in", "descending", "order", "of", "number", "of", "years", "working", "for", "that", "employee", "."], "entities": [{"id": 2, "type": "column", "value": "year_working"}, {"id": 3, "type": "table", "value": "employment"}, {"id": 5, "type": "column", "value": "company_id"}, {"id": 6, "type": "column", "value": "people_id"}, {"id": 1, "type": "table", "value": "company"}, {"id": 4, "type": "table", "value": "people"}, {"id": 0, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [14, 15]}, {"entity_id": 3, "token_idxs": [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", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O"]}
{"question_id": 3502, "db_id": "trains", "dber_id": "bird:train.json:696", "question": "Among the trains that run in the east direction, how many of them have at least one car in a non-regular shape?", "SQL": "SELECT SUM(CASE WHEN T1.shape IN ('bucket', 'elipse') THEN 1 ELSE 0 end)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east'", "tokens": ["Among", "the", "trains", "that", "run", "in", "the", "east", "direction", ",", "how", "many", "of", "them", "have", "at", "least", "one", "car", "in", "a", "non", "-", "regular", "shape", "?"], "entities": [{"id": 2, "type": "column", "value": "direction"}, {"id": 4, "type": "column", "value": "train_id"}, {"id": 1, "type": "table", "value": "trains"}, {"id": 9, "type": "value", "value": "bucket"}, {"id": 10, "type": "value", "value": "elipse"}, {"id": 8, "type": "column", "value": "shape"}, {"id": 0, "type": "table", "value": "cars"}, {"id": 3, "type": "value", "value": "east"}, {"id": 5, "type": "column", "value": "id"}, {"id": 6, "type": "value", "value": "0"}, {"id": 7, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [18]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [8]}, {"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": [24]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 14428, "db_id": "movielens", "dber_id": "bird:train.json:2289", "question": "Among the films directed by directors who direct the best, how many of them have an average rating of over 3.5?", "SQL": "SELECT COUNT(*) FROM ( SELECT DISTINCT T2.movieid FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid INNER JOIN u2base AS T3 ON T2.movieid = T3.movieid WHERE T1.d_quality = 5 GROUP BY T2.movieid HAVING AVG(T3.rating) > 3.5 ) AS T1", "tokens": ["Among", "the", "films", "directed", "by", "directors", "who", "direct", "the", "best", ",", "how", "many", "of", "them", "have", "an", "average", "rating", "of", "over", "3.5", "?"], "entities": [{"id": 6, "type": "table", "value": "movies2directors"}, {"id": 8, "type": "column", "value": "directorid"}, {"id": 2, "type": "column", "value": "d_quality"}, {"id": 5, "type": "table", "value": "directors"}, {"id": 0, "type": "column", "value": "movieid"}, {"id": 1, "type": "table", "value": "u2base"}, {"id": 7, "type": "column", "value": "rating"}, {"id": 4, "type": "value", "value": "3.5"}, {"id": 3, "type": "value", "value": "5"}], "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": [21]}, {"entity_id": 5, "token_idxs": [5]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [18]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O"]}
{"question_id": 853, "db_id": "school_finance", "dber_id": "spider:train_spider.json:1888", "question": "What are the total and average enrollment of all schools?", "SQL": "SELECT sum(enrollment) , avg(enrollment) FROM school", "tokens": ["What", "are", "the", "total", "and", "average", "enrollment", "of", "all", "schools", "?"], "entities": [{"id": 1, "type": "column", "value": "enrollment"}, {"id": 0, "type": "table", "value": "school"}], "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": 12834, "db_id": "codebase_community", "dber_id": "bird:dev.json:586", "question": "Which user added a bounty amount of 50 to the post title mentioning variance?", "SQL": "SELECT T3.DisplayName, T1.Title FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId INNER JOIN users AS T3 ON T3.Id = T2.UserId WHERE T2.BountyAmount = 50 AND T1.Title LIKE '%variance%'", "tokens": ["Which", "user", "added", "a", "bounty", "amount", "of", "50", "to", "the", "post", "title", "mentioning", "variance", "?"], "entities": [{"id": 7, "type": "column", "value": "bountyamount"}, {"id": 0, "type": "column", "value": "displayname"}, {"id": 9, "type": "value", "value": "%variance%"}, {"id": 6, "type": "column", "value": "userid"}, {"id": 10, "type": "column", "value": "postid"}, {"id": 1, "type": "column", "value": "title"}, {"id": 2, "type": "table", "value": "users"}, {"id": 3, "type": "table", "value": "posts"}, {"id": 4, "type": "table", "value": "votes"}, {"id": 5, "type": "column", "value": "id"}, {"id": 8, "type": "value", "value": "50"}], "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": [5]}, {"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-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 653, "db_id": "retail_world", "dber_id": "bird:train.json:6405", "question": "Of the 10 products with the highest unit price, identify by their ID the ones that have generated the least satisfaction.", "SQL": "SELECT ProductID FROM Products ORDER BY ReorderLevel ASC, UnitPrice DESC LIMIT 1", "tokens": ["Of", "the", "10", "products", "with", "the", "highest", "unit", "price", ",", "identify", "by", "their", "ID", "the", "ones", "that", "have", "generated", "the", "least", "satisfaction", "."], "entities": [{"id": 2, "type": "column", "value": "reorderlevel"}, {"id": 1, "type": "column", "value": "productid"}, {"id": 3, "type": "column", "value": "unitprice"}, {"id": 0, "type": "table", "value": "products"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [13]}, {"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-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 15514, "db_id": "chicago_crime", "dber_id": "bird:train.json:8662", "question": "How many of the crimes that happened in the street have FBI title \"Homicide 1st & 2nd Degree\"?", "SQL": "SELECT SUM(CASE WHEN T2.location_description = 'STREET' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T1.title = 'Homicide 1st & 2nd Degree'", "tokens": ["How", "many", "of", "the", "crimes", "that", "happened", "in", "the", "street", "have", "FBI", "title", "\"", "Homicide", "1st", "&", "2nd", "Degree", "\"", "?"], "entities": [{"id": 3, "type": "value", "value": "Homicide 1st & 2nd Degree"}, {"id": 7, "type": "column", "value": "location_description"}, {"id": 4, "type": "column", "value": "fbi_code_no"}, {"id": 0, "type": "table", "value": "fbi_code"}, {"id": 8, "type": "value", "value": "STREET"}, {"id": 1, "type": "table", "value": "crime"}, {"id": 2, "type": "column", "value": "title"}, {"id": 5, "type": "value", "value": "0"}, {"id": 6, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": [14, 15, 16, 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": [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", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 964, "db_id": "student_loan", "dber_id": "bird:train.json:4385", "question": "Name all students enlisted in the foreign legion.", "SQL": "SELECT name FROM enlist WHERE organ = 'foreign_legion'", "tokens": ["Name", "all", "students", "enlisted", "in", "the", "foreign", "legion", "."], "entities": [{"id": 3, "type": "value", "value": "foreign_legion"}, {"id": 0, "type": "table", "value": "enlist"}, {"id": 2, "type": "column", "value": "organ"}, {"id": 1, "type": "column", "value": "name"}], "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": [6, 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": ["B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 12863, "db_id": "dorm_1", "dber_id": "spider:train_spider.json:5700", "question": "Find the numbers of different majors and cities.", "SQL": "SELECT count(DISTINCT major) , count(DISTINCT city_code) FROM student", "tokens": ["Find", "the", "numbers", "of", "different", "majors", "and", "cities", "."], "entities": [{"id": 2, "type": "column", "value": "city_code"}, {"id": 0, "type": "table", "value": "student"}, {"id": 1, "type": "column", "value": "major"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [5]}, {"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", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O"]}
{"question_id": 9577, "db_id": "tracking_grants_for_research", "dber_id": "spider:train_spider.json:4350", "question": "How many staff does each project has? List the project id and the number in an ascending order.", "SQL": "SELECT T1.project_id , count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC", "tokens": ["How", "many", "staff", "does", "each", "project", "has", "?", "List", "the", "project", "i", "d", "and", "the", "number", "in", "an", "ascending", "order", "."], "entities": [{"id": 1, "type": "table", "value": "project_staff"}, {"id": 0, "type": "column", "value": "project_id"}, {"id": 2, "type": "table", "value": "projects"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11, 12]}, {"entity_id": 1, "token_idxs": [2, 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", "B-TABLE", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 9638, "db_id": "machine_repair", "dber_id": "spider:train_spider.json:2242", "question": "What are the names of the technicians aged either 36 or 37?", "SQL": "SELECT Name FROM technician WHERE Age = 36 OR Age = 37", "tokens": ["What", "are", "the", "names", "of", "the", "technicians", "aged", "either", "36", "or", "37", "?"], "entities": [{"id": 0, "type": "table", "value": "technician"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "age"}, {"id": 3, "type": "value", "value": "36"}, {"id": 4, "type": "value", "value": "37"}], "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": [9]}, {"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", "B-COLUMN", "O", "B-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 11302, "db_id": "talkingdata", "dber_id": "bird:train.json:1106", "question": "List at least 15 phone models released under the OPPO brand.", "SQL": "SELECT device_model FROM phone_brand_device_model2 WHERE phone_brand = 'OPPO' LIMIT 15", "tokens": ["List", "at", "least", "15", "phone", "models", "released", "under", "the", "OPPO", "brand", "."], "entities": [{"id": 0, "type": "table", "value": "phone_brand_device_model2"}, {"id": 1, "type": "column", "value": "device_model"}, {"id": 2, "type": "column", "value": "phone_brand"}, {"id": 3, "type": "value", "value": "OPPO"}], "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": [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": [11]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "B-VALUE", "O", "O"]}
{"question_id": 14067, "db_id": "menu", "dber_id": "bird:train.json:5542", "question": "How many menus sponsored by Krogs Fiske Restaurant were created in April 2015?", "SQL": "SELECT COUNT(*) FROM Menu WHERE date LIKE '2015-04%' AND sponsor = 'Krogs Fiskerestaurant'", "tokens": ["How", "many", "menus", "sponsored", "by", "Krogs", "Fiske", "Restaurant", "were", "created", "in", "April", "2015", "?"], "entities": [{"id": 4, "type": "value", "value": "Krogs Fiskerestaurant"}, {"id": 2, "type": "value", "value": "2015-04%"}, {"id": 3, "type": "column", "value": "sponsor"}, {"id": 0, "type": "table", "value": "menu"}, {"id": 1, "type": "column", "value": "date"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [11, 12]}, {"entity_id": 3, "token_idxs": [3]}, {"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", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 4065, "db_id": "video_games", "dber_id": "bird:train.json:3322", "question": "How many games were sold on the DS platform on average in the 4 different regions?", "SQL": "SELECT SUM(T1.num_sales) * 100000 / 4 FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id INNER JOIN platform AS T3 ON T2.platform_id = T3.id WHERE T3.platform_name = 'DS'", "tokens": ["How", "many", "games", "were", "sold", "on", "the", "DS", "platform", "on", "average", "in", "the", "4", "different", "regions", "?"], "entities": [{"id": 9, "type": "column", "value": "game_platform_id"}, {"id": 1, "type": "column", "value": "platform_name"}, {"id": 5, "type": "table", "value": "game_platform"}, {"id": 4, "type": "table", "value": "region_sales"}, {"id": 6, "type": "column", "value": "platform_id"}, {"id": 10, "type": "column", "value": "num_sales"}, {"id": 0, "type": "table", "value": "platform"}, {"id": 8, "type": "value", "value": "100000"}, {"id": 2, "type": "value", "value": "DS"}, {"id": 7, "type": "column", "value": "id"}, {"id": 3, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": [15]}, {"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-TABLE", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "B-TABLE", "O"]}
{"question_id": 10706, "db_id": "party_people", "dber_id": "spider:train_spider.json:2045", "question": "Show the ministers and the time they took and left office, listed by the time they left office.", "SQL": "SELECT minister , took_office , left_office FROM party ORDER BY left_office", "tokens": ["Show", "the", "ministers", "and", "the", "time", "they", "took", "and", "left", "office", ",", "listed", "by", "the", "time", "they", "left", "office", "."], "entities": [{"id": 2, "type": "column", "value": "took_office"}, {"id": 3, "type": "column", "value": "left_office"}, {"id": 1, "type": "column", "value": "minister"}, {"id": 0, "type": "table", "value": "party"}], "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": [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", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 6201, "db_id": "baseball_1", "dber_id": "spider:train_spider.json:3652", "question": "What are the first name and last name of the players whose death record is empty?", "SQL": "SELECT name_first , name_last FROM player WHERE death_year = '';", "tokens": ["What", "are", "the", "first", "name", "and", "last", "name", "of", "the", "players", "whose", "death", "record", "is", "empty", "?"], "entities": [{"id": 1, "type": "column", "value": "name_first"}, {"id": 3, "type": "column", "value": "death_year"}, {"id": 2, "type": "column", "value": "name_last"}, {"id": 0, "type": "table", "value": "player"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [10]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [6, 7]}, {"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", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O"]}
{"question_id": 1889, "db_id": "bakery_1", "dber_id": "bird:test.json:1511", "question": "Find the receipt numbers where both Cake and Cookie were bought.", "SQL": "SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = \"Cake\" INTERSECT SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = \"Cookie\"", "tokens": ["Find", "the", "receipt", "numbers", "where", "both", "Cake", "and", "Cookie", "were", "bought", "."], "entities": [{"id": 0, "type": "column", "value": "receipt"}, {"id": 5, "type": "column", "value": "Cookie"}, {"id": 1, "type": "table", "value": "items"}, {"id": 2, "type": "table", "value": "goods"}, {"id": 3, "type": "column", "value": "food"}, {"id": 4, "type": "column", "value": "Cake"}, {"id": 6, "type": "column", "value": "item"}, {"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": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [6]}, {"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-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "O"]}
{"question_id": 4082, "db_id": "food_inspection", "dber_id": "bird:train.json:8827", "question": "Describe the inspection types and violation descriptions under moderate risk category for ART's CAFÉ.", "SQL": "SELECT DISTINCT T2.type, T1.description FROM violations AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id INNER JOIN businesses AS T3 ON T2.business_id = T3.business_id WHERE T3.name = 'ART''S CAFÉ' AND T1.risk_category = 'Moderate Risk'", "tokens": ["Describe", "the", "inspection", "types", "and", "violation", "descriptions", "under", "moderate", "risk", "category", "for", "ART", "'s", "CAFÉ", "."], "entities": [{"id": 8, "type": "column", "value": "risk_category"}, {"id": 9, "type": "value", "value": "Moderate Risk"}, {"id": 1, "type": "column", "value": "description"}, {"id": 4, "type": "table", "value": "inspections"}, {"id": 5, "type": "column", "value": "business_id"}, {"id": 2, "type": "table", "value": "businesses"}, {"id": 3, "type": "table", "value": "violations"}, {"id": 7, "type": "value", "value": "ART'S CAFÉ"}, {"id": 0, "type": "column", "value": "type"}, {"id": 6, "type": "column", "value": "name"}], "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": [5]}, {"entity_id": 4, "token_idxs": [2]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [12, 13, 14]}, {"entity_id": 8, "token_idxs": [10]}, {"entity_id": 9, "token_idxs": [8, 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-TABLE", "B-COLUMN", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O"]}
{"question_id": 15922, "db_id": "cs_semester", "dber_id": "bird:train.json:854", "question": "Which course is more difficult, Intro to BlockChain or Computer Network?", "SQL": "SELECT name FROM course WHERE name = 'Intro to BlockChain' OR name = 'Computer Network' ORDER BY diff DESC LIMIT 1", "tokens": ["Which", "course", "is", "more", "difficult", ",", "Intro", "to", "BlockChain", "or", "Computer", "Network", "?"], "entities": [{"id": 3, "type": "value", "value": "Intro to BlockChain"}, {"id": 4, "type": "value", "value": "Computer Network"}, {"id": 0, "type": "table", "value": "course"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "diff"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": [6, 7, 8]}, {"entity_id": 4, "token_idxs": [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", "B-TABLE", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 14369, "db_id": "movies_4", "dber_id": "bird:train.json:488", "question": "Look for the movie title with the keyword of \"angel\".", "SQL": "SELECT T1.title FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'angel'", "tokens": ["Look", "for", "the", "movie", "title", "with", "the", "keyword", "of", "\"", "angel", "\"", "."], "entities": [{"id": 5, "type": "table", "value": "movie_keywords"}, {"id": 2, "type": "column", "value": "keyword_name"}, {"id": 6, "type": "column", "value": "keyword_id"}, {"id": 7, "type": "column", "value": "movie_id"}, {"id": 1, "type": "table", "value": "keyword"}, {"id": 0, "type": "column", "value": "title"}, {"id": 3, "type": "value", "value": "angel"}, {"id": 4, "type": "table", "value": "movie"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [7]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10]}, {"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-TABLE", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 15085, "db_id": "college_2", "dber_id": "spider:train_spider.json:1350", "question": "How many different instructors have taught some course?", "SQL": "SELECT COUNT (DISTINCT id) FROM teaches", "tokens": ["How", "many", "different", "instructors", "have", "taught", "some", "course", "?"], "entities": [{"id": 0, "type": "table", "value": "teaches"}, {"id": 1, "type": "column", "value": "id"}], "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", "O", "O"]}
{"question_id": 12757, "db_id": "software_company", "dber_id": "bird:train.json:8566", "question": "Among the female customers with an level of education of 3 and below, list their income.", "SQL": "SELECT INCOME_K FROM Demog WHERE GEOID IN ( SELECT GEOID FROM Customers WHERE EDUCATIONNUM < 3 AND SEX = 'Female' )", "tokens": ["Among", "the", "female", "customers", "with", "an", "level", "of", "education", "of", "3", "and", "below", ",", "list", "their", "income", "."], "entities": [{"id": 4, "type": "column", "value": "educationnum"}, {"id": 3, "type": "table", "value": "customers"}, {"id": 1, "type": "column", "value": "income_k"}, {"id": 7, "type": "value", "value": "Female"}, {"id": 0, "type": "table", "value": "demog"}, {"id": 2, "type": "column", "value": "geoid"}, {"id": 6, "type": "column", "value": "sex"}, {"id": 5, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [16]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [3]}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": [10]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [2]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 12461, "db_id": "european_football_2", "dber_id": "bird:dev.json:1103", "question": "What was the overall rating for Aaron Mooy on 2016/2/4?", "SQL": "SELECT t2.overall_rating 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) = '2016-02-04' AND t1.player_name = 'Aaron Mooy'", "tokens": ["What", "was", "the", "overall", "rating", "for", "Aaron", "Mooy", "on", "2016/2/4", "?"], "entities": [{"id": 2, "type": "table", "value": "player_attributes"}, {"id": 0, "type": "column", "value": "overall_rating"}, {"id": 3, "type": "column", "value": "player_api_id"}, {"id": 5, "type": "column", "value": "player_name"}, {"id": 4, "type": "value", "value": "2016-02-04"}, {"id": 6, "type": "value", "value": "Aaron Mooy"}, {"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": []}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [4]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [9]}, {"entity_id": 6, "token_idxs": [6]}, {"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", "B-TABLE", "O", "O", "B-TABLE", "O", "B-VALUE", "O", "B-COLUMN", "B-COLUMN", "O"]}
{"question_id": 14196, "db_id": "school_player", "dber_id": "spider:train_spider.json:4874", "question": "Find the team of the player of the highest age.", "SQL": "SELECT Team FROM player ORDER BY Age DESC LIMIT 1", "tokens": ["Find", "the", "team", "of", "the", "player", "of", "the", "highest", "age", "."], "entities": [{"id": 0, "type": "table", "value": "player"}, {"id": 1, "type": "column", "value": "team"}, {"id": 2, "type": "column", "value": "age"}], "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": []}, {"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"]}
{"question_id": 13899, "db_id": "music_1", "dber_id": "spider:train_spider.json:3575", "question": "List the name and gender for all artists who released songs in March.", "SQL": "SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE \"%Mar%\"", "tokens": ["List", "the", "name", "and", "gender", "for", "all", "artists", "who", "released", "songs", "in", "March", "."], "entities": [{"id": 0, "type": "column", "value": "artist_name"}, {"id": 4, "type": "column", "value": "releasedate"}, {"id": 1, "type": "column", "value": "gender"}, {"id": 2, "type": "table", "value": "artist"}, {"id": 5, "type": "column", "value": "%Mar%"}, {"id": 3, "type": "table", "value": "song"}], "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": [10]}, {"entity_id": 4, "token_idxs": [9]}, {"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", "O", "B-TABLE", "O", "B-COLUMN", "B-TABLE", "O", "B-COLUMN", "O"]}
{"question_id": 14114, "db_id": "genes", "dber_id": "bird:train.json:2494", "question": "What are the functions of the pair of genes that have the lowest expression correlation score?a", "SQL": "SELECT T1.Function FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 ORDER BY T2.Expression_Corr ASC LIMIT 1", "tokens": ["What", "are", "the", "functions", "of", "the", "pair", "of", "genes", "that", "have", "the", "lowest", "expression", "correlation", "score?a"], "entities": [{"id": 3, "type": "column", "value": "expression_corr"}, {"id": 2, "type": "table", "value": "interactions"}, {"id": 0, "type": "column", "value": "function"}, {"id": 5, "type": "column", "value": "geneid1"}, {"id": 4, "type": "column", "value": "geneid"}, {"id": 1, "type": "table", "value": "genes"}], "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": [13, 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", "B-COLUMN", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 1584, "db_id": "soccer_2016", "dber_id": "bird:train.json:1976", "question": "Who is the eldest player and where did he/she come from?", "SQL": "SELECT T1.Player_Name, T2.Country_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id ORDER BY T1.DOB LIMIT 1", "tokens": ["Who", "is", "the", "eldest", "player", "and", "where", "did", "he", "/", "she", "come", "from", "?"], "entities": [{"id": 1, "type": "column", "value": "country_name"}, {"id": 0, "type": "column", "value": "player_name"}, {"id": 5, "type": "column", "value": "country_id"}, {"id": 3, "type": "table", "value": "country"}, {"id": 2, "type": "table", "value": "player"}, {"id": 4, "type": "column", "value": "dob"}], "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": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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"]}
{"question_id": 3652, "db_id": "language_corpus", "dber_id": "bird:train.json:5727", "question": "Calculate the average number of repetitions in the pairs of words in which the first word id is number 34.", "SQL": "SELECT CAST(SUM(CASE WHEN w1st = 34 THEN 1 ELSE 0 END) AS REAL) / COUNT(w1st) FROM biwords", "tokens": ["Calculate", "the", "average", "number", "of", "repetitions", "in", "the", "pairs", "of", "words", "in", "which", "the", "first", "word", "i", "d", "is", "number", "34", "."], "entities": [{"id": 0, "type": "table", "value": "biwords"}, {"id": 1, "type": "column", "value": "w1st"}, {"id": 4, "type": "value", "value": "34"}, {"id": 2, "type": "value", "value": "0"}, {"id": 3, "type": "value", "value": "1"}], "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": [20]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 6371, "db_id": "airline", "dber_id": "bird:train.json:5872", "question": "Please list any three airports with their codes.", "SQL": "SELECT Code, Description FROM Airports LIMIT 3", "tokens": ["Please", "list", "any", "three", "airports", "with", "their", "codes", "."], "entities": [{"id": 2, "type": "column", "value": "description"}, {"id": 0, "type": "table", "value": "airports"}, {"id": 1, "type": "column", "value": "code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"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", "B-TABLE", "O", "O", "B-COLUMN", "O"]}
{"question_id": 4345, "db_id": "legislator", "dber_id": "bird:train.json:4839", "question": "What is the party and state of the legislator that has an open secrets ID of N00003689 and thomas ID of 186?", "SQL": "SELECT T2.party, T2.state FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.opensecrets_id = 'N00003689' AND T1.thomas_id = 186 GROUP BY T2.party, T2.state", "tokens": ["What", "is", "the", "party", "and", "state", "of", "the", "legislator", "that", "has", "an", "open", "secrets", "ID", "of", "N00003689", "and", "thomas", "ID", "of", "186", "?"], "entities": [{"id": 6, "type": "column", "value": "opensecrets_id"}, {"id": 3, "type": "table", "value": "current-terms"}, {"id": 4, "type": "column", "value": "bioguide_id"}, {"id": 7, "type": "value", "value": "N00003689"}, {"id": 8, "type": "column", "value": "thomas_id"}, {"id": 5, "type": "column", "value": "bioguide"}, {"id": 2, "type": "table", "value": "current"}, {"id": 0, "type": "column", "value": "party"}, {"id": 1, "type": "column", "value": "state"}, {"id": 9, "type": "value", "value": "186"}], "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": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [12, 13, 14]}, {"entity_id": 7, "token_idxs": [16]}, {"entity_id": 8, "token_idxs": [18, 19]}, {"entity_id": 9, "token_idxs": [21]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-VALUE", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O"]}
{"question_id": 14024, "db_id": "customer_complaints", "dber_id": "spider:train_spider.json:5787", "question": "Return the description of the product called \"Chocolate\".", "SQL": "SELECT product_description FROM products WHERE product_name = \"Chocolate\"", "tokens": ["Return", "the", "description", "of", "the", "product", "called", "\"", "Chocolate", "\"", "."], "entities": [{"id": 1, "type": "column", "value": "product_description"}, {"id": 2, "type": "column", "value": "product_name"}, {"id": 3, "type": "column", "value": "Chocolate"}, {"id": 0, "type": "table", "value": "products"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [3, 4, 5]}, {"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", "O", "O", "O", "O", "O", "O"]}
{"question_id": 11216, "db_id": "formula_1", "dber_id": "spider:train_spider.json:2217", "question": "Find the names of Japanese constructors that have once earned more than 5 points?", "SQL": "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5", "tokens": ["Find", "the", "names", "of", "Japanese", "constructors", "that", "have", "once", "earned", "more", "than", "5", "points", "?"], "entities": [{"id": 2, "type": "table", "value": "constructorstandings"}, {"id": 3, "type": "column", "value": "constructorid"}, {"id": 1, "type": "table", "value": "constructors"}, {"id": 4, "type": "column", "value": "nationality"}, {"id": 5, "type": "column", "value": "Japanese"}, {"id": 6, "type": "column", "value": "points"}, {"id": 0, "type": "column", "value": "name"}, {"id": 7, "type": "value", "value": "5"}], "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": [4]}, {"entity_id": 6, "token_idxs": [13]}, {"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", "B-COLUMN", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O"]}
{"question_id": 1638, "db_id": "beer_factory", "dber_id": "bird:train.json:5267", "question": "What is the name of the brand of the beer with the shortest brewed history?", "SQL": "SELECT BrandName FROM rootbeerbrand ORDER BY FirstBrewedYear DESC LIMIT 1", "tokens": ["What", "is", "the", "name", "of", "the", "brand", "of", "the", "beer", "with", "the", "shortest", "brewed", "history", "?"], "entities": [{"id": 2, "type": "column", "value": "firstbrewedyear"}, {"id": 0, "type": "table", "value": "rootbeerbrand"}, {"id": 1, "type": "column", "value": "brandname"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-TABLE", "O", "O", "O", "O"]}
{"question_id": 6790, "db_id": "workshop_paper", "dber_id": "spider:train_spider.json:5816", "question": "List the authors of submissions in ascending order of scores.", "SQL": "SELECT Author FROM submission ORDER BY Scores ASC", "tokens": ["List", "the", "authors", "of", "submissions", "in", "ascending", "order", "of", "scores", "."], "entities": [{"id": 0, "type": "table", "value": "submission"}, {"id": 1, "type": "column", "value": "author"}, {"id": 2, "type": "column", "value": "scores"}], "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": 5421, "db_id": "customers_and_products_contacts", "dber_id": "spider:train_spider.json:5666", "question": "What are the name and phone of the customer with the most ordered product quantity?", "SQL": "SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY sum(T3.order_quantity) DESC LIMIT 1", "tokens": ["What", "are", "the", "name", "and", "phone", "of", "the", "customer", "with", "the", "most", "ordered", "product", "quantity", "?"], "entities": [{"id": 5, "type": "table", "value": "customer_orders"}, {"id": 2, "type": "column", "value": "customer_phone"}, {"id": 7, "type": "column", "value": "order_quantity"}, {"id": 1, "type": "column", "value": "customer_name"}, {"id": 0, "type": "column", "value": "customer_id"}, {"id": 3, "type": "table", "value": "order_items"}, {"id": 4, "type": "table", "value": "customers"}, {"id": 6, "type": "column", "value": "order_id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5, 6, 7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [12]}, {"entity_id": 7, "token_idxs": [14]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "I-COLUMN", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O"]}
{"question_id": 5138, "db_id": "cre_Doc_and_collections", "dber_id": "bird:test.json:684", "question": "What is the number of child documents for each parent document, and what are the ids of the parent documents?", "SQL": "SELECT T2.Document_Object_ID , count(*) FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID GROUP BY T2.Document_Object_ID;", "tokens": ["What", "is", "the", "number", "of", "child", "documents", "for", "each", "parent", "document", ",", "and", "what", "are", "the", "ids", "of", "the", "parent", "documents", "?"], "entities": [{"id": 2, "type": "column", "value": "parent_document_object_id"}, {"id": 0, "type": "column", "value": "document_object_id"}, {"id": 1, "type": "table", "value": "document_objects"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9]}, {"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", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 10958, "db_id": "election", "dber_id": "spider:train_spider.json:2769", "question": "Find the parties associated with the delegates from district 1. Who served as governors of the parties?", "SQL": "SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1", "tokens": ["Find", "the", "parties", "associated", "with", "the", "delegates", "from", "district", "1", ".", "Who", "served", "as", "governors", "of", "the", "parties", "?"], "entities": [{"id": 0, "type": "column", "value": "governor"}, {"id": 1, "type": "table", "value": "election"}, {"id": 3, "type": "column", "value": "district"}, {"id": 6, "type": "column", "value": "party_id"}, {"id": 2, "type": "table", "value": "party"}, {"id": 5, "type": "column", "value": "party"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": [9]}, {"entity_id": 5, "token_idxs": [2]}, {"entity_id": 6, "token_idxs": [17]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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-COLUMN", "B-VALUE", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O"]}
{"question_id": 7144, "db_id": "match_season", "dber_id": "spider:train_spider.json:1072", "question": "Show the season, the player, and the name of the country that player belongs to.", "SQL": "SELECT T2.Season , T2.Player , T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country", "tokens": ["Show", "the", "season", ",", "the", "player", ",", "and", "the", "name", "of", "the", "country", "that", "player", "belongs", "to", "."], "entities": [{"id": 2, "type": "column", "value": "country_name"}, {"id": 4, "type": "table", "value": "match_season"}, {"id": 5, "type": "column", "value": "country_id"}, {"id": 3, "type": "table", "value": "country"}, {"id": 6, "type": "column", "value": "country"}, {"id": 0, "type": "column", "value": "season"}, {"id": 1, "type": "column", "value": "player"}], "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": [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", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O"]}
{"question_id": 7177, "db_id": "european_football_2", "dber_id": "bird:dev.json:1114", "question": "What was the average overall rating for Marko Arnautovic from 2007/2/22 to 2016/4/21?", "SQL": "SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE t1.player_name = 'Marko Arnautovic' AND SUBSTR(t2.`date`, 1, 10) BETWEEN '2007-02-22' AND '2016-04-21'", "tokens": ["What", "was", "the", "average", "overall", "rating", "for", "Marko", "Arnautovic", "from", "2007/2/22", "to", "2016/4/21", "?"], "entities": [{"id": 2, "type": "column", "value": "player_fifa_api_id"}, {"id": 1, "type": "table", "value": "player_attributes"}, {"id": 4, "type": "value", "value": "Marko Arnautovic"}, {"id": 11, "type": "column", "value": "overall_rating"}, {"id": 3, "type": "column", "value": "player_name"}, {"id": 5, "type": "value", "value": "2007-02-22"}, {"id": 6, "type": "value", "value": "2016-04-21"}, {"id": 0, "type": "table", "value": "player"}, {"id": 8, "type": "column", "value": "date"}, {"id": 7, "type": "column", "value": "id"}, {"id": 10, "type": "value", "value": "10"}, {"id": 9, "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": [7, 8]}, {"entity_id": 5, "token_idxs": [10]}, {"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": [4, 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", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "B-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 7206, "db_id": "customers_card_transactions", "dber_id": "spider:train_spider.json:718", "question": "Return the id and full name of the customer who has the fewest accounts.", "SQL": "SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1", "tokens": ["Return", "the", "i", "d", "and", "full", "name", "of", "the", "customer", "who", "has", "the", "fewest", "accounts", "."], "entities": [{"id": 1, "type": "column", "value": "customer_first_name"}, {"id": 2, "type": "column", "value": "customer_last_name"}, {"id": 3, "type": "table", "value": "customers_cards"}, {"id": 0, "type": "column", "value": "customer_id"}, {"id": 4, "type": "table", "value": "customers"}], "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": [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-TABLE", "O", "O", "O", "O", "O", "O"]}
{"question_id": 15627, "db_id": "headphone_store", "dber_id": "bird:test.json:926", "question": "Find the headphone class that does not contain more than two headphones.", "SQL": "SELECT CLASS FROM headphone GROUP BY CLASS HAVING count(*) > 2", "tokens": ["Find", "the", "headphone", "class", "that", "does", "not", "contain", "more", "than", "two", "headphones", "."], "entities": [{"id": 0, "type": "table", "value": "headphone"}, {"id": 1, "type": "column", "value": "class"}, {"id": 2, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [10]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [12]}, {"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", "B-TABLE", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 6232, "db_id": "airline", "dber_id": "bird:train.json:5854", "question": "How many flights departed on time on 8/1/2018?", "SQL": "SELECT COUNT(*) FROM Airlines WHERE FL_DATE = '2018/8/1' AND DEP_DELAY <= 0", "tokens": ["How", "many", "flights", "departed", "on", "time", "on", "8/1/2018", "?"], "entities": [{"id": 3, "type": "column", "value": "dep_delay"}, {"id": 0, "type": "table", "value": "airlines"}, {"id": 2, "type": "value", "value": "2018/8/1"}, {"id": 1, "type": "column", "value": "fl_date"}, {"id": 4, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [7]}, {"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-COLUMN", "B-COLUMN", "O", "O", "O", "B-VALUE", "O"]}
{"question_id": 14242, "db_id": "retail_world", "dber_id": "bird:train.json:6652", "question": "Name the shipper which had the most shipments in first quarter of 1998.", "SQL": "SELECT T1.CompanyName FROM Shippers AS T1 INNER JOIN Orders AS T2 ON T1.ShipperID = T2.ShipVia WHERE STRFTIME('%Y', T2.ShippedDate) = '1998' GROUP BY T1.CompanyName ORDER BY COUNT(T2.OrderID) DESC LIMIT 1", "tokens": ["Name", "the", "shipper", "which", "had", "the", "most", "shipments", "in", "first", "quarter", "of", "1998", "."], "entities": [{"id": 0, "type": "column", "value": "companyname"}, {"id": 7, "type": "column", "value": "shippeddate"}, {"id": 4, "type": "column", "value": "shipperid"}, {"id": 1, "type": "table", "value": "shippers"}, {"id": 5, "type": "column", "value": "shipvia"}, {"id": 8, "type": "column", "value": "orderid"}, {"id": 2, "type": "table", "value": "orders"}, {"id": 3, "type": "value", "value": "1998"}, {"id": 6, "type": "value", "value": "%Y"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"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": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-VALUE", "O"]}
{"question_id": 2607, "db_id": "college_2", "dber_id": "spider:train_spider.json:1341", "question": "Count the number of courses in the Physics department.", "SQL": "SELECT count(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'", "tokens": ["Count", "the", "number", "of", "courses", "in", "the", "Physics", "department", "."], "entities": [{"id": 1, "type": "column", "value": "dept_name"}, {"id": 3, "type": "column", "value": "course_id"}, {"id": 2, "type": "value", "value": "Physics"}, {"id": 0, "type": "table", "value": "course"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [8]}, {"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", "O", "B-TABLE", "O", "O", "B-VALUE", "B-COLUMN", "O"]}
{"question_id": 6797, "db_id": "behavior_monitoring", "dber_id": "spider:train_spider.json:3086", "question": "How many assessment notes are there in total?", "SQL": "SELECT count(*) FROM ASSESSMENT_NOTES", "tokens": ["How", "many", "assessment", "notes", "are", "there", "in", "total", "?"], "entities": [{"id": 0, "type": "table", "value": "assessment_notes"}], "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", "O", "O"]}
{"question_id": 5313, "db_id": "movies_4", "dber_id": "bird:train.json:477", "question": "What are the genres of Sky Captain and the World of Tomorrow?", "SQL": "SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.title = 'Sky Captain and the World of Tomorrow'", "tokens": ["What", "are", "the", "genres", "of", "Sky", "Captain", "and", "the", "World", "of", "Tomorrow", "?"], "entities": [{"id": 3, "type": "value", "value": "Sky Captain and the World of Tomorrow"}, {"id": 5, "type": "table", "value": "movie_genres"}, {"id": 0, "type": "column", "value": "genre_name"}, {"id": 6, "type": "column", "value": "genre_id"}, {"id": 7, "type": "column", "value": "movie_id"}, {"id": 1, "type": "table", "value": "genre"}, {"id": 2, "type": "column", "value": "title"}, {"id": 4, "type": "table", "value": "movie"}], "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, 7, 8, 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": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O"]}
{"question_id": 9863, "db_id": "formula_1", "dber_id": "bird:dev.json:972", "question": "Which drivers who were born in 1971 and has the fastest lap time on the race? Give id and code of these drivers.", "SQL": "SELECT T2.driverId, T2.code FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE STRFTIME('%Y', T2.dob) = '1971' AND T1.fastestLapTime IS NOT NULL", "tokens": ["Which", "drivers", "who", "were", "born", "in", "1971", "and", "has", "the", "fastest", "lap", "time", "on", "the", "race", "?", "Give", "i", "d", "and", "code", "of", "these", "drivers", "."], "entities": [{"id": 5, "type": "column", "value": "fastestlaptime"}, {"id": 0, "type": "column", "value": "driverid"}, {"id": 2, "type": "table", "value": "results"}, {"id": 3, "type": "table", "value": "drivers"}, {"id": 1, "type": "column", "value": "code"}, {"id": 4, "type": "value", "value": "1971"}, {"id": 7, "type": "column", "value": "dob"}, {"id": 6, "type": "value", "value": "%Y"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1, 18, 19]}, {"entity_id": 1, "token_idxs": [21]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [24]}, {"entity_id": 4, "token_idxs": [6]}, {"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", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O"]}
{"question_id": 13130, "db_id": "music_2", "dber_id": "spider:train_spider.json:5247", "question": "What types of vocals are used in the song \"Badlands\"?", "SQL": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"", "tokens": ["What", "types", "of", "vocals", "are", "used", "in", "the", "song", "\"", "Badlands", "\"", "?"], "entities": [{"id": 4, "type": "column", "value": "Badlands"}, {"id": 1, "type": "table", "value": "vocals"}, {"id": 5, "type": "column", "value": "songid"}, {"id": 2, "type": "table", "value": "songs"}, {"id": 3, "type": "column", "value": "title"}, {"id": 0, "type": "column", "value": "type"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"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", "O", "O", "B-TABLE", "O", "B-COLUMN", "O", "O"]}
{"question_id": 7449, "db_id": "cookbook", "dber_id": "bird:train.json:8893", "question": "How many ingredients are there in the recipe that is best in helping your body's natural defence against illness and infection?", "SQL": "SELECT COUNT(*) FROM Nutrition AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.vitamin_a > 0", "tokens": ["How", "many", "ingredients", "are", "there", "in", "the", "recipe", "that", "is", "best", "in", "helping", "your", "body", "'s", "natural", "defence", "against", "illness", "and", "infection", "?"], "entities": [{"id": 0, "type": "table", "value": "nutrition"}, {"id": 2, "type": "column", "value": "vitamin_a"}, {"id": 4, "type": "column", "value": "recipe_id"}, {"id": 1, "type": "table", "value": "quantity"}, {"id": 3, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [21]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-TABLE", "O"]}
{"question_id": 3432, "db_id": "university", "dber_id": "bird:train.json:8088", "question": "Which country is University of Veterinary Medicine Vienna located in? Give its country id.", "SQL": "SELECT country_id FROM university WHERE university_name = 'University of Veterinary Medicine Vienna'", "tokens": ["Which", "country", "is", "University", "of", "Veterinary", "Medicine", "Vienna", "located", "in", "?", "Give", "its", "country", "i", "d."], "entities": [{"id": 3, "type": "value", "value": "University of Veterinary Medicine Vienna"}, {"id": 2, "type": "column", "value": "university_name"}, {"id": 0, "type": "table", "value": "university"}, {"id": 1, "type": "column", "value": "country_id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [13, 14, 15]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [4, 5, 6, 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-TABLE", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN"]}
{"question_id": 2677, "db_id": "movie_3", "dber_id": "bird:train.json:9394", "question": "Who are the actors starred in the film \"Bound Cheaper\"?", "SQL": "SELECT T1.first_name, T1.last_name 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 T3.title = 'BOUND CHEAPER'", "tokens": ["Who", "are", "the", "actors", "starred", "in", "the", "film", "\"", "Bound", "Cheaper", "\"", "?"], "entities": [{"id": 4, "type": "value", "value": "BOUND CHEAPER"}, {"id": 0, "type": "column", "value": "first_name"}, {"id": 6, "type": "table", "value": "film_actor"}, {"id": 1, "type": "column", "value": "last_name"}, {"id": 8, "type": "column", "value": "actor_id"}, {"id": 7, "type": "column", "value": "film_id"}, {"id": 3, "type": "column", "value": "title"}, {"id": 5, "type": "table", "value": "actor"}, {"id": 2, "type": "table", "value": "film"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [9, 10]}, {"entity_id": 5, "token_idxs": [3]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-TABLE", "O", "B-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 8238, "db_id": "baseball_1", "dber_id": "spider:train_spider.json:3649", "question": "List three countries which are the origins of the least players.", "SQL": "SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;", "tokens": ["List", "three", "countries", "which", "are", "the", "origins", "of", "the", "least", "players", "."], "entities": [{"id": 1, "type": "column", "value": "birth_country"}, {"id": 0, "type": "table", "value": "player"}], "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": [7]}, {"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", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-TABLE", "O", "O"]}
{"question_id": 2704, "db_id": "farm", "dber_id": "spider:train_spider.json:32", "question": "List the official name and status of the city with the largest population.", "SQL": "SELECT Official_Name , Status FROM city ORDER BY Population DESC LIMIT 1", "tokens": ["List", "the", "official", "name", "and", "status", "of", "the", "city", "with", "the", "largest", "population", "."], "entities": [{"id": 1, "type": "column", "value": "official_name"}, {"id": 3, "type": "column", "value": "population"}, {"id": 2, "type": "column", "value": "status"}, {"id": 0, "type": "table", "value": "city"}], "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": [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", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 10485, "db_id": "movies_4", "dber_id": "bird:train.json:556", "question": "What keyword can the user use to search for the movie Finding Nemo?", "SQL": "SELECT T3.keyword_name FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T1.title = 'Finding Nemo'", "tokens": ["What", "keyword", "can", "the", "user", "use", "to", "search", "for", "the", "movie", "Finding", "Nemo", "?"], "entities": [{"id": 5, "type": "table", "value": "movie_keywords"}, {"id": 0, "type": "column", "value": "keyword_name"}, {"id": 3, "type": "value", "value": "Finding Nemo"}, {"id": 6, "type": "column", "value": "keyword_id"}, {"id": 7, "type": "column", "value": "movie_id"}, {"id": 1, "type": "table", "value": "keyword"}, {"id": 2, "type": "column", "value": "title"}, {"id": 4, "type": "table", "value": "movie"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": []}, {"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-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 10684, "db_id": "phone_1", "dber_id": "spider:train_spider.json:1023", "question": "the names of models that launched between 2002 and 2004.", "SQL": "SELECT Model_name FROM chip_model WHERE Launch_year BETWEEN 2002 AND 2004;", "tokens": ["the", "names", "of", "models", "that", "launched", "between", "2002", "and", "2004", "."], "entities": [{"id": 2, "type": "column", "value": "launch_year"}, {"id": 0, "type": "table", "value": "chip_model"}, {"id": 1, "type": "column", "value": "model_name"}, {"id": 3, "type": "value", "value": "2002"}, {"id": 4, "type": "value", "value": "2004"}], "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": []}, {"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", "O"]}
{"question_id": 3527, "db_id": "soccer_2016", "dber_id": "bird:train.json:2010", "question": "List the name of England players.", "SQL": "SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE T2.Country_Name = 'England'", "tokens": ["List", "the", "name", "of", "England", "players", "."], "entities": [{"id": 3, "type": "column", "value": "country_name"}, {"id": 0, "type": "column", "value": "player_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": "player"}], "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": [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-VALUE", "B-TABLE", "O"]}
{"question_id": 8085, "db_id": "retails", "dber_id": "bird:train.json:6870", "question": "What is the lowest supply cost for the part \"hot spring dodger dim light\"?", "SQL": "SELECT MIN(T1.ps_supplycost) FROM partsupp AS T1 INNER JOIN part AS T2 ON T1.ps_partkey = T2.p_partkey WHERE T2.p_name = 'hot spring dodger dim light'", "tokens": ["What", "is", "the", "lowest", "supply", "cost", "for", "the", "part", "\"", "hot", "spring", "dodger", "dim", "light", "\"", "?"], "entities": [{"id": 3, "type": "value", "value": "hot spring dodger dim light"}, {"id": 4, "type": "column", "value": "ps_supplycost"}, {"id": 5, "type": "column", "value": "ps_partkey"}, {"id": 6, "type": "column", "value": "p_partkey"}, {"id": 0, "type": "table", "value": "partsupp"}, {"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": [8]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [10, 11, 12, 13, 14]}, {"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", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 514, "db_id": "retail_world", "dber_id": "bird:train.json:6346", "question": "Give the reorder level for the products from the supplier \"Nord-Ost-Fisch Handelsgesellschaft mbH\".", "SQL": "SELECT T1.ReorderLevel FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Nord-Ost-Fisch Handelsgesellschaft mbH'", "tokens": ["Give", "the", "reorder", "level", "for", "the", "products", "from", "the", "supplier", "\"", "Nord", "-", "Ost", "-", "Fisch", "Handelsgesellschaft", "mbH", "\"", "."], "entities": [{"id": 4, "type": "value", "value": "Nord-Ost-Fisch Handelsgesellschaft mbH"}, {"id": 0, "type": "column", "value": "reorderlevel"}, {"id": 3, "type": "column", "value": "companyname"}, {"id": 5, "type": "column", "value": "supplierid"}, {"id": 2, "type": "table", "value": "suppliers"}, {"id": 1, "type": "table", "value": "products"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": [9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [11, 12, 13, 14, 15, 16, 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", "B-COLUMN", "I-COLUMN", "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": 10960, "db_id": "cre_Drama_Workshop_Groups", "dber_id": "spider:train_spider.json:5123", "question": "Find the states or counties where the stores with marketing region code \"CA\" are located.", "SQL": "SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = \"CA\"", "tokens": ["Find", "the", "states", "or", "counties", "where", "the", "stores", "with", "marketing", "region", "code", "\"", "CA", "\"", "are", "located", "."], "entities": [{"id": 3, "type": "column", "value": "marketing_region_code"}, {"id": 0, "type": "column", "value": "state_county"}, {"id": 5, "type": "column", "value": "address_id"}, {"id": 1, "type": "table", "value": "addresses"}, {"id": 2, "type": "table", "value": "stores"}, {"id": 4, "type": "column", "value": "CA"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 4]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [9, 10, 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", "O", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O"]}
{"question_id": 11690, "db_id": "financial", "dber_id": "bird:dev.json:162", "question": "What is the region of the client with the id 3541 from?", "SQL": "SELECT T1.A3 FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T2.client_id = 3541", "tokens": ["What", "is", "the", "region", "of", "the", "client", "with", "the", "i", "d", "3541", "from", "?"], "entities": [{"id": 5, "type": "column", "value": "district_id"}, {"id": 3, "type": "column", "value": "client_id"}, {"id": 1, "type": "table", "value": "district"}, {"id": 2, "type": "table", "value": "client"}, {"id": 4, "type": "value", "value": "3541"}, {"id": 0, "type": "column", "value": "a3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [9, 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", "O", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "O"]}
{"question_id": 13369, "db_id": "e_government", "dber_id": "spider:train_spider.json:6335", "question": "What are the payment method codes that have been used by more than 3 parties?", "SQL": "SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*) > 3", "tokens": ["What", "are", "the", "payment", "method", "codes", "that", "have", "been", "used", "by", "more", "than", "3", "parties", "?"], "entities": [{"id": 1, "type": "column", "value": "payment_method_code"}, {"id": 0, "type": "table", "value": "parties"}, {"id": 2, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"entity_id": 1, "token_idxs": [3, 4, 5]}, {"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", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 3483, "db_id": "trains", "dber_id": "bird:train.json:702", "question": "What is the total number of short cars on all the trains that run in the east direction?", "SQL": "SELECT SUM(CASE WHEN T1.len = 'short' then 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east'", "tokens": ["What", "is", "the", "total", "number", "of", "short", "cars", "on", "all", "the", "trains", "that", "run", "in", "the", "east", "direction", "?"], "entities": [{"id": 2, "type": "column", "value": "direction"}, {"id": 4, "type": "column", "value": "train_id"}, {"id": 1, "type": "table", "value": "trains"}, {"id": 9, "type": "value", "value": "short"}, {"id": 0, "type": "table", "value": "cars"}, {"id": 3, "type": "value", "value": "east"}, {"id": 8, "type": "column", "value": "len"}, {"id": 5, "type": "column", "value": "id"}, {"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": [11]}, {"entity_id": 2, "token_idxs": [17]}, {"entity_id": 3, "token_idxs": [16]}, {"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": [6]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O"]}
{"question_id": 6924, "db_id": "video_games", "dber_id": "bird:train.json:3475", "question": "What is the genre of the game \"Grand Theft Auto V\"?", "SQL": "SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = 'Grand Theft Auto V'", "tokens": ["What", "is", "the", "genre", "of", "the", "game", "\"", "Grand", "Theft", "Auto", "V", "\"", "?"], "entities": [{"id": 4, "type": "value", "value": "Grand Theft Auto V"}, {"id": 0, "type": "column", "value": "genre_name"}, {"id": 3, "type": "column", "value": "game_name"}, {"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": [6]}, {"entity_id": 2, "token_idxs": [3]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [8, 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", "B-TABLE", "O", "O", "B-TABLE", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 6054, "db_id": "financial", "dber_id": "bird:dev.json:109", "question": "How many clients opened their accounts in Jesenik branch were women?", "SQL": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'F' AND T2.A2 = 'Jesenik'", "tokens": ["How", "many", "clients", "opened", "their", "accounts", "in", "Jesenik", "branch", "were", "women", "?"], "entities": [{"id": 3, "type": "column", "value": "district_id"}, {"id": 2, "type": "column", "value": "client_id"}, {"id": 1, "type": "table", "value": "district"}, {"id": 7, "type": "value", "value": "Jesenik"}, {"id": 0, "type": "table", "value": "client"}, {"id": 4, "type": "column", "value": "gender"}, {"id": 6, "type": "column", "value": "a2"}, {"id": 5, "type": "value", "value": "F"}], "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": [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", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O", "O", "O"]}
{"question_id": 4741, "db_id": "talkingdata", "dber_id": "bird:train.json:1041", "question": "How many male users are in the age group of M32-38?", "SQL": "SELECT COUNT(gender) FROM gender_age WHERE gender = 'M' AND `group` = 'M32-38'", "tokens": ["How", "many", "male", "users", "are", "in", "the", "age", "group", "of", "M32", "-", "38", "?"], "entities": [{"id": 0, "type": "table", "value": "gender_age"}, {"id": 1, "type": "column", "value": "gender"}, {"id": 4, "type": "value", "value": "M32-38"}, {"id": 3, "type": "column", "value": "group"}, {"id": 2, "type": "value", "value": "M"}], "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": [8]}, {"entity_id": 4, "token_idxs": [10, 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-VALUE", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O"]}
{"question_id": 1235, "db_id": "college_1", "dber_id": "spider:train_spider.json:3231", "question": "How many departments does the college has?", "SQL": "SELECT count(DISTINCT dept_name) FROM department", "tokens": ["How", "many", "departments", "does", "the", "college", "has", "?"], "entities": [{"id": 0, "type": "table", "value": "department"}, {"id": 1, "type": "column", "value": "dept_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": []}, {"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": 1753, "db_id": "boat_1", "dber_id": "bird:test.json:869", "question": "What is the ids of sailors that haven’t reserved a boat?", "SQL": "SELECT sid FROM Sailors EXCEPT SELECT sid FROM Reserves", "tokens": ["What", "is", "the", "ids", "of", "sailors", "that", "have", "n’t", "reserved", "a", "boat", "?"], "entities": [{"id": 1, "type": "table", "value": "reserves"}, {"id": 0, "type": "table", "value": "sailors"}, {"id": 2, "type": "column", "value": "sid"}], "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": []}, {"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-TABLE", "O", "O", "O"]}
{"question_id": 13630, "db_id": "movie_3", "dber_id": "bird:train.json:9122", "question": "Please list the full names of all the actors that have starred in the film with the highest replacement cost.", "SQL": "SELECT first_name, last_name 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 ORDER BY T3.replacement_cost DESC LIMIT 1", "tokens": ["Please", "list", "the", "full", "names", "of", "all", "the", "actors", "that", "have", "starred", "in", "the", "film", "with", "the", "highest", "replacement", "cost", "."], "entities": [{"id": 3, "type": "column", "value": "replacement_cost"}, {"id": 0, "type": "column", "value": "first_name"}, {"id": 5, "type": "table", "value": "film_actor"}, {"id": 1, "type": "column", "value": "last_name"}, {"id": 7, "type": "column", "value": "actor_id"}, {"id": 6, "type": "column", "value": "film_id"}, {"id": 4, "type": "table", "value": "actor"}, {"id": 2, "type": "table", "value": "film"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [14]}, {"entity_id": 3, "token_idxs": [18, 19]}, {"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", "B-COLUMN", "O", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 11784, "db_id": "driving_school", "dber_id": "spider:train_spider.json:6694", "question": "List first name and last name of customers that have more than 2 payments.", "SQL": "SELECT T2.first_name , T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) > 2;", "tokens": ["List", "first", "name", "and", "last", "name", "of", "customers", "that", "have", "more", "than", "2", "payments", "."], "entities": [{"id": 3, "type": "table", "value": "customer_payments"}, {"id": 0, "type": "column", "value": "customer_id"}, {"id": 1, "type": "column", "value": "first_name"}, {"id": 2, "type": "column", "value": "last_name"}, {"id": 4, "type": "table", "value": "customers"}, {"id": 5, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [1, 2]}, {"entity_id": 2, "token_idxs": [4, 5]}, {"entity_id": 3, "token_idxs": []}, {"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", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "O", "O", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 5804, "db_id": "customers_and_orders", "dber_id": "bird:test.json:251", "question": "Show all hardware product names with price higher than the average price of hardware type products.", "SQL": "SELECT product_name FROM Products WHERE product_type_code = \"Hardware\" AND product_price > (SELECT avg(product_price) FROM Products WHERE product_type_code = \"Hardware\")", "tokens": ["Show", "all", "hardware", "product", "names", "with", "price", "higher", "than", "the", "average", "price", "of", "hardware", "type", "products", "."], "entities": [{"id": 2, "type": "column", "value": "product_type_code"}, {"id": 4, "type": "column", "value": "product_price"}, {"id": 1, "type": "column", "value": "product_name"}, {"id": 0, "type": "table", "value": "products"}, {"id": 3, "type": "column", "value": "Hardware"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [15]}, {"entity_id": 1, "token_idxs": [3, 4]}, {"entity_id": 2, "token_idxs": [14]}, {"entity_id": 3, "token_idxs": [2]}, {"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", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O"]}
{"question_id": 6209, "db_id": "video_games", "dber_id": "bird:train.json:3413", "question": "Which year has the most number of video game releases?", "SQL": "SELECT T1.release_year FROM ( SELECT T.release_year, COUNT(id) FROM game_platform AS T GROUP BY T.release_year ORDER BY COUNT(T.id) DESC LIMIT 1 ) T1", "tokens": ["Which", "year", "has", "the", "most", "number", "of", "video", "game", "releases", "?"], "entities": [{"id": 1, "type": "table", "value": "game_platform"}, {"id": 0, "type": "column", "value": "release_year"}, {"id": 2, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"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", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O"]}
{"question_id": 13789, "db_id": "car_road_race", "dber_id": "bird:test.json:1331", "question": "What are the names of drivers and the names of the races they took part in?", "SQL": "SELECT T1.Driver_Name , T2.Race_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID", "tokens": ["What", "are", "the", "names", "of", "drivers", "and", "the", "names", "of", "the", "races", "they", "took", "part", "in", "?"], "entities": [{"id": 0, "type": "column", "value": "driver_name"}, {"id": 1, "type": "column", "value": "race_name"}, {"id": 4, "type": "column", "value": "driver_id"}, {"id": 2, "type": "table", "value": "driver"}, {"id": 3, "type": "table", "value": "race"}], "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": [16]}, {"entity_id": 7, "token_idxs": [5, 11]}, {"entity_id": 8, "token_idxs": [6, 7, 8, 9, 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", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 13679, "db_id": "regional_sales", "dber_id": "bird:train.json:2591", "question": "List down the product IDs and names that include the word \"Outdoor\".", "SQL": "SELECT ProductID, T FROM ( SELECT ProductID , CASE WHEN `Product Name` LIKE '%Outdoor%' THEN `Product Name` ELSE NULL END AS T FROM Products ) WHERE T IS NOT NULL ORDER BY T DESC", "tokens": ["List", "down", "the", "product", "IDs", "and", "names", "that", "include", "the", "word", "\"", "Outdoor", "\"", "."], "entities": [{"id": 3, "type": "column", "value": "Product Name"}, {"id": 0, "type": "column", "value": "productid"}, {"id": 4, "type": "value", "value": "%Outdoor%"}, {"id": 2, "type": "table", "value": "products"}, {"id": 1, "type": "column", "value": "t"}], "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": [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-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 14709, "db_id": "california_schools", "dber_id": "bird:dev.json:11", "question": "Please list the codes of the schools with a total enrollment of over 500.", "SQL": "SELECT T2.CDSCode FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.`Enrollment (K-12)` + T2.`Enrollment (Ages 5-17)` > 500", "tokens": ["Please", "list", "the", "codes", "of", "the", "schools", "with", "a", "total", "enrollment", "of", "over", "500", "."], "entities": [{"id": 5, "type": "column", "value": "Enrollment (Ages 5-17)"}, {"id": 4, "type": "column", "value": "Enrollment (K-12)"}, {"id": 0, "type": "column", "value": "cdscode"}, {"id": 1, "type": "table", "value": "schools"}, {"id": 2, "type": "table", "value": "frpm"}, {"id": 3, "type": "value", "value": "500"}], "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": [13]}, {"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", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O"]}
{"question_id": 3981, "db_id": "menu", "dber_id": "bird:train.json:5479", "question": "Among the menus in which the dish \"Clear green turtle\" had appeared, how many of them used the dollar as their currency?", "SQL": "SELECT SUM(CASE WHEN T3.currency = 'Dollars' THEN 1 ELSE 0 END) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T4.name = 'Clear green turtle'", "tokens": ["Among", "the", "menus", "in", "which", "the", "dish", "\"", "Clear", "green", "turtle", "\"", "had", "appeared", ",", "how", "many", "of", "them", "used", "the", "dollar", "as", "their", "currency", "?"], "entities": [{"id": 2, "type": "value", "value": "Clear green turtle"}, {"id": 11, "type": "column", "value": "menu_page_id"}, {"id": 7, "type": "table", "value": "menuitem"}, {"id": 8, "type": "table", "value": "menupage"}, {"id": 12, "type": "column", "value": "currency"}, {"id": 4, "type": "column", "value": "dish_id"}, {"id": 9, "type": "column", "value": "menu_id"}, {"id": 13, "type": "value", "value": "Dollars"}, {"id": 0, "type": "table", "value": "dish"}, {"id": 1, "type": "column", "value": "name"}, {"id": 3, "type": "table", "value": "menu"}, {"id": 5, "type": "column", "value": "id"}, {"id": 6, "type": "value", "value": "0"}, {"id": 10, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [8, 9, 10]}, {"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": [24]}, {"entity_id": 13, "token_idxs": [21]}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-COLUMN", "O"]}
{"question_id": 4088, "db_id": "retail_complains", "dber_id": "bird:train.json:376", "question": "Please list all first and last names of clients who live in New York city.", "SQL": "SELECT first, last FROM client WHERE city = 'New York City'", "tokens": ["Please", "list", "all", "first", "and", "last", "names", "of", "clients", "who", "live", "in", "New", "York", "city", "."], "entities": [{"id": 4, "type": "value", "value": "New York City"}, {"id": 0, "type": "table", "value": "client"}, {"id": 1, "type": "column", "value": "first"}, {"id": 2, "type": "column", "value": "last"}, {"id": 3, "type": "column", "value": "city"}], "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": [14]}, {"entity_id": 4, "token_idxs": [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", "B-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-VALUE", "I-VALUE", "B-COLUMN", "O"]}
{"question_id": 12543, "db_id": "works_cycles", "dber_id": "bird:train.json:7081", "question": "Average cost of purchase orders made during the first six months of 2012.", "SQL": "SELECT CAST(SUM(ActualCost) AS REAL) / COUNT(TransactionID) FROM TransactionHistoryArchive WHERE TransactionType = 'P' AND TransactionDate >= '2012-01-01' AND TransactionDate < '2012-07-01'", "tokens": ["Average", "cost", "of", "purchase", "orders", "made", "during", "the", "first", "six", "months", "of", "2012", "."], "entities": [{"id": 0, "type": "table", "value": "transactionhistoryarchive"}, {"id": 1, "type": "column", "value": "transactiontype"}, {"id": 3, "type": "column", "value": "transactiondate"}, {"id": 6, "type": "column", "value": "transactionid"}, {"id": 4, "type": "value", "value": "2012-01-01"}, {"id": 5, "type": "value", "value": "2012-07-01"}, {"id": 7, "type": "column", "value": "actualcost"}, {"id": 2, "type": "value", "value": "P"}], "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": [12]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [1]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_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", "O", "O", "B-VALUE", "O"]}
{"question_id": 11734, "db_id": "retail_world", "dber_id": "bird:train.json:6320", "question": "How many orders have asked for the product Tofu?", "SQL": "SELECT COUNT(T2.OrderID) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductName = 'Tofu'", "tokens": ["How", "many", "orders", "have", "asked", "for", "the", "product", "Tofu", "?"], "entities": [{"id": 1, "type": "table", "value": "Order Details"}, {"id": 2, "type": "column", "value": "productname"}, {"id": 5, "type": "column", "value": "productid"}, {"id": 0, "type": "table", "value": "products"}, {"id": 4, "type": "column", "value": "orderid"}, {"id": 3, "type": "value", "value": "Tofu"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3]}, {"entity_id": 1, "token_idxs": [9]}, {"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-TABLE", "I-TABLE", "O", "B-COLUMN", "O", "O", "O", "B-TABLE"]}
{"question_id": 1113, "db_id": "retails", "dber_id": "bird:train.json:6832", "question": "List the phone number of the customer who placed orders with a total price of more than $300,000.", "SQL": "SELECT T2.c_phone FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T1.o_totalprice > 300000", "tokens": ["List", "the", "phone", "number", "of", "the", "customer", "who", "placed", "orders", "with", "a", "total", "price", "of", "more", "than", "$", "300,000", "."], "entities": [{"id": 3, "type": "column", "value": "o_totalprice"}, {"id": 5, "type": "column", "value": "o_custkey"}, {"id": 6, "type": "column", "value": "c_custkey"}, {"id": 2, "type": "table", "value": "customer"}, {"id": 0, "type": "column", "value": "c_phone"}, {"id": 1, "type": "table", "value": "orders"}, {"id": 4, "type": "value", "value": "300000"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [13, 14]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [11]}, {"entity_id": 6, "token_idxs": [9]}, {"entity_id": 7, "token_idxs": [17]}, {"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", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O"]}
{"question_id": 10617, "db_id": "tracking_grants_for_research", "dber_id": "spider:train_spider.json:4368", "question": "How many documents can one grant have at most? List the grant id and number.", "SQL": "SELECT grant_id , count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1", "tokens": ["How", "many", "documents", "can", "one", "grant", "have", "at", "most", "?", "List", "the", "grant", "i", "d", "and", "number", "."], "entities": [{"id": 0, "type": "table", "value": "documents"}, {"id": 1, "type": "column", "value": "grant_id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [12, 13, 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", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O"]}
{"question_id": 14857, "db_id": "movies_4", "dber_id": "bird:train.json:545", "question": "List the names of camera supervisors in the crew.", "SQL": "SELECT T1.person_name FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T2.job = 'Camera Supervisor'", "tokens": ["List", "the", "names", "of", "camera", "supervisors", "in", "the", "crew", "."], "entities": [{"id": 4, "type": "value", "value": "Camera Supervisor"}, {"id": 0, "type": "column", "value": "person_name"}, {"id": 2, "type": "table", "value": "movie_crew"}, {"id": 5, "type": "column", "value": "person_id"}, {"id": 1, "type": "table", "value": "person"}, {"id": 3, "type": "column", "value": "job"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [8]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [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", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O", "B-TABLE", "O"]}
{"question_id": 2287, "db_id": "sales", "dber_id": "bird:train.json:5441", "question": "List the customer's ID and last name of the customer that purchased a product with a quantity greater than 90% of the average quantity of all listed products.", "SQL": "SELECT T2.CustomerID, T2.LastName FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Quantity > ( SELECT AVG(Quantity) FROM Sales ) * 0.9", "tokens": ["List", "the", "customer", "'s", "ID", "and", "last", "name", "of", "the", "customer", "that", "purchased", "a", "product", "with", "a", "quantity", "greater", "than", "90", "%", "of", "the", "average", "quantity", "of", "all", "listed", "products", "."], "entities": [{"id": 0, "type": "column", "value": "customerid"}, {"id": 3, "type": "table", "value": "customers"}, {"id": 1, "type": "column", "value": "lastname"}, {"id": 4, "type": "column", "value": "quantity"}, {"id": 2, "type": "table", "value": "sales"}, {"id": 5, "type": "value", "value": "0.9"}], "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": [2, 3]}, {"entity_id": 4, "token_idxs": [17]}, {"entity_id": 5, "token_idxs": [20, 21]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 9740, "db_id": "retail_world", "dber_id": "bird:train.json:6362", "question": "What are the names of the products that were discountinued?", "SQL": "SELECT ProductName FROM Products WHERE Discontinued = 1", "tokens": ["What", "are", "the", "names", "of", "the", "products", "that", "were", "discountinued", "?"], "entities": [{"id": 2, "type": "column", "value": "discontinued"}, {"id": 1, "type": "column", "value": "productname"}, {"id": 0, "type": "table", "value": "products"}, {"id": 3, "type": "value", "value": "1"}], "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": [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", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 15800, "db_id": "hr_1", "dber_id": "spider:train_spider.json:3472", "question": "What is the minimum salary in each department?", "SQL": "SELECT MIN(salary) , department_id FROM employees GROUP BY department_id", "tokens": ["What", "is", "the", "minimum", "salary", "in", "each", "department", "?"], "entities": [{"id": 1, "type": "column", "value": "department_id"}, {"id": 0, "type": "table", "value": "employees"}, {"id": 2, "type": "column", "value": "salary"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [1]}, {"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", "B-COLUMN", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O"]}
{"question_id": 4808, "db_id": "retail_world", "dber_id": "bird:train.json:6635", "question": "Which customer is a regular customer in this shop and what are the products category that he mostly buy?", "SQL": "SELECT T1.CustomerID, T4.CategoryName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID INNER JOIN Categories AS T4 ON T3.CategoryID = T4.CategoryID ORDER BY T1.CustomerID DESC, T4.CategoryName DESC", "tokens": ["Which", "customer", "is", "a", "regular", "customer", "in", "this", "shop", "and", "what", "are", "the", "products", "category", "that", "he", "mostly", "buy", "?"], "entities": [{"id": 6, "type": "table", "value": "Order Details"}, {"id": 1, "type": "column", "value": "categoryname"}, {"id": 0, "type": "column", "value": "customerid"}, {"id": 2, "type": "table", "value": "categories"}, {"id": 4, "type": "column", "value": "categoryid"}, {"id": 7, "type": "column", "value": "productid"}, {"id": 3, "type": "table", "value": "products"}, {"id": 8, "type": "column", "value": "orderid"}, {"id": 5, "type": "table", "value": "orders"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [9, 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", "O", "B-COLUMN", "O", "O", "O", "O", "B-COLUMN", "B-TABLE", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 4339, "db_id": "mondial_geo", "dber_id": "bird:train.json:8348", "question": "Which nations have a 100% Spanish-speaking population?", "SQL": "SELECT Country FROM language WHERE Name = 'Spanish' AND Percentage = 100", "tokens": ["Which", "nations", "have", "a", "100", "%", "Spanish", "-", "speaking", "population", "?"], "entities": [{"id": 4, "type": "column", "value": "percentage"}, {"id": 0, "type": "table", "value": "language"}, {"id": 1, "type": "column", "value": "country"}, {"id": 3, "type": "value", "value": "Spanish"}, {"id": 2, "type": "column", "value": "name"}, {"id": 5, "type": "value", "value": "100"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6]}, {"entity_id": 4, "token_idxs": [5]}, {"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-VALUE", "B-COLUMN", "B-VALUE", "O", "O", "O", "O"]}
{"question_id": 2088, "db_id": "talkingdata", "dber_id": "bird:train.json:1225", "question": "When did event number 2 happen and how many users were active?", "SQL": "SELECT COUNT(T1.app_id) AS num FROM app_events AS T1 INNER JOIN events AS T2 ON T1.event_id = T2.event_id WHERE T1.event_id = 2 AND T1.is_active = 1 GROUP BY T2.timestamp", "tokens": ["When", "did", "event", "number", "2", "happen", "and", "how", "many", "users", "were", "active", "?"], "entities": [{"id": 1, "type": "table", "value": "app_events"}, {"id": 0, "type": "column", "value": "timestamp"}, {"id": 6, "type": "column", "value": "is_active"}, {"id": 4, "type": "column", "value": "event_id"}, {"id": 2, "type": "table", "value": "events"}, {"id": 3, "type": "column", "value": "app_id"}, {"id": 5, "type": "value", "value": "2"}, {"id": 7, "type": "value", "value": "1"}], "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": []}, {"entity_id": 5, "token_idxs": [4]}, {"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-TABLE", "O", "B-VALUE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 7043, "db_id": "student_loan", "dber_id": "bird:train.json:4508", "question": "Which school have the highest student enrollment? How many of those students are filed for bankruptcy?", "SQL": "SELECT T.school, num FROM ( SELECT T1.school, COUNT(T2.name) AS num FROM enrolled AS T1 LEFT JOIN filed_for_bankrupcy AS T2 ON T2.name = T1.name GROUP BY T1.school ) T ORDER BY T.num DESC LIMIT 1", "tokens": ["Which", "school", "have", "the", "highest", "student", "enrollment", "?", "How", "many", "of", "those", "students", "are", "filed", "for", "bankruptcy", "?"], "entities": [{"id": 3, "type": "table", "value": "filed_for_bankrupcy"}, {"id": 2, "type": "table", "value": "enrolled"}, {"id": 0, "type": "column", "value": "school"}, {"id": 4, "type": "column", "value": "name"}, {"id": 1, "type": "column", "value": "num"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [14, 15, 16]}, {"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", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "I-TABLE", "I-TABLE", "O"]}
{"question_id": 6906, "db_id": "soccer_2016", "dber_id": "bird:train.json:1834", "question": "Who is the player who won the first ever \"man of the match\" award?", "SQL": "SELECT Player_Name FROM Player WHERE Player_Id = ( SELECT Man_of_the_Match FROM `Match` ORDER BY match_date ASC LIMIT 1 )", "tokens": ["Who", "is", "the", "player", "who", "won", "the", "first", "ever", "\"", "man", "of", "the", "match", "\"", "award", "?"], "entities": [{"id": 4, "type": "column", "value": "man_of_the_match"}, {"id": 1, "type": "column", "value": "player_name"}, {"id": 5, "type": "column", "value": "match_date"}, {"id": 2, "type": "column", "value": "player_id"}, {"id": 0, "type": "table", "value": "player"}, {"id": 3, "type": "table", "value": "Match"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [13]}, {"entity_id": 4, "token_idxs": [10, 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", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "B-TABLE", "O", "O", "O"]}
{"question_id": 828, "db_id": "coffee_shop", "dber_id": "spider:train_spider.json:799", "question": "Show the shop addresses ordered by their opening year.", "SQL": "SELECT address FROM shop ORDER BY open_year", "tokens": ["Show", "the", "shop", "addresses", "ordered", "by", "their", "opening", "year", "."], "entities": [{"id": 2, "type": "column", "value": "open_year"}, {"id": 1, "type": "column", "value": "address"}, {"id": 0, "type": "table", "value": "shop"}], "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": [7]}, {"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", "B-COLUMN", "O", "O", "O", "O"]}
{"question_id": 7461, "db_id": "bike_1", "dber_id": "spider:train_spider.json:171", "question": "What are names of stations that have average bike availability above 10 and are not located in San Jose city?", "SQL": "SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = \"San Jose\"", "tokens": ["What", "are", "names", "of", "stations", "that", "have", "average", "bike", "availability", "above", "10", "and", "are", "not", "located", "in", "San", "Jose", "city", "?"], "entities": [{"id": 8, "type": "column", "value": "bikes_available"}, {"id": 0, "type": "column", "value": "station_id"}, {"id": 6, "type": "column", "value": "San Jose"}, {"id": 1, "type": "table", "value": "station"}, {"id": 3, "type": "table", "value": "status"}, {"id": 2, "type": "column", "value": "name"}, {"id": 5, "type": "column", "value": "city"}, {"id": 4, "type": "value", "value": "10"}, {"id": 7, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [2]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [11]}, {"entity_id": 5, "token_idxs": [19]}, {"entity_id": 6, "token_idxs": [17, 18]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [8, 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", "B-COLUMN", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "B-COLUMN", "O"]}
{"question_id": 13378, "db_id": "world", "dber_id": "bird:train.json:7835", "question": "Provide the country, population, capital city, and official language of the country with the smallest surface area.", "SQL": "SELECT T1.Name, T1.Population, T1.Capital, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode INNER JOIN City AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' ORDER BY T1.SurfaceArea LIMIT 1", "tokens": ["Provide", "the", "country", ",", "population", ",", "capital", "city", ",", "and", "official", "language", "of", "the", "country", "with", "the", "smallest", "surface", "area", "."], "entities": [{"id": 9, "type": "table", "value": "countrylanguage"}, {"id": 7, "type": "column", "value": "surfacearea"}, {"id": 11, "type": "column", "value": "countrycode"}, {"id": 1, "type": "column", "value": "population"}, {"id": 5, "type": "column", "value": "isofficial"}, {"id": 3, "type": "column", "value": "language"}, {"id": 2, "type": "column", "value": "capital"}, {"id": 8, "type": "table", "value": "country"}, {"id": 0, "type": "column", "value": "name"}, {"id": 4, "type": "table", "value": "city"}, {"id": 10, "type": "column", "value": "code"}, {"id": 6, "type": "value", "value": "T"}], "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": [11]}, {"entity_id": 4, "token_idxs": [7]}, {"entity_id": 5, "token_idxs": [10]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [18, 19]}, {"entity_id": 8, "token_idxs": [2]}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": [14]}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-COLUMN", "B-TABLE", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 3185, "db_id": "synthea", "dber_id": "bird:train.json:1497", "question": "When did Mrs. Joye Homenick receive her most recent influenza seasonal vaccine?", "SQL": "SELECT T2.DATE FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Influenza seasonal injectable preservative free' AND T1.first = 'Joye' AND T1.last = 'Homenick' ORDER BY T2.DATE DESC LIMIT 1", "tokens": ["When", "did", "Mrs.", "Joye", "Homenick", "receive", "her", "most", "recent", "influenza", "seasonal", "vaccine", "?"], "entities": [{"id": 5, "type": "value", "value": "Influenza seasonal injectable preservative free"}, {"id": 2, "type": "table", "value": "immunizations"}, {"id": 4, "type": "column", "value": "description"}, {"id": 1, "type": "table", "value": "patients"}, {"id": 9, "type": "value", "value": "Homenick"}, {"id": 3, "type": "column", "value": "patient"}, {"id": 6, "type": "column", "value": "first"}, {"id": 0, "type": "column", "value": "date"}, {"id": 7, "type": "value", "value": "Joye"}, {"id": 8, "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": []}, {"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": [4]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-VALUE", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 9909, "db_id": "aan_1", "dber_id": "bird:test.json:1037", "question": "Find the id and title of the papers that are never cited by others.", "SQL": "SELECT paper_id , title FROM Paper WHERE paper_id NOT IN (SELECT cited_paper_id FROM Citation)", "tokens": ["Find", "the", "i", "d", "and", "title", "of", "the", "papers", "that", "are", "never", "cited", "by", "others", "."], "entities": [{"id": 4, "type": "column", "value": "cited_paper_id"}, {"id": 1, "type": "column", "value": "paper_id"}, {"id": 3, "type": "table", "value": "citation"}, {"id": 0, "type": "table", "value": "paper"}, {"id": 2, "type": "column", "value": "title"}], "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": [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", "B-COLUMN", "I-COLUMN", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-TABLE", "O", "O", "O"]}
{"question_id": 4002, "db_id": "ship_1", "dber_id": "spider:train_spider.json:6245", "question": "Count the number of ships.", "SQL": "SELECT count(*) FROM ship", "tokens": ["Count", "the", "number", "of", "ships", "."], "entities": [{"id": 0, "type": "table", "value": "ship"}], "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": 9083, "db_id": "simpson_episodes", "dber_id": "bird:train.json:4310", "question": "How many title's crew members are working from Casting Department?", "SQL": "SELECT COUNT(*) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.category = 'Casting Department';", "tokens": ["How", "many", "title", "'s", "crew", "members", "are", "working", "from", "Casting", "Department", "?"], "entities": [{"id": 3, "type": "value", "value": "Casting Department"}, {"id": 4, "type": "column", "value": "episode_id"}, {"id": 2, "type": "column", "value": "category"}, {"id": 0, "type": "table", "value": "episode"}, {"id": 1, "type": "table", "value": "credit"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"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", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 5464, "db_id": "student_loan", "dber_id": "bird:train.json:4412", "question": "Please check if student 124 is disabled male.", "SQL": "SELECT IIF(T2.name IS NULL, 'female', 'male') FROM male AS T1 LEFT JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.name = 'student124'", "tokens": ["Please", "check", "if", "student", "124", "is", "disabled", "male", "."], "entities": [{"id": 3, "type": "value", "value": "student124"}, {"id": 1, "type": "table", "value": "disabled"}, {"id": 4, "type": "value", "value": "female"}, {"id": 0, "type": "table", "value": "male"}, {"id": 2, "type": "column", "value": "name"}, {"id": 5, "type": "value", "value": "male"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [3, 4]}, {"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", "B-VALUE", "I-VALUE", "O", "B-TABLE", "B-VALUE", "O"]}
{"question_id": 4325, "db_id": "formula_1", "dber_id": "spider:train_spider.json:2167", "question": "What is the id and family name of the driver who has the longest laptime?", "SQL": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1", "tokens": ["What", "is", "the", "i", "d", "and", "family", "name", "of", "the", "driver", "who", "has", "the", "longest", "laptime", "?"], "entities": [{"id": 4, "type": "column", "value": "milliseconds"}, {"id": 0, "type": "column", "value": "driverid"}, {"id": 3, "type": "table", "value": "laptimes"}, {"id": 1, "type": "column", "value": "surname"}, {"id": 2, "type": "table", "value": "drivers"}], "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": [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", "I-COLUMN", "O", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 993, "db_id": "public_review_platform", "dber_id": "bird:train.json:4089", "question": "For users with average ratings of 3, what kind of tip length they mostly left?", "SQL": "SELECT T2.tip_length FROM Users AS T1 INNER JOIN Tips AS T2 ON T1.user_id = T2.user_id WHERE T1.user_average_stars = 3 GROUP BY T2.tip_length ORDER BY COUNT(T2.tip_length) DESC LIMIT 1", "tokens": ["For", "users", "with", "average", "ratings", "of", "3", ",", "what", "kind", "of", "tip", "length", "they", "mostly", "left", "?"], "entities": [{"id": 3, "type": "column", "value": "user_average_stars"}, {"id": 0, "type": "column", "value": "tip_length"}, {"id": 5, "type": "column", "value": "user_id"}, {"id": 1, "type": "table", "value": "users"}, {"id": 2, "type": "table", "value": "tips"}, {"id": 4, "type": "value", "value": "3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12]}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [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", "B-TABLE", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "O", "O"]}
{"question_id": 1827, "db_id": "address", "dber_id": "bird:train.json:5157", "question": "What are the alias of the cities with 0 population in 2010?", "SQL": "SELECT DISTINCT T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.population_2010 = 0", "tokens": ["What", "are", "the", "alias", "of", "the", "cities", "with", "0", "population", "in", "2010", "?"], "entities": [{"id": 3, "type": "column", "value": "population_2010"}, {"id": 2, "type": "table", "value": "zip_data"}, {"id": 5, "type": "column", "value": "zip_code"}, {"id": 0, "type": "column", "value": "alias"}, {"id": 1, "type": "table", "value": "alias"}, {"id": 4, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [5]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [6]}, {"entity_id": 3, "token_idxs": [8]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-TABLE", "O", "B-COLUMN", "O", "O", "O", "O"]}
{"question_id": 1320, "db_id": "music_1", "dber_id": "spider:train_spider.json:3535", "question": "What are the id of songs whose format is mp3.", "SQL": "SELECT f_id FROM files WHERE formats = \"mp3\"", "tokens": ["What", "are", "the", "i", "d", "of", "songs", "whose", "format", "is", "mp3", "."], "entities": [{"id": 2, "type": "column", "value": "formats"}, {"id": 0, "type": "table", "value": "files"}, {"id": 1, "type": "column", "value": "f_id"}, {"id": 3, "type": "column", "value": "mp3"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3, 4]}, {"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", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "O"]}
{"question_id": 2532, "db_id": "thrombosis_prediction", "dber_id": "bird:dev.json:1290", "question": "What is the examination date of the patient whose albumin is the highest in the normal range?", "SQL": "SELECT Date FROM Laboratory WHERE ALB > 3.5 AND ALB < 5.5 ORDER BY ALB DESC LIMIT 1", "tokens": ["What", "is", "the", "examination", "date", "of", "the", "patient", "whose", "albumin", "is", "the", "highest", "in", "the", "normal", "range", "?"], "entities": [{"id": 0, "type": "table", "value": "laboratory"}, {"id": 1, "type": "column", "value": "date"}, {"id": 2, "type": "column", "value": "alb"}, {"id": 3, "type": "value", "value": "3.5"}, {"id": 4, "type": "value", "value": "5.5"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [4]}, {"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-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 12156, "db_id": "retail_world", "dber_id": "bird:train.json:6582", "question": "Who is the Sales Agent for the company 'Eastern Connection'?", "SQL": "SELECT ContactName FROM Customers WHERE CompanyName = 'Eastern Connection' AND ContactTitle = 'Sales Agent'", "tokens": ["Who", "is", "the", "Sales", "Agent", "for", "the", "company", "'", "Eastern", "Connection", "'", "?"], "entities": [{"id": 3, "type": "value", "value": "Eastern Connection"}, {"id": 4, "type": "column", "value": "contacttitle"}, {"id": 1, "type": "column", "value": "contactname"}, {"id": 2, "type": "column", "value": "companyname"}, {"id": 5, "type": "value", "value": "Sales Agent"}, {"id": 0, "type": "table", "value": "customers"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [9, 10]}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [3, 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-VALUE", "I-VALUE", "O", "O", "B-COLUMN", "O", "B-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 12163, "db_id": "customers_and_invoices", "dber_id": "spider:train_spider.json:1621", "question": "Show all product names and the number of customers having an order on each product.", "SQL": "SELECT T2.product_name , count(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name", "tokens": ["Show", "all", "product", "names", "and", "the", "number", "of", "customers", "having", "an", "order", "on", "each", "product", "."], "entities": [{"id": 0, "type": "column", "value": "product_name"}, {"id": 2, "type": "table", "value": "order_items"}, {"id": 5, "type": "column", "value": "product_id"}, {"id": 3, "type": "table", "value": "products"}, {"id": 4, "type": "column", "value": "order_id"}, {"id": 1, "type": "table", "value": "orders"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [11]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [14]}, {"entity_id": 4, "token_idxs": []}, {"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", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O", "O", "B-TABLE", "O"]}
{"question_id": 1290, "db_id": "store_1", "dber_id": "spider:train_spider.json:585", "question": "How many customers does Steve Johnson support?", "SQL": "SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";", "tokens": ["How", "many", "customers", "does", "Steve", "Johnson", "support", "?"], "entities": [{"id": 2, "type": "column", "value": "support_rep_id"}, {"id": 4, "type": "column", "value": "first_name"}, {"id": 0, "type": "table", "value": "employees"}, {"id": 1, "type": "table", "value": "customers"}, {"id": 6, "type": "column", "value": "last_name"}, {"id": 7, "type": "column", "value": "Johnson"}, {"id": 5, "type": "column", "value": "Steve"}, {"id": 3, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [6]}, {"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": [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-TABLE", "O", "B-COLUMN", "B-COLUMN", "B-COLUMN", "O"]}
{"question_id": 2340, "db_id": "movie_2", "dber_id": "bird:test.json:1835", "question": "Find the name of the movie that is played in the most number of theaters.", "SQL": "SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie GROUP BY T1.title ORDER BY count(*) DESC LIMIT 1", "tokens": ["Find", "the", "name", "of", "the", "movie", "that", "is", "played", "in", "the", "most", "number", "of", "theaters", "."], "entities": [{"id": 2, "type": "table", "value": "movietheaters"}, {"id": 1, "type": "table", "value": "movies"}, {"id": 0, "type": "column", "value": "title"}, {"id": 4, "type": "column", "value": "movie"}, {"id": 3, "type": "column", "value": "code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [5]}, {"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", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 14614, "db_id": "game_1", "dber_id": "spider:train_spider.json:6005", "question": "Show last names for all student who are on scholarship.", "SQL": "SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y'", "tokens": ["Show", "last", "names", "for", "all", "student", "who", "are", "on", "scholarship", "."], "entities": [{"id": 3, "type": "column", "value": "onscholarship"}, {"id": 1, "type": "table", "value": "sportsinfo"}, {"id": 2, "type": "table", "value": "student"}, {"id": 0, "type": "column", "value": "lname"}, {"id": 5, "type": "column", "value": "stuid"}, {"id": 4, "type": "value", "value": "Y"}], "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": [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-COLUMN", "O", "O", "B-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 7527, "db_id": "university", "dber_id": "bird:train.json:8074", "question": "What is the name of the university with the most international students in 2011?", "SQL": "SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 ORDER BY T1.pct_international_students DESC LIMIT 1", "tokens": ["What", "is", "the", "name", "of", "the", "university", "with", "the", "most", "international", "students", "in", "2011", "?"], "entities": [{"id": 5, "type": "column", "value": "pct_international_students"}, {"id": 0, "type": "column", "value": "university_name"}, {"id": 1, "type": "table", "value": "university_year"}, {"id": 6, "type": "column", "value": "university_id"}, {"id": 2, "type": "table", "value": "university"}, {"id": 3, "type": "column", "value": "year"}, {"id": 4, "type": "value", "value": "2011"}, {"id": 7, "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": [13]}, {"entity_id": 5, "token_idxs": [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", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "O"]}
{"question_id": 7811, "db_id": "movie_3", "dber_id": "bird:train.json:9215", "question": "List the films' titles which were rented on 24th May,2005.", "SQL": "SELECT T1.title FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id INNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id WHERE SUBSTR(T3.rental_date, 1, 10) = '2005-05-24'", "tokens": ["List", "the", "films", "'", "titles", "which", "were", "rented", "on", "24th", "May,2005", "."], "entities": [{"id": 5, "type": "column", "value": "inventory_id"}, {"id": 6, "type": "column", "value": "rental_date"}, {"id": 2, "type": "value", "value": "2005-05-24"}, {"id": 4, "type": "table", "value": "inventory"}, {"id": 9, "type": "column", "value": "film_id"}, {"id": 1, "type": "table", "value": "rental"}, {"id": 0, "type": "column", "value": "title"}, {"id": 3, "type": "table", "value": "film"}, {"id": 8, "type": "value", "value": "10"}, {"id": 7, "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": [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-TABLE", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "O"]}
{"question_id": 6669, "db_id": "world_development_indicators", "dber_id": "bird:train.json:2191", "question": "How many countries uses the 1968 System of National Accounts methodology?", "SQL": "SELECT COUNT(CountryCode) FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.'", "tokens": ["How", "many", "countries", "uses", "the", "1968", "System", "of", "National", "Accounts", "methodology", "?"], "entities": [{"id": 2, "type": "value", "value": "Country uses the 1968 System of National Accounts methodology."}, {"id": 1, "type": "column", "value": "systemofnationalaccounts"}, {"id": 3, "type": "column", "value": "countrycode"}, {"id": 0, "type": "table", "value": "country"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [6, 7, 8, 9]}, {"entity_id": 2, "token_idxs": [3, 4, 5, 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-VALUE", "I-VALUE", "I-VALUE", "B-COLUMN", "I-COLUMN", "I-COLUMN", "I-COLUMN", "B-VALUE", "O"]}
{"question_id": 16026, "db_id": "retails", "dber_id": "bird:train.json:6873", "question": "Which supplier can provide the most number of \"hot spring dodger dim light\"? Please give the supplier's phone number.", "SQL": "SELECT T3.s_phone FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey WHERE T1.p_name = 'hot spring dodger dim light' ORDER BY T2.ps_availqty DESC LIMIT 1", "tokens": ["Which", "supplier", "can", "provide", "the", "most", "number", "of", "\"", "hot", "spring", "dodger", "dim", "light", "\"", "?", "Please", "give", "the", "supplier", "'s", "phone", "number", "."], "entities": [{"id": 3, "type": "value", "value": "hot spring dodger dim light"}, {"id": 4, "type": "column", "value": "ps_availqty"}, {"id": 7, "type": "column", "value": "ps_suppkey"}, {"id": 10, "type": "column", "value": "ps_partkey"}, {"id": 8, "type": "column", "value": "s_suppkey"}, {"id": 9, "type": "column", "value": "p_partkey"}, {"id": 1, "type": "table", "value": "supplier"}, {"id": 6, "type": "table", "value": "partsupp"}, {"id": 0, "type": "column", "value": "s_phone"}, {"id": 2, "type": "column", "value": "p_name"}, {"id": 5, "type": "table", "value": "part"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [21]}, {"entity_id": 1, "token_idxs": [1]}, {"entity_id": 2, "token_idxs": []}, {"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", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 9324, "db_id": "hr_1", "dber_id": "spider:train_spider.json:3412", "question": "What are all the employees without a department number?", "SQL": "SELECT * FROM employees WHERE department_id = \"null\"", "tokens": ["What", "are", "all", "the", "employees", "without", "a", "department", "number", "?"], "entities": [{"id": 1, "type": "column", "value": "department_id"}, {"id": 0, "type": "table", "value": "employees"}, {"id": 2, "type": "column", "value": "null"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"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", "B-TABLE", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 152, "db_id": "customers_and_products_contacts", "dber_id": "spider:train_spider.json:5655", "question": "Show each state and the number of addresses in each state.", "SQL": "SELECT state_province_county , count(*) FROM addresses GROUP BY state_province_county", "tokens": ["Show", "each", "state", "and", "the", "number", "of", "addresses", "in", "each", "state", "."], "entities": [{"id": 1, "type": "column", "value": "state_province_county"}, {"id": 0, "type": "table", "value": "addresses"}], "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": [5]}, {"entity_id": 7, "token_idxs": [6]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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"]}
{"question_id": 15383, "db_id": "customers_and_addresses", "dber_id": "spider:train_spider.json:6093", "question": "List the countries having more than 4 addresses listed.", "SQL": "SELECT country FROM addresses GROUP BY country HAVING count(address_id) > 4", "tokens": ["List", "the", "countries", "having", "more", "than", "4", "addresses", "listed", "."], "entities": [{"id": 3, "type": "column", "value": "address_id"}, {"id": 0, "type": "table", "value": "addresses"}, {"id": 1, "type": "column", "value": "country"}, {"id": 2, "type": "value", "value": "4"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [7]}, {"entity_id": 1, "token_idxs": [2]}, {"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", "B-COLUMN", "O", "O", "O", "B-VALUE", "B-TABLE", "O", "O"]}
{"question_id": 11369, "db_id": "regional_sales", "dber_id": "bird:train.json:2710", "question": "Among sales teams in Midwest region, which sales team has an order quantity greater than 5?", "SQL": "SELECT DISTINCT T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T2.Region = 'Midwest' AND T1.`Order Quantity` > 5", "tokens": ["Among", "sales", "teams", "in", "Midwest", "region", ",", "which", "sales", "team", "has", "an", "order", "quantity", "greater", "than", "5", "?"], "entities": [{"id": 7, "type": "column", "value": "Order Quantity"}, {"id": 1, "type": "table", "value": "Sales Orders"}, {"id": 4, "type": "column", "value": "_salesteamid"}, {"id": 3, "type": "column", "value": "salesteamid"}, {"id": 0, "type": "column", "value": "Sales Team"}, {"id": 2, "type": "table", "value": "Sales Team"}, {"id": 6, "type": "value", "value": "Midwest"}, {"id": 5, "type": "column", "value": "region"}, {"id": 8, "type": "value", "value": "5"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1, 2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [8, 9]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [5]}, {"entity_id": 6, "token_idxs": [4]}, {"entity_id": 7, "token_idxs": [12, 13]}, {"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", "B-COLUMN", "I-COLUMN", "O", "B-VALUE", "B-COLUMN", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O"]}
{"question_id": 7657, "db_id": "movie_3", "dber_id": "bird:train.json:9126", "question": "How many films are there under the category of \"Horror\"?", "SQL": "SELECT COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id WHERE T2.name = 'Horror'", "tokens": ["How", "many", "films", "are", "there", "under", "the", "category", "of", "\"", "Horror", "\"", "?"], "entities": [{"id": 0, "type": "table", "value": "film_category"}, {"id": 5, "type": "column", "value": "category_id"}, {"id": 1, "type": "table", "value": "category"}, {"id": 4, "type": "column", "value": "film_id"}, {"id": 3, "type": "value", "value": "Horror"}, {"id": 2, "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": [10]}, {"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", "O", "O", "O", "B-TABLE", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 6252, "db_id": "regional_sales", "dber_id": "bird:train.json:2648", "question": "Calculate ratio between the highest unit cost and the lowest unit cost?", "SQL": "SELECT ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` WHERE REPLACE(`Unit Cost`, ',', '') = ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Cost`, ',', '') DESC LIMIT 1 ) ORDER BY REPLACE(`Unit Cost`, ',', '') DESC LIMIT 1 ) / ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` WHERE REPLACE(`Unit Cost`, ',', '') = ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Cost`, ',', '') ASC LIMIT 1 ) ORDER BY REPLACE(`Unit Cost`, ',', '') ASC LIMIT 1 )", "tokens": ["Calculate", "ratio", "between", "the", "highest", "unit", "cost", "and", "the", "lowest", "unit", "cost", "?"], "entities": [{"id": 0, "type": "table", "value": "Sales Orders"}, {"id": 1, "type": "column", "value": "Unit Cost"}, {"id": 2, "type": "value", "value": ","}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [5, 6, 10, 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", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 13822, "db_id": "codebase_community", "dber_id": "bird:dev.json:625", "question": "How many users were from New York?", "SQL": "SELECT COUNT(Id) FROM users WHERE Location = 'New York'", "tokens": ["How", "many", "users", "were", "from", "New", "York", "?"], "entities": [{"id": 1, "type": "column", "value": "location"}, {"id": 2, "type": "value", "value": "New York"}, {"id": 0, "type": "table", "value": "users"}, {"id": 3, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [5, 6]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "O"]}
{"question_id": 10796, "db_id": "e_government", "dber_id": "spider:train_spider.json:6341", "question": "Return the party email that has used party services the greatest number of times.", "SQL": "SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1", "tokens": ["Return", "the", "party", "email", "that", "has", "used", "party", "services", "the", "greatest", "number", "of", "times", "."], "entities": [{"id": 2, "type": "table", "value": "party_services"}, {"id": 0, "type": "column", "value": "party_email"}, {"id": 4, "type": "column", "value": "customer_id"}, {"id": 3, "type": "column", "value": "party_id"}, {"id": 1, "type": "table", "value": "parties"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [7, 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", "B-COLUMN", "O", "O", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O"]}
{"question_id": 7260, "db_id": "formula_1", "dber_id": "spider:train_spider.json:2153", "question": "What is the name of the race held most recently?", "SQL": "SELECT name FROM races ORDER BY date DESC LIMIT 1", "tokens": ["What", "is", "the", "name", "of", "the", "race", "held", "most", "recently", "?"], "entities": [{"id": 0, "type": "table", "value": "races"}, {"id": 1, "type": "column", "value": "name"}, {"id": 2, "type": "column", "value": "date"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"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": [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", "O", "O", "O", "O", "O", "O", "O", "O"]}
{"question_id": 6812, "db_id": "cre_Drama_Workshop_Groups", "dber_id": "spider:train_spider.json:5142", "question": "What are the order details of the products with price higher than 2000?", "SQL": "SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000", "tokens": ["What", "are", "the", "order", "details", "of", "the", "products", "with", "price", "higher", "than", "2000", "?"], "entities": [{"id": 0, "type": "column", "value": "other_item_details"}, {"id": 3, "type": "column", "value": "product_price"}, {"id": 1, "type": "table", "value": "order_items"}, {"id": 5, "type": "column", "value": "product_id"}, {"id": 2, "type": "table", "value": "products"}, {"id": 4, "type": "value", "value": "2000"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4, 5]}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": [8, 9]}, {"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-TABLE", "B-COLUMN", "I-COLUMN", "O", "B-TABLE", "B-COLUMN", "I-COLUMN", "O", "O", "B-VALUE", "O"]}
{"question_id": 2296, "db_id": "customers_campaigns_ecommerce", "dber_id": "spider:train_spider.json:4633", "question": "Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.", "SQL": "SELECT order_shipping_charges , customer_id FROM customer_orders WHERE order_status_code = 'Cancelled' OR order_status_code = 'Paid'", "tokens": ["Show", "the", "shipping", "charge", "and", "customer", "i", "d", "for", "customer", "orders", "with", "order", "status", "Cancelled", "or", "Paid", "."], "entities": [{"id": 1, "type": "column", "value": "order_shipping_charges"}, {"id": 3, "type": "column", "value": "order_status_code"}, {"id": 0, "type": "table", "value": "customer_orders"}, {"id": 2, "type": "column", "value": "customer_id"}, {"id": 4, "type": "value", "value": "Cancelled"}, {"id": 5, "type": "value", "value": "Paid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9, 10]}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": [5, 6, 7]}, {"entity_id": 3, "token_idxs": [12, 13]}, {"entity_id": 4, "token_idxs": [14]}, {"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", "I-COLUMN", "O", "B-TABLE", "I-TABLE", "O", "B-COLUMN", "I-COLUMN", "B-VALUE", "O", "B-VALUE", "O"]}
{"question_id": 11561, "db_id": "public_review_platform", "dber_id": "bird:train.json:4006", "question": "How many businesses that are registered in the database can be attributed to 'Good for Kids'?", "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 = 'Good for Kids' AND T2.attribute_value = 'true'", "tokens": ["How", "many", "businesses", "that", "are", "registered", "in", "the", "database", "can", "be", "attributed", "to", "'", "Good", "for", "Kids", "'", "?"], "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": "Good for Kids"}, {"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": [2]}, {"entity_id": 3, "token_idxs": [11]}, {"entity_id": 4, "token_idxs": []}, {"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-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "O", "O"]}
{"question_id": 4342, "db_id": "document_management", "dber_id": "spider:train_spider.json:4524", "question": "What are the average access counts of documents that have the functional area description \"Acknowledgement\"?", "SQL": "SELECT avg(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = \"Acknowledgement\"", "tokens": ["What", "are", "the", "average", "access", "counts", "of", "documents", "that", "have", "the", "functional", "area", "description", "\"", "Acknowledgement", "\"", "?"], "entities": [{"id": 1, "type": "column", "value": "functional_area_description"}, {"id": 5, "type": "table", "value": "document_functional_areas"}, {"id": 6, "type": "column", "value": "functional_area_code"}, {"id": 0, "type": "table", "value": "functional_areas"}, {"id": 2, "type": "column", "value": "Acknowledgement"}, {"id": 7, "type": "column", "value": "document_code"}, {"id": 3, "type": "column", "value": "access_count"}, {"id": 4, "type": "table", "value": "documents"}], "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"]}
{"question_id": 12884, "db_id": "retails", "dber_id": "bird:train.json:6696", "question": "For the order with the total price of 218195.43, which supplier handled the returned item? Give the supplier id.", "SQL": "SELECT T2.l_suppkey FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_totalprice = 218195.43 AND T2.l_returnflag = 'R'", "tokens": ["For", "the", "order", "with", "the", "total", "price", "of", "218195.43", ",", "which", "supplier", "handled", "the", "returned", "item", "?", "Give", "the", "supplier", "i", "d."], "entities": [{"id": 5, "type": "column", "value": "o_totalprice"}, {"id": 7, "type": "column", "value": "l_returnflag"}, {"id": 3, "type": "column", "value": "o_orderkey"}, {"id": 4, "type": "column", "value": "l_orderkey"}, {"id": 0, "type": "column", "value": "l_suppkey"}, {"id": 6, "type": "value", "value": "218195.43"}, {"id": 2, "type": "table", "value": "lineitem"}, {"id": 1, "type": "table", "value": "orders"}, {"id": 8, "type": "value", "value": "R"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [15]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": [5, 6]}, {"entity_id": 6, "token_idxs": [8]}, {"entity_id": 7, "token_idxs": [14]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-VALUE", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "B-TABLE", "O", "O", "O", "O", "O", "O"]}
{"question_id": 8727, "db_id": "donor", "dber_id": "bird:train.json:3250", "question": "List the resource types available at Sax Arts & Crafts.", "SQL": "SELECT DISTINCT project_resource_type FROM resources WHERE vendor_name = 'Sax Arts & Crafts'", "tokens": ["List", "the", "resource", "types", "available", "at", "Sax", "Arts", "&", "Crafts", "."], "entities": [{"id": 1, "type": "column", "value": "project_resource_type"}, {"id": 3, "type": "value", "value": "Sax Arts & Crafts"}, {"id": 2, "type": "column", "value": "vendor_name"}, {"id": 0, "type": "table", "value": "resources"}], "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": [9]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [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", "O", "B-TABLE", "I-TABLE", "O", "O", "O", "O", "O", "O"]}
{"question_id": 5491, "db_id": "superstore", "dber_id": "bird:train.json:2372", "question": "Which item was shipped on 3/4/2013 and scheduled for same day delivery in the South region?", "SQL": "SELECT T2.`Product Name` FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Date` = '2013-03-04' AND T2.Region = 'South' AND T1.`Order Date` = '2013-03-04'", "tokens": ["Which", "item", "was", "shipped", "on", "3/4/2013", "and", "scheduled", "for", "same", "day", "delivery", "in", "the", "South", "region", "?"], "entities": [{"id": 1, "type": "table", "value": "south_superstore"}, {"id": 0, "type": "column", "value": "Product Name"}, {"id": 3, "type": "column", "value": "Product ID"}, {"id": 5, "type": "value", "value": "2013-03-04"}, {"id": 8, "type": "column", "value": "Order Date"}, {"id": 4, "type": "column", "value": "Ship Date"}, {"id": 2, "type": "table", "value": "product"}, {"id": 6, "type": "column", "value": "region"}, {"id": 7, "type": "value", "value": "South"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [9]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [3]}, {"entity_id": 5, "token_idxs": [5]}, {"entity_id": 6, "token_idxs": [15]}, {"entity_id": 7, "token_idxs": [14]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "B-COLUMN", "O"]}
{"question_id": 7999, "db_id": "address", "dber_id": "bird:train.json:5153", "question": "What is the area code of the city with the largest land area?", "SQL": "SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.land_area = ( SELECT MAX(land_area) FROM zip_data )", "tokens": ["What", "is", "the", "area", "code", "of", "the", "city", "with", "the", "largest", "land", "area", "?"], "entities": [{"id": 0, "type": "column", "value": "area_code"}, {"id": 1, "type": "table", "value": "area_code"}, {"id": 3, "type": "column", "value": "land_area"}, {"id": 2, "type": "table", "value": "zip_data"}, {"id": 4, "type": "column", "value": "zip_code"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [11, 12]}, {"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", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 2546, "db_id": "movie_platform", "dber_id": "bird:train.json:33", "question": "Among the lists created by user 4208563, which one has the highest number of followers? Indicate how many followers it has and whether the user was a subscriber or not when he created the list.", "SQL": "SELECT T1.list_followers, T2.user_subscriber = 1 FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id AND T2.list_id = T2.list_id WHERE T2.user_id = 4208563 ORDER BY T1.list_followers DESC LIMIT 1", "tokens": ["Among", "the", "lists", "created", "by", "user", "4208563", ",", "which", "one", "has", "the", "highest", "number", "of", "followers", "?", "Indicate", "how", "many", "followers", "it", "has", "and", "whether", "the", "user", "was", "a", "subscriber", "or", "not", "when", "he", "created", "the", "list", "."], "entities": [{"id": 5, "type": "column", "value": "user_subscriber"}, {"id": 0, "type": "column", "value": "list_followers"}, {"id": 2, "type": "table", "value": "lists_users"}, {"id": 3, "type": "column", "value": "user_id"}, {"id": 4, "type": "value", "value": "4208563"}, {"id": 7, "type": "column", "value": "list_id"}, {"id": 1, "type": "table", "value": "lists"}, {"id": 6, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [15]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": [5]}, {"entity_id": 3, "token_idxs": [26]}, {"entity_id": 4, "token_idxs": [6]}, {"entity_id": 5, "token_idxs": [29]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [36]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-VALUE", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 8279, "db_id": "formula_1", "dber_id": "bird:dev.json:879", "question": "For the driver who set the fastest lap speed, what is his nationality?", "SQL": "SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId ORDER BY T2.fastestLapSpeed DESC LIMIT 1", "tokens": ["For", "the", "driver", "who", "set", "the", "fastest", "lap", "speed", ",", "what", "is", "his", "nationality", "?"], "entities": [{"id": 3, "type": "column", "value": "fastestlapspeed"}, {"id": 0, "type": "column", "value": "nationality"}, {"id": 4, "type": "column", "value": "driverid"}, {"id": 1, "type": "table", "value": "drivers"}, {"id": 2, "type": "table", "value": "results"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [13]}, {"entity_id": 1, "token_idxs": [2]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [6, 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", "B-TABLE", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "O"]}
{"question_id": 10391, "db_id": "movies_4", "dber_id": "bird:train.json:494", "question": "State the genre of the movie title with a runtime of only 14 minutes.", "SQL": "SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.runtime = 14", "tokens": ["State", "the", "genre", "of", "the", "movie", "title", "with", "a", "runtime", "of", "only", "14", "minutes", "."], "entities": [{"id": 5, "type": "table", "value": "movie_genres"}, {"id": 0, "type": "column", "value": "genre_name"}, {"id": 6, "type": "column", "value": "genre_id"}, {"id": 7, "type": "column", "value": "movie_id"}, {"id": 2, "type": "column", "value": "runtime"}, {"id": 1, "type": "table", "value": "genre"}, {"id": 4, "type": "table", "value": "movie"}, {"id": 3, "type": "value", "value": "14"}], "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": [12]}, {"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-TABLE", "O", "O", "B-TABLE", "O", "O", "O", "B-COLUMN", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 5977, "db_id": "cre_Doc_and_collections", "dber_id": "bird:test.json:715", "question": "For document subset named 'Best for 2000', List all document id that in this subset.", "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 WHERE T2.Document_Subset_Name = \"Best for 2000\";", "tokens": ["For", "document", "subset", "named", "'", "Best", "for", "2000", "'", ",", "List", "all", "document", "i", "d", "that", "in", "this", "subset", "."], "entities": [{"id": 1, "type": "table", "value": "document_subset_members"}, {"id": 3, "type": "column", "value": "document_subset_name"}, {"id": 0, "type": "column", "value": "document_object_id"}, {"id": 5, "type": "column", "value": "document_subset_id"}, {"id": 2, "type": "table", "value": "document_subsets"}, {"id": 4, "type": "column", "value": "Best for 2000"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12, 13, 14]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [1, 2]}, {"entity_id": 3, "token_idxs": [3]}, {"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", "I-TABLE", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O"]}
{"question_id": 14739, "db_id": "movie_1", "dber_id": "spider:train_spider.json:2519", "question": "For each movie that received more than 3 reviews, what is the average rating?", "SQL": "SELECT mID , avg(stars) FROM Rating GROUP BY mID HAVING count(*) >= 2", "tokens": ["For", "each", "movie", "that", "received", "more", "than", "3", "reviews", ",", "what", "is", "the", "average", "rating", "?"], "entities": [{"id": 0, "type": "table", "value": "rating"}, {"id": 3, "type": "column", "value": "stars"}, {"id": 1, "type": "column", "value": "mid"}, {"id": 2, "type": "value", "value": "2"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [14]}, {"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", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 10147, "db_id": "chinook_1", "dber_id": "spider:train_spider.json:810", "question": "What are the names of different music genres?", "SQL": "SELECT Name FROM GENRE", "tokens": ["What", "are", "the", "names", "of", "different", "music", "genres", "?"], "entities": [{"id": 0, "type": "table", "value": "genre"}, {"id": 1, "type": "column", "value": "name"}], "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": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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"]}
{"question_id": 1876, "db_id": "college_1", "dber_id": "spider:train_spider.json:3283", "question": "What is the code of the course which the student whose last name is Smithson took?", "SQL": "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson'", "tokens": ["What", "is", "the", "code", "of", "the", "course", "which", "the", "student", "whose", "last", "name", "is", "Smithson", "took", "?"], "entities": [{"id": 7, "type": "column", "value": "class_code"}, {"id": 2, "type": "column", "value": "stu_lname"}, {"id": 0, "type": "column", "value": "crs_code"}, {"id": 3, "type": "value", "value": "Smithson"}, {"id": 1, "type": "table", "value": "student"}, {"id": 6, "type": "column", "value": "stu_num"}, {"id": 5, "type": "table", "value": "enroll"}, {"id": 4, "type": "table", "value": "class"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [16]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [12]}, {"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": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "B-VALUE", "O", "O", "O", "B-TABLE"]}
{"question_id": 13213, "db_id": "student_1", "dber_id": "spider:train_spider.json:4076", "question": "Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.", "SQL": "SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"OTHA\" AND T2.lastname = \"MOYER\"", "tokens": ["Find", "all", "first", "-", "grade", "students", "who", "are", "NOT", "taught", "by", "OTHA", "MOYER", ".", "Report", "their", "first", "and", "last", "names", "."], "entities": [{"id": 0, "type": "column", "value": "firstname"}, {"id": 6, "type": "column", "value": "classroom"}, {"id": 1, "type": "column", "value": "lastname"}, {"id": 3, "type": "table", "value": "teachers"}, {"id": 4, "type": "column", "value": "grade"}, {"id": 8, "type": "column", "value": "MOYER"}, {"id": 2, "type": "table", "value": "list"}, {"id": 7, "type": "column", "value": "OTHA"}, {"id": 5, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [16]}, {"entity_id": 1, "token_idxs": [18, 19]}, {"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": [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", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "B-COLUMN", "B-COLUMN", "O", "O", "O", "B-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 11991, "db_id": "phone_1", "dber_id": "spider:train_spider.json:1032", "question": "List the hardware model name and company name for the phone whose screen mode type is \"Graphics.\"", "SQL": "SELECT 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.Type = \"Graphics\";", "tokens": ["List", "the", "hardware", "model", "name", "and", "company", "name", "for", "the", "phone", "whose", "screen", "mode", "type", "is", "\"", "Graphics", ".", "\""], "entities": [{"id": 0, "type": "column", "value": "hardware_model_name"}, {"id": 6, "type": "column", "value": "graphics_mode"}, {"id": 1, "type": "column", "value": "company_name"}, {"id": 2, "type": "table", "value": "screen_mode"}, {"id": 7, "type": "column", "value": "screen_mode"}, {"id": 5, "type": "column", "value": "Graphics"}, {"id": 3, "type": "table", "value": "phone"}, {"id": 4, "type": "column", "value": "type"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2, 3, 4]}, {"entity_id": 1, "token_idxs": [6, 7]}, {"entity_id": 2, "token_idxs": [12, 13]}, {"entity_id": 3, "token_idxs": [10]}, {"entity_id": 4, "token_idxs": [14]}, {"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-COLUMN", "I-COLUMN", "I-COLUMN", "O", "B-COLUMN", "I-COLUMN", "O", "O", "B-TABLE", "O", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 1163, "db_id": "retail_world", "dber_id": "bird:train.json:6366", "question": "How many orders were shipped to GREAL via United Package?", "SQL": "SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.CustomerID = 'GREAL' AND T2.CompanyName = 'United Package'", "tokens": ["How", "many", "orders", "were", "shipped", "to", "GREAL", "via", "United", "Package", "?"], "entities": [{"id": 8, "type": "value", "value": "United Package"}, {"id": 7, "type": "column", "value": "companyname"}, {"id": 5, "type": "column", "value": "customerid"}, {"id": 4, "type": "column", "value": "shipperid"}, {"id": 1, "type": "table", "value": "shippers"}, {"id": 2, "type": "column", "value": "orderid"}, {"id": 3, "type": "column", "value": "shipvia"}, {"id": 0, "type": "table", "value": "orders"}, {"id": 6, "type": "value", "value": "GREAL"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [7]}, {"entity_id": 4, "token_idxs": [4]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [6]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [8, 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", "B-TABLE", "O", "B-COLUMN", "O", "B-VALUE", "B-COLUMN", "B-VALUE", "I-VALUE", "O"]}
{"question_id": 12471, "db_id": "bike_racing", "dber_id": "bird:test.json:1475", "question": "What are the name and result of the cyclists not from 'Russia' ?", "SQL": "SELECT name , RESULT FROM cyclist WHERE nation != 'Russia'", "tokens": ["What", "are", "the", "name", "and", "result", "of", "the", "cyclists", "not", "from", "'", "Russia", "'", "?"], "entities": [{"id": 0, "type": "table", "value": "cyclist"}, {"id": 2, "type": "column", "value": "result"}, {"id": 3, "type": "column", "value": "nation"}, {"id": 4, "type": "value", "value": "Russia"}, {"id": 1, "type": "column", "value": "name"}], "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": [9]}, {"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-COLUMN", "O", "O", "B-TABLE", "B-COLUMN", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 4304, "db_id": "movies_4", "dber_id": "bird:train.json:479", "question": "The movie 'Gojira ni-sen mireniamu' is from which country?", "SQL": "SELECT T3.COUNTry_name FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id WHERE T1.title = 'Gojira ni-sen mireniamu'", "tokens": ["The", "movie", "'", "Gojira", "ni", "-", "sen", "mireniamu", "'", "is", "from", "which", "country", "?"], "entities": [{"id": 3, "type": "value", "value": "Gojira ni-sen mireniamu"}, {"id": 5, "type": "table", "value": "production_country"}, {"id": 0, "type": "column", "value": "country_name"}, {"id": 6, "type": "column", "value": "country_id"}, {"id": 7, "type": "column", "value": "movie_id"}, {"id": 1, "type": "table", "value": "country"}, {"id": 2, "type": "column", "value": "title"}, {"id": 4, "type": "table", "value": "movie"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [12]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": [3, 4, 5, 6, 7]}, {"entity_id": 4, "token_idxs": [1]}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_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", "I-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 2697, "db_id": "university", "dber_id": "bird:train.json:8062", "question": "Provide the ranking system name for the \"Quality of Education Rank\" criteria.", "SQL": "SELECT T1.system_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T2.criteria_name = 'Quality of Education Rank'", "tokens": ["Provide", "the", "ranking", "system", "name", "for", "the", "\"", "Quality", "of", "Education", "Rank", "\"", "criteria", "."], "entities": [{"id": 4, "type": "value", "value": "Quality of Education Rank"}, {"id": 6, "type": "column", "value": "ranking_system_id"}, {"id": 2, "type": "table", "value": "ranking_criteria"}, {"id": 1, "type": "table", "value": "ranking_system"}, {"id": 3, "type": "column", "value": "criteria_name"}, {"id": 0, "type": "column", "value": "system_name"}, {"id": 5, "type": "column", "value": "id"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [4]}, {"entity_id": 1, "token_idxs": [2, 3]}, {"entity_id": 2, "token_idxs": [13]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [8, 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", "B-TABLE", "I-TABLE", "B-COLUMN", "O", "O", "O", "B-VALUE", "I-VALUE", "I-VALUE", "I-VALUE", "O", "B-TABLE", "O"]}
{"question_id": 5617, "db_id": "bike_1", "dber_id": "spider:train_spider.json:208", "question": "What are the names of the stations that are located in Palo Alto but have never been the ending point of the trips", "SQL": "SELECT name FROM station WHERE city = \"Palo Alto\" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*) > 100", "tokens": ["What", "are", "the", "names", "of", "the", "stations", "that", "are", "located", "in", "Palo", "Alto", "but", "have", "never", "been", "the", "ending", "point", "of", "the", "trips"], "entities": [{"id": 2, "type": "column", "value": "end_station_name"}, {"id": 5, "type": "column", "value": "Palo Alto"}, {"id": 0, "type": "table", "value": "station"}, {"id": 1, "type": "table", "value": "trip"}, {"id": 3, "type": "column", "value": "name"}, {"id": 4, "type": "column", "value": "city"}, {"id": 6, "type": "value", "value": "100"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [6]}, {"entity_id": 1, "token_idxs": [22]}, {"entity_id": 2, "token_idxs": [18]}, {"entity_id": 3, "token_idxs": [3]}, {"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", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O", "O", "B-TABLE"]}
{"question_id": 1796, "db_id": "soccer_2016", "dber_id": "bird:train.json:1818", "question": "In the database, how many times is the number of Indian cities to the South African cities?", "SQL": "SELECT CAST(SUM(CASE WHEN T2.Country_Name = 'India' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.Country_Name = 'South Africa' THEN 1 ELSE 0 END) FROM City AS T1 INNER JOIN Country AS T2 ON T1.Country_Id = T2.Country_Id", "tokens": ["In", "the", "database", ",", "how", "many", "times", "is", "the", "number", "of", "Indian", "cities", "to", "the", "South", "African", "cities", "?"], "entities": [{"id": 5, "type": "column", "value": "country_name"}, {"id": 6, "type": "value", "value": "South Africa"}, {"id": 2, "type": "column", "value": "country_id"}, {"id": 1, "type": "table", "value": "country"}, {"id": 7, "type": "value", "value": "India"}, {"id": 0, "type": "table", "value": "city"}, {"id": 3, "type": "value", "value": "0"}, {"id": 4, "type": "value", "value": "1"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [12, 17]}, {"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": [15, 16]}, {"entity_id": 7, "token_idxs": [11]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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-VALUE", "B-TABLE", "O", "O", "B-VALUE", "I-VALUE", "B-TABLE", "O"]}
{"question_id": 11792, "db_id": "hr_1", "dber_id": "spider:train_spider.json:3480", "question": "What are the names of departments that have at least one employee.", "SQL": "SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id", "tokens": ["What", "are", "the", "names", "of", "departments", "that", "have", "at", "least", "one", "employee", "."], "entities": [{"id": 0, "type": "column", "value": "department_name"}, {"id": 3, "type": "column", "value": "department_id"}, {"id": 2, "type": "table", "value": "departments"}, {"id": 1, "type": "table", "value": "employees"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [3]}, {"entity_id": 1, "token_idxs": [11]}, {"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-TABLE", "O", "O", "O", "O", "O", "B-TABLE", "O"]}
{"question_id": 400, "db_id": "shakespeare", "dber_id": "bird:train.json:2993", "question": "What is the description of the chapter with the longest number of paragraphs?", "SQL": "SELECT T2.Description FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id ORDER BY T1.ParagraphNum DESC LIMIT 1", "tokens": ["What", "is", "the", "description", "of", "the", "chapter", "with", "the", "longest", "number", "of", "paragraphs", "?"], "entities": [{"id": 3, "type": "column", "value": "paragraphnum"}, {"id": 0, "type": "column", "value": "description"}, {"id": 1, "type": "table", "value": "paragraphs"}, {"id": 4, "type": "column", "value": "chapter_id"}, {"id": 2, "type": "table", "value": "chapters"}, {"id": 5, "type": "column", "value": "id"}], "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": []}, {"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-TABLE", "O"]}
{"question_id": 12303, "db_id": "culture_company", "dber_id": "spider:train_spider.json:6985", "question": "Count the number of different directors.", "SQL": "SELECT COUNT (DISTINCT director) FROM movie", "tokens": ["Count", "the", "number", "of", "different", "directors", "."], "entities": [{"id": 1, "type": "column", "value": "director"}, {"id": 0, "type": "table", "value": "movie"}], "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": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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"]}
{"question_id": 8445, "db_id": "allergy_1", "dber_id": "spider:train_spider.json:475", "question": "Show all student ids who are older than 20.", "SQL": "SELECT StuID FROM Student WHERE age > 20", "tokens": ["Show", "all", "student", "ids", "who", "are", "older", "than", "20", "."], "entities": [{"id": 0, "type": "table", "value": "student"}, {"id": 1, "type": "column", "value": "stuid"}, {"id": 2, "type": "column", "value": "age"}, {"id": 3, "type": "value", "value": "20"}], "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]}, {"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", "B-VALUE", "O"]}
{"question_id": 3443, "db_id": "retail_complains", "dber_id": "bird:train.json:315", "question": "What is the average age of Norwalk clients?", "SQL": "SELECT CAST(SUM(T1.age) AS REAL) / COUNT(T1.age) AS average FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.city = 'Norwalk'", "tokens": ["What", "is", "the", "average", "age", "of", "Norwalk", "clients", "?"], "entities": [{"id": 4, "type": "column", "value": "district_id"}, {"id": 1, "type": "table", "value": "district"}, {"id": 3, "type": "value", "value": "Norwalk"}, {"id": 0, "type": "table", "value": "client"}, {"id": 2, "type": "column", "value": "city"}, {"id": 5, "type": "column", "value": "age"}], "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": [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-COLUMN", "O", "B-VALUE", "B-TABLE", "O"]}
{"question_id": 7397, "db_id": "candidate_poll", "dber_id": "spider:train_spider.json:2419", "question": "What is the sex of the candidate who had the highest unsure rate?", "SQL": "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1", "tokens": ["What", "is", "the", "sex", "of", "the", "candidate", "who", "had", "the", "highest", "unsure", "rate", "?"], "entities": [{"id": 4, "type": "column", "value": "unsure_rate"}, {"id": 2, "type": "table", "value": "candidate"}, {"id": 3, "type": "column", "value": "people_id"}, {"id": 1, "type": "table", "value": "people"}, {"id": 0, "type": "column", "value": "sex"}], "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": [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", "O", "B-COLUMN", "O", "O", "B-TABLE", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 1654, "db_id": "aan_1", "dber_id": "bird:test.json:967", "question": "How many affiliations do we have?", "SQL": "SELECT count(*) FROM Affiliation", "tokens": ["How", "many", "affiliations", "do", "we", "have", "?"], "entities": [{"id": 0, "type": "table", "value": "affiliation"}], "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"]}
{"question_id": 8818, "db_id": "codebase_community", "dber_id": "bird:dev.json:711", "question": "Among products comments with 0 score, what is the total number of users ages 40 years old?", "SQL": "SELECT COUNT(DISTINCT T1.id) FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Score = 0 AND T2.Age = 40", "tokens": ["Among", "products", "comments", "with", "0", "score", ",", "what", "is", "the", "total", "number", "of", "users", "ages", "40", "years", "old", "?"], "entities": [{"id": 0, "type": "table", "value": "comments"}, {"id": 3, "type": "column", "value": "userid"}, {"id": 1, "type": "table", "value": "users"}, {"id": 4, "type": "column", "value": "score"}, {"id": 6, "type": "column", "value": "age"}, {"id": 2, "type": "column", "value": "id"}, {"id": 7, "type": "value", "value": "40"}, {"id": 5, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [13]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [5]}, {"entity_id": 5, "token_idxs": [4]}, {"entity_id": 6, "token_idxs": [14]}, {"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", "B-VALUE", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "B-TABLE", "B-COLUMN", "B-VALUE", "O", "O", "O"]}
{"question_id": 14120, "db_id": "music_platform_2", "dber_id": "bird:train.json:7967", "question": "Which \"music\" podcast has the longest title?", "SQL": "SELECT T2.title FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'music' ORDER BY LENGTH(T2.title) DESC LIMIT 1", "tokens": ["Which", "\"", "music", "\"", "podcast", "has", "the", "longest", "title", "?"], "entities": [{"id": 1, "type": "table", "value": "categories"}, {"id": 5, "type": "column", "value": "podcast_id"}, {"id": 2, "type": "table", "value": "podcasts"}, {"id": 3, "type": "column", "value": "category"}, {"id": 0, "type": "column", "value": "title"}, {"id": 4, "type": "value", "value": "music"}], "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": []}, {"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"]}
{"question_id": 7711, "db_id": "restaurant_bills", "dber_id": "bird:test.json:640", "question": "Show distinct managers of branches.", "SQL": "SELECT DISTINCT Manager FROM branch", "tokens": ["Show", "distinct", "managers", "of", "branches", "."], "entities": [{"id": 1, "type": "column", "value": "manager"}, {"id": 0, "type": "table", "value": "branch"}], "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"]}
{"question_id": 1424, "db_id": "news_report", "dber_id": "spider:train_spider.json:2814", "question": "Show the names of journalists and the number of events they reported.", "SQL": "SELECT T3.Name , COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name", "tokens": ["Show", "the", "names", "of", "journalists", "and", "the", "number", "of", "events", "they", "reported", "."], "entities": [{"id": 4, "type": "column", "value": "journalist_id"}, {"id": 2, "type": "table", "value": "news_report"}, {"id": 1, "type": "table", "value": "journalist"}, {"id": 5, "type": "column", "value": "event_id"}, {"id": 3, "type": "table", "value": "event"}, {"id": 0, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [2]}, {"entity_id": 1, "token_idxs": [4]}, {"entity_id": 2, "token_idxs": [11]}, {"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", "O", "O", "B-TABLE", "O", "B-TABLE", "O"]}
{"question_id": 4915, "db_id": "world", "dber_id": "bird:train.json:7887", "question": "What is the average life expentancy of countries that speak Arabic?", "SQL": "SELECT AVG(T1.LifeExpectancy) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Arabic'", "tokens": ["What", "is", "the", "average", "life", "expentancy", "of", "countries", "that", "speak", "Arabic", "?"], "entities": [{"id": 1, "type": "table", "value": "countrylanguage"}, {"id": 4, "type": "column", "value": "lifeexpectancy"}, {"id": 6, "type": "column", "value": "countrycode"}, {"id": 2, "type": "column", "value": "language"}, {"id": 0, "type": "table", "value": "country"}, {"id": 3, "type": "value", "value": "Arabic"}, {"id": 5, "type": "column", "value": "code"}], "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": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": [9]}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": [1]}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "O", "O", "O"]}
{"question_id": 10651, "db_id": "movielens", "dber_id": "bird:train.json:2339", "question": "How many female actresses appeared in the movie 2312852, what country was it in, and what was it's running time?", "SQL": "SELECT SUM(IIF(T1.a_gender = 'F', 1, 0)) , T3.country, T3.runningtime FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid INNER JOIN movies AS T3 ON T2.movieid = T3.movieid WHERE T2.movieid = 2312852 GROUP BY T3.country, T3.runningtime", "tokens": ["How", "many", "female", "actresses", "appeared", "in", "the", "movie", "2312852", ",", "what", "country", "was", "it", "in", ",", "and", "what", "was", "it", "'s", "running", "time", "?"], "entities": [{"id": 6, "type": "table", "value": "movies2actors"}, {"id": 1, "type": "column", "value": "runningtime"}, {"id": 10, "type": "column", "value": "a_gender"}, {"id": 0, "type": "column", "value": "country"}, {"id": 3, "type": "column", "value": "movieid"}, {"id": 4, "type": "value", "value": "2312852"}, {"id": 9, "type": "column", "value": "actorid"}, {"id": 2, "type": "table", "value": "movies"}, {"id": 5, "type": "table", "value": "actors"}, {"id": 7, "type": "value", "value": "1"}, {"id": 8, "type": "value", "value": "0"}, {"id": 11, "type": "value", "value": "F"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"entity_id": 1, "token_idxs": [21, 22]}, {"entity_id": 2, "token_idxs": [7]}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": [8]}, {"entity_id": 5, "token_idxs": [3]}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": [2]}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"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", "B-TABLE", "B-VALUE", "O", "O", "B-COLUMN", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "I-COLUMN", "O"]}
{"question_id": 13760, "db_id": "image_and_language", "dber_id": "bird:train.json:7521", "question": "What are the captions of all the self-relation relationship prediction classes?", "SQL": "SELECT T2.PRED_CLASS FROM IMG_REL AS T1 INNER JOIN pred_classes AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.OBJ1_SAMPLE_ID = T1.OBJ2_SAMPLE_ID GROUP BY T2.PRED_CLASS", "tokens": ["What", "are", "the", "captions", "of", "all", "the", "self", "-", "relation", "relationship", "prediction", "classes", "?"], "entities": [{"id": 3, "type": "column", "value": "obj1_sample_id"}, {"id": 4, "type": "column", "value": "obj2_sample_id"}, {"id": 5, "type": "column", "value": "pred_class_id"}, {"id": 2, "type": "table", "value": "pred_classes"}, {"id": 0, "type": "column", "value": "pred_class"}, {"id": 1, "type": "table", "value": "img_rel"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [11]}, {"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": []}, {"entity_id": 6, "token_idxs": []}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "B-COLUMN", "B-TABLE", "O"]}
{"question_id": 936, "db_id": "food_inspection", "dber_id": "bird:train.json:8807", "question": "How many foodborne illness investigations were done in 2014?", "SQL": "SELECT COUNT(business_id) FROM inspections WHERE STRFTIME('%Y', `date`) = '2014' AND type = 'Foodborne Illness Investigation'", "tokens": ["How", "many", "foodborne", "illness", "investigations", "were", "done", "in", "2014", "?"], "entities": [{"id": 4, "type": "value", "value": "Foodborne Illness Investigation"}, {"id": 0, "type": "table", "value": "inspections"}, {"id": 1, "type": "column", "value": "business_id"}, {"id": 2, "type": "value", "value": "2014"}, {"id": 3, "type": "column", "value": "type"}, {"id": 6, "type": "column", "value": "date"}, {"id": 5, "type": "value", "value": "%Y"}], "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": []}, {"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-VALUE", "O", "O", "B-TABLE", "O", "O"]}
{"question_id": 1894, "db_id": "book_1", "dber_id": "bird:test.json:553", "question": "Show the client name who has the most total amount of books ordered.", "SQL": "SELECT T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient JOIN Books_Order AS T3 ON T3.idOrder = T1.idOrder GROUP BY T1.idClient ORDER BY sum(T3.amount) DESC LIMIT 1", "tokens": ["Show", "the", "client", "name", "who", "has", "the", "most", "total", "amount", "of", "books", "ordered", "."], "entities": [{"id": 2, "type": "table", "value": "books_order"}, {"id": 0, "type": "column", "value": "idclient"}, {"id": 5, "type": "column", "value": "idorder"}, {"id": 3, "type": "table", "value": "orders"}, {"id": 4, "type": "table", "value": "client"}, {"id": 6, "type": "column", "value": "amount"}, {"id": 1, "type": "column", "value": "name"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [3]}, {"entity_id": 2, "token_idxs": [11]}, {"entity_id": 3, "token_idxs": [12]}, {"entity_id": 4, "token_idxs": [2]}, {"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", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "O", "B-COLUMN", "O", "B-TABLE", "B-TABLE", "O"]}
{"question_id": 14405, "db_id": "movie_3", "dber_id": "bird:train.json:9206", "question": "How many percent of customers were inactive?", "SQL": "SELECT CAST(SUM(IIF(active = 0, 1, 0)) AS REAL) * 100 / COUNT(customer_id) FROM customer", "tokens": ["How", "many", "percent", "of", "customers", "were", "inactive", "?"], "entities": [{"id": 2, "type": "column", "value": "customer_id"}, {"id": 0, "type": "table", "value": "customer"}, {"id": 5, "type": "column", "value": "active"}, {"id": 1, "type": "value", "value": "100"}, {"id": 3, "type": "value", "value": "1"}, {"id": 4, "type": "value", "value": "0"}], "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": [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-TABLE", "O", "B-COLUMN", "O"]}
{"question_id": 1403, "db_id": "airline", "dber_id": "bird:train.json:5865", "question": "What is the name of the airline with the highest number of non-cancelled flights?", "SQL": "SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.CANCELLED = 0 GROUP BY T2.Description ORDER BY COUNT(T1.CANCELLED) DESC LIMIT 1", "tokens": ["What", "is", "the", "name", "of", "the", "airline", "with", "the", "highest", "number", "of", "non", "-", "cancelled", "flights", "?"], "entities": [{"id": 5, "type": "column", "value": "op_carrier_airline_id"}, {"id": 2, "type": "table", "value": "Air Carriers"}, {"id": 0, "type": "column", "value": "description"}, {"id": 3, "type": "column", "value": "cancelled"}, {"id": 1, "type": "table", "value": "airlines"}, {"id": 6, "type": "column", "value": "code"}, {"id": 4, "type": "value", "value": "0"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [6]}, {"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", "O", "O", "B-TABLE", "O", "O", "O", "O", "O", "O", "O", "B-COLUMN", "O", "O"]}
{"question_id": 2167, "db_id": "university", "dber_id": "bird:train.json:8129", "question": "In what year does the Brown University score the highest?", "SQL": "SELECT T1.year FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Brown University' ORDER BY T1.score DESC LIMIT 1", "tokens": ["In", "what", "year", "does", "the", "Brown", "University", "score", "the", "highest", "?"], "entities": [{"id": 1, "type": "table", "value": "university_ranking_year"}, {"id": 4, "type": "value", "value": "Brown University"}, {"id": 3, "type": "column", "value": "university_name"}, {"id": 6, "type": "column", "value": "university_id"}, {"id": 2, "type": "table", "value": "university"}, {"id": 5, "type": "column", "value": "score"}, {"id": 0, "type": "column", "value": "year"}, {"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": [6]}, {"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-COLUMN", "O", "O", "B-VALUE", "B-TABLE", "B-COLUMN", "O", "O", "O"]}
{"question_id": 2621, "db_id": "world_development_indicators", "dber_id": "bird:train.json:2124", "question": "What are the sources for the data of children who finished primary school education in North American countries?", "SQL": "SELECT DISTINCT T3.Description FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode INNER JOIN CountryNotes AS T3 ON T2.CountryCode = T3.Countrycode WHERE T1.Region = 'North America' AND T2.IndicatorName = 'Out-of-school children of primary school age, both sexes (number)'", "tokens": ["What", "are", "the", "sources", "for", "the", "data", "of", "children", "who", "finished", "primary", "school", "education", "in", "North", "American", "countries", "?"], "entities": [{"id": 8, "type": "value", "value": "Out-of-school children of primary school age, both sexes (number)"}, {"id": 6, "type": "value", "value": "North America"}, {"id": 7, "type": "column", "value": "indicatorname"}, {"id": 1, "type": "table", "value": "countrynotes"}, {"id": 0, "type": "column", "value": "description"}, {"id": 4, "type": "column", "value": "countrycode"}, {"id": 3, "type": "table", "value": "indicators"}, {"id": 2, "type": "table", "value": "country"}, {"id": 5, "type": "column", "value": "region"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": [17]}, {"entity_id": 2, "token_idxs": []}, {"entity_id": 3, "token_idxs": []}, {"entity_id": 4, "token_idxs": []}, {"entity_id": 5, "token_idxs": []}, {"entity_id": 6, "token_idxs": [15, 16]}, {"entity_id": 7, "token_idxs": []}, {"entity_id": 8, "token_idxs": [8, 11, 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", "O", "O", "O", "O", "O", "O", "B-VALUE", "O", "O", "B-VALUE", "I-VALUE", "O", "O", "B-VALUE", "I-VALUE", "B-TABLE", "O"]}
{"question_id": 2647, "db_id": "club_leader", "dber_id": "bird:test.json:659", "question": "What is the average age of all the club leaders?", "SQL": "SELECT avg(T2.age) FROM club_leader AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id", "tokens": ["What", "is", "the", "average", "age", "of", "all", "the", "club", "leaders", "?"], "entities": [{"id": 0, "type": "table", "value": "club_leader"}, {"id": 3, "type": "column", "value": "member_id"}, {"id": 1, "type": "table", "value": "member"}, {"id": 2, "type": "column", "value": "age"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [8, 9]}, {"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": []}, {"entity_id": 8, "token_idxs": []}, {"entity_id": 9, "token_idxs": []}, {"entity_id": 10, "token_idxs": []}, {"entity_id": 11, "token_idxs": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "I-TABLE", "O"]}
{"question_id": 7956, "db_id": "club_leader", "dber_id": "bird:test.json:660", "question": "Which club name contains the string 'state'?", "SQL": "SELECT club_name FROM club WHERE club_name LIKE '%state%'", "tokens": ["Which", "club", "name", "contains", "the", "string", "'", "state", "'", "?"], "entities": [{"id": 1, "type": "column", "value": "club_name"}, {"id": 2, "type": "value", "value": "%state%"}, {"id": 0, "type": "table", "value": "club"}], "entity_to_token": [{"entity_id": 0, "token_idxs": [1]}, {"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", "B-TABLE", "B-COLUMN", "O", "O", "O", "O", "B-VALUE", "O", "O"]}
{"question_id": 8288, "db_id": "car_retails", "dber_id": "bird:train.json:1600", "question": "How many customers with a canceled shipment have a credit limit greater than 115,000?", "SQL": "SELECT COUNT(T1.customerNumber) FROM customers AS T1 INNER JOIN orders AS T2 ON T1.customerNumber = T2.customerNumber WHERE T2.status = 'Cancelled' AND T1.creditLimit > 115000", "tokens": ["How", "many", "customers", "with", "a", "canceled", "shipment", "have", "a", "credit", "limit", "greater", "than", "115,000", "?"], "entities": [{"id": 2, "type": "column", "value": "customernumber"}, {"id": 5, "type": "column", "value": "creditlimit"}, {"id": 0, "type": "table", "value": "customers"}, {"id": 4, "type": "value", "value": "Cancelled"}, {"id": 1, "type": "table", "value": "orders"}, {"id": 3, "type": "column", "value": "status"}, {"id": 6, "type": "value", "value": "115000"}], "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": [8, 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": []}, {"entity_id": 12, "token_idxs": []}, {"entity_id": 13, "token_idxs": []}, {"entity_id": 14, "token_idxs": []}, {"entity_id": 15, "token_idxs": []}, {"entity_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", "O", "O", "O"]}
{"question_id": 4557, "db_id": "soccer_2", "dber_id": "spider:train_spider.json:5031", "question": "How many schools have students playing in goalie and mid-field positions?", "SQL": "SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid')", "tokens": ["How", "many", "schools", "have", "students", "playing", "in", "goalie", "and", "mid", "-", "field", "positions", "?"], "entities": [{"id": 0, "type": "table", "value": "tryout"}, {"id": 3, "type": "value", "value": "goalie"}, {"id": 1, "type": "column", "value": "cname"}, {"id": 2, "type": "column", "value": "ppos"}, {"id": 4, "type": "value", "value": "mid"}], "entity_to_token": [{"entity_id": 0, "token_idxs": []}, {"entity_id": 1, "token_idxs": []}, {"entity_id": 2, "token_idxs": [12]}, {"entity_id": 3, "token_idxs": [7]}, {"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", "O", "O", "O", "O", "B-VALUE", "O", "B-VALUE", "O", "O", "B-COLUMN", "O"]}
{"question_id": 1312, "db_id": "public_review_platform", "dber_id": "bird:train.json:3902", "question": "How many users received high compliment type in photo?", "SQL": "SELECT COUNT(T1.user_id) FROM Users_Compliments AS T1 INNER JOIN Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.number_of_compliments LIKE 'High' AND T2.compliment_id = 1", "tokens": ["How", "many", "users", "received", "high", "compliment", "type", "in", "photo", "?"], "entities": [{"id": 4, "type": "column", "value": "number_of_compliments"}, {"id": 0, "type": "table", "value": "users_compliments"}, {"id": 3, "type": "column", "value": "compliment_id"}, {"id": 1, "type": "table", "value": "compliments"}, {"id": 2, "type": "column", "value": "user_id"}, {"id": 5, "type": "value", "value": "High"}, {"id": 6, "type": "value", "value": "1"}], "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", "O", "O"]}