[ { "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": "¿Cuál es el nombre completo y la identificación de la universidad con el mayor número de jugadores de béisbol?", "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": "Busque el nombre completo y la identificación de la universidad que tiene más jugadores de béisbol.", "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": "¿Cuál es el salario medio de los jugadores del equipo denominado ''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": "Calcule el salario medio de los jugadores del equipo llamado ''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": "¿Cuáles son los nombres y apellidos de los jugadores que participaron en el juego de estrellas en 1998?", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1998.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "AS", "T1", "JOIN", "all_star", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "YEAR", "=", "1998" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "as", "t1", "join", "all_star", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "year", "=", "value" ], "question": "Indique el nombre y apellido de los jugadores que participaron en el juego de estrellas en 1998.", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 1998.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last , T1.player_id , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", ",", "count", "(", "*", ")", "FROM", "player", "AS", "T1", "JOIN", "all_star", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", ",", "count", "(", "*", ")", "from", "player", "as", "t1", "join", "all_star", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "¿Cuáles son el nombre, apellido e identificación del jugador con más experiencias de juego de estrellas? También enumere la cantidad.", "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": "¿Qué jugador tiene la mayor cantidad de experiencias de juego de estrellas? Deme el nombre, apellido e identificación del jugador, así como el número de veces que el jugador participó en el juego de estrellas.", "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": "¿Cuántos jugadores ingresan al salón de la fama cada año?", "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": "Cuente la cantidad de jugadores que ingresan al salón de la fama cada año.", "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": "¿Cuál es el número medio de asistencia a los juegos en casa cada año?", "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": "Para cada año, devuelva el año y el número medio de asistencia a los juegos en casa.", "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": "En 2014, ¿cuál es la identificación y el rango del equipo que tiene el mayor número medio de asistencia?", "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": "Encuentre la identificación y el rango del equipo que tiene la tasa de asistencia media más alta en 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": "¿Cuáles son el nombre, apellido e identificación del gerente que ganó la mayor cantidad de premios de gerente?", "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": "¿Qué mánager ganó más premios de mánager? Dígame el nombre, apellido e identificación del gerente.", "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": "¿Cuántos parques hay en el estado de ''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": "Muéstreme el número de parques que tiene el estado de ''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": "¿Qué 3 jugadores ganaron más premios de jugador? Indique su nombre completo e identificación.", "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": "Busque el nombre, apellido e identificación de los tres mejores jugadores que ganaron la mayor cantidad de premios de jugador.", "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": "Enumere tres países que son los orígenes de los menos jugadores.", "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": "¿Cuáles son los tres países de los que son menos jugadores?", "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": "Encuentre el nombre y apellido de todos los jugadores que tengan un registro de defunción vacío.", "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": "¿Cuáles son el nombre y apellido de los jugadores cuyo registro de defunción está vacío?", "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": "¿Cuántos jugadores nacidos en ''USA'' son bateadores diestros? Es decir, tenga el valor del bateador ''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": "Cuente el número de jugadores que nacieron en ''USA'' y tienen la información de murciélagos ''R''.", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 186, false ], null ], "\"USA\"", null ], "and", [ false, 2, [ 0, [ 0, 200, false ], null ], "\"R\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University';", "query_toks": [ "SELECT", "avg", "(", "T1.height", ")", "FROM", "player", "AS", "T1", "JOIN", "player_college", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "college", "AS", "T3", "ON", "T3.college_id", "=", "T2.college_id", "WHERE", "T3.name_full", "=", "'Yale", "University", "'", ";" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "height", ")", "from", "player", "as", "t1", "join", "player_college", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "college", "as", "t3", "on", "t3", ".", "college_id", "=", "t2", ".", "college_id", "where", "t3", ".", "name_full", "=", "value" ], "question": "¿Cuál es la estatura media de los jugadores de la universidad llamada \"Yale University'?", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 8 ], [ "table_unit", 21 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 100, false ], null ], "and", [ false, 2, [ 0, [ 0, 277, false ], null ], [ 0, 101, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 199, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 278, false ], null ], "\"Yale University\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University';", "query_toks": [ "SELECT", "avg", "(", "T1.height", ")", "FROM", "player", "AS", "T1", "JOIN", "player_college", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "JOIN", "college", "AS", "T3", "ON", "T3.college_id", "=", "T2.college_id", "WHERE", "T3.name_full", "=", "'Yale", "University", "'", ";" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "height", ")", "from", "player", "as", "t1", "join", "player_college", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "join", "college", "as", "t3", "on", "t3", ".", "college_id", "=", "t2", ".", "college_id", "where", "t3", ".", "name_full", "=", "value" ], "question": "Encuentre la altura media de los jugadores que pertenecen a la universidad llamada ''Yale University''.", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 8 ], [ "table_unit", 21 ] ], "conds": [ [ false, 2, [ 0, [ 0, 182, false ], null ], [ 0, 100, false ], null ], "and", [ false, 2, [ 0, [ 0, 277, false ], null ], [ 0, 101, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 199, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 278, false ], null ], "\"Yale University\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name , T1.team_id , max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id;", "query_toks": [ "SELECT", "T1.name", ",", "T1.team_id", ",", "max", "(", "T2.salary", ")", "FROM", "team", "AS", "T1", "JOIN", "salary", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id", "GROUP", "BY", "T1.team_id", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "team_id", ",", "max", "(", "t2", ".", "salary", ")", "from", "team", "as", "t1", "join", "salary", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id", "group", "by", "t1", ".", "team_id" ], "question": "¿Cuál es el salario más alto de cada equipo? Enumere el nombre del equipo, la identificación y el salario máximo.", "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": "Para cada equipo, devuelva el nombre del equipo, la identificación y el salario máximo entre el equipo.", "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": "¿Cuál es el nombre y la identificación del equipo que ofrece el salario medio más bajo?", "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": "¿Qué equipo ofrece el salario medio más bajo? Deme el nombre y la identificación del equipo.", "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": "Encuentre el nombre y apellido de los jugadores que ganaron el premio tanto en 1960 como en 1961.", "sql": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 1960.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 16 ], [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 1961.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961", "query_toks": [ "SELECT", "T1.name_first", ",", "T1.name_last", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "WHERE", "T2.year", "=", "1960", "INTERSECT", "SELECT", "T1.name_first", ",", "T1.name_last", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "WHERE", "T2.year", "=", "1961" ], "query_toks_no_value": [ "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "where", "t2", ".", "year", "=", "value", "intersect", "select", "t1", ".", "name_first", ",", "t1", ".", "name_last", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "where", "t2", ".", "year", "=", "value" ], "question": "¿Qué jugadores ganaron premios tanto en 1960 como en 1961? Devuelva sus nombres y apellidos. ", "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": "Enumere el nombre y apellido de los jugadores que pesen más de 220 o midan menos de 75.", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 198, false ], null ], 220.0, null ], "or", [ false, 4, [ 0, [ 0, 199, false ], null ], 75.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT name_first , name_last FROM player WHERE weight > 220 OR height < 75", "query_toks": [ "SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75" ], "query_toks_no_value": [ "select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value" ], "question": "¿Cuáles son el nombre y apellido de los jugadores que pesan más de 220 o miden menos de 75?", "sql": { "from": { "table_units": [ [ "table_unit", 16 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 195, false ], null ] ], [ 0, [ 0, [ 0, 196, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 198, false ], null ], 220.0, null ], "or", [ false, 4, [ 0, [ 0, 199, false ], null ], 75.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings';", "query_toks": [ "SELECT", "max", "(", "T1.wins", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", ";" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "wins", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value" ], "question": "Enumere las puntuaciones máximas del equipo ''Boston Red Stockings'' cuando el equipo ganó en la postemporada.", "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": "¿Cuáles son las puntuaciones máximas que obtuvo el equipo ''Boston Red Stockings'' cuando ganó en la postemporada?", "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": "¿Cuántas veces perdió ''Boston Red Stockings'' en la postemporada de 2009?", "sql": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 286, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 282, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2009", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value" ], "question": "Cuente el número de veces que el equipo \"Boston Red Stockings\" perdió en la postemporada de 2009.", "sql": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 286, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 2, [ 0, [ 0, 282, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.name , T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", ",", "T1.team_id_winner", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "2008", "GROUP", "BY", "T1.team_id_winner", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "team_id_winner", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "group", "by", "t1", ".", "team_id_winner", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "¿Cuál es el nombre y la identificación del equipo con más victorias en la postemporada 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": "Encuentre el nombre y la identificación del equipo que ganó más veces en la postemporada de 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 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": "¿Cuál es la cantidad de victorias que obtuvo el equipo ''Boston Red Stockings'' en las postemporadas cada año en la historia?", "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": "Para cada año, devuelva el año y la cantidad de veces que el equipo ''Boston Red Stockings'' ganó en las postemporadas.", "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": "¿Cuál es el número total de juegos de postemporada en los que participó el equipo ''Boston Red Stockings''?", "sql": { "from": { "table_units": [ [ "sql", { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 284, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 22 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 286, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "(", "SELECT", "*", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_winner", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "UNION", "SELECT", "*", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "*", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_winner", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "union", "select", "*", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", ")" ], "question": "¿Cuántas veces en total participó el equipo ''Boston Red Stockings'' en juegos de postemporada?", "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": "¿Cuántos juegos en la postemporada de 1885 resultaron en empates (es decir, el valor de \"ties\" es ''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": "Encuentre el número de juegos empatados (el valor de \"ties\" es ''1'') en la postemporada de 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": "¿Cuál es el salario total pagado por el equipo ''Boston Red Stockings'' en 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 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": "¿Cuáles son los gastos salariales totales del equipo ''Boston Red Stockings'' en 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": "¿Cuántos jugadores había en el equipo ''Boston Red Stockings'' en 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 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": "¿Cuántos jugadores tenía ''Boston Red Stockings'' en 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": "¿Enumere los 3 salarios más altos de los jugadores en 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 ], 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": "¿Cuánto salario recibieron los 3 mejores jugadores mejor pagados en 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 ], 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": "¿Cuáles fueron todos los valores salariales de los jugadores en 2010 y 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": "Enumere todos los valores salariales que recibieron los jugadores en 2010 y 2001.", "sql": { "from": { "table_units": [ [ "table_unit", 20 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 20 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 276, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 272, false ], null ], 2001.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "baseball_1", "query": "SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "yearid", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "yearid", "from", "hall_of_fame", "group", "by", "yearid", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "¿En qué año ingresaron menos personas al salón de la fama?", "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": "Encuentre el año en el que menos personas ingresan al salón de la fama.", "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": "¿Cuántos parques hay en la ciudad de ''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": "¿Cuántos parques tiene la ciudad de ''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": "¿Cuántos juegos se jugaron en el parque \"Columbia Park\" en 1907?", "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": "Cuente el número de juegos que tuvieron lugar en el parque \"Columbia Park\" en 1907.", "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": "¿Cuántos partidos se jugaron en la ciudad de ''Atlanta'' en 2000?", "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": "Encuentre el número de juegos que tuvieron lugar en la ciudad de ''Atlanta'' en 2000.", "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": "¿Cuál es la asistencia total a los partidos en casa del equipo ''Boston Red Stockings'' de 2000 a 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": "¿A cuántos partidos en total asistió el equipo ''Boston Red Stockings'' entre 2000 y 2010?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 161, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 1, [ 0, [ 0, 153, false ], null ], 2000.0, 2010.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;", "query_toks": [ "SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "T2.name_first", "=", "'Len", "'", "AND", "T2.name_last", "=", "'Barker", "'", "AND", "T1.year", "BETWEEN", "1985", "AND", "1990", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "t2", ".", "name_first", "=", "value", "and", "t2", ".", "name_last", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value" ], "question": "¿Cuánto ganó el jugador con el nombre ''Len'' y el apellido ''Barker'' entre 1985 y 1990 en total?", "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": "Calcule el salario total que recibió el jugador con nombre ''Len'' y apellido ''Barker'' entre 1985 y 1990.", "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": "Enumere el nombre y apellido de los jugadores que recibieron salario del equipo ''Washington Nationals'' tanto en 2005 como en 2007.", "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": "¿Cuáles son el nombre y apellido de los jugadores a los que les pagó el salario el equipo ''Washington Nationals'' tanto en 2005 como en 2007?", "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": "¿Cuántos partidos en casa jugó el equipo ''Boston Red Stockings'' entre 1990 y 2000 en total?", "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": "Cuente el número total de juegos a los que asistió el equipo ''Boston Red Stockings'' desde 1990 hasta 2000.", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 159, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 331, false ], null ], "\"Boston Red Stockings\"", null ], "and", [ false, 1, [ 0, [ 0, 153, false ], null ], 1990.0, 2000.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "1980", "ORDER", "BY", "T1.attendance", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "asc", "limit", "value" ], "question": "¿Qué equipo tuvo el menor número de asistencias en los partidos en casa en 1980?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 331, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 161, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;", "query_toks": [ "SELECT", "T2.name", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T1.year", "=", "1980", "ORDER", "BY", "T1.attendance", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "asc", "limit", "value" ], "question": "Encuentre el equipo que asistió a la menor cantidad de partidos en casa en 1980.", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 23 ] ], "conds": [ [ false, 2, [ 0, [ 0, 155, false ], null ], [ 0, 336, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 331, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 161, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT state FROM park GROUP BY state HAVING count(*) > 2;", "query_toks": [ "SELECT", "state", "FROM", "park", "GROUP", "BY", "state", "HAVING", "count", "(", "*", ")", ">", "2", ";" ], "query_toks_no_value": [ "select", "state", "from", "park", "group", "by", "state", "having", "count", "(", "*", ")", ">", "value" ], "question": "Enumere los nombres de los estados que tienen más de 2 parques.", "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": "¿Qué estados tienen más de 2 parques?", "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": "¿Cuántas franquicias de equipo están activas, con valor activo ''Y''?", "sql": { "from": { "table_units": [ [ "table_unit", 24 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 341, false ], null ], "\"Y\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT count(*) FROM team_franchise WHERE active = 'Y';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "team_franchise", "WHERE", "active", "=", "'Y", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "team_franchise", "where", "active", "=", "value" ], "question": "Encuentre el número de franquicias de equipo que están activas (tenga ''Y'' como información \"active\").", "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": "¿Qué ciudades tienen de 2 a 4 parques?", "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": "Encuentre todas las ciudades que tienen de 2 a 4 parques.", "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": "¿Qué parque tuvo más asistencia en 2008?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 17 ] ], "conds": [ [ false, 2, [ 0, [ 0, 156, false ], null ], [ 0, 206, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 207, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 2008.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 161, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "baseball_1", "query": "SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.park_name", "FROM", "home_game", "AS", "T1", "JOIN", "park", "AS", "T2", "ON", "T1.park_id", "=", "T2.park_id", "WHERE", "T1.year", "=", "2008", "ORDER", "BY", "T1.attendance", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "park_name", "from", "home_game", "as", "t1", "join", "park", "as", "t2", "on", "t1", ".", "park_id", "=", "t2", ".", "park_id", "where", "t1", ".", "year", "=", "value", "order", "by", "t1", ".", "attendance", "desc", "limit", "value" ], "question": "¿A qué parque asistió más gente en 2008?", "sql": { "from": { "table_units": [ [ "table_unit", 13 ], [ "table_unit", 17 ] ], "conds": [ [ false, 2, [ 0, [ 0, 156, false ], null ], [ 0, 206, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 207, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 153, false ], null ], 2008.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 161, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } } ]