| [ | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT count(*) FROM candidate", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "candidate" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "candidate" | |
| ], | |
| "question": "Combien de candidats y a-t-il?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT count(*) FROM candidate", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "candidate" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "candidate" | |
| ], | |
| "question": "Comptez le nombre de candidats.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "poll_source", | |
| "FROM", | |
| "candidate", | |
| "GROUP", | |
| "BY", | |
| "poll_source", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "poll_source", | |
| "from", | |
| "candidate", | |
| "group", | |
| "by", | |
| "poll_source", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Quelle ressource de sondage a fourni le plus d'informations sur les candidats?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "poll_source", | |
| "FROM", | |
| "candidate", | |
| "GROUP", | |
| "BY", | |
| "poll_source", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "poll_source", | |
| "from", | |
| "candidate", | |
| "group", | |
| "by", | |
| "poll_source", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Renvoyez la ressource de sondage associée au plus grand nombre de candidats.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "support_rate", | |
| "FROM", | |
| "candidate", | |
| "ORDER", | |
| "BY", | |
| "support_rate", | |
| "DESC", | |
| "LIMIT", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "support_rate", | |
| "from", | |
| "candidate", | |
| "order", | |
| "by", | |
| "support_rate", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Quels sont les 3 taux de support les plus élevés?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 3, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "support_rate", | |
| "FROM", | |
| "candidate", | |
| "ORDER", | |
| "BY", | |
| "support_rate", | |
| "DESC", | |
| "LIMIT", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "support_rate", | |
| "from", | |
| "candidate", | |
| "order", | |
| "by", | |
| "support_rate", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Renvoyez les 3 meilleurs taux de support.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 3, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "Candidate_ID", | |
| "FROM", | |
| "candidate", | |
| "ORDER", | |
| "BY", | |
| "oppose_rate", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "candidate_id", | |
| "from", | |
| "candidate", | |
| "order", | |
| "by", | |
| "oppose_rate", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Trouvez l'ID du candidat qui a obtenu le taux d'opposition le plus bas.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "Candidate_ID", | |
| "FROM", | |
| "candidate", | |
| "ORDER", | |
| "BY", | |
| "oppose_rate", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "candidate_id", | |
| "from", | |
| "candidate", | |
| "order", | |
| "by", | |
| "oppose_rate", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Quel est l'identifiant du candidat avec le taux d'opposition le plus bas?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT Support_rate , Consider_rate , Oppose_rate FROM candidate ORDER BY unsure_rate", | |
| "query_toks": [ | |
| "SELECT", | |
| "Support_rate", | |
| ",", | |
| "Consider_rate", | |
| ",", | |
| "Oppose_rate", | |
| "FROM", | |
| "candidate", | |
| "ORDER", | |
| "BY", | |
| "unsure_rate" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "support_rate", | |
| ",", | |
| "consider_rate", | |
| ",", | |
| "oppose_rate", | |
| "from", | |
| "candidate", | |
| "order", | |
| "by", | |
| "unsure_rate" | |
| ], | |
| "question": "Veuillez énumérer les taux de soutien, de considération et d'opposition pour chaque candidat par ordre croissant de taux incertain.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT Support_rate , Consider_rate , Oppose_rate FROM candidate ORDER BY unsure_rate", | |
| "query_toks": [ | |
| "SELECT", | |
| "Support_rate", | |
| ",", | |
| "Consider_rate", | |
| ",", | |
| "Oppose_rate", | |
| "FROM", | |
| "candidate", | |
| "ORDER", | |
| "BY", | |
| "unsure_rate" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "support_rate", | |
| ",", | |
| "consider_rate", | |
| ",", | |
| "oppose_rate", | |
| "from", | |
| "candidate", | |
| "order", | |
| "by", | |
| "unsure_rate" | |
| ], | |
| "question": "Quels sont les taux de soutien, de considération et d'opposition de chaque candidat, classés par ordre croissant de leur taux incertain?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "poll_source", | |
| "FROM", | |
| "candidate", | |
| "ORDER", | |
| "BY", | |
| "oppose_rate", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "poll_source", | |
| "from", | |
| "candidate", | |
| "order", | |
| "by", | |
| "oppose_rate", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "De quelle source de sondage provient le taux d'opposition le plus élevé?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "poll_source", | |
| "FROM", | |
| "candidate", | |
| "ORDER", | |
| "BY", | |
| "oppose_rate", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "poll_source", | |
| "from", | |
| "candidate", | |
| "order", | |
| "by", | |
| "oppose_rate", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Renvoyez la source du sondage correspondant au candidat qui a le taux d'opposition.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT name FROM people ORDER BY date_of_birth", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| "FROM", | |
| "people", | |
| "ORDER", | |
| "BY", | |
| "date_of_birth" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "people", | |
| "order", | |
| "by", | |
| "date_of_birth" | |
| ], | |
| "question": "Énumérez tous les noms de personnes dans l'ordre de leur date de naissance, du plus vieux au plus jeune.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT name FROM people ORDER BY date_of_birth", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| "FROM", | |
| "people", | |
| "ORDER", | |
| "BY", | |
| "date_of_birth" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "people", | |
| "order", | |
| "by", | |
| "date_of_birth" | |
| ], | |
| "question": "Quels sont les noms de toutes les personnes, classés par date de naissance?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M'", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "height", | |
| ")", | |
| ",", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "sex", | |
| "=", | |
| "'M", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "height", | |
| ")", | |
| ",", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| "from", | |
| "people", | |
| "where", | |
| "sex", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Trouvez la taille et le poids moyens de tous les hommes (le sexe est \"M\").", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"M\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M'", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "height", | |
| ")", | |
| ",", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "sex", | |
| "=", | |
| "'M", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "height", | |
| ")", | |
| ",", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| "from", | |
| "people", | |
| "where", | |
| "sex", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Quelle est la taille et le poids moyens des hommes (le sexe est \"M\")?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"M\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT name FROM people WHERE height > 200 OR height < 190", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "height", | |
| ">", | |
| "200", | |
| "OR", | |
| "height", | |
| "<", | |
| "190" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "people", | |
| "where", | |
| "height", | |
| ">", | |
| "value", | |
| "or", | |
| "height", | |
| "<", | |
| "value" | |
| ], | |
| "question": "trouvez les noms des personnes qui mesurent plus de 200 ou moins de 190.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| 200.0, | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| 190.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT name FROM people WHERE height > 200 OR height < 190", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "height", | |
| ">", | |
| "200", | |
| "OR", | |
| "height", | |
| "<", | |
| "190" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "people", | |
| "where", | |
| "height", | |
| ">", | |
| "value", | |
| "or", | |
| "height", | |
| "<", | |
| "value" | |
| ], | |
| "question": "Quels sont les noms des personnes qui ont une taille supérieure à 200 ou inférieure à 190?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| 200.0, | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| 190.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "weight", | |
| ")", | |
| ",", | |
| "sex", | |
| "FROM", | |
| "people", | |
| "GROUP", | |
| "BY", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "weight", | |
| ")", | |
| ",", | |
| "sex", | |
| "from", | |
| "people", | |
| "group", | |
| "by", | |
| "sex" | |
| ], | |
| "question": "Trouvez le poids moyen et minimum pour chaque sexe.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "weight", | |
| ")", | |
| ",", | |
| "sex", | |
| "FROM", | |
| "people", | |
| "GROUP", | |
| "BY", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "weight", | |
| ")", | |
| ",", | |
| "sex", | |
| "from", | |
| "people", | |
| "group", | |
| "by", | |
| "sex" | |
| ], | |
| "question": "Quels sont les poids moyen et minimum des personnes de chaque sexe?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT t1.name , t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.name", | |
| ",", | |
| "t1.sex", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "candidate", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.people_id", | |
| "=", | |
| "t2.people_id", | |
| "ORDER", | |
| "BY", | |
| "t2.support_rate", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| ",", | |
| "t1", | |
| ".", | |
| "sex", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "candidate", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "support_rate", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Trouvez le nom et le sexe du candidat qui a obtenu le taux de soutien le plus élevé.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT t1.name , t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.name", | |
| ",", | |
| "t1.sex", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "candidate", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.people_id", | |
| "=", | |
| "t2.people_id", | |
| "ORDER", | |
| "BY", | |
| "t2.support_rate", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| ",", | |
| "t1", | |
| ".", | |
| "sex", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "candidate", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "support_rate", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Quels sont le nom et le sexe du candidat avec le taux de soutien le plus élevé?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.name", | |
| ",", | |
| "t1.sex", | |
| ",", | |
| "min", | |
| "(", | |
| "oppose_rate", | |
| ")", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "candidate", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.people_id", | |
| "=", | |
| "t2.people_id", | |
| "GROUP", | |
| "BY", | |
| "t1.sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| ",", | |
| "t1", | |
| ".", | |
| "sex", | |
| ",", | |
| "min", | |
| "(", | |
| "oppose_rate", | |
| ")", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "candidate", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "sex" | |
| ], | |
| "question": "Trouvez le nom des candidats dont le pourcentage d'opposition est le plus bas pour chaque sexe.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.name", | |
| ",", | |
| "t1.sex", | |
| ",", | |
| "min", | |
| "(", | |
| "oppose_rate", | |
| ")", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "candidate", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.people_id", | |
| "=", | |
| "t2.people_id", | |
| "GROUP", | |
| "BY", | |
| "t1.sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| ",", | |
| "t1", | |
| ".", | |
| "sex", | |
| ",", | |
| "min", | |
| "(", | |
| "oppose_rate", | |
| ")", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "candidate", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "sex" | |
| ], | |
| "question": "Pour chaque sexe, quel est le nom et le sexe du candidat avec le taux d'opposition pour son sexe?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.sex", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "candidate", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.people_id", | |
| "=", | |
| "t2.people_id", | |
| "GROUP", | |
| "BY", | |
| "t1.sex", | |
| "ORDER", | |
| "BY", | |
| "avg", | |
| "(", | |
| "t2.unsure_rate", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "sex", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "candidate", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "sex", | |
| "order", | |
| "by", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "unsure_rate", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "quel sexe a obtenu le ratio d'incertitude moyen le plus élevé.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 5, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.sex", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "candidate", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.people_id", | |
| "=", | |
| "t2.people_id", | |
| "GROUP", | |
| "BY", | |
| "t1.sex", | |
| "ORDER", | |
| "BY", | |
| "avg", | |
| "(", | |
| "t2.unsure_rate", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "sex", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "candidate", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "sex", | |
| "order", | |
| "by", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "unsure_rate", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Quel est le sexe du candidat qui a eu le taux d'incertitude le plus élevé?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 5, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "people_id", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "people_id", | |
| "FROM", | |
| "candidate", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "people", | |
| "where", | |
| "people_id", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "people_id", | |
| "from", | |
| "candidate", | |
| ")" | |
| ], | |
| "question": "quels sont les noms des personnes qui n'ont pas participé à l'élection des candidats.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "people_id", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "people_id", | |
| "FROM", | |
| "candidate", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "people", | |
| "where", | |
| "people_id", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "people_id", | |
| "from", | |
| "candidate", | |
| ")" | |
| ], | |
| "question": "Donnez les noms des personnes qui n'ont pas participé à l'élection des candidats.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.name", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "candidate", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.people_id", | |
| "=", | |
| "t2.people_id", | |
| "WHERE", | |
| "t2.support_rate", | |
| "<", | |
| "t2.oppose_rate" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "candidate", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "support_rate", | |
| "<", | |
| "t2", | |
| ".", | |
| "oppose_rate" | |
| ], | |
| "question": "Trouvez les noms des candidats dont le pourcentage de soutien est inférieur à leur taux d'opposition.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.name", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "candidate", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.people_id", | |
| "=", | |
| "t2.people_id", | |
| "WHERE", | |
| "t2.support_rate", | |
| "<", | |
| "t2.oppose_rate" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "candidate", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "support_rate", | |
| "<", | |
| "t2", | |
| ".", | |
| "oppose_rate" | |
| ], | |
| "question": "Quels sont les noms des candidats qui ont un taux de soutien inférieur au taux d'opposition?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT count(*) , sex FROM people WHERE weight > 85 GROUP BY sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "sex", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "weight", | |
| ">", | |
| "85", | |
| "GROUP", | |
| "BY", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "sex", | |
| "from", | |
| "people", | |
| "where", | |
| "weight", | |
| ">", | |
| "value", | |
| "group", | |
| "by", | |
| "sex" | |
| ], | |
| "question": "combien y a-t-il de personnes dont le poids est supérieur à 85 pour chaque sexe?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| 85.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT count(*) , sex FROM people WHERE weight > 85 GROUP BY sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "sex", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "weight", | |
| ">", | |
| "85", | |
| "GROUP", | |
| "BY", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "sex", | |
| "from", | |
| "people", | |
| "where", | |
| "weight", | |
| ">", | |
| "value", | |
| "group", | |
| "by", | |
| "sex" | |
| ], | |
| "question": "Comptez le nombre de personnes de chaque sexe qui ont un poids supérieur à 85.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| 85.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT max(support_rate) , min(consider_rate) , min(oppose_rate) FROM candidate", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "support_rate", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "consider_rate", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "oppose_rate", | |
| ")", | |
| "FROM", | |
| "candidate" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "support_rate", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "consider_rate", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "oppose_rate", | |
| ")", | |
| "from", | |
| "candidate" | |
| ], | |
| "question": "trouvez le pourcentage de soutien le plus élevé, le taux de considération le plus bas et le taux d'opposition de tous les candidats.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT max(support_rate) , min(consider_rate) , min(oppose_rate) FROM candidate", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "support_rate", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "consider_rate", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "oppose_rate", | |
| ")", | |
| "FROM", | |
| "candidate" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "support_rate", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "consider_rate", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "oppose_rate", | |
| ")", | |
| "from", | |
| "candidate" | |
| ], | |
| "question": "Renvoyer le taux de soutien maximum, le taux de considération minimum et le taux d'opposition minimum pour tous les candidats?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.name", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "candidate", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.people_id", | |
| "=", | |
| "t2.people_id", | |
| "WHERE", | |
| "t1.sex", | |
| "=", | |
| "'F", | |
| "'", | |
| "ORDER", | |
| "BY", | |
| "t1.name" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "candidate", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "where", | |
| "t1", | |
| ".", | |
| "sex", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t1", | |
| ".", | |
| "name" | |
| ], | |
| "question": "listez tous les noms de femmes (le sexe est \"F\") dans l'ordre alphabétique.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.name", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "candidate", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.people_id", | |
| "=", | |
| "t2.people_id", | |
| "WHERE", | |
| "t1.sex", | |
| "=", | |
| "'F", | |
| "'", | |
| "ORDER", | |
| "BY", | |
| "t1.name" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "candidate", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "where", | |
| "t1", | |
| ".", | |
| "sex", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t1", | |
| ".", | |
| "name" | |
| ], | |
| "question": "Quels sont les noms de toutes les candidates par ordre alphabétique (le sexe est \"F\")?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT name FROM people WHERE height < (SELECT avg(height) FROM people)", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "height", | |
| "<", | |
| "(", | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "height", | |
| ")", | |
| "FROM", | |
| "people", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "people", | |
| "where", | |
| "height", | |
| "<", | |
| "(", | |
| "select", | |
| "avg", | |
| "(", | |
| "height", | |
| ")", | |
| "from", | |
| "people", | |
| ")" | |
| ], | |
| "question": "trouvez le nom des personnes dont la taille est inférieure à la moyenne.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT name FROM people WHERE height < (SELECT avg(height) FROM people)", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "height", | |
| "<", | |
| "(", | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "height", | |
| ")", | |
| "FROM", | |
| "people", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "people", | |
| "where", | |
| "height", | |
| "<", | |
| "(", | |
| "select", | |
| "avg", | |
| "(", | |
| "height", | |
| ")", | |
| "from", | |
| "people", | |
| ")" | |
| ], | |
| "question": "Quels sont les noms des personnes plus petites que la moyenne?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT * FROM people", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "people" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "people" | |
| ], | |
| "question": "Répertoriez toutes les informations sur toutes les personnes.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT * FROM people", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "people" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "people" | |
| ], | |
| "question": "Quelles sont toutes les informations sur toutes les personnes?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| ] |