| [ | |
| { | |
| "db_id": "candidate_poll", | |
| "query": "SELECT count(*) FROM candidate", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "candidate" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "candidate" | |
| ], | |
| "question": "Wie viele Kandidaten gibt es?", | |
| "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": "Zählen Sie die Anzahl der Kandidaten.", | |
| "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": "Welche Umfrageressource lieferte die meisten Kandidateninformationen?", | |
| "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": "Geben Sie die Abfrageressource zurück, die den meisten Kandidaten zugeordnet ist.", | |
| "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": "Was sind die Top 3 der höchsten Unterstützungsraten?", | |
| "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": "Geben Sie die drei besten Unterstützungsraten zurück.", | |
| "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": "Finden Sie die ID des Kandidaten, der die niedrigste Gegenrate erhalten hat.", | |
| "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": "Was ist die ID des Kandidaten mit der niedrigsten Widerspruchsquote?", | |
| "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": "Bitte listen Sie die Unterstützungs-, Betrachtungs- und Ablehnungsraten für jeden Kandidaten in aufsteigender Reihenfolge nach unsicherer Rate auf.", | |
| "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": "Was sind die Unterstützungs-, Betrachtungs- und Ablehnungsraten der einzelnen Kandidaten, die nach ihrer unsicheren Quote aufsteigend geordnet sind?", | |
| "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": "Aus welcher Umfragequelle stammt die höchste Ablehnungsrate?", | |
| "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": "Geben Sie die Umfragequelle zurück, die dem Kandidaten mit der Ablehnungsrate entspricht.", | |
| "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": "Listen Sie alle Personennamen in der Reihenfolge ihres Geburtsdatums von alt bis jung auf.", | |
| "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": "Wie heißen alle Personen, geordnet nach ihrem Geburtsdatum?", | |
| "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": "Finden Sie die durchschnittliche Größe und das durchschnittliche Gewicht aller Männer (Geschlecht ist \"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": "Was sind die durchschnittliche Größe und das durchschnittliche Gewicht bei Männern (Geschlecht ist \"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": "Finden Sie die Namen von Personen, die größer als 200 oder kleiner als 190 sind.", | |
| "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": "Wie heißen Menschen mit einer Körpergröße von mehr als 200 oder weniger als 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": "Finden Sie das durchschnittliche und minimale Gewicht für jedes Geschlecht.", | |
| "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": "Was sind die Durchschnitts- und Mindestgewichte für Menschen jedes Geschlechts?", | |
| "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": "Finden Sie den Namen und das Geschlecht des Kandidaten, der die höchste Unterstützungsrate erhalten hat.", | |
| "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": "Wie lautet der Name und das Geschlecht des Kandidaten mit der höchsten Unterstützungsrate?", | |
| "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": "Finden Sie den Namen der Kandidaten, deren Gegenprozentsatz für jedes Geschlecht am niedrigsten ist.", | |
| "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": "Wie lautet der Name und das Geschlecht des Kandidaten für jedes Geschlecht mit der Gegenrate für sein Geschlecht?", | |
| "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": "Welches Geschlecht hat das höchste durchschnittliche unsichere Verhältnis?", | |
| "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": "Was ist das Geschlecht des Kandidaten, der die höchste Unsicherheitsrate hatte?", | |
| "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": "Wie heißen die Personen, die nicht an den Kandidatenwahlen teilgenommen haben?", | |
| "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": "Geben Sie die Namen der Personen an, die nicht an den Kandidatenwahlen teilgenommen haben.", | |
| "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": "Finden Sie die Namen der Kandidaten, deren Unterstützungsprozentsatz niedriger ist als ihre Gegenrate.", | |
| "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": "Wie heißen Kandidaten, die eine niedrigere Unterstützungsrate als die Gegenrate haben?", | |
| "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": "Wie viele Menschen gibt es, deren Gewicht für jedes Geschlecht höher als 85 ist?", | |
| "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": "Zählen Sie die Anzahl der Personen jedes Geschlechts, die ein Gewicht von mehr als 85 haben.", | |
| "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": "Finden Sie den höchsten Unterstützungsprozentsatz, die niedrigste Betrachtungsrate und die Ablehnungsrate aller Kandidaten.", | |
| "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": "Geben Sie die maximale Unterstützungsrate, die minimale Betrachtungsrate und die minimale Ablehnungsrate für alle Kandidaten zurück.", | |
| "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": "Listen Sie alle weiblichen (Geschlecht ist \"F\") Kandidatennamen in alphabetischer Reihenfolge auf.", | |
| "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": "Wie heißen alle Kandidatinnen in alphabetischer Reihenfolge (Geschlecht ist \"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": "Finden Sie den Namen von Personen, deren Größe unter dem Durchschnitt liegt.", | |
| "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": "Wie heißen Menschen, die kürzer als der Durchschnitt sind?", | |
| "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": "Listen Sie alle Informationen über alle Personen auf.", | |
| "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": "Was sind alle Informationen über alle Menschen?", | |
| "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 | |
| } | |
| } | |
| ] |