[ { "db_id": "candidate_poll", "query": "SELECT count(*) FROM candidate", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "candidate" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "candidate" ], "question": "¿Cuántos candidatos hay?", "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": "Cuente el número de candidatos.", "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": "¿Qué recurso de encuesta proporcionó la mayor cantidad de información sobre los candidatos?", "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": "Devuelva el recurso de encuesta asociado con la mayoría de los candidatos.", "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": "¿Cuáles son las 3 tasas de soporte más altas?", "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": "Devuelva las 3 tasas de soporte más altas.", "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": "Encuentre la identificación del candidato que obtuvo la tasa de oposición más baja.", "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": "¿Cuál es la identificación del candidato con la tasa de oposición más baja?", "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": "Enumere las tasas de apoyo, consideración y oposición para cada candidato en orden ascendente por tasa no segura.", "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": "¿Cuáles son las tasas de apoyo, consideración y oposición de cada candidato, ordenadas ascendentemente por su tasa de incertidumbre?", "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 qué fuente de encuesta proviene la tasa de oposición más alta?", "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": "Devuelva la fuente de la encuesta correspondiente al candidato que tiene la tasa de oposición.", "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": "Enumere todos los nombres de las personas en el orden de su fecha de nacimiento, de mayor a menor.", "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": "¿Cuáles son los nombres de todas las personas, ordenados por fecha de nacimiento?", "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": "Encuentre la altura y el peso promedio de todos los hombres (el sexo es ''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": "¿Cuáles son la altura y el peso medio de los hombres (el sexo es ''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": "Encuentre los nombres de personas que midan más de 200 o menos 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": "¿Cuáles son los nombres de las personas que tienen una estatura mayor a 200 o menor a 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": "Encuentre el peso medio y mínimo para cada género.", "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": "¿Cuáles son los pesos medios y mínimos para las personas de cada sexo?", "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": "Busque el nombre y el sexo del candidato que obtuvo la mayor tasa de apoyo.", "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": "¿Cuál es el nombre y el sexo del candidato con mayor tasa de apoyo?", "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": "Busque el nombre de los candidatos cuya tasa de oposición sea el más bajo para cada sexo.", "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": "Para cada sexo, ¿cuál es el nombre y el sexo del candidato con la tasa de oposición para su sexo?", "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": "¿Qué género obtuvo la tasa media de incertidumbre más alta?", "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": "¿Cuál es el sexo del candidato que tuvo la mayor tasa de incertidumbre?", "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": "¿Cuáles son los nombres de las personas que no participaron en la elección de candidatos?", "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": "Dé los nombres de las personas que no participaron en la elección de candidatos.", "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": "Busque los nombres de los candidatos cuya tasa de apoyo sea menor que su tasa de oposición.", "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": "¿Cuáles son los nombres de los candidatos que tienen una tasa de apoyo más baja que la tasa de oposición?", "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": "¿Cuántas personas pesan más de 85 para cada género?", "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": "Cuente el número de personas de cada sexo que tienen un peso superior a 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": "Encuentre la tasa de apoyo más alto, la tasa de consideración más baja y la tasa de oposición de todos los candidatos.", "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": "Devuelva la tasa de apoyo máxima, la tasa de consideración mínima y la tasa de oposición mínima de todos los candidatos.", "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": "Enumere todos los nombres de candidatos femeninos (el sexo es ''F'') en orden alfabético.", "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": "¿Cuáles son los nombres de todas las candidatas en orden alfabético (el sexo es ''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": "Busque el nombre de las personas cuya altura sea inferior a la media.", "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": "¿Cuáles son los nombres de las personas que son más bajas que el promedio?", "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": "Enumere toda la información sobre todas las personas.", "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": "¿Cuál es toda la información sobre todas las personas?", "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 } } ]