| [ | |
| { | |
| "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": "quel est le nom complet et l'identifiant du collège avec le plus grand nombre de joueurs de baseball?", | |
| "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": "Trouvez le nom complet et l'identifiant du collège qui compte le plus de joueurs de baseball.", | |
| "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": "Quel est le salaire moyen des joueurs de l'équipe nommée \"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": "Calculez le salaire moyen des joueurs de l'équipe appelée \"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": "Quels sont les noms et prénoms des joueurs participant au All Star Game 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": "Indiquez le prénom et le nom des joueurs qui ont participé au All Star Game 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": "Quels sont le prénom, le nom et l'identifiant du joueur avec le plus d'expériences du All Star Game? Énumérez également le nombre.", | |
| "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": "Quel joueur a le plus d'expériences du All Star Game? Donnez-moi le prénom, le nom et l'identifiant du joueur, ainsi que le nombre de fois où le joueur a participé au All Star Game.", | |
| "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": "Combien de joueurs entrent au Temple de la renommée chaque année?", | |
| "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": "Comptez le nombre de joueurs qui entrent au Temple de la renommée pour chaque année.", | |
| "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": "Quel est le nombre moyen de participation aux matchs à domicile pour chaque année?", | |
| "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": "Pour chaque année, indiquez l'année et le nombre moyen de participation aux matchs à domicile.", | |
| "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, quels sont l'id et le rang de l'équipe qui a le plus grand nombre moyen de fréquentation?", | |
| "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": "Trouvez l'id et le rang de l'équipe qui a le taux de participation moyen le plus élevé 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": "Quels sont le prénom, le nom et l'identifiant du manager qui a remporté le plus de prix de manager?", | |
| "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": "Quel manager a remporté le plus de prix de manager? Donnez-moi le prénom, le nom et l'identifiant du responsable.", | |
| "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": "Combien de parcs y a-t-il dans l'état de \"New York\"?", | |
| "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": "Montrez-moi le nombre de parcs de l'État de \"New York\".", | |
| "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": "Quels 3 joueurs ont remporté le plus de récompenses de joueur? Énumérez leur nom complet et leur identifiant.", | |
| "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": "Trouvez le prénom, le nom et l'identifiant des trois meilleurs joueurs qui ont remporté le plus de récompenses.", | |
| "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": "Énumérez trois pays qui sont à l'origine des moins joueurs.", | |
| "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": "Quels sont les trois pays dont sont issus les moins de joueurs?", | |
| "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": "Trouvez le prénom et le nom de tous les joueurs dont le dossier de décès est vide.", | |
| "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": "Quels sont le prénom et le nom des joueurs dont le dossier de décès est vide?", | |
| "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": "Combien de joueurs nés aux \"USA\" sont des frappeurs droitiers? Autrement dit, ayez la valeur de frappeur \"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": "Comptez le nombre de joueurs nés aux \"USA\" et possédant des informations de frappe \"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": "Quelle est la taille moyenne des joueurs du collège nommé \"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": "Trouvez la taille moyenne des joueurs qui appartiennent au collège appelé \"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": "Quel est le salaire le plus élevé de chaque équipe? Énumérez le nom de l'équipe, l'identifiant et le salaire maximum.", | |
| "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": "Pour chaque équipe, retournez le nom de l'équipe, l'identifiant et le salaire maximum de l'équipe.", | |
| "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": "Quels sont le nom et l'identifiant de l'équipe offrant le salaire moyen le plus bas?", | |
| "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": "Quelle équipe offre le salaire moyen le plus bas? Donnez-moi le nom et l'identifiant de l'équipe.", | |
| "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": "Trouvez le prénom et le nom des joueurs qui ont remporté le prix en 1960 et 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": "Quels joueurs ont remporté des prix en 1960 et en 1961? Renvoyez leurs prénoms et noms de famille.", | |
| "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": "Indiquez le prénom et le nom des joueurs dont le poids est supérieur à 220 ou dont la taille est inférieure à 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": "Quels sont le prénom et le nom des joueurs qui ont un poids supérieur à 220 ou une taille inférieure à 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": "Listez des scores maximum de \"team Boston Red Stockings\" lorsque l'équipe a gagné en séries éliminatoires?", | |
| "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": "Quels sont les scores maximums de \"team Boston Red Stockings\" lorsque l'équipe a gagné en séries éliminatoires?", | |
| "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": "Combien de fois les \"Boston Red Stockings\" ont-ils perdu en séries éliminatoires 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": "Comptez le nombre de fois que l'équipe \"Boston Red Stockings\" a perdu en 2009 en séries éliminatoires.", | |
| "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": "Quels sont le nom et l'identifiant de l'équipe qui a remporté le plus de victoires en séries éliminatoires 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": "Trouvez le nom et l'identifiant de l'équipe qui a remporté le plus de victoires en séries éliminatoires 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": "Quel est le nombre de victoires remportées par \" team Boston Red Stockings\" en séries éliminatoires chaque année dans l'histoire?", | |
| "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": "Pour chaque année, renvoyez l'année et le nombre de fois où \" team Boston Red Stockings\" a gagné en séries éliminatoires.", | |
| "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": "Quel est le nombre total de matchs éliminatoires auxquels \" team Boston Red Stockings\" a participé?", | |
| "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": "Combien de fois au total \" team Boston Red Stockings\" a-t-elle participé à des matchs d'après-saison?", | |
| "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": "Combien de matchs en séries éliminatoires de 1885 ont abouti à des égalités (c'est-à-dire que la valeur des \"égalités\" est de \"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": "Trouvez le nombre de matchs ex aequo (la valeur des \"égalités\" est '1') en séries éliminatoires 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": "Quel est le salaire total versé par \"team 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": "Quelles sont les dépenses salariales totales de \"team 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": "Combien de joueurs étaient dans \"team 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": "Combien de joueurs les \"Boston Red Stockings\" avaient-ils 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": "Listez les 3 salaires les plus élevés des joueurs 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": "Quel salaire les 3 meilleurs joueurs bien payés ont-ils reçu 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": "Quelles étaient toutes les valeurs salariales des joueurs en 2010 et 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": "Dressez la liste de toutes les valeurs salariales reçues par les joueurs en 2010 et 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 quelle année le moins de gens est-il entré au Temple de la renommée?", | |
| "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": "Trouvez l'année au cours de laquelle le moins de gens entrent dans le Temple de la renommée.", | |
| "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": "Combien de parcs y a-t-il dans la ville 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": "Combien de parcs la ville de \"Atlanta\" possède-t-elle?", | |
| "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": "Combien de jeux ont été joués dans le parc \"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": "Comptez le nombre de matchs qui ont eu lieu dans le parc \"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": "Combien de matchs ont été joués dans la ville 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": "Retrouvez le nombre de matchs disputés dans la ville 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": "Quelle est la fréquentation totale des matchs à domicile de \"team Boston Red Stockings\" de 2000 à 2010?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 13 | |
| ], | |
| [ | |
| "table_unit", | |
| 23 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 155, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 336, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 161, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 331, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Boston Red Stockings\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 153, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| 2010.0 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "baseball_1", | |
| "query": "SELECT sum(T1.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": "À combien de matchs au total l'équipe Boston Red Stockings a-t-elle assisté de 2000 à 2010?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 13 | |
| ], | |
| [ | |
| "table_unit", | |
| 23 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 155, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 336, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 161, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 331, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Boston Red Stockings\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 153, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| 2010.0 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "baseball_1", | |
| "query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;", | |
| "query_toks": [ | |
| "SELECT", | |
| "sum", | |
| "(", | |
| "T1.salary", | |
| ")", | |
| "FROM", | |
| "salary", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "player", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.player_id", | |
| "=", | |
| "T2.player_id", | |
| "WHERE", | |
| "T2.name_first", | |
| "=", | |
| "'Len", | |
| "'", | |
| "AND", | |
| "T2.name_last", | |
| "=", | |
| "'Barker", | |
| "'", | |
| "AND", | |
| "T1.year", | |
| "BETWEEN", | |
| "1985", | |
| "AND", | |
| "1990", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sum", | |
| "(", | |
| "t1", | |
| ".", | |
| "salary", | |
| ")", | |
| "from", | |
| "salary", | |
| "as", | |
| "t1", | |
| "join", | |
| "player", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "player_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "player_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "name_first", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "name_last", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "year", | |
| "between", | |
| "value", | |
| "and", | |
| "value" | |
| ], | |
| "question": "Combien le joueur avec le prénom \"Len\" et le nom \"Barker\" a-t-il gagné au total entre 1985 et 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 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": "Calculez le salaire total que le joueur avec le prénom \"Len\" et le nom de famille \"Barker\" a reçu entre 1985 et 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": "Indiquez le prénom et le nom des joueurs qui ont reçu un salaire de l'équipe des \"Washington Nationals\" en 2005 et 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": "Quels sont le prénom et le nom des joueurs qui ont été payés par l'équipe des \"Washington Nationals\" en 2005 et 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": "Combien de matchs à domicile \"team Boston Red Stockings\" a-t-elle disputés entre 1990 et 2000 au 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": "Comptez le nombre total de matchs auxquels \"team Boston Red Stockings\" a assisté de 1990 à 2000.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 13 | |
| ], | |
| [ | |
| "table_unit", | |
| 23 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 155, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 336, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 159, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 331, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Boston Red Stockings\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 153, | |
| false | |
| ], | |
| null | |
| ], | |
| 1990.0, | |
| 2000.0 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "baseball_1", | |
| "query": "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.name", | |
| "FROM", | |
| "home_game", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "team", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.team_id", | |
| "=", | |
| "T2.team_id_br", | |
| "WHERE", | |
| "T1.year", | |
| "=", | |
| "1980", | |
| "ORDER", | |
| "BY", | |
| "T1.attendance", | |
| "ASC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "home_game", | |
| "as", | |
| "t1", | |
| "join", | |
| "team", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "team_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "team_id_br", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t1", | |
| ".", | |
| "attendance", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Quelle équipe a eu le moins de participants aux matchs à domicile 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": "Trouvez l'équipe qui a assisté au moins de matchs à domicile 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": "Énumérez les noms des États qui ont plus de 2 parcs.", | |
| "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": "Quelles préfectures ont plus de 2 parcs?", | |
| "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": "Combien de franchises d'équipe sont actives, avec une valeur active \"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": "Trouvez le nombre de franchises d'équipe actives (ayez \"Y\" comme information \"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": "Quelles villes ont 2 à 4 parcs?", | |
| "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": "Trouvez toutes les villes qui ont 2 à 4 parcs.", | |
| "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": "Quel parc a eu le plus de fréquentations 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": "Quel parc a été le plus fréquenté 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 | |
| } | |
| } | |
| ] |