[ { "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": "Wie lautet der vollständige Name und die ID des Colleges mit der größten Anzahl von Baseballspielern?", "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": "Finden Sie den vollständigen Namen und die ID des Colleges mit den meisten Baseballspielern.", "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": "Was ist das Durchschnittsgehalt der Spieler im Team namens \"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": "Berechnen Sie das Durchschnittsgehalt der Spieler im Team \"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": "Wie lauten die Vor- und Nachnamen der Spieler, die 1998 am All-Star-Spiel teilnahmen?", "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": "Listen Sie den Vor- und Nachnamen für Spieler auf, die 1998 an All-Star-Spielen teilgenommen haben.", "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": "Was sind der Vorname, der Nachname und die ID des Spielers mit den meisten All-Star-Spielerfahrungen? Listen Sie auch die Anzahl auf.", "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": "Welcher Spieler hat die meisten All-Star-Spielerlebnisse? Geben Sie mir den Vornamen, den Nachnamen und die ID des Spielers sowie die Häufigkeit, mit der der Spieler an allen Sternenspielen teilgenommen hat.", "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": "Wie viele Spieler betreten jedes Jahr die 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": "Zählen Sie die Anzahl der Spieler, die jedes Jahr die Ruhmeshalle betreten.", "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": "Wie viele Besucher nehmen durchschnittlich an Heimspielen pro Jahr teil?", "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": "Geben Sie für jedes Jahr das Jahr und die durchschnittliche Anzahl der Heimspiele an.", "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": "Was ist im Jahr 2014 die ID und der Rang des Teams mit der höchsten durchschnittlichen Besucherzahl?", "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": "Finden Sie die ID und den Rang des Teams mit der höchsten durchschnittlichen Anwesenheitsrate im Jahr 2014.", "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": "Wie lauten der Vorname, der Nachname und die ID des Managers, der den meisten Managerpreis gewonnen hat?", "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": "Welcher Manager hat den meisten Manager Award gewonnen? Geben Sie mir den Vor- und Nachnamen sowie die ID des Managers.", "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": "Wie viele Parks gibt es im Bundesstaat \"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": "Zeigen Sie mir die Anzahl der Parks im Bundesstaat \"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": "Welche 3 Spieler haben die meisten Spielerpreise gewonnen? Geben Sie den vollständigen Namen und die ID an.", "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": "Finden Sie den Vornamen, Nachnamen und die ID für die drei besten Spieler, die die meisten Spielerpreise gewonnen haben.", "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": "Nennen Sie drei Länder, aus denen die wenigsten Spieler stammen.", "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": "Aus welchen drei Ländern kommen die wenigsten Spieler?", "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": "Finde alle Vor- und Nachnamen der Spieler, die eine leere Sterbeurkunde haben.", "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": "Wie lauten der Vor- und Nachname der Spieler, deren Sterbeurkunde leer ist?", "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": "Wie viele in den USA geborene Spieler sind Rechtshänder? Das heißt, haben Sie den Teigwert \"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": "Zählen Sie die Anzahl der Spieler, die in den USA geboren wurden und die Fledermausinformationen \"R\" haben.", "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": "Wie groß sind die Spieler des Colleges mit dem Namen \"Yale University\" durchschnittlich?", "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": "Finden Sie die durchschnittliche Größe der Spieler, die dem College \"Yale University\" angehören.", "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": "Was ist das höchste Gehalt unter jedem Team? Listen Sie den Teamnamen, die ID und das maximale Gehalt auf.", "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": "Geben Sie für jedes Team den Teamnamen, die ID und das maximale Gehalt des Teams zurück.", "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": "Wie lautet der Name und die ID des Teams mit dem niedrigsten Durchschnittsgehalt?", "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": "Welches Team bietet das niedrigste Durchschnittsgehalt? Gib mir den Namen und die ID des Teams.", "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": "Finden Sie den Vor- und Nachnamen der Spieler, die 1960 und 1961 den Preis gewonnen haben.", "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": "Welche Spieler haben 1960 und 1961 Preise gewonnen? Geben Sie ihre Vor- und Nachnamen zurück.", "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": "Listen Sie den Vor- und Nachnamen der Spieler auf, die ein Gewicht von mehr als 220 oder eine Größe von weniger als 75 haben.", "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": "Was sind der Vor- und Nachname der Spieler, die ein Gewicht über 220 oder eine Größe unter 75 haben?", "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": "Die Höchstpunktzahl des Teams \"Boston Red Stockings\" auflisten, wenn das Team in der Nachsaison gewonnen hat?", "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": "Was sind die Höchstwerte, die das Team \"Boston Red Stockings\" erzielt hat, als das Team in der Nachsaison gewonnen hat?", "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": "Wie oft hat \"Boston Red Stockings\" in der Nachsaison 2009 verloren?", "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": "Zählen Sie, wie oft das Team \"Boston Red Stockings\" in der Nachsaison 2009 verloren hat.", "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": "Wie lautet der Name und die ID des Teams mit den meisten Siegen in der Nachsaison 2008?", "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": "Finden Sie den Namen und die ID des Teams, das in der Nachsaison 2008 am häufigsten gewonnen hat.", "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": "Wie viele Siege hat das Team \"Boston Red Stockings\" in der Nachsaison jedes Jahr in der Geschichte erzielt?", "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": "Geben Sie für jedes Jahr das Jahr und die Häufigkeit an, mit der das Team \"Boston Red Stockings\" in der Nachsaison gewonnen hat.", "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": "Wie viele Nachsaison-Spiele hat das Team \"Boston Red Stockings\" insgesamt gespielt?", "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": "Wie oft hat das Team \"Boston Red Stockings\" insgesamt an Nachsaison-Spielen teilgenommen?", "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": "Wie viele Spiele in der Nachsaison 1885 führten zu Unentschieden (dh der Wert von \"ties\" ist \"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": "Finden Sie die Anzahl der gebundenen Spiele (der Wert von \"ties\" ist \"1\") in der Nachsaison 1885.", "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": "Wie hoch ist das Gesamtgehalt, das das Team \"Boston Red Stockings\" im Jahr 2010 gezahlt hat?", "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": "Wie hoch sind die Gesamtlohnkosten des Teams \"Boston Red Stockings\" im Jahr 2010?", "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": "Wie viele Spieler waren im Jahr 2000 im Team \"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": "Wie viele Spieler hatte \"Boston Red Stockings\" im Jahr 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": "Die 3 höchsten Gehälter der Spieler im Jahr 2001 auflisten?", "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": "Wie viel Gehalt haben die drei besten gut bezahlten Spieler im Jahr 2001 erhalten?", "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": "Was waren alle Gehaltswerte der Spieler in den Jahren 2010 und 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": "Listen Sie alle Gehaltswerte auf, die Spieler in den Jahren 2010 und 2001 erhalten haben.", "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": "In welchem ​​Jahr betraten die wenigsten Menschen die 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": "Finden Sie das Jahr, in dem die wenigsten Menschen die Hall of Fame betreten.", "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": "Wie viele Parks gibt es in \"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": "Wie viele Parks hat Stadt \"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": "Wie viele Spiele wurden 1907 im Park \"Columbia Park\" gespielt?", "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": "Zählen Sie die Anzahl der Spiele, die 1907 im Park \"Columbia Park\" stattfanden.", "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": "Wie viele Spiele wurden im Jahr 2000 in der Stadt \"Atlanta\" gespielt?", "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": "Finden Sie die Anzahl der Spiele, die im Jahr 2000 in der Stadt \"Atlanta\" stattgefunden haben.", "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": "Wie hoch ist die Gesamtzahl der Heimspiele des Teams \"Boston Red Stockings\" von 2000 bis 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.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": "An wie vielen Spielen hat das Team Boston Red Stockings von 2000 bis 2010 insgesamt teilgenommen?", "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": "Wie viel hat der Spieler mit Vorname \"Len\" und Nachname \"Barker\" zwischen 1985 und 1990 insgesamt verdient?", "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": "Berechnen Sie das Gesamtgehalt, das der Spieler mit Vorname \"Len\" und Nachname \"Barker\" zwischen 1985 und 1990 erhalten hat.", "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": "Listen Sie den Vor- und Nachnamen der Spieler auf, die 2005 und 2007 ein Gehalt vom Team \"Washington Nationals\" erhalten haben.", "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": "Wie lauten der Vor- und Nachname der Spieler, die 2005 und 2007 vom Team \"Washington Nationals\" bezahlt wurden?", "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": "Wie viele Heimspiele hat das Team \"Boston Red Stockings\" von 1990 bis 2000 insgesamt gespielt?", "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": "Zählen Sie die Gesamtzahl der Spiele, an denen das Team \"Boston Red Stockings\" von 1990 bis 2000 teilgenommen hat.", "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": "Welches Team war 1980 am wenigsten an Heimspielen beteiligt?", "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": "Finden Sie das Team, die 1980 am wenigsten an Heimspielen teilgenommen hat.", "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": "Listen Sie die Namen von Bundesländern mit mehr als 2 Parks auf.", "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": "Welche Bundesländer haben mehr als 2 Parks?", "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": "Wie viele Team-Franchise-Unternehmen sind mit dem aktiven Wert \"Y\" aktiv?", "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": "Finden Sie die Anzahl der aktiven Team-Franchise-Unternehmen (haben Sie \"Y\" als \"active\" Information).", "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": "Welche Städte haben 2 bis 4 Parks?", "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": "Finden Sie alle Städte mit 2 bis 4 Parks.", "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": "Welcher Park war 2008 am meisten besucht?", "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": "Welchen Park haben 2008 die meisten Menschen besucht?", "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 } } ]