[ { "db_id": "baseball_1", "query": "SELECT T1.name_full , T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_full", ",", "T1.college_id", "FROM", "college", "AS", "T1", "JOIN", "player_college", "AS", "T2", "ON", "T1.college_id", "=", "T2.college_id", "GROUP", "BY", "T1.college_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_full", ",", "t1", ".", "college_id", "from", "college", "as", "t1", "join", "player_college", "as", "t2", "on", "t1", ".", "college_id", "=", "t2", ".", "college_id", "group", "by", "t1", ".", "college_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "野球選手の数が最も多い大学のフルネームとIDは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 21 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 277, false ], null ], [ 0, 101, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 278, false ], null ] ], [ 0, [ 0, [ 0, 277, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 277, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_full , T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_full", ",", "T1.college_id", "FROM", "college", "AS", "T1", "JOIN", "player_college", "AS", "T2", "ON", "T1.college_id", "=", "T2.college_id", "GROUP", "BY", "T1.college_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_full", ",", "t1", ".", "college_id", "from", "college", "as", "t1", "join", "player_college", "as", "t2", "on", "t1", ".", "college_id", "=", "t2", ".", "college_id", "group", "by", "t1", ".", "college_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "野球選手が最も多い大学のフルネームとIDを見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 21 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 277, false ], null ], [ 0, 101, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 278, false ], null ] ], [ 0, [ 0, [ 0, 277, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 277, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "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'", "query_toks": [ "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", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value" ], "question": "「Boston Red Stockings」という名前のチームの選手の平均給与はいくらですか?", "sql": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 273, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "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'", "query_toks": [ "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", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value" ], "question": "「Boston Red Stockings」と呼ばれるチームの選手の平均給与を計算します。", "sql": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 273, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "AS", "T1", "JOIN", "all_star", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "YEAR", "=", "1998" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "as", "t1", "join", "all_star", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "year", "=", "value" ], "question": "1998年にオールスターゲームに参加した選手の名前と苗字は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1998.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "AS", "T1", "JOIN", "all_star", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "YEAR", "=", "1998" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "as", "t1", "join", "all_star", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "year", "=", "value" ], "question": "1998年にオールスターゲームに参加したプレーヤーの名前と苗字をリストします。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1998.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T1.player_id , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", ",", "count", "(", "*", ")", "FROM", "player", "AS", "T1", "JOIN", "all_star", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", ",", "count", "(", "*", ")", "from", "player", "as", "t1", "join", "all_star", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "スターゲームの経験が最も多いプレーヤーの名前、苗字、IDは何ですか?カウントもリストします。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ], [ 0, [ 0, [ 0, 182, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 182, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T1.player_id , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", ",", "count", "(", "*", ")", "FROM", "player", "AS", "T1", "JOIN", "all_star", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", ",", "count", "(", "*", ")", "from", "player", "as", "t1", "join", "all_star", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "どのプレーヤーが最も多くのアールスターゲームの経験を持っていますか?プレーヤーの名前、苗字、ID、およびプレーヤーがオールスターゲームに参加した回数を教えてください。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ], [ 0, [ 0, [ 0, 182, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 182, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT yearid , count(*) FROM hall_of_fame GROUP BY yearid;", "query_toks": [ "SELECT", "yearid", ",", "count", "(", "*", ")", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", ";" ], "query_toks_no_value": [ "select", "yearid", ",", "count", "(", "*", ")", "from", "hall_of_fame", "group", "by", "yearid" ], "question": "毎年何人のプレイヤーが「hall of fame 」に入りしますか?", "sql": { "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 145, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 145, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT yearid , count(*) FROM hall_of_fame GROUP BY yearid;", "query_toks": [ "SELECT", "yearid", ",", "count", "(", "*", ")", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", ";" ], "query_toks_no_value": [ "select", "yearid", ",", "count", "(", "*", ")", "from", "hall_of_fame", "group", "by", "yearid" ], "question": "毎年、「hall of fame 」に入りしたプレーヤーの数を数えます。", "sql": { "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 145, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 145, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT YEAR , avg(attendance) FROM home_game GROUP BY YEAR;", "query_toks": [ "SELECT", "YEAR", ",", "avg", "(", "attendance", ")", "FROM", "home_game", "GROUP", "BY", "YEAR", ";" ], "query_toks_no_value": [ "select", "year", ",", "avg", "(", "attendance", ")", "from", "home_game", "group", "by", "year" ], "question": "毎年のホームゲームへの平均参加者数はいくつですか?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 153, false ], null ] ], [ 5, [ 0, [ 0, 161, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 153, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT YEAR , avg(attendance) FROM home_game GROUP BY YEAR;", "query_toks": [ "SELECT", "YEAR", ",", "avg", "(", "attendance", ")", "FROM", "home_game", "GROUP", "BY", "YEAR", ";" ], "query_toks_no_value": [ "select", "year", ",", "avg", "(", "attendance", ")", "from", "home_game", "group", "by", "year" ], "question": "年とホームゲームへの平均参加数を返します。", "sql": { "from": { "table_units": [ [ "table_unit", 13 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 153, false ], null ] ], [ 5, [ 0, [ 0, 161, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 153, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.team_id , T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.team_id", ",", "T2.rank", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "WHERE", "T1.year", "=", "2014", "GROUP", "BY", "T1.team_id", "ORDER", "BY", "avg", "(", "T1.attendance", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "team_id", ",", "t2", ".", "rank", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "where", "t1", ".", "year", "=", "value", "group", "by", "t1", ".", "team_id", "order", "by", "avg", "(", "t1", ".", "attendance", ")", "desc", "limit", "value" ], "question": "2014年に、平均出席数が最も多いチームのIDとランクは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 293, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 293, false ], null ] ], [ 0, [ 0, [ 0, 296, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 2014.0, null ] ], "groupBy": [ [ 0, 155, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 5, 161, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.team_id , T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.team_id", ",", "T2.rank", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "WHERE", "T1.year", "=", "2014", "GROUP", "BY", "T1.team_id", "ORDER", "BY", "avg", "(", "T1.attendance", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "team_id", ",", "t2", ".", "rank", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "where", "t1", ".", "year", "=", "value", "group", "by", "t1", ".", "team_id", "order", "by", "avg", "(", "t1", ".", "attendance", ")", "desc", "limit", "value" ], "question": "2014年に平均出席率が最も高いチームのIDとランクを見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 293, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 293, false ], null ] ], [ 0, [ 0, [ 0, 296, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 2014.0, null ] ], "groupBy": [ [ 0, 155, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 5, 161, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T2.player_id", "FROM", "player", "AS", "T1", "JOIN", "manager_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T2.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t2", ".", "player_id", "from", "player", "as", "t1", "join", "manager_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t2", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "最も多くマネージャー賞を受賞したマネージャーの名前、苗字、IDは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 30, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ], [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 30, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T2.player_id", "FROM", "player", "AS", "T1", "JOIN", "manager_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T2.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t2", ".", "player_id", "from", "player", "as", "t1", "join", "manager_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t2", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "どのマネージャーが最もマネージャー賞を受賞しましたか?マネージャーの名前、苗字、IDを教えてください。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 30, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ], [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 30, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM park WHERE state = 'NY';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "park", "WHERE", "state", "=", "'NY", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "park", "where", "state", "=", "value" ], "question": "「NY」にはいくつの公園がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 17 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"NY\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM park WHERE state = 'NY';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "park", "WHERE", "state", "=", "'NY", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "park", "where", "state", "=", "value" ], "question": "「NY」にある公園の数を教えてください。", "sql": { "from": { "table_units": [ [ "table_unit", 17 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 210, false ], null ], "\"NY\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "どの3人のプレーヤーが最も多くのプレーヤー賞を獲得しましたか?フルネームとIDをリストします。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 36, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ], [ 0, [ 0, [ 0, 182, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 182, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "最も多くのプレーヤー賞を獲得した上位3人のプレーヤーの名、苗字、IDを見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 36, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ], [ 0, [ 0, [ 0, 182, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 182, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;", "query_toks": [ "SELECT", "birth_country", "FROM", "player", "GROUP", "BY", "birth_country", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "birth_country", "from", "player", "group", "by", "birth_country", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "プレーヤーが最も少ない3つの国はどこですか?", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 186, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 186, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;", "query_toks": [ "SELECT", "birth_country", "FROM", "player", "GROUP", "BY", "birth_country", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "birth_country", "from", "player", "group", "by", "birth_country", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "プレーヤーが最も少ない3つの国はどこですか?", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 186, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 186, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player WHERE death_year = '';", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "death_year", "=", "''", ";" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "where", "death_year", "=", "value" ], "question": "空の死亡記録を持つすべてのプレーヤーの名と苗字を検索します。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 189, false ], null ], "\"\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player WHERE death_year = '';", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "death_year", "=", "''", ";" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "where", "death_year", "=", "value" ], "question": "死亡記録ないプレイヤーの名前と苗字は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 189, false ], null ], "\"\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats = 'R';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "player", "WHERE", "birth_country", "=", "'USA", "'", "AND", "bats", "=", "'R", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "player", "where", "birth_country", "=", "value", "and", "bats", "=", "value" ], "question": "「アメリカ」で生まれた右利きの打者は何人ですか?つまり、打者の値は「R」です。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 186, false ], null ], "\"USA\"", null ], "and", [ false, 2, [ 0, [ 0, 200, false ], null ], "\"R\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats = 'R';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "player", "WHERE", "birth_country", "=", "'USA", "'", "AND", "bats", "=", "'R", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "player", "where", "birth_country", "=", "value", "and", "bats", "=", "value" ], "question": "「アメリカ」で生まれ、コウモリの情報「R」を持っているプレーヤーの数を数えます。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 186, false ], null ], "\"USA\"", null ], "and", [ false, 2, [ 0, [ 0, 200, false ], null ], "\"R\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "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';", "query_toks": [ "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", "'", ";" ], "query_toks_no_value": [ "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", "=", "value" ], "question": "「Yale University」という名前の大学の選手の平均身長はどれくらいですか?", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 8 ], [ "table_unit", 21 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 100, false ], null ], "and", [ false, 2, [ 0, [ 0, 277, false ], null ], [ 0, 101, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 199, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 278, false ], null ], "\"Yale University\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "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';", "query_toks": [ "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", "'", ";" ], "query_toks_no_value": [ "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", "=", "value" ], "question": "「Yale University」と呼ばれる大学に所属する選手の平均身長を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 8 ], [ "table_unit", 21 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 100, false ], null ], "and", [ false, 2, [ 0, [ 0, 277, false ], null ], [ 0, 101, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 199, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 278, false ], null ], "\"Yale University\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name , T1.team_id , max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id;", "query_toks": [ "SELECT", "T1.name", ",", "T1.team_id", ",", "max", "(", "T2.salary", ")", "FROM", "team", "AS", "T1", "JOIN", "salary", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "GROUP", "BY", "T1.team_id", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "team_id", ",", "max", "(", "t2", ".", "salary", ")", "from", "team", "as", "t1", "join", "salary", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "group", "by", "t1", ".", "team_id" ], "question": "各チームの中で最高の給料はいくらですか?チーム名、ID、および最高給与をリストします。", "sql": { "from": { "table_units": [ [ "table_unit", 23 ], [ "table_unit", 20 ] ], "conds": [ [ false, 2, [ 0, [ 0, 293, false ], null ], [ 0, 273, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 331, false ], null ] ], [ 0, [ 0, [ 0, 293, false ], null ] ], [ 1, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 293, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name , T1.team_id , max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id;", "query_toks": [ "SELECT", "T1.name", ",", "T1.team_id", ",", "max", "(", "T2.salary", ")", "FROM", "team", "AS", "T1", "JOIN", "salary", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "GROUP", "BY", "T1.team_id", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "team_id", ",", "max", "(", "t2", ".", "salary", ")", "from", "team", "as", "t1", "join", "salary", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "group", "by", "t1", ".", "team_id" ], "question": "チームごとに、チーム名、ID、およびチーム間の最高給与を返します。", "sql": { "from": { "table_units": [ [ "table_unit", 23 ], [ "table_unit", 20 ] ], "conds": [ [ false, 2, [ 0, [ 0, 293, false ], null ], [ 0, 273, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 331, false ], null ] ], [ 0, [ 0, [ 0, 293, false ], null ] ], [ 1, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 293, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name , T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;", "query_toks": [ "SELECT", "T1.name", ",", "T1.team_id", "FROM", "team", "AS", "T1", "JOIN", "salary", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "GROUP", "BY", "T1.team_id", "ORDER", "BY", "avg", "(", "T2.salary", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "team_id", "from", "team", "as", "t1", "join", "salary", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "group", "by", "t1", ".", "team_id", "order", "by", "avg", "(", "t2", ".", "salary", ")", "asc", "limit", "value" ], "question": "最も低い平均給与を提供しているチームの名前とIDは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 23 ], [ "table_unit", 20 ] ], "conds": [ [ false, 2, [ 0, [ 0, 293, false ], null ], [ 0, 273, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 331, false ], null ] ], [ 0, [ 0, [ 0, 293, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 293, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 5, 276, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name , T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;", "query_toks": [ "SELECT", "T1.name", ",", "T1.team_id", "FROM", "team", "AS", "T1", "JOIN", "salary", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "GROUP", "BY", "T1.team_id", "ORDER", "BY", "avg", "(", "T2.salary", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "team_id", "from", "team", "as", "t1", "join", "salary", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "group", "by", "t1", ".", "team_id", "order", "by", "avg", "(", "t2", ".", "salary", ")", "asc", "limit", "value" ], "question": "平均給与が最も低いチームはどれですか?チームの名前とIDを教えてください。", "sql": { "from": { "table_units": [ [ "table_unit", 23 ], [ "table_unit", 20 ] ], "conds": [ [ false, 2, [ 0, [ 0, 293, false ], null ], [ 0, 273, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 331, false ], null ] ], [ 0, [ 0, [ 0, 293, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 293, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 5, 276, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "WHERE", "T2.year", "=", "1960", "INTERSECT", "SELECT", "T1.name_first", ",", "T1.name_last", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "WHERE", "T2.year", "=", "1961" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "where", "t2", ".", "year", "=", "value", "intersect", "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "where", "t2", ".", "year", "=", "value" ], "question": "1960年と1961年の両方で賞を受賞したプレーヤーの名前と苗字を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 1960.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 1961.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "WHERE", "T2.year", "=", "1960", "INTERSECT", "SELECT", "T1.name_first", ",", "T1.name_last", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "WHERE", "T2.year", "=", "1961" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "where", "t2", ".", "year", "=", "value", "intersect", "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "where", "t2", ".", "year", "=", "value" ], "question": "1960年と1961年の両方でどのプレーヤーが賞を受賞しましたか?名と姓を返します。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 1960.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 1961.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player WHERE weight > 220 OR height < 75", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value" ], "question": "体重が220を超えるか、身長が75未満のプレーヤーの名前と苗字をリストします。", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 198, false ], null ], 220.0, null ], "or", [ false, 4, [ 0, [ 0, 199, false ], null ], 75.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player WHERE weight > 220 OR height < 75", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value" ], "question": "体重が220を超える、または身長が75未満のプレーヤーの名前と苗字は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 198, false ], null ], 220.0, null ], "or", [ false, 4, [ 0, [ 0, 199, false ], null ], 75.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings';", "query_toks": [ "SELECT", "max", "(", "T1.wins", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", ";" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "wins", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value" ], "question": "チームがポストシーズンに勝ったときのチーム「Boston Red Stockings」の最大スコアをリストしますか?", "sql": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 284, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 1, [ 0, [ 0, 288, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings';", "query_toks": [ "SELECT", "max", "(", "T1.wins", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", ";" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "wins", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value" ], "question": "チームがポストシーズンに勝ったときにチーム「Boston Red Stockings」 が獲得した最大スコアは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 284, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 1, [ 0, [ 0, 288, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2009", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "「Boston Red Stockings」は2009年のポストシーズンに何回負けましたか?", "sql": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 286, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 282, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2009", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "チーム「Boston Red Stockings」が2009年のポストシーズンに失った回数を数えます。", "sql": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 286, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 282, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.name , T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", ",", "T1.team_id_winner", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "2008", "GROUP", "BY", "T1.team_id_winner", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "team_id_winner", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "group", "by", "t1", ".", "team_id_winner", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "2008年のポストシーズンで最も勝利を収めたチームの名前とIDは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 284, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 331, false ], null ] ], [ 0, [ 0, [ 0, 284, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 282, false ], null ], 2008.0, null ] ], "groupBy": [ [ 0, 284, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.name , T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", ",", "T1.team_id_winner", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "2008", "GROUP", "BY", "T1.team_id_winner", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "team_id_winner", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "group", "by", "t1", ".", "team_id_winner", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "2008年のポストシーズンで最も多く優勝したチームの名前とIDを見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 284, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 331, false ], null ] ], [ 0, [ 0, [ 0, 284, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 282, false ], null ], 2008.0, null ] ], "groupBy": [ [ 0, 284, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.year", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "GROUP", "BY", "T1.year" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "year", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "group", "by", "t1", ".", "year" ], "question": "「Boston Red Stockings」のチームが歴史上毎年ポストシーズンで獲得した勝利の数はいくつですか?", "sql": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 284, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 282, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [ [ 0, 282, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.year", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "GROUP", "BY", "T1.year" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "year", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "group", "by", "t1", ".", "year" ], "question": "毎年、ポストシーズンにチーム「Boston Red Stockings」が勝った年と回数を返します。", "sql": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 284, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 282, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [ [ 0, 282, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "(", "SELECT", "*", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "UNION", "SELECT", "*", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "*", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "union", "select", "*", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", ")" ], "question": "チーム「Boston Red Stockings」が参加したポストシーズンゲームの総数はいくつですか?", "sql": { "from": { "table_units": [ [ "sql", { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 284, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 286, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "(", "SELECT", "*", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "UNION", "SELECT", "*", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "*", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "union", "select", "*", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", ")" ], "question": "チーム「Boston Red Stockings」は、シーズン後の試合に合計何回参加しましたか?", "sql": { "from": { "table_units": [ [ "sql", { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 284, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 286, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM postseason WHERE YEAR = 1885 AND ties = 1;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "postseason", "WHERE", "YEAR", "=", "1885", "AND", "ties", "=", "1", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "postseason", "where", "year", "=", "value", "and", "ties", "=", "value" ], "question": "1885年のポストシーズンに同点になったレース数(つまり、「ties」の値は「1」です)?", "sql": { "from": { "table_units": [ [ "table_unit", 22 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 282, false ], null ], 1885.0, null ], "and", [ false, 2, [ 0, [ 0, 290, false ], null ], 1.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM postseason WHERE YEAR = 1885 AND ties = 1;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "postseason", "WHERE", "YEAR", "=", "1885", "AND", "ties", "=", "1", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "postseason", "where", "year", "=", "value", "and", "ties", "=", "value" ], "question": "1885年のポストシーズンにおける同点のゲームの数(「ties」の値は「1」)を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 22 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 282, false ], null ], 1885.0, null ], "and", [ false, 2, [ 0, [ 0, 290, false ], null ], 1.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010", "query_toks": [ "SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2010" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "2010年にチーム「Boston Red Stockings」によって支払われた総給与はいくらですか?", "sql": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 273, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 272, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010", "query_toks": [ "SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2010" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "2010年のチーム「Boston Red Stockings」の総給与費用はいくらですか?", "sql": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 273, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 272, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "2000年に「Boston Red Stockings」チームには何人の選手がいましたか?", "sql": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 273, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 272, false ], null ], 2000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "「Boston Red Stockings」には2000年に何人の選手がいましたか?", "sql": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 273, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 272, false ], null ], 2000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3;", "query_toks": [ "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001", "ORDER", "BY", "salary", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "salary", "from", "salary", "where", "year", "=", "value", "order", "by", "salary", "desc", "limit", "value" ], "question": "2001年の選手の最高給与を3つ挙げてください。", "sql": { "from": { "table_units": [ [ "table_unit", 20 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2001.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 276, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3;", "query_toks": [ "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001", "ORDER", "BY", "salary", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "salary", "from", "salary", "where", "year", "=", "value", "order", "by", "salary", "desc", "limit", "value" ], "question": "2001年の選手の最高給与を3つ挙げてください。", "sql": { "from": { "table_units": [ [ "table_unit", 20 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2001.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 276, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001", "query_toks": [ "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2010", "UNION", "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001" ], "query_toks_no_value": [ "select", "salary", "from", "salary", "where", "year", "=", "value", "union", "select", "salary", "from", "salary", "where", "year", "=", "value" ], "question": "2010年と2001年のプレーヤーの給与額はすべて何でしたか?", "sql": { "from": { "table_units": [ [ "table_unit", 20 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 20 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2001.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "baseball_1", "query": "SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001", "query_toks": [ "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2010", "UNION", "SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001" ], "query_toks_no_value": [ "select", "salary", "from", "salary", "where", "year", "=", "value", "union", "select", "salary", "from", "salary", "where", "year", "=", "value" ], "question": "2010年と2001年にプレーヤーが受け取ったすべての給与値を一覧表示します。", "sql": { "from": { "table_units": [ [ "table_unit", 20 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 20 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2001.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "baseball_1", "query": "SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "yearid", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "yearid", "from", "hall_of_fame", "group", "by", "yearid", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "「hall of fame」に入る人が最も少なかったのは何年ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 145, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 145, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "yearid", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "yearid", "from", "hall_of_fame", "group", "by", "yearid", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "「hall of fame」に入る人が最も少ない年を見つけてください。", "sql": { "from": { "table_units": [ [ "table_unit", 12 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 145, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 145, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM park WHERE city = 'Atlanta';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "park", "WHERE", "city", "=", "'Atlanta", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "park", "where", "city", "=", "value" ], "question": "「Atlanta」市にはいくつの公園がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 17 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 209, false ], null ], "\"Atlanta\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM park WHERE city = 'Atlanta';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "park", "WHERE", "city", "=", "'Atlanta", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "park", "where", "city", "=", "value" ], "question": "「Atlanta」市にはいくつの公園がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 17 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 209, false ], null ], "\"Atlanta\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "1907", "AND", "T2.park_name", "=", "'Columbia", "Park", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "park_name", "=", "value" ], "question": "1907年に公園「Columbia Park」で何試合プレイされましたか?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 17 ] ], "conds": [ [ false, 2, [ 0, [ 0, 156, false ], null ], [ 0, 206, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 1907.0, null ], "and", [ false, 2, [ 0, [ 0, 207, false ], null ], "\"Columbia Park\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "1907", "AND", "T2.park_name", "=", "'Columbia", "Park", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "park_name", "=", "value" ], "question": "1907年に公園「Columbia Park」で行われたゲームの数を数えます。", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 17 ] ], "conds": [ [ false, 2, [ 0, [ 0, 156, false ], null ], [ 0, 206, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 1907.0, null ], "and", [ false, 2, [ 0, [ 0, 207, false ], null ], "\"Columbia Park\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2000 AND T2.city = 'Atlanta';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "2000", "AND", "T2.city", "=", "'Atlanta", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "city", "=", "value" ], "question": "2000年に「Atlanta」市で何試合プレイされましたか?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 17 ] ], "conds": [ [ false, 2, [ 0, [ 0, 156, false ], null ], [ 0, 206, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 2000.0, null ], "and", [ false, 2, [ 0, [ 0, 209, false ], null ], "\"Atlanta\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2000 AND T2.city = 'Atlanta';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "2000", "AND", "T2.city", "=", "'Atlanta", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "city", "=", "value" ], "question": "2000年に「Atlanta」市で行われたゲームの数を調べます。", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 17 ] ], "conds": [ [ false, 2, [ 0, [ 0, 156, false ], null ], [ 0, 206, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 2000.0, null ], "and", [ false, 2, [ 0, [ 0, 209, false ], null ], "\"Atlanta\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;", "query_toks": [ "SELECT", "sum", "(", "T1.attendance", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "2000", "AND", "2010", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "attendance", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "2000年から2010年までのチーム「Boston Red Stockings」のホームゲームへの総参加者数は?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 161, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 1, [ 0, [ 0, 153, false ], null ], 2000.0, 2010.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;", "query_toks": [ "SELECT", "sum", "(", "T1.attendance", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "2000", "AND", "2010", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "attendance", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "チーム「Boston Red Stockings」は2000年から2010年までに合計何試合に参加しましたか?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 161, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 1, [ 0, [ 0, 153, false ], null ], 2000.0, 2010.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;", "query_toks": [ "SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "T2.name_first", "=", "'Len", "'", "AND", "T2.name_last", "=", "'Barker", "'", "AND", "T1.year", "BETWEEN", "1985", "AND", "1990", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "t2", ".", "name_first", "=", "value", "and", "t2", ".", "name_last", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "1985年から1990年の間に、「Len」という名前と「Barker」という苗字のプレーヤーの合計でいくら稼ぎましたか?", "sql": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 16 ] ], "conds": [ [ false, 2, [ 0, [ 0, 275, false ], null ], [ 0, 182, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 195, false ], null ], "\"Len\"", null ], "and", [ false, 2, [ 0, [ 0, 196, false ], null ], "\"Barker\"", null ], "and", [ false, 1, [ 0, [ 0, 272, false ], null ], 1985.0, 1990.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;", "query_toks": [ "SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "T2.name_first", "=", "'Len", "'", "AND", "T2.name_last", "=", "'Barker", "'", "AND", "T1.year", "BETWEEN", "1985", "AND", "1990", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "t2", ".", "name_first", "=", "value", "and", "t2", ".", "name_last", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "1985年から1990年の間に「Len」という名前と「Barker」という苗字のプレーヤーが受け取った給与の合計を計算します。", "sql": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 16 ] ], "conds": [ [ false, 2, [ 0, [ 0, 275, false ], null ], [ 0, 182, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 195, false ], null ], "\"Len\"", null ], "and", [ false, 2, [ 0, [ 0, 196, false ], null ], "\"Barker\"", null ], "and", [ false, 1, [ 0, [ 0, 272, false ], null ], 1985.0, 1990.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'", "query_toks": [ "SELECT", "T2.name_first", ",", "T2.name_last", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "team", "AS", "T3", "ON", "T3.team_id_br", "=", "T1.team_id", "WHERE", "T1.year", "=", "2005", "AND", "T3.name", "=", "'Washington", "Nationals", "'", "INTERSECT", "SELECT", "T2.name_first", ",", "T2.name_last", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "team", "AS", "T3", "ON", "T3.team_id_br", "=", "T1.team_id", "WHERE", "T1.year", "=", "2007", "AND", "T3.name", "=", "'Washington", "Nationals", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name_first", ",", "t2", ".", "name_last", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "team", "as", "t3", "on", "t3", ".", "team_id_br", "=", "t1", ".", "team_id", "where", "t1", ".", "year", "=", "value", "and", "t3", ".", "name", "=", "value", "intersect", "select", "t2", ".", "name_first", ",", "t2", ".", "name_last", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "team", "as", "t3", "on", "t3", ".", "team_id_br", "=", "t1", ".", "team_id", "where", "t1", ".", "year", "=", "value", "and", "t3", ".", "name", "=", "value" ], "question": "2005年と2007年の両方でチーム「Washington Nationals」から給与を受け取った選手の名前と苗字を一覧表示します。", "sql": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 16 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 275, false ], null ], [ 0, 182, false ], null ], "and", [ false, 2, [ 0, [ 0, 336, false ], null ], [ 0, 273, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2005.0, null ], "and", [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Washington Nationals\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 16 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 275, false ], null ], [ 0, 182, false ], null ], "and", [ false, 2, [ 0, [ 0, 336, false ], null ], [ 0, 273, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2007.0, null ], "and", [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Washington Nationals\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'", "query_toks": [ "SELECT", "T2.name_first", ",", "T2.name_last", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "team", "AS", "T3", "ON", "T3.team_id_br", "=", "T1.team_id", "WHERE", "T1.year", "=", "2005", "AND", "T3.name", "=", "'Washington", "Nationals", "'", "INTERSECT", "SELECT", "T2.name_first", ",", "T2.name_last", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "team", "AS", "T3", "ON", "T3.team_id_br", "=", "T1.team_id", "WHERE", "T1.year", "=", "2007", "AND", "T3.name", "=", "'Washington", "Nationals", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name_first", ",", "t2", ".", "name_last", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "team", "as", "t3", "on", "t3", ".", "team_id_br", "=", "t1", ".", "team_id", "where", "t1", ".", "year", "=", "value", "and", "t3", ".", "name", "=", "value", "intersect", "select", "t2", ".", "name_first", ",", "t2", ".", "name_last", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "team", "as", "t3", "on", "t3", ".", "team_id_br", "=", "t1", ".", "team_id", "where", "t1", ".", "year", "=", "value", "and", "t3", ".", "name", "=", "value" ], "question": "2005年と2007年の両方でチーム「Washington Nationals」から給与を支払われた選手の名前と姓は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 16 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 275, false ], null ], [ 0, 182, false ], null ], "and", [ false, 2, [ 0, [ 0, 336, false ], null ], [ 0, 273, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2005.0, null ], "and", [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Washington Nationals\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 20 ], [ "table_unit", 16 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 275, false ], null ], [ 0, 182, false ], null ], "and", [ false, 2, [ 0, [ 0, 336, false ], null ], [ 0, 273, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2007.0, null ], "and", [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Washington Nationals\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;", "query_toks": [ "SELECT", "sum", "(", "T1.games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "1990", "AND", "2000", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "チーム「 Boston Red Stockings 」は、1990年から2000年までに合計でいくつのホームゲームをプレイしましたか?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 159, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 1, [ 0, [ 0, 153, false ], null ], 1990.0, 2000.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;", "query_toks": [ "SELECT", "sum", "(", "T1.games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "1990", "AND", "2000", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "チーム「Boston Red Stockings」が1990年から2000年に参加したゲームの総数を数えます。", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 159, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 1, [ 0, [ 0, 153, false ], null ], 1990.0, 2000.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "1980", "ORDER", "BY", "T1.attendance", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "asc", "limit", "value" ], "question": "1980年にホームゲームへの参加者数が最も少なかったチームはどれですか。", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 331, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 161, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "1980", "ORDER", "BY", "T1.attendance", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "asc", "limit", "value" ], "question": "1980年に最も少ないホームゲームに参加したチームを見つけてください。", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 331, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 161, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT state FROM park GROUP BY state HAVING count(*) > 2;", "query_toks": [ "SELECT", "state", "FROM", "park", "GROUP", "BY", "state", "HAVING", "count", "(", "*", ")", ">", "2", ";" ], "query_toks_no_value": [ "select", "state", "from", "park", "group", "by", "state", "having", "count", "(", "*", ")", ">", "value" ], "question": "3つ以上の公園がある州の名前をリストします。", "sql": { "from": { "table_units": [ [ "table_unit", 17 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 210, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 210, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT state FROM park GROUP BY state HAVING count(*) > 2;", "query_toks": [ "SELECT", "state", "FROM", "park", "GROUP", "BY", "state", "HAVING", "count", "(", "*", ")", ">", "2", ";" ], "query_toks_no_value": [ "select", "state", "from", "park", "group", "by", "state", "having", "count", "(", "*", ")", ">", "value" ], "question": "2つ以上の公園がある州はどれですか?", "sql": { "from": { "table_units": [ [ "table_unit", 17 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 210, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 210, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM team_franchise WHERE active = 'Y';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "team_franchise", "WHERE", "active", "=", "'Y", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "team_franchise", "where", "active", "=", "value" ], "question": "アクティブな値が「Y」のチームフランチャイズはいくつアクティブですか?", "sql": { "from": { "table_units": [ [ "table_unit", 24 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 341, false ], null ], "\"Y\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM team_franchise WHERE active = 'Y';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "team_franchise", "WHERE", "active", "=", "'Y", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "team_franchise", "where", "active", "=", "value" ], "question": "アクティブなチームフランチャイズの数を見つけます(「アクティブな」情報として「Y」を使用します)。", "sql": { "from": { "table_units": [ [ "table_unit", 24 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 341, false ], null ], "\"Y\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;", "query_toks": [ "SELECT", "city", "FROM", "park", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", "BETWEEN", "2", "AND", "4", ";" ], "query_toks_no_value": [ "select", "city", "from", "park", "group", "by", "city", "having", "count", "(", "*", ")", "between", "value", "and", "value" ], "question": "どの都市に2つから4つの公園がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 17 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 209, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 209, false ] ], "having": [ [ false, 1, [ 0, [ 3, 0, false ], null ], 2.0, 4.0 ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;", "query_toks": [ "SELECT", "city", "FROM", "park", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", "BETWEEN", "2", "AND", "4", ";" ], "query_toks_no_value": [ "select", "city", "from", "park", "group", "by", "city", "having", "count", "(", "*", ")", "between", "value", "and", "value" ], "question": "2〜4つの公園があるすべての都市を検索します。", "sql": { "from": { "table_units": [ [ "table_unit", 17 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 209, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 209, false ] ], "having": [ [ false, 1, [ 0, [ 3, 0, false ], null ], 2.0, 4.0 ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.park_name", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "2008", "ORDER", "BY", "T1.attendance", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "park_name", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "desc", "limit", "value" ], "question": "2008年に最も多くの人が訪れた公園はどれですか。", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 17 ] ], "conds": [ [ false, 2, [ 0, [ 0, 156, false ], null ], [ 0, 206, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 207, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 2008.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 161, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.park_name", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "2008", "ORDER", "BY", "T1.attendance", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "park_name", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "desc", "limit", "value" ], "question": "2008年に最も多くの人が参加した公園はどれですか?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 17 ] ], "conds": [ [ false, 2, [ 0, [ 0, 156, false ], null ], [ 0, 206, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 207, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 2008.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 161, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } } ]