[ { "db_id": "concert_singer", "query": "SELECT count(*) FROM singer", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "singer" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "singer" ], "question": "Combien de chanteurs avons-nous?", "question_toks": [ "Combien", "de", "chanteurs", "avons", "-nous", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT count(*) FROM singer", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "singer" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "singer" ], "question": "Quel est le nombre total de chanteurs?", "question_toks": [ "Quel", "est", "le", "nombre", "total", "de", "chanteurs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT name , country , age FROM singer ORDER BY age DESC", "query_toks": [ "SELECT", "name", ",", "country", ",", "age", "FROM", "singer", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "country", ",", "age", "from", "singer", "order", "by", "age", "desc" ], "question": "Montrer le nom, le pays, l'âge de tous les chanteurs commandés par l'âge du plus jeune au plus jeune.", "question_toks": [ "Montrer", "le", "nom", ",", "le", "pays", ",", "l'", "âge", "de", "tous", "les", "chanteurs", "commandés", "par", "l'", "âge", "du", "plus", "jeune", "au", "plus", "jeune", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT name , country , age FROM singer ORDER BY age DESC", "query_toks": [ "SELECT", "name", ",", "country", ",", "age", "FROM", "singer", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "country", ",", "age", "from", "singer", "order", "by", "age", "desc" ], "question": "Quels sont les noms, les pays et les âges pour chaque chanteur dans l'ordre décroissant de l'âge?", "question_toks": [ "Quels", "sont", "les", "noms", ",", "les", "pays", "et", "les", "âges", "pour", "chaque", "chanteur", "dans", "l'", "ordre", "décroissant", "de", "l'", "âge", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "'France", "'" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value" ], "question": "Quelle est l'âge moyen, minimum et maximum de tous les chanteurs de France?", "question_toks": [ "Quelle", "est", "l'", "âge", "moyen", ",", "minimum", "et", "maximum", "de", "tous", "les", "chanteurs", "de", "France", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ], [ 1, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"France\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "'France", "'" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value" ], "question": "Quel est l'âge moyen, minimum et maximum pour tous les chanteurs français?", "question_toks": [ "Quel", "est", "l'", "âge", "moyen", ",", "minimum", "et", "maximum", "pour", "tous", "les", "chanteurs", "français", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ], [ 1, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"France\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", "query_toks": [ "SELECT", "song_name", ",", "song_release_year", "FROM", "singer", "ORDER", "BY", "age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "song_name", ",", "song_release_year", "from", "singer", "order", "by", "age", "limit", "value" ], "question": "Montrez le nom et l'année de publication de la chanson par la plus jeune chanteuse.", "question_toks": [ "Montrez", "le", "nom", "et", "l'", "année", "de", "publication", "de", "la", "chanson", "par", "la", "plus", "jeune", "chanteuse", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", "query_toks": [ "SELECT", "song_name", ",", "song_release_year", "FROM", "singer", "ORDER", "BY", "age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "song_name", ",", "song_release_year", "from", "singer", "order", "by", "age", "limit", "value" ], "question": "Quels sont les noms et les années de publication pour toutes les chansons de la plus jeune chanteuse?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "les", "années", "de", "publication", "pour", "toutes", "les", "chansons", "de", "la", "plus", "jeune", "chanteuse", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT DISTINCT country FROM singer WHERE age > 20", "query_toks": [ "SELECT", "DISTINCT", "country", "FROM", "singer", "WHERE", "age", ">", "20" ], "query_toks_no_value": [ "select", "distinct", "country", "from", "singer", "where", "age", ">", "value" ], "question": "Quels sont tous les pays distincts où les chanteurs de plus de 20 ans viennent?", "question_toks": [ "Quels", "sont", "tous", "les", "pays", "distincts", "où", "les", "chanteurs", "de", "plus", "de", "20", "ans", "viennent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 20.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT DISTINCT country FROM singer WHERE age > 20", "query_toks": [ "SELECT", "DISTINCT", "country", "FROM", "singer", "WHERE", "age", ">", "20" ], "query_toks_no_value": [ "select", "distinct", "country", "from", "singer", "where", "age", ">", "value" ], "question": "Quels sont les différents pays avec des chanteurs de plus de 20 ans?", "question_toks": [ "Quels", "sont", "les", "différents", "pays", "avec", "des", "chanteurs", "de", "plus", "de", "20", "ans", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 20.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT country , count(*) FROM singer GROUP BY country", "query_toks": [ "SELECT", "country", ",", "count", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "country" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "country" ], "question": "Afficher tous les pays et le nombre de chanteurs dans chaque pays.", "question_toks": [ "Afficher", "tous", "les", "pays", "et", "le", "nombre", "de", "chanteurs", "dans", "chaque", "pays", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT country , count(*) FROM singer GROUP BY country", "query_toks": [ "SELECT", "country", ",", "count", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "country" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "country" ], "question": "Combien de chanteurs viennent de chaque pays?", "question_toks": [ "Combien", "de", "chanteurs", "viennent", "de", "chaque", "pays", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", "query_toks": [ "SELECT", "song_name", "FROM", "singer", "WHERE", "age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "singer", ")" ], "query_toks_no_value": [ "select", "song_name", "from", "singer", "where", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "singer", ")" ], "question": "Énumérez tous les noms des chansons de chanteurs au-dessus de l'âge moyen.", "question_toks": [ "Énumérez", "tous", "les", "noms", "des", "chansons", "de", "chanteurs", "au-dessus", "de", "l'", "âge", "moyen", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 3, [ 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": "concert_singer", "query": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", "query_toks": [ "SELECT", "song_name", "FROM", "singer", "WHERE", "age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "singer", ")" ], "query_toks_no_value": [ "select", "song_name", "from", "singer", "where", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "singer", ")" ], "question": "Quels sont tous les noms de chansons des chanteurs plus âgés que la moyenne?", "question_toks": [ "Quels", "sont", "tous", "les", "noms", "de", "chansons", "des", "chanteurs", "plus", "âgés", "que", "la", "moyenne", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 3, [ 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": "concert_singer", "query": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", "query_toks": [ "SELECT", "LOCATION", ",", "name", "FROM", "stadium", "WHERE", "capacity", "BETWEEN", "5000", "AND", "10000" ], "query_toks_no_value": [ "select", "location", ",", "name", "from", "stadium", "where", "capacity", "between", "value", "and", "value" ], "question": "Afficher l'emplacement et le nom de tous les stades d'une capacité comprise entre 5000 et 10000.", "question_toks": [ "Afficher", "l'", "emplacement", "et", "le", "nom", "de", "tous", "les", "stades", "d'", "une", "capacité", "comprise", "entre", "5000", "et", "10000", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 1, [ 0, [ 0, 4, false ], null ], 5000.0, 10000.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", "query_toks": [ "SELECT", "LOCATION", ",", "name", "FROM", "stadium", "WHERE", "capacity", "BETWEEN", "5000", "AND", "10000" ], "query_toks_no_value": [ "select", "location", ",", "name", "from", "stadium", "where", "capacity", "between", "value", "and", "value" ], "question": "Quels sont les emplacements et les noms de toutes les stations de capacité entre 5000 et 10000?", "question_toks": [ "Quels", "sont", "les", "emplacements", "et", "les", "noms", "de", "toutes", "les", "stations", "de", "capacité", "entre", "5000", "et", "10000", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 1, [ 0, [ 0, 4, false ], null ], 5000.0, 10000.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "select max(capacity), average from stadium", "query_toks": [ "select", "max", "(", "capacity", ")", ",", "average", "from", "stadium" ], "query_toks_no_value": [ "select", "max", "(", "capacity", ")", ",", "average", "from", "stadium" ], "question": "Quelle est la capacité maximale et la moyenne de tous les stades?", "question_toks": [ "Quelle", "est", "la", "capacité", "maximale", "et", "la", "moyenne", "de", "tous", "les", "stades", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "select avg(capacity) , max(capacity) from stadium", "query_toks": [ "select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium" ], "query_toks_no_value": [ "select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium" ], "question": "Quelles sont les capacités moyennes et maximales de tous les stades?", "question_toks": [ "Quelles", "sont", "les", "capacités", "moyennes", "et", "maximales", "de", "tous", "les", "stades", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ], [ 1, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "average", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "capacity", "from", "stadium", "order", "by", "average", "desc", "limit", "value" ], "question": "Quel est le nom et la capacité du stade avec la plus haute fréquentation moyenne?", "question_toks": [ "Quel", "est", "le", "nom", "et", "la", "capacité", "du", "stade", "avec", "la", "plus", "haute", "fréquentation", "moyenne", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 7, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "average", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "capacity", "from", "stadium", "order", "by", "average", "desc", "limit", "value" ], "question": "Quel est le nom et la capacité du stade avec la plus haute fréquentation moyenne?", "question_toks": [ "Quel", "est", "le", "nom", "et", "la", "capacité", "du", "stade", "avec", "la", "plus", "haute", "fréquentation", "moyenne", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 7, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "concert", "WHERE", "YEAR", "=", "2014", "OR", "YEAR", "=", "2015" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "concert", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "Combien de concerts y a-t-il de l'année 2014 ou 2015?", "question_toks": [ "Combien", "de", "concerts", "y", "a", "-t", "-il", "de", "l'", "année", "2014", "ou", "2015", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ], "or", [ false, 2, [ 0, [ 0, 19, false ], null ], 2015.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "concert", "WHERE", "YEAR", "=", "2014", "OR", "YEAR", "=", "2015" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "concert", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "Combien de concerts ont eu lieu en 2014 ou 2015?", "question_toks": [ "Combien", "de", "concerts", "ont", "eu", "lieu", "en", "2014", "ou", "2015", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ], "or", [ false, 2, [ 0, [ 0, 19, false ], null ], 2015.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "GROUP", "BY", "T1.stadium_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t1", ".", "stadium_id" ], "question": "Montrez le nom du stade et le nombre de concerts dans chaque stade.", "question_toks": [ "Montrez", "le", "nom", "du", "stade", "et", "le", "nombre", "de", "concerts", "dans", "chaque", "stade", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 18, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "GROUP", "BY", "T1.stadium_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t1", ".", "stadium_id" ], "question": "Pour chaque stade, combien de concerts y jouent-ils?", "question_toks": [ "Pour", "chaque", "stade", ",", "combien", "de", "concerts", "y", "jouent", "-ils", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 18, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT T2.name , T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", ",", "T2.capacity", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "WHERE", "T1.year", ">", "=", "2014", "GROUP", "BY", "T2.stadium_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">", "=", "value", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Montrez le nom du stade et la capacité avec la plupart des concerts en 2014 ou après.", "question_toks": [ "Montrez", "le", "nom", "du", "stade", "et", "la", "capacité", "avec", "la", "plupart", "des", "concerts", "en", "2014", "ou", "après", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 5, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013 group by t2.stadium_id order by count(*) desc limit 1", "query_toks": [ "select", "t2.name", ",", "t2.capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1.stadium_id", "=", "t2.stadium_id", "where", "t1.year", ">", "2013", "group", "by", "t2.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">", "value", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom et la capacité du stade avec le plus de concerts après 2013?", "question_toks": [ "Quel", "est", "le", "nom", "et", "la", "capacité", "du", "stade", "avec", "le", "plus", "de", "concerts", "après", "2013", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 19, false ], null ], 2013.0, null ] ], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "concert", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "concert", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle année a la plupart des concerts?", "question_toks": [ "Quelle", "année", "a", "la", "plupart", "des", "concerts", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "concert", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "concert", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle est l'année qui a eu le plus de concerts?", "question_toks": [ "Quelle", "est", "l'", "année", "qui", "a", "eu", "le", "plus", "de", "concerts", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", "query_toks": [ "SELECT", "name", "FROM", "stadium", "WHERE", "stadium_id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "concert", ")" ], "query_toks_no_value": [ "select", "name", "from", "stadium", "where", "stadium_id", "not", "in", "(", "select", "stadium_id", "from", "concert", ")" ], "question": "Montrez les noms de stade sans aucun concert.", "question_toks": [ "Montrez", "les", "noms", "de", "stade", "sans", "aucun", "concert", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, 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": "concert_singer", "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", "query_toks": [ "SELECT", "name", "FROM", "stadium", "WHERE", "stadium_id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "concert", ")" ], "query_toks_no_value": [ "select", "name", "from", "stadium", "where", "stadium_id", "not", "in", "(", "select", "stadium_id", "from", "concert", ")" ], "question": "Quels sont les noms des stades sans concerts?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "stades", "sans", "concerts", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, 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": "concert_singer", "query": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30", "query_toks": [ "SELECT", "country", "FROM", "singer", "WHERE", "age", ">", "40", "INTERSECT", "SELECT", "country", "FROM", "singer", "WHERE", "age", "<", "30" ], "query_toks_no_value": [ "select", "country", "from", "singer", "where", "age", ">", "value", "intersect", "select", "country", "from", "singer", "where", "age", "<", "value" ], "question": "Afficher les pays où un chanteur au-dessus de 40 ans et un chanteur inférieur à 30 viennent de.", "question_toks": [ "Afficher", "les", "pays", "où", "un", "chanteur", "au-dessus", "de", "40", "ans", "et", "un", "chanteur", "inférieur", "à", "30", "viennent", "de", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 40.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 30.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", "query_toks": [ "SELECT", "name", "FROM", "stadium", "EXCEPT", "SELECT", "T2.name", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "WHERE", "T1.year", "=", "2014" ], "query_toks_no_value": [ "select", "name", "from", "stadium", "except", "select", "t2", ".", "name", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value" ], "question": "Montrer des noms pour tous les stades, à l'exception des stades ayant un concert en année 2014.", "question_toks": [ "Montrer", "des", "noms", "pour", "tous", "les", "stades", ",", "à", "l'", "exception", "des", "stades", "ayant", "un", "concert", "en", "année", "2014", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "concert_singer", "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", "query_toks": [ "SELECT", "name", "FROM", "stadium", "EXCEPT", "SELECT", "T2.name", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "WHERE", "T1.year", "=", "2014" ], "query_toks_no_value": [ "select", "name", "from", "stadium", "except", "select", "t2", ".", "name", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value" ], "question": "Quels sont les noms de tous les stades qui n'ont pas eu de concert en 2014?", "question_toks": [ "Quels", "sont", "les", "noms", "de", "tous", "les", "stades", "qui", "n'", "ont", "pas", "eu", "de", "concert", "en", "2014", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "concert_singer", "query": "SELECT T2.concert_name , T2.theme , count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id", "query_toks": [ "SELECT", "T2.concert_name", ",", "T2.theme", ",", "count", "(", "*", ")", "FROM", "singer_in_concert", "AS", "T1", "JOIN", "concert", "AS", "T2", "ON", "T1.concert_id", "=", "T2.concert_id", "GROUP", "BY", "T2.concert_id" ], "query_toks_no_value": [ "select", "t2", ".", "concert_name", ",", "t2", ".", "theme", ",", "count", "(", "*", ")", "from", "singer_in_concert", "as", "t1", "join", "concert", "as", "t2", "on", "t1", ".", "concert_id", "=", "t2", ".", "concert_id", "group", "by", "t2", ".", "concert_id" ], "question": "Montrez le nom et le thème de tous les concerts et le nombre de chanteurs dans chaque concert.", "question_toks": [ "Montrez", "le", "nom", "et", "le", "thème", "de", "tous", "les", "concerts", "et", "le", "nombre", "de", "chanteurs", "dans", "chaque", "concert", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "select t2.concert_name , t2.theme , count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id = t2.concert_id group by t2.concert_id", "query_toks": [ "select", "t2.concert_name", ",", "t2.theme", ",", "count", "(", "*", ")", "from", "singer_in_concert", "as", "t1", "join", "concert", "as", "t2", "on", "t1.concert_id", "=", "t2.concert_id", "group", "by", "t2.concert_id" ], "query_toks_no_value": [ "select", "t2", ".", "concert_name", ",", "t2", ".", "theme", ",", "count", "(", "*", ")", "from", "singer_in_concert", "as", "t1", "join", "concert", "as", "t2", "on", "t1", ".", "concert_id", "=", "t2", ".", "concert_id", "group", "by", "t2", ".", "concert_id" ], "question": "Quels sont les noms, thèmes et nombre de chanteurs pour chaque concert?", "question_toks": [ "Quels", "sont", "les", "noms", ",", "thèmes", "et", "nombre", "de", "chanteurs", "pour", "chaque", "concert", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "singer_in_concert", "AS", "T1", "JOIN", "singer", "AS", "T2", "ON", "T1.singer_id", "=", "T2.singer_id", "GROUP", "BY", "T2.singer_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "singer_in_concert", "as", "t1", "join", "singer", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t2", ".", "singer_id" ], "question": "Lister les noms de chanteurs et le nombre de concerts pour chaque chanteur.", "question_toks": [ "Lister", "les", "noms", "de", "chanteurs", "et", "le", "nombre", "de", "concerts", "pour", "chaque", "chanteur", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "singer_in_concert", "AS", "T1", "JOIN", "singer", "AS", "T2", "ON", "T1.singer_id", "=", "T2.singer_id", "GROUP", "BY", "T2.singer_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "singer_in_concert", "as", "t1", "join", "singer", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t2", ".", "singer_id" ], "question": "Quels sont les noms des chanteurs et du nombre de concerts pour chaque personne?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "chanteurs", "et", "du", "nombre", "de", "concerts", "pour", "chaque", "personne", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", "query_toks": [ "SELECT", "T2.name", "FROM", "singer_in_concert", "AS", "T1", "JOIN", "singer", "AS", "T2", "ON", "T1.singer_id", "=", "T2.singer_id", "JOIN", "concert", "AS", "T3", "ON", "T1.concert_id", "=", "T3.concert_id", "WHERE", "T3.year", "=", "2014" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "singer_in_concert", "as", "t1", "join", "singer", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "join", "concert", "as", "t3", "on", "t1", ".", "concert_id", "=", "t3", ".", "concert_id", "where", "t3", ".", "year", "=", "value" ], "question": "Énumérez tous les noms de chanteurs en concerts de l'année 2014.", "question_toks": [ "Énumérez", "tous", "les", "noms", "de", "chanteurs", "en", "concerts", "de", "l'", "année", "2014", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", "query_toks": [ "SELECT", "T2.name", "FROM", "singer_in_concert", "AS", "T1", "JOIN", "singer", "AS", "T2", "ON", "T1.singer_id", "=", "T2.singer_id", "JOIN", "concert", "AS", "T3", "ON", "T1.concert_id", "=", "T3.concert_id", "WHERE", "T3.year", "=", "2014" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "singer_in_concert", "as", "t1", "join", "singer", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "join", "concert", "as", "t3", "on", "t1", ".", "concert_id", "=", "t3", ".", "concert_id", "where", "t3", ".", "year", "=", "value" ], "question": "Quels sont les noms des chanteurs qui ont joué lors d'un concert en 2014?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "chanteurs", "qui", "ont", "joué", "lors", "d'", "un", "concert", "en", "2014", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", "query_toks": [ "SELECT", "name", ",", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "'", "%", "Hey", "%", "'" ], "query_toks_no_value": [ "select", "name", ",", "country", "from", "singer", "where", "song_name", "like", "value" ], "question": "Quel est le nom et la nation de la chanteuse qui a une chanson ayant «hé» dans son nom?", "question_toks": [ "Quel", "est", "le", "nom", "et", "la", "nation", "de", "la", "chanteuse", "qui", "a", "une", "chanson", "ayant", "«", "hé", "»", "dans", "son", "nom", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 11, false ], null ], "\"%Hey%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", "query_toks": [ "SELECT", "name", ",", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "'", "%", "Hey", "%", "'" ], "query_toks_no_value": [ "select", "name", ",", "country", "from", "singer", "where", "song_name", "like", "value" ], "question": "Quel est le nom et le pays d'origine de chaque chanteur qui a une chanson avec le mot «hey» dans son titre?", "question_toks": [ "Quel", "est", "le", "nom", "et", "le", "pays", "d'", "origine", "de", "chaque", "chanteur", "qui", "a", "une", "chanson", "avec", "le", "mot", "«", "hey", "»", "dans", "son", "titre", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 11, false ], null ], "\"%Hey%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", "query_toks": [ "SELECT", "T2.name", ",", "T2.location", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "WHERE", "T1.Year", "=", "2014", "INTERSECT", "SELECT", "T2.name", ",", "T2.location", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "WHERE", "T1.Year", "=", "2015" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value", "intersect", "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value" ], "question": "Trouvez le nom et l'emplacement des stades que certains concerts ont eu lieu dans les années de 2014 et 2015.", "question_toks": [ "Trouvez", "le", "nom", "et", "l'", "emplacement", "des", "stades", "que", "certains", "concerts", "ont", "eu", "lieu", "dans", "les", "années", "de", "2014", "et", "2015", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2015.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", "query_toks": [ "SELECT", "T2.name", ",", "T2.location", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "WHERE", "T1.Year", "=", "2014", "INTERSECT", "SELECT", "T2.name", ",", "T2.location", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "WHERE", "T1.Year", "=", "2015" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value", "intersect", "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value" ], "question": "Quels sont les noms et les emplacements des stades qui avaient des concerts survenus en 2014 et 2015?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "les", "emplacements", "des", "stades", "qui", "avaient", "des", "concerts", "survenus", "en", "2014", "et", "2015", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2015.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", "query_toks": [ "select", "count", "(", "*", ")", "from", "concert", "where", "stadium_id", "=", "(", "select", "stadium_id", "from", "stadium", "order", "by", "capacity", "desc", "limit", "1", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "concert", "where", "stadium_id", "=", "(", "select", "stadium_id", "from", "stadium", "order", "by", "capacity", "desc", "limit", "value", ")" ], "question": "Trouvez le nombre de concerts survenus dans le stade avec la plus grande capacité.", "question_toks": [ "Trouvez", "le", "nombre", "de", "concerts", "survenus", "dans", "le", "stade", "avec", "la", "plus", "grande", "capacité", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "concert_singer", "query": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", "query_toks": [ "select", "count", "(", "*", ")", "from", "concert", "where", "stadium_id", "=", "(", "select", "stadium_id", "from", "stadium", "order", "by", "capacity", "desc", "limit", "1", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "concert", "where", "stadium_id", "=", "(", "select", "stadium_id", "from", "stadium", "order", "by", "capacity", "desc", "limit", "value", ")" ], "question": "Quel est le nombre de concerts survenus dans le stade avec la plus grande capacité?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "concerts", "survenus", "dans", "le", "stade", "avec", "la", "plus", "grande", "capacité", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT count(*) FROM pets WHERE weight > 10", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "pets", "WHERE", "weight", ">", "10" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "pets", "where", "weight", ">", "value" ], "question": "Trouvez le nombre d'animaux domestiques dont le poids est plus lourd que 10.", "question_toks": [ "Trouvez", "le", "nombre", "d'", "animaux", "domestiques", "dont", "le", "poids", "est", "plus", "lourd", "que", "10", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 10.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT count(*) FROM pets WHERE weight > 10", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "pets", "WHERE", "weight", ">", "10" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "pets", "where", "weight", ">", "value" ], "question": "Combien d'animaux ont un plus grand poids que 10?", "question_toks": [ "Combien", "d'", "animaux", "ont", "un", "plus", "grand", "poids", "que", "10", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 10.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", "query_toks": [ "SELECT", "weight", "FROM", "pets", "ORDER", "BY", "pet_age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "weight", "from", "pets", "order", "by", "pet_age", "limit", "value" ], "question": "Trouvez le poids du plus jeune chien.", "question_toks": [ "Trouvez", "le", "poids", "du", "plus", "jeune", "chien", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", "query_toks": [ "SELECT", "weight", "FROM", "pets", "ORDER", "BY", "pet_age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "weight", "from", "pets", "order", "by", "pet_age", "limit", "value" ], "question": "Combien pèse le plus jeune chien?", "question_toks": [ "Combien", "pèse", "le", "plus", "jeune", "chien", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT max(weight) , petType FROM pets GROUP BY petType", "query_toks": [ "SELECT", "max", "(", "weight", ")", ",", "petType", "FROM", "pets", "GROUP", "BY", "petType" ], "query_toks_no_value": [ "select", "max", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype" ], "question": "Trouvez le poids maximum pour chaque type d'animal de compagnie. Énumérez le poids maximum et le type d'animal de compagnie.", "question_toks": [ "Trouvez", "le", "poids", "maximum", "pour", "chaque", "type", "d'", "animal", "de", "compagnie", ".", "Énumérez", "le", "poids", "maximum", "et", "le", "type", "d'", "animal", "de", "compagnie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 12, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT max(weight) , petType FROM pets GROUP BY petType", "query_toks": [ "SELECT", "max", "(", "weight", ")", ",", "petType", "FROM", "pets", "GROUP", "BY", "petType" ], "query_toks_no_value": [ "select", "max", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype" ], "question": "Énumérez le poids maximum et le type pour chaque type d'animal de compagnie.", "question_toks": [ "Énumérez", "le", "poids", "maximum", "et", "le", "type", "pour", "chaque", "type", "d'", "animal", "de", "compagnie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 12, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.age", ">", "20" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "age", ">", "value" ], "question": "Trouvez le nombre d'animaux domestiques appartenant à des étudiants âgés de plus de 20 ans.", "question_toks": [ "Trouvez", "le", "nombre", "d'", "animaux", "domestiques", "appartenant", "à", "des", "étudiants", "âgés", "de", "plus", "de", "20", "ans", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 20.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.age", ">", "20" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "age", ">", "value" ], "question": "Combien d'animaux domestiques appartiennent à des étudiants qui ont un âge supérieur à 20 ans?", "question_toks": [ "Combien", "d'", "animaux", "domestiques", "appartiennent", "à", "des", "étudiants", "qui", "ont", "un", "âge", "supérieur", "à", "20", "ans", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 20.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T2.petid", "=", "T3.petid", "WHERE", "T1.sex", "=", "'F", "'", "AND", "T3.pettype", "=", "'dog", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t2", ".", "petid", "=", "t3", ".", "petid", "where", "t1", ".", "sex", "=", "value", "and", "t3", ".", "pettype", "=", "value" ], "question": "Trouvez le nombre d'animaux domestiques qui sont soulevés par des étudiantes (avec sexe f).", "question_toks": [ "Trouvez", "le", "nombre", "d'", "animaux", "domestiques", "qui", "sont", "soulevés", "par", "des", "étudiantes", "(", "avec", "sexe", "f", ")", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"dog\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T2.petid", "=", "T3.petid", "WHERE", "T1.sex", "=", "'F", "'", "AND", "T3.pettype", "=", "'dog", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t2", ".", "petid", "=", "t3", ".", "petid", "where", "t1", ".", "sex", "=", "value", "and", "t3", ".", "pettype", "=", "value" ], "question": "Combien de animaux de chien sont élevés par des étudiantes?", "question_toks": [ "Combien", "de", "animaux", "de", "chien", "sont", "élevés", "par", "des", "étudiantes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"dog\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT count(DISTINCT pettype) FROM pets", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "pettype", ")", "FROM", "pets" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "pettype", ")", "from", "pets" ], "question": "Trouvez le nombre de types de animaux distincts.", "question_toks": [ "Trouvez", "le", "nombre", "de", "types", "de", "animaux", "distincts", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT count(DISTINCT pettype) FROM pets", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "pettype", ")", "FROM", "pets" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "pettype", ")", "from", "pets" ], "question": "Combien de types d'animaux de compagnie sont là?", "question_toks": [ "Combien", "de", "types", "d'", "animaux", "de", "compagnie", "sont", "là", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", "OR", "T3.pettype", "=", "'dog", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", "or", "t3", ".", "pettype", "=", "value" ], "question": "Trouvez le prénom des étudiants qui ont des animaux de compagnie de chat ou de chien.", "question_toks": [ "Trouvez", "le", "prénom", "des", "étudiants", "qui", "ont", "des", "animaux", "de", "compagnie", "de", "chat", "ou", "de", "chien", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"dog\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", "OR", "T3.pettype", "=", "'dog", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", "or", "t3", ".", "pettype", "=", "value" ], "question": "Quels sont les prénoms de chaque étudiant qui a un chat ou un chien comme animal de compagnie?", "question_toks": [ "Quels", "sont", "les", "prénoms", "de", "chaque", "étudiant", "qui", "a", "un", "chat", "ou", "un", "chien", "comme", "animal", "de", "compagnie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"dog\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog'", "query_toks": [ "select", "t1.fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1.stuid", "=", "t2.stuid", "join", "pets", "as", "t3", "on", "t3.petid", "=", "t2.petid", "where", "t3.pettype", "=", "\"cat\"", "intersect", "select", "t1.fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1.stuid", "=", "t2.stuid", "join", "pets", "as", "t3", "on", "t3.petid", "=", "t2.petid", "where", "t3.pettype", "=", "\"dog\"" ], "query_toks_no_value": [ "select", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", "intersect", "select", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value" ], "question": "Trouvez le prénom des étudiants qui ont des animaux domestiques de chat et de chien.", "question_toks": [ "Trouvez", "le", "prénom", "des", "étudiants", "qui", "ont", "des", "animaux", "domestiques", "de", "chat", "et", "de", "chien", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"dog\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog'", "query_toks": [ "SELECT", "T1.Fname", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", "INTERSECT", "SELECT", "T1.Fname", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'dog", "'" ], "query_toks_no_value": [ "select", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", "intersect", "select", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value" ], "question": "Quels sont les prénoms des étudiants qui ont des chats et des chiens comme animaux de compagnie?", "question_toks": [ "Quels", "sont", "les", "prénoms", "des", "étudiants", "qui", "ont", "des", "chats", "et", "des", "chiens", "comme", "animaux", "de", "compagnie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"dog\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", "query_toks": [ "SELECT", "major", ",", "age", "FROM", "student", "WHERE", "stuid", "NOT", "IN", "(", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", ")" ], "query_toks_no_value": [ "select", "major", ",", "age", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", ")" ], "question": "Trouvez le major et l'âge des étudiants qui n'ont pas d'animal de compagnie de chat.", "question_toks": [ "Trouvez", "le", "major", "et", "l'", "âge", "des", "étudiants", "qui", "n'", "ont", "pas", "d'", "animal", "de", "compagnie", "de", "chat", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ] ], "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": "pets_1", "query": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", "query_toks": [ "SELECT", "major", ",", "age", "FROM", "student", "WHERE", "stuid", "NOT", "IN", "(", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", ")" ], "query_toks_no_value": [ "select", "major", ",", "age", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", ")" ], "question": "Quel majeur est chaque étudiant qui ne possède pas de chat comme animal de compagnie, et quel âge ont-ils?", "question_toks": [ "Quel", "majeur", "est", "chaque", "étudiant", "qui", "ne", "possède", "pas", "de", "chat", "comme", "animal", "de", "compagnie", ",", "et", "quel", "âge", "ont", "-ils", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ] ], "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": "pets_1", "query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", "query_toks": [ "SELECT", "stuid", "FROM", "student", "EXCEPT", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value" ], "question": "Trouvez l'identifiant des étudiants qui n'ont pas d'animal de compagnie de chat.", "question_toks": [ "Trouvez", "l'", "identifiant", "des", "étudiants", "qui", "n'", "ont", "pas", "d'", "animal", "de", "compagnie", "de", "chat", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "pets_1", "query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", "query_toks": [ "SELECT", "stuid", "FROM", "student", "EXCEPT", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value" ], "question": "Quels sont les identifiants des étudiants qui ne possèdent pas de chats comme animaux de compagnie?", "question_toks": [ "Quels", "sont", "les", "identifiants", "des", "étudiants", "qui", "ne", "possèdent", "pas", "de", "chats", "comme", "animaux", "de", "compagnie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "pets_1", "query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", "query_toks": [ "SELECT", "T1.fname", ",", "T1.age", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'dog", "'", "AND", "T1.stuid", "NOT", "IN", "(", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "age", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", "and", "t1", ".", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", ")" ], "question": "Trouvez le prénom et l'âge des étudiants qui ont un chien mais n'ont pas de chat comme animal de compagnie.", "question_toks": [ "Trouvez", "le", "prénom", "et", "l'", "âge", "des", "étudiants", "qui", "ont", "un", "chien", "mais", "n'", "ont", "pas", "de", "chat", "comme", "animal", "de", "compagnie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"dog\"", null ], "and", [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ] ], "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": "pets_1", "query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", "query_toks": [ "SELECT", "T1.fname", ",", "T1.age", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'dog", "'", "AND", "T1.stuid", "NOT", "IN", "(", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "age", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", "and", "t1", ".", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", ")" ], "question": "Quel est le prénom de chaque élève qui a un chien mais n'a pas de chat?", "question_toks": [ "Quel", "est", "le", "prénom", "de", "chaque", "élève", "qui", "a", "un", "chien", "mais", "n'", "a", "pas", "de", "chat", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"dog\"", null ], "and", [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ] ], "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": "pets_1", "query": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1", "query_toks": [ "SELECT", "pettype", ",", "weight", "FROM", "pets", "ORDER", "BY", "pet_age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "pettype", ",", "weight", "from", "pets", "order", "by", "pet_age", "limit", "value" ], "question": "Trouvez le type et le poids du plus jeune animal de compagnie.", "question_toks": [ "Trouvez", "le", "type", "et", "le", "poids", "du", "plus", "jeune", "animal", "de", "compagnie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1", "query_toks": [ "SELECT", "pettype", ",", "weight", "FROM", "pets", "ORDER", "BY", "pet_age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "pettype", ",", "weight", "from", "pets", "order", "by", "pet_age", "limit", "value" ], "question": "Quel type d'animal est le plus jeune animal et combien pèse-t-il?", "question_toks": [ "Quel", "type", "d'", "animal", "est", "le", "plus", "jeune", "animal", "et", "combien", "pèse", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT petid , weight FROM pets WHERE pet_age > 1", "query_toks": [ "SELECT", "petid", ",", "weight", "FROM", "pets", "WHERE", "pet_age", ">", "1" ], "query_toks_no_value": [ "select", "petid", ",", "weight", "from", "pets", "where", "pet_age", ">", "value" ], "question": "Trouvez l'identifiant et le poids de tous les animaux de compagnie dont l'âge est plus âgé que 1.", "question_toks": [ "Trouvez", "l'", "identifiant", "et", "le", "poids", "de", "tous", "les", "animaux", "de", "compagnie", "dont", "l'", "âge", "est", "plus", "âgé", "que", "1", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 1.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT petid , weight FROM pets WHERE pet_age > 1", "query_toks": [ "SELECT", "petid", ",", "weight", "FROM", "pets", "WHERE", "pet_age", ">", "1" ], "query_toks_no_value": [ "select", "petid", ",", "weight", "from", "pets", "where", "pet_age", ">", "value" ], "question": "Quelle est l'identifiant et le poids de chaque animal de compagnie âgé de plus de 1?", "question_toks": [ "Quelle", "est", "l'", "identifiant", "et", "le", "poids", "de", "chaque", "animal", "de", "compagnie", "âgé", "de", "plus", "de", "1", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 1.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype", "query_toks": [ "SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype" ], "query_toks_no_value": [ "select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype" ], "question": "Trouvez l'âge moyen et maximum pour chaque type d'animal de compagnie.", "question_toks": [ "Trouvez", "l'", "âge", "moyen", "et", "maximum", "pour", "chaque", "type", "d'", "animal", "de", "compagnie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ], [ 1, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 12, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype", "query_toks": [ "SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype" ], "query_toks_no_value": [ "select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype" ], "question": "Quel est l'âge moyen et maximum pour chaque type d'animal de compagnie?", "question_toks": [ "Quel", "est", "l'", "âge", "moyen", "et", "maximum", "pour", "chaque", "type", "d'", "animal", "de", "compagnie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ], [ 1, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 12, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype", "query_toks": [ "SELECT", "avg", "(", "weight", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype" ], "query_toks_no_value": [ "select", "avg", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype" ], "question": "Trouvez le poids moyen pour chaque type d'animal de compagnie.", "question_toks": [ "Trouvez", "le", "poids", "moyen", "pour", "chaque", "type", "d'", "animal", "de", "compagnie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 12, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype", "query_toks": [ "SELECT", "avg", "(", "weight", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype" ], "query_toks_no_value": [ "select", "avg", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype" ], "question": "Quel est le poids moyen de chaque type d'animal de compagnie?", "question_toks": [ "Quel", "est", "le", "poids", "moyen", "de", "chaque", "type", "d'", "animal", "de", "compagnie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 12, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", "query_toks": [ "SELECT", "DISTINCT", "T1.fname", ",", "T1.age", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "age", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid" ], "question": "Trouvez le prénom et l'âge des étudiants qui ont un animal de compagnie.", "question_toks": [ "Trouvez", "le", "prénom", "et", "l'", "âge", "des", "étudiants", "qui", "ont", "un", "animal", "de", "compagnie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", "query_toks": [ "SELECT", "DISTINCT", "T1.fname", ",", "T1.age", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "age", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid" ], "question": "Quels sont les différents prénoms et âges des étudiants qui ont des animaux domestiques?", "question_toks": [ "Quels", "sont", "les", "différents", "prénoms", "et", "âges", "des", "étudiants", "qui", "ont", "des", "animaux", "domestiques", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", "query_toks": [ "SELECT", "T2.petid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.Lname", "=", "'Smith", "'" ], "query_toks_no_value": [ "select", "t2", ".", "petid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "lname", "=", "value" ], "question": "Trouvez l'identifiant de l'animal appartenant à l'étudiant dont le nom de famille est 'Smith'.", "question_toks": [ "Trouvez", "l'", "identifiant", "de", "l'", "animal", "appartenant", "à", "l'", "étudiant", "dont", "le", "nom", "de", "famille", "est", "'", "Smith", "'", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", "query_toks": [ "SELECT", "T2.petid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.Lname", "=", "'Smith", "'" ], "query_toks_no_value": [ "select", "t2", ".", "petid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "lname", "=", "value" ], "question": "Quel est l'identifiant de l'animal appartenant à l'étudiant dont le nom de famille est 'Smith'?", "question_toks": [ "Quel", "est", "l'", "identifiant", "de", "l'", "animal", "appartenant", "à", "l'", "étudiant", "dont", "le", "nom", "de", "famille", "est", "'", "Smith", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Smith\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "GROUP", "BY", "T1.stuid" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid" ], "question": "Trouvez le nombre d'animaux domestiques pour chaque élève qui possède un PET et une ID d'étudiant.", "question_toks": [ "Trouvez", "le", "nombre", "d'", "animaux", "domestiques", "pour", "chaque", "élève", "qui", "possède", "un", "PET", "et", "une", "ID", "d'", "étudiant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "select count(*) , t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid", "query_toks": [ "select", "count", "(", "*", ")", ",", "t1.stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1.stuid", "=", "t2.stuid", "group", "by", "t1.stuid" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid" ], "question": "Pour les étudiants qui ont des animaux domestiques, combien d'animaux ont chaque élève? Énumérez leurs identifiants au lieu de noms.", "question_toks": [ "Pour", "les", "étudiants", "qui", "ont", "des", "animaux", "domestiques", ",", "combien", "d'", "animaux", "ont", "chaque", "élève", "?", "Énumérez", "leurs", "identifiants", "au", "lieu", "de", "noms", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.fname", ",", "T1.sex", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "GROUP", "BY", "T1.stuid", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "sex", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid", "having", "count", "(", "*", ")", ">", "value" ], "question": "Trouvez le prénom et le sexe de l'étudiant qui ont plus d'un animal de compagnie.", "question_toks": [ "Trouvez", "le", "prénom", "et", "le", "sexe", "de", "l'", "étudiant", "qui", "ont", "plus", "d'", "un", "animal", "de", "compagnie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.fname", ",", "T1.sex", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "GROUP", "BY", "T1.stuid", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "sex", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quel est le prénom et le sexe du tout les étudiants qui ont plus d'un animal de compagnie?", "question_toks": [ "Quel", "est", "le", "prénom", "et", "le", "sexe", "du", "tout", "les", "étudiants", "qui", "ont", "plus", "d'", "un", "animal", "de", "compagnie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", "query_toks": [ "SELECT", "T1.lname", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pet_age", "=", "3", "AND", "T3.pettype", "=", "'cat", "'" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pet_age", "=", "value", "and", "t3", ".", "pettype", "=", "value" ], "question": "Trouvez le nom de famille de l'étudiant qui a un chat de 3 ans.", "question_toks": [ "Trouvez", "le", "nom", "de", "famille", "de", "l'", "étudiant", "qui", "a", "un", "chat", "de", "3", "ans", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], 3.0, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", "query_toks": [ "SELECT", "T1.lname", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pet_age", "=", "3", "AND", "T3.pettype", "=", "'cat", "'" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pet_age", "=", "value", "and", "t3", ".", "pettype", "=", "value" ], "question": "Quel est le nom de famille de l'étudiant qui a un chat qui a 3 ans?", "question_toks": [ "Quel", "est", "le", "nom", "de", "famille", "de", "l'", "étudiant", "qui", "a", "un", "chat", "qui", "a", "3", "ans", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], 3.0, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "pets_1", "query": "select avg(age) from student where stuid not in (select stuid from has_pet)", "query_toks": [ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")" ], "question": "Trouvez l'âge moyen des étudiants qui n'ont aucun animal de compagnie.", "question_toks": [ "Trouvez", "l'", "âge", "moyen", "des", "étudiants", "qui", "n'", "ont", "aucun", "animal", "de", "compagnie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, 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": "pets_1", "query": "select avg(age) from student where stuid not in (select stuid from has_pet)", "query_toks": [ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")" ], "question": "Quel est l'âge moyen pour tous les étudiants qui ne possèdent aucun animal de compagnie?", "question_toks": [ "Quel", "est", "l'", "âge", "moyen", "pour", "tous", "les", "étudiants", "qui", "ne", "possèdent", "aucun", "animal", "de", "compagnie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, 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": "car_1", "query": "SELECT count(*) FROM CONTINENTS;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CONTINENTS", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "continents" ], "question": "Combien de continents y a-t-il?", "question_toks": [ "Combien", "de", "continents", "y", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CONTINENTS;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CONTINENTS", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "continents" ], "question": "Quel est le nombre de continents?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "continents", "?" ], "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": "car_1", "query": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", "query_toks": [ "SELECT", "T1.ContId", ",", "T1.Continent", ",", "count", "(", "*", ")", "FROM", "CONTINENTS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.ContId", "=", "T2.Continent", "GROUP", "BY", "T1.ContId", ";" ], "query_toks_no_value": [ "select", "t1", ".", "contid", ",", "t1", ".", "continent", ",", "count", "(", "*", ")", "from", "continents", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "contid", "=", "t2", ".", "continent", "group", "by", "t1", ".", "contid" ], "question": "Combien de pays chaque continent a-t-il? Énumérez l'ID du continent, le nom du continent et le nombre de pays.", "question_toks": [ "Combien", "de", "pays", "chaque", "continent", "a", "-t", "-il", "?", "Énumérez", "l'", "ID", "du", "continent", ",", "le", "nom", "du", "continent", "et", "le", "nombre", "de", "pays", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", "query_toks": [ "SELECT", "T1.ContId", ",", "T1.Continent", ",", "count", "(", "*", ")", "FROM", "CONTINENTS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.ContId", "=", "T2.Continent", "GROUP", "BY", "T1.ContId", ";" ], "query_toks_no_value": [ "select", "t1", ".", "contid", ",", "t1", ".", "continent", ",", "count", "(", "*", ")", "from", "continents", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "contid", "=", "t2", ".", "continent", "group", "by", "t1", ".", "contid" ], "question": "Pour chaque continent, énumérez son identifiant, le nom et le nombre de pays qu'il a?", "question_toks": [ "Pour", "chaque", "continent", ",", "énumérez", "son", "identifiant", ",", "le", "nom", "et", "le", "nombre", "de", "pays", "qu'", "il", "a", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM COUNTRIES;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "COUNTRIES", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "countries" ], "question": "Combien de pays sont énumérés?", "question_toks": [ "Combien", "de", "pays", "sont", "énumérés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM COUNTRIES;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "COUNTRIES", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "countries" ], "question": "Combien de pays existent?", "question_toks": [ "Combien", "de", "pays", "existent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;", "query_toks": [ "SELECT", "T1.FullName", ",", "T1.Id", ",", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "GROUP", "BY", "T1.Id", ";" ], "query_toks_no_value": [ "select", "t1", ".", "fullname", ",", "t1", ".", "id", ",", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "group", "by", "t1", ".", "id" ], "question": "Combien de modèles chaque fabricant de voiture produit-il? Nom complet, identifiant et numéro de la liste.", "question_toks": [ "Combien", "de", "modèles", "chaque", "fabricant", "de", "voiture", "produit", "-il", "?", "Nom", "complet", ",", "identifiant", "et", "numéro", "de", "la", "liste", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;", "query_toks": [ "SELECT", "T1.FullName", ",", "T1.Id", ",", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "GROUP", "BY", "T1.Id", ";" ], "query_toks_no_value": [ "select", "t1", ".", "fullname", ",", "t1", ".", "id", ",", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "group", "by", "t1", ".", "id" ], "question": "Quel est le nom complet de chaque fabricant de voitures, ainsi que son identifiant et le nombre de modèles qu'il produit?", "question_toks": [ "Quel", "est", "le", "nom", "complet", "de", "chaque", "fabricant", "de", "voitures", ",", "ainsi", "que", "son", "identifiant", "et", "le", "nombre", "de", "modèles", "qu'", "il", "produit", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;", "query_toks": [ "SELECT", "T1.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "ORDER", "BY", "T2.horsepower", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "horsepower", "asc", "limit", "value" ], "question": "Quel modèle de la voiture a la puissance minimale?", "question_toks": [ "Quel", "modèle", "de", "la", "voiture", "a", "la", "puissance", "minimale", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;", "query_toks": [ "SELECT", "T1.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "ORDER", "BY", "T2.horsepower", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "horsepower", "asc", "limit", "value" ], "question": "Quel est le modèle de la voiture avec la plus petite quantité de puissance?", "question_toks": [ "Quel", "est", "le", "modèle", "de", "la", "voiture", "avec", "la", "plus", "petite", "quantité", "de", "puissance", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)", "query_toks": [ "SELECT", "T1.model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T2.Weight", "<", "(", "SELECT", "avg", "(", "Weight", ")", "FROM", "CARS_DATA", ")" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "cars_data", ")" ], "question": "Trouvez le modèle de la voiture dont le poids est inférieur au poids moyen.", "question_toks": [ "Trouvez", "le", "modèle", "de", "la", "voiture", "dont", "le", "poids", "est", "inférieur", "au", "poids", "moyen", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 21, 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": "car_1", "query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)", "query_toks": [ "SELECT", "T1.model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T2.Weight", "<", "(", "SELECT", "avg", "(", "Weight", ")", "FROM", "CARS_DATA", ")" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "cars_data", ")" ], "question": "Quel est le modèle de la voiture avec un poids plus petit que la moyenne?", "question_toks": [ "Quel", "est", "le", "modèle", "de", "la", "voiture", "avec", "un", "poids", "plus", "petit", "que", "la", "moyenne", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 21, 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": "car_1", "query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';", "query_toks": [ "SELECT", "DISTINCT", "T1.Maker", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "JOIN", "CAR_NAMES", "AS", "T3", "ON", "T2.model", "=", "T3.model", "JOIN", "CARS_DATA", "AS", "T4", "ON", "T3.MakeId", "=", "T4.id", "WHERE", "T4.year", "=", "'1970", "'", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "join", "car_names", "as", "t3", "on", "t2", ".", "model", "=", "t3", ".", "model", "join", "cars_data", "as", "t4", "on", "t3", ".", "makeid", "=", "t4", ".", "id", "where", "t4", ".", "year", "=", "value" ], "question": "Trouvez le nom des fabricants qui produisaient des voitures de 1970?", "question_toks": [ "Trouvez", "le", "nom", "des", "fabricants", "qui", "produisaient", "des", "voitures", "de", "1970", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ], [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"1970\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';", "query_toks": [ "SELECT", "DISTINCT", "T1.Maker", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "JOIN", "CAR_NAMES", "AS", "T3", "ON", "T2.model", "=", "T3.model", "JOIN", "CARS_DATA", "AS", "T4", "ON", "T3.MakeId", "=", "T4.id", "WHERE", "T4.year", "=", "'1970", "'", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "join", "car_names", "as", "t3", "on", "t2", ".", "model", "=", "t3", ".", "model", "join", "cars_data", "as", "t4", "on", "t3", ".", "makeid", "=", "t4", ".", "id", "where", "t4", ".", "year", "=", "value" ], "question": "Quel est le nom des différents fabricants de voitures qui ont produit une voiture en 1970?", "question_toks": [ "Quel", "est", "le", "nom", "des", "différents", "fabricants", "de", "voitures", "qui", "ont", "produit", "une", "voiture", "en", "1970", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ], [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"1970\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);", "query_toks": [ "SELECT", "T2.Make", ",", "T1.Year", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T1.Year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "CARS_DATA", ")", ";" ], "query_toks_no_value": [ "select", "t2", ".", "make", ",", "t1", ".", "year", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data", ")" ], "question": "Trouvez le temps de fabrication et de production des voitures produites au plus tôt année?", "question_toks": [ "Trouvez", "le", "temps", "de", "fabrication", "et", "de", "production", "des", "voitures", "produites", "au", "plus", "tôt", "année", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 23, 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": "car_1", "query": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);", "query_toks": [ "SELECT", "T2.Make", ",", "T1.Year", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T1.Year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "CARS_DATA", ")", ";" ], "query_toks_no_value": [ "select", "t2", ".", "make", ",", "t1", ".", "year", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data", ")" ], "question": "Qu'est-ce que le fabricant de la Carr est produit le plus tôt et quelle année était-ce?", "question_toks": [ "Qu'", "est", "-ce", "que", "le", "fabricant", "de", "la", "Carr", "est", "produit", "le", "plus", "tôt", "et", "quelle", "année", "était", "-ce", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 23, 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": "car_1", "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;", "query_toks": [ "SELECT", "DISTINCT", "T1.model", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.model", "=", "T2.model", "JOIN", "CARS_DATA", "AS", "T3", "ON", "T2.MakeId", "=", "T3.id", "WHERE", "T3.year", ">", "1980", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "model", "from", "model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "model", "=", "t2", ".", "model", "join", "cars_data", "as", "t3", "on", "t2", ".", "makeid", "=", "t3", ".", "id", "where", "t3", ".", "year", ">", "value" ], "question": "Quels modèles de voiture distincts sont les produits produits après 1980?", "question_toks": [ "Quels", "modèles", "de", "voiture", "distincts", "sont", "les", "produits", "produits", "après", "1980", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;", "query_toks": [ "SELECT", "DISTINCT", "T1.model", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.model", "=", "T2.model", "JOIN", "CARS_DATA", "AS", "T3", "ON", "T2.MakeId", "=", "T3.id", "WHERE", "T3.year", ">", "1980", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "model", "from", "model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "model", "=", "t2", ".", "model", "join", "cars_data", "as", "t3", "on", "t2", ".", "makeid", "=", "t3", ".", "id", "where", "t3", ".", "year", ">", "value" ], "question": "Quels sont les différents modèles pour les cartes produites après 1980?", "question_toks": [ "Quels", "sont", "les", "différents", "modèles", "pour", "les", "cartes", "produites", "après", "1980", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;", "query_toks": [ "SELECT", "T1.Continent", ",", "count", "(", "*", ")", "FROM", "CONTINENTS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.ContId", "=", "T2.continent", "JOIN", "car_makers", "AS", "T3", "ON", "T2.CountryId", "=", "T3.Country", "GROUP", "BY", "T1.Continent", ";" ], "query_toks_no_value": [ "select", "t1", ".", "continent", ",", "count", "(", "*", ")", "from", "continents", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "contid", "=", "t2", ".", "continent", "join", "car_makers", "as", "t3", "on", "t2", ".", "countryid", "=", "t3", ".", "country", "group", "by", "t1", ".", "continent" ], "question": "Combien de fabricants de voitures y a-t-il dans chaque continent? Énumérez le nom du continent et le compte.", "question_toks": [ "Combien", "de", "fabricants", "de", "voitures", "y", "a", "-t", "-il", "dans", "chaque", "continent", "?", "Énumérez", "le", "nom", "du", "continent", "et", "le", "compte", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;", "query_toks": [ "SELECT", "T1.Continent", ",", "count", "(", "*", ")", "FROM", "CONTINENTS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.ContId", "=", "T2.continent", "JOIN", "car_makers", "AS", "T3", "ON", "T2.CountryId", "=", "T3.Country", "GROUP", "BY", "T1.Continent", ";" ], "query_toks_no_value": [ "select", "t1", ".", "continent", ",", "count", "(", "*", ")", "from", "continents", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "contid", "=", "t2", ".", "continent", "join", "car_makers", "as", "t3", "on", "t2", ".", "countryid", "=", "t3", ".", "country", "group", "by", "t1", ".", "continent" ], "question": "Quel est le nom de chaque continent et combien de fabricants de voitures y a-t-il dans chacun?", "question_toks": [ "Quel", "est", "le", "nom", "de", "chaque", "continent", "et", "combien", "de", "fabricants", "de", "voitures", "y", "a", "-t", "-il", "dans", "chacun", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.CountryName", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.Country", "=", "T2.CountryId", "GROUP", "BY", "T1.Country", "ORDER", "BY", "Count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "countryname", "from", "car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "country", "=", "t2", ".", "countryid", "group", "by", "t1", ".", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Lequel des pays a la plupart des constructeurs automobiles? Énumérez le nom du pays.", "question_toks": [ "Lequel", "des", "pays", "a", "la", "plupart", "des", "constructeurs", "automobiles", "?", "Énumérez", "le", "nom", "du", "pays", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.CountryName", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.Country", "=", "T2.CountryId", "GROUP", "BY", "T1.Country", "ORDER", "BY", "Count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "countryname", "from", "car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "country", "=", "t2", ".", "countryid", "group", "by", "t1", ".", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom du pays avec la plupart des constructeurs automobiles?", "question_toks": [ "Quel", "est", "le", "nom", "du", "pays", "avec", "la", "plupart", "des", "constructeurs", "automobiles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;", "query_toks": [ "select", "count", "(", "*", ")", ",", "t2.fullname", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.maker", "=", "t2.id", "group", "by", "t2.id", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "fullname", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "group", "by", "t2", ".", "id" ], "question": "Combien de modèles de voiture sont produits par chaque fabricant? Listez uniquement le compte et le nom complet du fabricant.", "question_toks": [ "Combien", "de", "modèles", "de", "voiture", "sont", "produits", "par", "chaque", "fabricant", "?", "Listez", "uniquement", "le", "compte", "et", "le", "nom", "complet", "du", "fabricant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT Count(*) , T2.FullName , T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id;", "query_toks": [ "SELECT", "Count", "(", "*", ")", ",", "T2.FullName", ",", "T2.id", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.Maker", "=", "T2.Id", "GROUP", "BY", "T2.id", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "fullname", ",", "t2", ".", "id", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "group", "by", "t2", ".", "id" ], "question": "Quel est le nombre de modèles de voitures produites par chaque fabricant et quel est l'identifiant et le nom complet de chaque fabricant?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "modèles", "de", "voitures", "produites", "par", "chaque", "fabricant", "et", "quel", "est", "l'", "identifiant", "et", "le", "nom", "complet", "de", "chaque", "fabricant", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';", "query_toks": [ "SELECT", "T1.Accelerate", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T2.Make", "=", "'amc", "hornet", "sportabout", "(", "sw", ")", "'", ";" ], "query_toks_no_value": [ "select", "t1", ".", "accelerate", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "make", "=", "value" ], "question": "Qu'est-ce que l'accélération de la voiture rend AMC Hornet Sportabout (SW)?", "question_toks": [ "Qu'", "est", "-ce", "que", "l'", "accélération", "de", "la", "voiture", "rend", "AMC", "Hornet", "Sportabout", "(", "SW", ")", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"amc hornet sportabout (sw)\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';", "query_toks": [ "SELECT", "T1.Accelerate", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T2.Make", "=", "'amc", "hornet", "sportabout", "(", "sw", ")", "'", ";" ], "query_toks_no_value": [ "select", "t1", ".", "accelerate", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "make", "=", "value" ], "question": "Combien la voiture accélère-t-elle cela rend AMC Hornet Sportabout (SW)?", "question_toks": [ "Combien", "la", "voiture", "accélère", "-t", "-elle", "cela", "rend", "AMC", "Hornet", "Sportabout", "(", "SW", ")", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"amc hornet sportabout (sw)\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.Country", "=", "T2.CountryId", "WHERE", "T2.CountryName", "=", "'france", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "country", "=", "t2", ".", "countryid", "where", "t2", ".", "countryname", "=", "value" ], "question": "Combien de fabricants de voitures y a-t-il en France?", "question_toks": [ "Combien", "de", "fabricants", "de", "voitures", "y", "a", "-t", "-il", "en", "France", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"france\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.Country", "=", "T2.CountryId", "WHERE", "T2.CountryName", "=", "'france", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "country", "=", "t2", ".", "countryid", "where", "t2", ".", "countryname", "=", "value" ], "question": "Quel est le nombre de fabricants de soins en France?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "fabricants", "de", "soins", "en", "France", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"france\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.Maker", "=", "T2.Id", "JOIN", "COUNTRIES", "AS", "T3", "ON", "T2.Country", "=", "T3.CountryId", "WHERE", "T3.CountryName", "=", "'usa", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "join", "countries", "as", "t3", "on", "t2", ".", "country", "=", "t3", ".", "countryid", "where", "t3", ".", "countryname", "=", "value" ], "question": "Combien de modèles de voiture sont produits aux États-Unis?", "question_toks": [ "Combien", "de", "modèles", "de", "voiture", "sont", "produits", "aux", "États-Unis", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"usa\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.Maker", "=", "T2.Id", "JOIN", "COUNTRIES", "AS", "T3", "ON", "T2.Country", "=", "T3.CountryId", "WHERE", "T3.CountryName", "=", "'usa", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "join", "countries", "as", "t3", "on", "t2", ".", "country", "=", "t3", ".", "countryid", "where", "t3", ".", "countryname", "=", "value" ], "question": "Quel est le nombre de modèles de voitures produites aux États-Unis?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "modèles", "de", "voitures", "produites", "aux", "États-Unis", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"usa\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", "query_toks": [ "SELECT", "avg", "(", "mpg", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", "=", "4", ";" ], "query_toks_no_value": [ "select", "avg", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value" ], "question": "Quel est le kilomètre moyen par gallon (mpg) des voitures avec 4 cylindres?", "question_toks": [ "Quel", "est", "le", "kilomètre", "moyen", "par", "gallon", "(", "mpg", ")", "des", "voitures", "avec", "4", "cylindres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 4.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", "query_toks": [ "SELECT", "avg", "(", "mpg", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", "=", "4", ";" ], "query_toks_no_value": [ "select", "avg", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value" ], "question": "Quel est le kilomètre moyen par gallon de toutes les cartes avec 4 cylindres?", "question_toks": [ "Quel", "est", "le", "kilomètre", "moyen", "par", "gallon", "de", "toutes", "les", "cartes", "avec", "4", "cylindres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 4.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "query_toks": [ "select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8", "and", "year", "=", "1974" ], "query_toks_no_value": [ "select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value", "and", "year", "=", "value" ], "question": "Quel est le poids le plus petit de la voiture produite avec 8 cylindres de 1974?", "question_toks": [ "Quel", "est", "le", "poids", "le", "plus", "petit", "de", "la", "voiture", "produite", "avec", "8", "cylindres", "de", "1974", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 8.0, null ], "and", [ false, 2, [ 0, [ 0, 23, false ], null ], 1974.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "query_toks": [ "select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8", "and", "year", "=", "1974" ], "query_toks_no_value": [ "select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value", "and", "year", "=", "value" ], "question": "Quel est le poids minimum de la voiture avec 8 cylindres produits en 1974?", "question_toks": [ "Quel", "est", "le", "poids", "minimum", "de", "la", "voiture", "avec", "8", "cylindres", "produits", "en", "1974", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 21, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 8.0, null ], "and", [ false, 2, [ 0, [ 0, 23, false ], null ], 1974.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT Maker , Model FROM MODEL_LIST;", "query_toks": [ "SELECT", "Maker", ",", "Model", "FROM", "MODEL_LIST", ";" ], "query_toks_no_value": [ "select", "maker", ",", "model", "from", "model_list" ], "question": "Quels sont tous les fabricants et modèles?", "question_toks": [ "Quels", "sont", "tous", "les", "fabricants", "et", "modèles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT Maker , Model FROM MODEL_LIST;", "query_toks": [ "SELECT", "Maker", ",", "Model", "FROM", "MODEL_LIST", ";" ], "query_toks_no_value": [ "select", "maker", ",", "model", "from", "model_list" ], "question": "Quels sont les fabricants et les modèles?", "question_toks": [ "Quels", "sont", "les", "fabricants", "et", "les", "modèles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", "query_toks": [ "SELECT", "T1.CountryName", ",", "T1.CountryId", "FROM", "COUNTRIES", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.CountryId", "=", "T2.Country", "GROUP", "BY", "T1.CountryId", "HAVING", "count", "(", "*", ")", ">", "=", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "countryname", ",", "t1", ".", "countryid", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les pays ayant au moins un constructeur automobile? Nom de la liste et ID.", "question_toks": [ "Quels", "sont", "les", "pays", "ayant", "au", "moins", "un", "constructeur", "automobile", "?", "Nom", "de", "la", "liste", "et", "ID", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", "query_toks": [ "SELECT", "T1.CountryName", ",", "T1.CountryId", "FROM", "COUNTRIES", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.CountryId", "=", "T2.Country", "GROUP", "BY", "T1.CountryId", "HAVING", "count", "(", "*", ")", ">", "=", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "countryname", ",", "t1", ".", "countryid", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les noms et les identifiants de tous les pays avec au moins un constructeur automobile?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "les", "identifiants", "de", "tous", "les", "pays", "avec", "au", "moins", "un", "constructeur", "automobile", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "horsepower", ">", "150", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "horsepower", ">", "value" ], "question": "Quel est le nombre de voitures avec une puissance de chevaux plus de 150?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "voitures", "avec", "une", "puissance", "de", "chevaux", "plus", "de", "150", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 20, false ], null ], 150.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "horsepower", ">", "150", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "horsepower", ">", "value" ], "question": "Quel est le nombre de voitures avec une puissance supérieure à 150?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "voitures", "avec", "une", "puissance", "supérieure", "à", "150", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 20, false ], null ], 150.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", "query_toks": [ "SELECT", "avg", "(", "Weight", ")", ",", "YEAR", "FROM", "CARS_DATA", "GROUP", "BY", "YEAR", ";" ], "query_toks_no_value": [ "select", "avg", "(", "weight", ")", ",", "year", "from", "cars_data", "group", "by", "year" ], "question": "Quel est le poids moyen des voitures chaque année?", "question_toks": [ "Quel", "est", "le", "poids", "moyen", "des", "voitures", "chaque", "année", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 23, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", "query_toks": [ "SELECT", "avg", "(", "Weight", ")", ",", "YEAR", "FROM", "CARS_DATA", "GROUP", "BY", "YEAR", ";" ], "query_toks_no_value": [ "select", "avg", "(", "weight", ")", ",", "year", "from", "cars_data", "group", "by", "year" ], "question": "Quel est le poids moyen et l'année de chaque année?", "question_toks": [ "Quel", "est", "le", "poids", "moyen", "et", "l'", "année", "de", "chaque", "année", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 23, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", "query_toks": [ "SELECT", "T1.CountryName", "FROM", "COUNTRIES", "AS", "T1", "JOIN", "CONTINENTS", "AS", "T2", "ON", "T1.Continent", "=", "T2.ContId", "JOIN", "CAR_MAKERS", "AS", "T3", "ON", "T1.CountryId", "=", "T3.Country", "WHERE", "T2.Continent", "=", "'europe", "'", "GROUP", "BY", "T1.CountryName", "HAVING", "count", "(", "*", ")", ">", "=", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "continents", "as", "t2", "on", "t1", ".", "continent", "=", "t2", ".", "contid", "join", "car_makers", "as", "t3", "on", "t1", ".", "countryid", "=", "t3", ".", "country", "where", "t2", ".", "continent", "=", "value", "group", "by", "t1", ".", "countryname", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels pays d'Europe ont au moins 3 constructeurs automobiles?", "question_toks": [ "Quels", "pays", "d'", "Europe", "ont", "au", "moins", "3", "constructeurs", "automobiles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 1, false ], null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"europe\"", null ] ], "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", "query_toks": [ "SELECT", "T1.CountryName", "FROM", "COUNTRIES", "AS", "T1", "JOIN", "CONTINENTS", "AS", "T2", "ON", "T1.Continent", "=", "T2.ContId", "JOIN", "CAR_MAKERS", "AS", "T3", "ON", "T1.CountryId", "=", "T3.Country", "WHERE", "T2.Continent", "=", "'europe", "'", "GROUP", "BY", "T1.CountryName", "HAVING", "count", "(", "*", ")", ">", "=", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "continents", "as", "t2", "on", "t1", ".", "continent", "=", "t2", ".", "contid", "join", "car_makers", "as", "t3", "on", "t1", ".", "countryid", "=", "t3", ".", "country", "where", "t2", ".", "continent", "=", "value", "group", "by", "t1", ".", "countryname", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les noms de tous les pays européens avec au moins 3 fabricants?", "question_toks": [ "Quels", "sont", "les", "noms", "de", "tous", "les", "pays", "européens", "avec", "au", "moins", "3", "fabricants", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 1, false ], null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"europe\"", null ] ], "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.horsepower", ",", "T1.Make", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T2.cylinders", "=", "3", "ORDER", "BY", "T2.horsepower", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "horsepower", ",", "t1", ".", "make", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value" ], "question": "Quelle est la puissance maximale et la marque des modèles de voiture avec 3 cylindres?", "question_toks": [ "Quelle", "est", "la", "puissance", "maximale", "et", "la", "marque", "des", "modèles", "de", "voiture", "avec", "3", "cylindres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 3.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.horsepower", ",", "T1.Make", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T2.cylinders", "=", "3", "ORDER", "BY", "T2.horsepower", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "horsepower", ",", "t1", ".", "make", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value" ], "question": "Quelle est la plus grande quantité de puissance pour les modèles avec 3 cylindres et que fait-il?", "question_toks": [ "Quelle", "est", "la", "plus", "grande", "quantité", "de", "puissance", "pour", "les", "modèles", "avec", "3", "cylindres", "et", "que", "fait", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 3.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "ORDER", "BY", "T2.mpg", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "mpg", "desc", "limit", "value" ], "question": "Quel modèle sauve le plus d'essence? C'est-à-dire avoir le maximum de miles par gallon.", "question_toks": [ "Quel", "modèle", "sauve", "le", "plus", "d'", "essence", "?", "C'", "est", "-", "à", "-", "dire", "avoir", "le", "maximum", "de", "miles", "par", "gallon", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.mpg desc limit 1;", "query_toks": [ "select", "t1.model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1.makeid", "=", "t2.id", "order", "by", "t2.mpg", "desc", "limit", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "mpg", "desc", "limit", "value" ], "question": "Quel est le modèle de voiture avec le plus haut mpg?", "question_toks": [ "Quel", "est", "le", "modèle", "de", "voiture", "avec", "le", "plus", "haut", "mpg", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980;", "query_toks": [ "SELECT", "avg", "(", "horsepower", ")", "FROM", "CARS_DATA", "WHERE", "YEAR", "<", "1980", ";" ], "query_toks_no_value": [ "select", "avg", "(", "horsepower", ")", "from", "cars_data", "where", "year", "<", "value" ], "question": "Quelle est la puissance moyenne des voitures avant 1980?", "question_toks": [ "Quelle", "est", "la", "puissance", "moyenne", "des", "voitures", "avant", "1980", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select avg(horsepower) from cars_data where year < 1980;", "query_toks": [ "select", "avg", "(", "horsepower", ")", "from", "cars_data", "where", "year", "<", "1980", ";" ], "query_toks_no_value": [ "select", "avg", "(", "horsepower", ")", "from", "cars_data", "where", "year", "<", "value" ], "question": "Quelle est la puissance moyenne de toutes les voitures produites avant 1980?", "question_toks": [ "Quelle", "est", "la", "puissance", "moyenne", "de", "toutes", "les", "voitures", "produites", "avant", "1980", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", "query_toks": [ "SELECT", "avg", "(", "T2.edispl", ")", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T1.Model", "=", "'volvo", "'", ";" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "edispl", ")", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t1", ".", "model", "=", "value" ], "question": "Quelle est la moyenne EDISPL des voitures de modèle Volvo?", "question_toks": [ "Quelle", "est", "la", "moyenne", "EDISPL", "des", "voitures", "de", "modèle", "Volvo", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"volvo\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", "query_toks": [ "SELECT", "avg", "(", "T2.edispl", ")", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T1.Model", "=", "'volvo", "'", ";" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "edispl", ")", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t1", ".", "model", "=", "value" ], "question": "Quelle est la moyenne eDispl pour toutes les Volvos?", "question_toks": [ "Quelle", "est", "la", "moyenne", "eDispl", "pour", "toutes", "les", "Volvos", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"volvo\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", "query_toks": [ "SELECT", "max", "(", "Accelerate", ")", ",", "Cylinders", "FROM", "CARS_DATA", "GROUP", "BY", "Cylinders", ";" ], "query_toks_no_value": [ "select", "max", "(", "accelerate", ")", ",", "cylinders", "from", "cars_data", "group", "by", "cylinders" ], "question": "Quel est l'accélération maximale pour un nombre différent de cylindres?", "question_toks": [ "Quel", "est", "l'", "accélération", "maximale", "pour", "un", "nombre", "différent", "de", "cylindres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 18, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", "query_toks": [ "SELECT", "max", "(", "Accelerate", ")", ",", "Cylinders", "FROM", "CARS_DATA", "GROUP", "BY", "Cylinders", ";" ], "query_toks_no_value": [ "select", "max", "(", "accelerate", ")", ",", "cylinders", "from", "cars_data", "group", "by", "cylinders" ], "question": "Quel est l'accélération maximum pour tous les différents cylindres?", "question_toks": [ "Quel", "est", "l'", "accélération", "maximum", "pour", "tous", "les", "différents", "cylindres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 18, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "Model", "FROM", "CAR_NAMES", "GROUP", "BY", "Model", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "model", "from", "car_names", "group", "by", "model", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel modèle a la plus grande version (make) des voitures?", "question_toks": [ "Quel", "modèle", "a", "la", "plus", "grande", "version", "(", "make", ")", "des", "voitures", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 14, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "Model", "FROM", "CAR_NAMES", "GROUP", "BY", "Model", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "model", "from", "car_names", "group", "by", "model", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel modèle a les versions les plus différentes?", "question_toks": [ "Quel", "modèle", "a", "les", "versions", "les", "plus", "différentes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 14, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", ">", "4", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "cylinders", ">", "value" ], "question": "Combien de voitures ont plus de 4 cylindres?", "question_toks": [ "Combien", "de", "voitures", "ont", "plus", "de", "4", "cylindres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 4.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", ">", "4", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "cylinders", ">", "value" ], "question": "Quel est le nombre de voitures avec plus de 4 cylindres?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "voitures", "avec", "plus", "de", "4", "cylindres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 4.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "YEAR", "=", "1980", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "year", "=", "value" ], "question": "Combien de voitures ont été produites en 1980?", "question_toks": [ "Combien", "de", "voitures", "ont", "été", "produites", "en", "1980", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "YEAR", "=", "1980", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "year", "=", "value" ], "question": "En 1980, combien de voitures ont été faites?", "question_toks": [ "En", "1980", ",", "combien", "de", "voitures", "ont", "été", "faites", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "WHERE", "T1.FullName", "=", "'American", "Motor", "Company", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "where", "t1", ".", "fullname", "=", "value" ], "question": "Combien de modèles de voiture ont été produits par le fabricant avec le nom complet American Motor Company?", "question_toks": [ "Combien", "de", "modèles", "de", "voiture", "ont", "été", "produits", "par", "le", "fabricant", "avec", "le", "nom", "complet", "American", "Motor", "Company", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"American Motor Company\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "WHERE", "T1.FullName", "=", "'American", "Motor", "Company", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "where", "t1", ".", "fullname", "=", "value" ], "question": "Quel est le nombre de modèles de voiture créés par la machine à moteur américaine de la fabricant de voitures?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "modèles", "de", "voiture", "créés", "par", "la", "machine", "à", "moteur", "américaine", "de", "la", "fabricant", "de", "voitures", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"American Motor Company\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", "query_toks": [ "SELECT", "T1.FullName", ",", "T1.Id", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "GROUP", "BY", "T1.Id", "HAVING", "count", "(", "*", ")", ">", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "fullname", ",", "t1", ".", "id", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels fabricants ont conçu plus de 3 modèles de voiture? Liste nom complet et identifiant.", "question_toks": [ "Quels", "fabricants", "ont", "conçu", "plus", "de", "3", "modèles", "de", "voiture", "?", "Liste", "nom", "complet", "et", "identifiant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", "query_toks": [ "SELECT", "T1.FullName", ",", "T1.Id", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "GROUP", "BY", "T1.Id", "HAVING", "count", "(", "*", ")", ">", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "fullname", ",", "t1", ".", "id", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels sont les noms et identifiants de tous les fabricants avec plus de 3 modèles?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "identifiants", "de", "tous", "les", "fabricants", "avec", "plus", "de", "3", "modèles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;", "query_toks": [ "SELECT", "DISTINCT", "T2.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Model", "=", "T2.Model", "JOIN", "CAR_MAKERS", "AS", "T3", "ON", "T2.Maker", "=", "T3.Id", "JOIN", "CARS_DATA", "AS", "T4", "ON", "T1.MakeId", "=", "T4.Id", "WHERE", "T3.FullName", "=", "'General", "Motors", "'", "OR", "T4.weight", ">", "3500", ";" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "model", "from", "car_names", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "model", "=", "t2", ".", "model", "join", "car_makers", "as", "t3", "on", "t2", ".", "maker", "=", "t3", ".", "id", "join", "cars_data", "as", "t4", "on", "t1", ".", "makeid", "=", "t4", ".", "id", "where", "t3", ".", "fullname", "=", "value", "or", "t4", ".", "weight", ">", "value" ], "question": "Quels modèles distinctifs sont produits par fabricant avec le nom complet des moteurs généraux ou pesant plus de 3500?", "question_toks": [ "Quels", "modèles", "distinctifs", "sont", "produits", "par", "fabricant", "avec", "le", "nom", "complet", "des", "moteurs", "généraux", "ou", "pesant", "plus", "de", "3500", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ], [ "table_unit", 2 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 12, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"General Motors\"", null ], "or", [ false, 3, [ 0, [ 0, 21, false ], null ], 3500.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;", "query_toks": [ "SELECT", "DISTINCT", "T2.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Model", "=", "T2.Model", "JOIN", "CAR_MAKERS", "AS", "T3", "ON", "T2.Maker", "=", "T3.Id", "JOIN", "CARS_DATA", "AS", "T4", "ON", "T1.MakeId", "=", "T4.Id", "WHERE", "T3.FullName", "=", "'General", "Motors", "'", "OR", "T4.weight", ">", "3500", ";" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "model", "from", "car_names", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "model", "=", "t2", ".", "model", "join", "car_makers", "as", "t3", "on", "t2", ".", "maker", "=", "t3", ".", "id", "join", "cars_data", "as", "t4", "on", "t1", ".", "makeid", "=", "t4", ".", "id", "where", "t3", ".", "fullname", "=", "value", "or", "t4", ".", "weight", ">", "value" ], "question": "Quels sont les différents modèles créés par les moteurs généraux de la fabricant de voitures ou pesé plus de 3500?", "question_toks": [ "Quels", "sont", "les", "différents", "modèles", "créés", "par", "les", "moteurs", "généraux", "de", "la", "fabricant", "de", "voitures", "ou", "pesé", "plus", "de", "3500", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ], [ "table_unit", 2 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 12, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"General Motors\"", null ], "or", [ false, 3, [ 0, [ 0, 21, false ], null ], 3500.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select distinct year from cars_data where weight between 3000 and 4000;", "query_toks": [ "select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "3000", "and", "4000", ";" ], "query_toks_no_value": [ "select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "value", "and", "value" ], "question": "Au cours de laquelle des voitures ont été produites pesant moins de 3000 et pas plus de 4000?", "question_toks": [ "Au", "cours", "de", "laquelle", "des", "voitures", "ont", "été", "produites", "pesant", "moins", "de", "3000", "et", "pas", "plus", "de", "4000", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 1, [ 0, [ 0, 21, false ], null ], 3000.0, 4000.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select distinct year from cars_data where weight between 3000 and 4000;", "query_toks": [ "select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "3000", "and", "4000", ";" ], "query_toks_no_value": [ "select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "value", "and", "value" ], "question": "Quelles sont les différentes années dans lesquelles il y avait des voitures produites qui pesaient moins de 4000 et aussi des voitures pondérées plus de 3000?", "question_toks": [ "Quelles", "sont", "les", "différentes", "années", "dans", "lesquelles", "il", "y", "avait", "des", "voitures", "produites", "qui", "pesaient", "moins", "de", "4000", "et", "aussi", "des", "voitures", "pondérées", "plus", "de", "3000", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 1, [ 0, [ 0, 21, false ], null ], 3000.0, 4000.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.horsepower", "FROM", "CARS_DATA", "AS", "T1", "ORDER", "BY", "T1.accelerate", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "horsepower", "from", "cars_data", "as", "t1", "order", "by", "t1", ".", "accelerate", "desc", "limit", "value" ], "question": "Quelle est la puissance de la voiture avec la plus grande accélération?", "question_toks": [ "Quelle", "est", "la", "puissance", "de", "la", "voiture", "avec", "la", "plus", "grande", "accélération", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 22, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.horsepower", "FROM", "CARS_DATA", "AS", "T1", "ORDER", "BY", "T1.accelerate", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "horsepower", "from", "cars_data", "as", "t1", "order", "by", "t1", ".", "accelerate", "desc", "limit", "value" ], "question": "Quelle est la puissance de la voiture avec le plus grand accélération?", "question_toks": [ "Quelle", "est", "la", "puissance", "de", "la", "voiture", "avec", "le", "plus", "grand", "accélération", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 22, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", "query_toks": [ "SELECT", "T1.cylinders", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T2.Model", "=", "'volvo", "'", "ORDER", "BY", "T1.accelerate", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "cylinders", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "model", "=", "value", "order", "by", "t1", ".", "accelerate", "asc", "limit", "value" ], "question": "Pour le modèle Volvo, combien de cylindres la voiture avec le moins accélérateur a-t-elle?", "question_toks": [ "Pour", "le", "modèle", "Volvo", ",", "combien", "de", "cylindres", "la", "voiture", "avec", "le", "moins", "accélérateur", "a", "-t", "-elle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"volvo\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", "query_toks": [ "SELECT", "T1.cylinders", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T2.Model", "=", "'volvo", "'", "ORDER", "BY", "T1.accelerate", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "cylinders", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "model", "=", "value", "order", "by", "t1", ".", "accelerate", "asc", "limit", "value" ], "question": "Pour un modèle Volvo, combien de cylindres la version avec le moins accélère a-t-elle?", "question_toks": [ "Pour", "un", "modèle", "Volvo", ",", "combien", "de", "cylindres", "la", "version", "avec", "le", "moins", "accélère", "a", "-t", "-elle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"volvo\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Accelerate", ">", "(", "SELECT", "Accelerate", "FROM", "CARS_DATA", "ORDER", "BY", "Horsepower", "DESC", "LIMIT", "1", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "accelerate", ">", "(", "select", "accelerate", "from", "cars_data", "order", "by", "horsepower", "desc", "limit", "value", ")" ], "question": "Combien de voitures ont une plus grande accélération que la voiture avec la plus grande puissance?", "question_toks": [ "Combien", "de", "voitures", "ont", "une", "plus", "grande", "accélération", "que", "la", "voiture", "avec", "la", "plus", "grande", "puissance", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 22, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Accelerate", ">", "(", "SELECT", "Accelerate", "FROM", "CARS_DATA", "ORDER", "BY", "Horsepower", "DESC", "LIMIT", "1", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "accelerate", ">", "(", "select", "accelerate", "from", "cars_data", "order", "by", "horsepower", "desc", "limit", "value", ")" ], "question": "Quel est le nombre de voitures avec un plus grand accélération que celui avec le plus de puissance?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "voitures", "avec", "un", "plus", "grand", "accélération", "que", "celui", "avec", "le", "plus", "de", "puissance", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 22, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "query_toks": [ "select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value" ], "question": "Combien de pays a plus de 2 constructeurs automobiles?", "question_toks": [ "Combien", "de", "pays", "a", "plus", "de", "2", "constructeurs", "automobiles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "query_toks": [ "select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quel est le nombre de pays avec plus de 2 constructeurs automobiles?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "pays", "avec", "plus", "de", "2", "constructeurs", "automobiles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", ">", "6", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "cylinders", ">", "value" ], "question": "Combien de voitures ont plus de 6 cylindres?", "question_toks": [ "Combien", "de", "voitures", "ont", "plus", "de", "6", "cylindres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 6.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", ">", "6", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "cylinders", ">", "value" ], "question": "Quel est le nombre de CARSW avec plus de 6 cylindres?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "CARSW", "avec", "plus", "de", "6", "cylindres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 6.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T2.Cylinders", "=", "4", "ORDER", "BY", "T2.horsepower", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value" ], "question": "Pour les voitures avec 4 cylindres, quel modèle a la plus grande puissance?", "question_toks": [ "Pour", "les", "voitures", "avec", "4", "cylindres", ",", "quel", "modèle", "a", "la", "plus", "grande", "puissance", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 4.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T2.Cylinders", "=", "4", "ORDER", "BY", "T2.horsepower", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value" ], "question": "Pour toutes les 4 voitures à 4 cylindres, quel modèle a le plus de chevaux?", "question_toks": [ "Pour", "toutes", "les", "4", "voitures", "à", "4", "cylindres", ",", "quel", "modèle", "a", "le", "plus", "de", "chevaux", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 4.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3;", "query_toks": [ "SELECT", "T2.MakeId", ",", "T2.Make", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T1.Horsepower", ">", "(", "SELECT", "min", "(", "Horsepower", ")", "FROM", "CARS_DATA", ")", "AND", "T1.Cylinders", "<", "=", "3", ";" ], "query_toks_no_value": [ "select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<", "=", "value" ], "question": "Parmi les voitures avec plus que la puissance la plus basse, que celles ne possèdent pas plus de 3 cylindres? Répertoriez la voiture makeid et nommez le nom.", "question_toks": [ "Parmi", "les", "voitures", "avec", "plus", "que", "la", "puissance", "la", "plus", "basse", ",", "que", "celles", "ne", "possèdent", "pas", "plus", "de", "3", "cylindres", "?", "Répertoriez", "la", "voiture", "makeid", "et", "nommez", "le", "nom", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 20, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ], "and", [ false, 6, [ 0, [ 0, 18, false ], null ], 3.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.horsepower > (select min(horsepower) from cars_data) and t1.cylinders < 4;", "query_toks": [ "select", "t2.makeid", ",", "t2.make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1.id", "=", "t2.makeid", "where", "t1.horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1.cylinders", "<", "4", ";" ], "query_toks_no_value": [ "select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<", "value" ], "question": "Parmi les voitures qui n'ont pas la puissance minimale, quels sont les identifiants de fabrication et les noms de tous ceux avec moins de 4 cylindres?", "question_toks": [ "Parmi", "les", "voitures", "qui", "n'", "ont", "pas", "la", "puissance", "minimale", ",", "quels", "sont", "les", "identifiants", "de", "fabrication", "et", "les", "noms", "de", "tous", "ceux", "avec", "moins", "de", "4", "cylindres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 20, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ], "and", [ false, 4, [ 0, [ 0, 18, false ], null ], 4.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", "query_toks": [ "select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "8", "or", "year", "<", "1980" ], "query_toks_no_value": [ "select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value", "or", "year", "<", "value" ], "question": "Quel est le maximum de miles par gallon de la voiture avec 8 cylindres ou produits avant 1980?", "question_toks": [ "Quel", "est", "le", "maximum", "de", "miles", "par", "gallon", "de", "la", "voiture", "avec", "8", "cylindres", "ou", "produits", "avant", "1980", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 8.0, null ], "or", [ false, 4, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", "query_toks": [ "select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "8", "or", "year", "<", "1980" ], "query_toks_no_value": [ "select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value", "or", "year", "<", "value" ], "question": "Quel est le MPG maximum des voitures qui comptaient 8 cylindres ou qui ont été produits avant 1980?", "question_toks": [ "Quel", "est", "le", "MPG", "maximum", "des", "voitures", "qui", "comptaient", "8", "cylindres", "ou", "qui", "ont", "été", "produits", "avant", "1980", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 8.0, null ], "or", [ false, 4, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';", "query_toks": [ "SELECT", "DISTINCT", "T1.model", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Model", "=", "T2.Model", "JOIN", "CARS_DATA", "AS", "T3", "ON", "T2.MakeId", "=", "T3.Id", "JOIN", "CAR_MAKERS", "AS", "T4", "ON", "T1.Maker", "=", "T4.Id", "WHERE", "T3.weight", "<", "3500", "AND", "T4.FullName", "!", "=", "'Ford", "Motor", "Company", "'", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "model", "from", "model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "model", "=", "t2", ".", "model", "join", "cars_data", "as", "t3", "on", "t2", ".", "makeid", "=", "t3", ".", "id", "join", "car_makers", "as", "t4", "on", "t1", ".", "maker", "=", "t4", ".", "id", "where", "t3", ".", "weight", "<", "value", "and", "t4", ".", "fullname", "!", "=", "value" ], "question": "Quels modèles sont plus légers que 3500 mais non construits par la «société automobile Ford»?", "question_toks": [ "Quels", "modèles", "sont", "plus", "légers", "que", "3500", "mais", "non", "construits", "par", "la", "«", "société", "automobile", "Ford", "»", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 3500.0, null ], "and", [ false, 7, [ 0, [ 0, 8, false ], null ], "\"Ford Motor Company\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';", "query_toks": [ "SELECT", "DISTINCT", "T1.model", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Model", "=", "T2.Model", "JOIN", "CARS_DATA", "AS", "T3", "ON", "T2.MakeId", "=", "T3.Id", "JOIN", "CAR_MAKERS", "AS", "T4", "ON", "T1.Maker", "=", "T4.Id", "WHERE", "T3.weight", "<", "3500", "AND", "T4.FullName", "!", "=", "'Ford", "Motor", "Company", "'", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "model", "from", "model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "model", "=", "t2", ".", "model", "join", "cars_data", "as", "t3", "on", "t2", ".", "makeid", "=", "t3", ".", "id", "join", "car_makers", "as", "t4", "on", "t1", ".", "maker", "=", "t4", ".", "id", "where", "t3", ".", "weight", "<", "value", "and", "t4", ".", "fullname", "!", "=", "value" ], "question": "Quels sont les différents modèles qui sont plus légers que 3500 mais n'ont pas été construits par la Ford Motor Company?", "question_toks": [ "Quels", "sont", "les", "différents", "modèles", "qui", "sont", "plus", "légers", "que", "3500", "mais", "n'", "ont", "pas", "été", "construits", "par", "la", "Ford", "Motor", "Company", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 14, false ], null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], 3500.0, null ], "and", [ false, 7, [ 0, [ 0, 8, false ], null ], "\"Ford Motor Company\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", "query_toks": [ "SELECT", "CountryName", "FROM", "countries", "EXCEPT", "SELECT", "T1.CountryName", "FROM", "countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.countryId", "=", "T2.Country", ";" ], "query_toks_no_value": [ "select", "countryname", "from", "countries", "except", "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country" ], "question": "Quel est le nom des pays où il n'y a pas un seul fabricant de voitures?", "question_toks": [ "Quel", "est", "le", "nom", "des", "pays", "où", "il", "n'", "y", "a", "pas", "un", "seul", "fabricant", "de", "voitures", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "car_1", "query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", "query_toks": [ "SELECT", "CountryName", "FROM", "countries", "EXCEPT", "SELECT", "T1.CountryName", "FROM", "countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.countryId", "=", "T2.Country", ";" ], "query_toks_no_value": [ "select", "countryname", "from", "countries", "except", "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country" ], "question": "Quels sont les noms des pays sans voitures?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "pays", "sans", "voitures", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "car_1", "query": "select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3;", "query_toks": [ "select", "t1.id", ",", "t1.maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1.id", "=", "t2.maker", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">=", "2", "intersect", "select", "t1.id", ",", "t1.maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1.id", "=", "t2.maker", "join", "car_names", "as", "t3", "on", "t2.model", "=", "t3.model", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1", ".", "id", ",", "t1", ".", "maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "join", "car_names", "as", "t3", "on", "t2", ".", "model", "=", "t3", ".", "model", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels sont les constructeurs automobiles qui produisent au moins 2 modèles et plus de 3 constructeurs automobiles? Listez l'ID et le fabricant.", "question_toks": [ "Quels", "sont", "les", "constructeurs", "automobiles", "qui", "produisent", "au", "moins", "2", "modèles", "et", "plus", "de", "3", "constructeurs", "automobiles", "?", "Listez", "l'", "ID", "et", "le", "fabricant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 14, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) >= 2 INTERSECT SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING count(*) > 3;", "query_toks": [ "SELECT", "T1.Id", ",", "T1.Maker", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "GROUP", "BY", "T1.Id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "INTERSECT", "SELECT", "T1.Id", ",", "T1.Maker", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "JOIN", "CAR_NAMES", "AS", "T3", "ON", "T2.model", "=", "T3.model", "GROUP", "BY", "T1.Id", "HAVING", "count", "(", "*", ")", ">", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1", ".", "id", ",", "t1", ".", "maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "join", "car_names", "as", "t3", "on", "t2", ".", "model", "=", "t3", ".", "model", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels sont les identifiants et les fabricants de tous les constructeurs automobiles qui produisent au moins 2 modèles et font plus de 3 voitures?", "question_toks": [ "Quels", "sont", "les", "identifiants", "et", "les", "fabricants", "de", "tous", "les", "constructeurs", "automobiles", "qui", "produisent", "au", "moins", "2", "modèles", "et", "font", "plus", "de", "3", "voitures", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 14, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "car_1", "query": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat';", "query_toks": [ "SELECT", "T1.countryId", ",", "T1.CountryName", "FROM", "Countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.CountryId", "=", "T2.Country", "GROUP", "BY", "T1.countryId", "HAVING", "count", "(", "*", ")", ">", "3", "UNION", "SELECT", "T1.countryId", ",", "T1.CountryName", "FROM", "Countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.CountryId", "=", "T2.Country", "JOIN", "MODEL_LIST", "AS", "T3", "ON", "T2.Id", "=", "T3.Maker", "WHERE", "T3.Model", "=", "'fiat", "'", ";" ], "query_toks_no_value": [ "select", "t1", ".", "countryid", ",", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "countryid", ",", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "join", "model_list", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "maker", "where", "t3", ".", "model", "=", "value" ], "question": "Quels sont les identités et les noms des pays qui ont plus de 3 constructeurs automobiles ou produisent le modèle «Fiat»?", "question_toks": [ "Quels", "sont", "les", "identités", "et", "les", "noms", "des", "pays", "qui", "ont", "plus", "de", "3", "constructeurs", "automobiles", "ou", "produisent", "le", "modèle", "«", "Fiat", "»", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"fiat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "car_1", "query": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat';", "query_toks": [ "select", "t1.countryid", ",", "t1.countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "3", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "join", "model_list", "as", "t3", "on", "t2.id", "=", "t3.maker", "where", "t3.model", "=", "\"fiat\"", ";" ], "query_toks_no_value": [ "select", "t1", ".", "countryid", ",", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "countryid", ",", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "join", "model_list", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "maker", "where", "t3", ".", "model", "=", "value" ], "question": "Quels sont les identifiants et les noms de tous les pays ayant plus de 3 constructeurs automobiles ou produisent un modèle FIAT?", "question_toks": [ "Quels", "sont", "les", "identifiants", "et", "les", "noms", "de", "tous", "les", "pays", "ayant", "plus", "de", "3", "constructeurs", "automobiles", "ou", "produisent", "un", "modèle", "FIAT", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"fiat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "flight_2", "query": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "query_toks": [ "SELECT", "Country", "FROM", "AIRLINES", "WHERE", "Airline", "=", "``", "JetBlue", "Airways", "''" ], "query_toks_no_value": [ "select", "country", "from", "airlines", "where", "airline", "=", "value" ], "question": "À quel pays appartient à la compagnie aérienne \"JetBlue Airways\"?", "question_toks": [ "À", "quel", "pays", "appartient", "à", "la", "compagnie", "aérienne", "\"", "JetBlue", "Airways", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"JetBlue Airways\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "query_toks": [ "SELECT", "Country", "FROM", "AIRLINES", "WHERE", "Airline", "=", "``", "JetBlue", "Airways", "''" ], "query_toks_no_value": [ "select", "country", "from", "airlines", "where", "airline", "=", "value" ], "question": "Dans quel pays sont affiliés à Jaisblue Airways?", "question_toks": [ "Dans", "quel", "pays", "sont", "affiliés", "à", "Jaisblue", "Airways", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"JetBlue Airways\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "query_toks": [ "SELECT", "Abbreviation", "FROM", "AIRLINES", "WHERE", "Airline", "=", "``", "JetBlue", "Airways", "''" ], "query_toks_no_value": [ "select", "abbreviation", "from", "airlines", "where", "airline", "=", "value" ], "question": "Quelle est l'abréviation de la compagnie aérienne \"JetBlue Airways\"?", "question_toks": [ "Quelle", "est", "l'", "abréviation", "de", "la", "compagnie", "aérienne", "\"", "JetBlue", "Airways", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"JetBlue Airways\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", "query_toks": [ "SELECT", "Abbreviation", "FROM", "AIRLINES", "WHERE", "Airline", "=", "``", "JetBlue", "Airways", "''" ], "query_toks_no_value": [ "select", "abbreviation", "from", "airlines", "where", "airline", "=", "value" ], "question": "Quelle abréviation correspond à JetBlue Airways?", "question_toks": [ "Quelle", "abréviation", "correspond", "à", "JetBlue", "Airways", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"JetBlue Airways\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\"", "query_toks": [ "SELECT", "Airline", ",", "Abbreviation", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "USA", "''" ], "query_toks_no_value": [ "select", "airline", ",", "abbreviation", "from", "airlines", "where", "country", "=", "value" ], "question": "Énumérez tous les noms des compagnies aériennes et leurs abréviations dans «USA».", "question_toks": [ "Énumérez", "tous", "les", "noms", "des", "compagnies", "aériennes", "et", "leurs", "abréviations", "dans", "«", "USA", "»", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"USA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\"", "query_toks": [ "SELECT", "Airline", ",", "Abbreviation", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "USA", "''" ], "query_toks_no_value": [ "select", "airline", ",", "abbreviation", "from", "airlines", "where", "country", "=", "value" ], "question": "Quels sont les noms de la compagnie aérienne et les abréviations des compagnies aériennes aux États-Unis?", "question_toks": [ "Quels", "sont", "les", "noms", "de", "la", "compagnie", "aérienne", "et", "les", "abréviations", "des", "compagnies", "aériennes", "aux", "États-Unis", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"USA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", "query_toks": [ "SELECT", "AirportCode", ",", "AirportName", "FROM", "AIRPORTS", "WHERE", "city", "=", "``", "Anthony", "''" ], "query_toks_no_value": [ "select", "airportcode", ",", "airportname", "from", "airports", "where", "city", "=", "value" ], "question": "Énumérez le code de l'aéroport et le nom de la ville d'Anthony.", "question_toks": [ "Énumérez", "le", "code", "de", "l'", "aéroport", "et", "le", "nom", "de", "la", "ville", "d'", "Anthony", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Anthony\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", "query_toks": [ "SELECT", "AirportCode", ",", "AirportName", "FROM", "AIRPORTS", "WHERE", "city", "=", "``", "Anthony", "''" ], "query_toks_no_value": [ "select", "airportcode", ",", "airportname", "from", "airports", "where", "city", "=", "value" ], "question": "Donnez au code de l'aéroport et le nom de l'aéroport correctionnant à la ville Anthony.", "question_toks": [ "Donnez", "au", "code", "de", "l'", "aéroport", "et", "le", "nom", "de", "l'", "aéroport", "correctionnant", "à", "la", "ville", "Anthony", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Anthony\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines" ], "question": "Combien de compagnies aériennes avons-nous?", "question_toks": [ "Combien", "de", "compagnies", "aériennes", "avons", "-nous", "?" ], "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": "flight_2", "query": "SELECT count(*) FROM AIRLINES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines" ], "question": "Quel est le nombre total de compagnies aériennes?", "question_toks": [ "Quel", "est", "le", "nombre", "total", "de", "compagnies", "aériennes", "?" ], "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": "flight_2", "query": "SELECT count(*) FROM AIRPORTS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRPORTS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airports" ], "question": "Combien d'aéroports avons-nous?", "question_toks": [ "Combien", "d'", "aéroports", "avons", "-nous", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRPORTS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRPORTS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airports" ], "question": "Renvoyer le nombre d'aéroports.", "question_toks": [ "Renvoyer", "le", "nombre", "d'", "aéroports", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights" ], "question": "Combien de vols avons-nous?", "question_toks": [ "Combien", "de", "vols", "avons", "-nous", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights" ], "question": "Renvoyer le nombre de vols.", "question_toks": [ "Renvoyer", "le", "nombre", "de", "vols", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", "query_toks": [ "SELECT", "Airline", "FROM", "AIRLINES", "WHERE", "Abbreviation", "=", "``", "UAL", "''" ], "query_toks_no_value": [ "select", "airline", "from", "airlines", "where", "abbreviation", "=", "value" ], "question": "Quelle compagnie aérienne a abréviation 'ual'?", "question_toks": [ "Quelle", "compagnie", "aérienne", "a", "abréviation", "'", "ual", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"UAL\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", "query_toks": [ "SELECT", "Airline", "FROM", "AIRLINES", "WHERE", "Abbreviation", "=", "``", "UAL", "''" ], "query_toks_no_value": [ "select", "airline", "from", "airlines", "where", "abbreviation", "=", "value" ], "question": "Donnez à la compagnie aérienne avec une abréviation 'UAL'.", "question_toks": [ "Donnez", "à", "la", "compagnie", "aérienne", "avec", "une", "abréviation", "'", "UAL", "'", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"UAL\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "USA", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value" ], "question": "Combien de compagnies aériennes viennent-elles des États-Unis?", "question_toks": [ "Combien", "de", "compagnies", "aériennes", "viennent", "-", "elles", "des", "États-Unis", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"USA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "USA", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value" ], "question": "Renvoyez le nombre de compagnies aériennes aux États-Unis.", "question_toks": [ "Renvoyez", "le", "nombre", "de", "compagnies", "aériennes", "aux", "États-Unis", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"USA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\"", "query_toks": [ "SELECT", "City", ",", "Country", "FROM", "AIRPORTS", "WHERE", "AirportName", "=", "``", "Alton", "''" ], "query_toks_no_value": [ "select", "city", ",", "country", "from", "airports", "where", "airportname", "=", "value" ], "question": "Dans quelle ville et quel pays est l'aéroport d'Alton?", "question_toks": [ "Dans", "quelle", "ville", "et", "quel", "pays", "est", "l'", "aéroport", "d'", "Alton", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alton\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\"", "query_toks": [ "SELECT", "City", ",", "Country", "FROM", "AIRPORTS", "WHERE", "AirportName", "=", "``", "Alton", "''" ], "query_toks_no_value": [ "select", "city", ",", "country", "from", "airports", "where", "airportname", "=", "value" ], "question": "Donnez à la ville et au pays de l'aéroport d'Alton.", "question_toks": [ "Donnez", "à", "la", "ville", "et", "au", "pays", "de", "l'", "aéroport", "d'", "Alton", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Alton\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", "query_toks": [ "SELECT", "AirportName", "FROM", "AIRPORTS", "WHERE", "AirportCode", "=", "``", "AKO", "''" ], "query_toks_no_value": [ "select", "airportname", "from", "airports", "where", "airportcode", "=", "value" ], "question": "Quel est le nom de l'aéroport pour l'aéroport 'Ako'?", "question_toks": [ "Quel", "est", "le", "nom", "de", "l'", "aéroport", "pour", "l'", "aéroport", "'", "Ako", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"AKO\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", "query_toks": [ "SELECT", "AirportName", "FROM", "AIRPORTS", "WHERE", "AirportCode", "=", "``", "AKO", "''" ], "query_toks_no_value": [ "select", "airportname", "from", "airports", "where", "airportcode", "=", "value" ], "question": "Renvoie le nom de l'aéroport avec le code 'Ako'.", "question_toks": [ "Renvoie", "le", "nom", "de", "l'", "aéroport", "avec", "le", "code", "'", "Ako", "'", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"AKO\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", "query_toks": [ "SELECT", "AirportName", "FROM", "AIRPORTS", "WHERE", "City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "airportname", "from", "airports", "where", "city", "=", "value" ], "question": "Quels sont les noms d'aéroport à la ville 'Aberdeen'?", "question_toks": [ "Quels", "sont", "les", "noms", "d'", "aéroport", "à", "la", "ville", "'", "Aberdeen", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", "query_toks": [ "SELECT", "AirportName", "FROM", "AIRPORTS", "WHERE", "City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "airportname", "from", "airports", "where", "city", "=", "value" ], "question": "Quels sont les noms des aéroports d'Aberdeen?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "aéroports", "d'", "Aberdeen", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "where", "sourceairport", "=", "value" ], "question": "Combien de vols partent de 'apg'?", "question_toks": [ "Combien", "de", "vols", "partent", "de", "'", "apg", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"APG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "where", "sourceairport", "=", "value" ], "question": "Comptez le nombre de vols au départ de 'APG'.", "question_toks": [ "Comptez", "le", "nombre", "de", "vols", "au", "départ", "de", "'", "APG", "'", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"APG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "WHERE", "DestAirport", "=", "``", "ATO", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "where", "destairport", "=", "value" ], "question": "Combien de vols ont une destination ATO?", "question_toks": [ "Combien", "de", "vols", "ont", "une", "destination", "ATO", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"ATO\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "WHERE", "DestAirport", "=", "``", "ATO", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "where", "destairport", "=", "value" ], "question": "Comptez le nombre de vols en ATO.", "question_toks": [ "Comptez", "le", "nombre", "de", "vols", "en", "ATO", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"ATO\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "Combien de vols partent de la ville Aberdeen?", "question_toks": [ "Combien", "de", "vols", "partent", "de", "la", "ville", "Aberdeen", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "Retourner le nombre de vols au départ d'Aberdeen.", "question_toks": [ "Retourner", "le", "nombre", "de", "vols", "au", "départ", "d'", "Aberdeen", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "Combien de vols arrivant à Aberdeen City?", "question_toks": [ "Combien", "de", "vols", "arrivant", "à", "Aberdeen", "City", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "Renvoie le nombre de vols arrivant à Aberdeen.", "question_toks": [ "Renvoie", "le", "nombre", "de", "vols", "arrivant", "à", "Aberdeen", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "JOIN", "AIRPORTS", "AS", "T3", "ON", "T1.SourceAirport", "=", "T3.AirportCode", "WHERE", "T2.City", "=", "``", "Ashley", "''", "AND", "T3.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "join", "airports", "as", "t3", "on", "t1", ".", "sourceairport", "=", "t3", ".", "airportcode", "where", "t2", ".", "city", "=", "value", "and", "t3", ".", "city", "=", "value" ], "question": "Combien de vols partent de la ville 'Aberdeen' et ont une ville de destination 'Ashley'?", "question_toks": [ "Combien", "de", "vols", "partent", "de", "la", "ville", "'", "Aberdeen", "'", "et", "ont", "une", "ville", "de", "destination", "'", "Ashley", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Ashley\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "JOIN", "AIRPORTS", "AS", "T3", "ON", "T1.SourceAirport", "=", "T3.AirportCode", "WHERE", "T2.City", "=", "``", "Ashley", "''", "AND", "T3.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "join", "airports", "as", "t3", "on", "t1", ".", "sourceairport", "=", "t3", ".", "airportcode", "where", "t2", ".", "city", "=", "value", "and", "t3", ".", "city", "=", "value" ], "question": "Combien de vols volent d'Aberdeen à Ashley?", "question_toks": [ "Combien", "de", "vols", "volent", "d'", "Aberdeen", "à", "Ashley", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Ashley\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T1.Airline", "=", "T2.uid", "WHERE", "T2.Airline", "=", "``", "JetBlue", "Airways", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t1", ".", "airline", "=", "t2", ".", "uid", "where", "t2", ".", "airline", "=", "value" ], "question": "Combien de vols la compagnie aérienne 'JetBlue Airways a-t-elle?", "question_toks": [ "Combien", "de", "vols", "la", "compagnie", "aérienne", "'", "JetBlue", "Airways", "a", "-t", "-elle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"JetBlue Airways\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T1.Airline", "=", "T2.uid", "WHERE", "T2.Airline", "=", "``", "JetBlue", "Airways", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t1", ".", "airline", "=", "t2", ".", "uid", "where", "t2", ".", "airline", "=", "value" ], "question": "Donnez au nombre de vols JetBlue Airways.", "question_toks": [ "Donnez", "au", "nombre", "de", "vols", "JetBlue", "Airways", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"JetBlue Airways\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.DestAirport", "=", "``", "ASY", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "destairport", "=", "value" ], "question": "Combien de vols de «United Airlines» vont à l'aéroport 'Asy'?", "question_toks": [ "Combien", "de", "vols", "de", "«", "United", "Airlines", "»", "vont", "à", "l'", "aéroport", "'", "Asy", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"United Airlines\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"ASY\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.DestAirport", "=", "``", "ASY", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "destairport", "=", "value" ], "question": "Comptez le nombre de vols United Airlines arrivant à Asiy Airport.", "question_toks": [ "Comptez", "le", "nombre", "de", "vols", "United", "Airlines", "arrivant", "à", "Asiy", "Airport", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"United Airlines\"", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"ASY\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.SourceAirport", "=", "``", "AHD", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "sourceairport", "=", "value" ], "question": "Combien de vols «United Airlines» partent de l'aéroport 'AHD'?", "question_toks": [ "Combien", "de", "vols", "«", "United", "Airlines", "»", "partent", "de", "l'", "aéroport", "'", "AHD", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"United Airlines\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"AHD\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.SourceAirport", "=", "``", "AHD", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "sourceairport", "=", "value" ], "question": "Retournez le nombre de vols United Airlines au départ de l'aéroport d'AHD.", "question_toks": [ "Retournez", "le", "nombre", "de", "vols", "United", "Airlines", "au", "départ", "de", "l'", "aéroport", "d'", "AHD", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"United Airlines\"", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"AHD\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "JOIN", "AIRLINES", "AS", "T3", "ON", "T3.uid", "=", "T1.Airline", "WHERE", "T2.City", "=", "``", "Aberdeen", "''", "AND", "T3.Airline", "=", "``", "United", "Airlines", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "join", "airlines", "as", "t3", "on", "t3", ".", "uid", "=", "t1", ".", "airline", "where", "t2", ".", "city", "=", "value", "and", "t3", ".", "airline", "=", "value" ], "question": "Combien de vols United Airlines vont-ils à la ville 'Aberdeen'?", "question_toks": [ "Combien", "de", "vols", "United", "Airlines", "vont", "-ils", "à", "la", "ville", "'", "Aberdeen", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"United Airlines\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "JOIN", "AIRLINES", "AS", "T3", "ON", "T3.uid", "=", "T1.Airline", "WHERE", "T2.City", "=", "``", "Aberdeen", "''", "AND", "T3.Airline", "=", "``", "United", "Airlines", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "join", "airlines", "as", "t3", "on", "t3", ".", "uid", "=", "t1", ".", "airline", "where", "t2", ".", "city", "=", "value", "and", "t3", ".", "airline", "=", "value" ], "question": "Comptez le nombre de vols United Airlines qui arrivent à Aberdeen.", "question_toks": [ "Comptez", "le", "nombre", "de", "vols", "United", "Airlines", "qui", "arrivent", "à", "Aberdeen", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"United Airlines\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.City", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.DestAirport", "GROUP", "BY", "T1.City", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "destairport", "group", "by", "t1", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle ville a la plupart des vols d'arrivée?", "question_toks": [ "Quelle", "ville", "a", "la", "plupart", "des", "vols", "d'", "arrivée", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.City", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.DestAirport", "GROUP", "BY", "T1.City", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "destairport", "group", "by", "t1", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle ville a l'aéroport de destination le plus fréquent?", "question_toks": [ "Quelle", "ville", "a", "l'", "aéroport", "de", "destination", "le", "plus", "fréquent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.City", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.SourceAirport", "GROUP", "BY", "T1.City", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "sourceairport", "group", "by", "t1", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle ville a la plupart des vols de départ?", "question_toks": [ "Quelle", "ville", "a", "la", "plupart", "des", "vols", "de", "départ", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 12, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.City", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.SourceAirport", "GROUP", "BY", "T1.City", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "sourceairport", "group", "by", "t1", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle ville est l'aéroport source le plus fréquent?", "question_toks": [ "Quelle", "ville", "est", "l'", "aéroport", "source", "le", "plus", "fréquent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 12, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.AirportCode", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.DestAirport", "OR", "T1.AirportCode", "=", "T2.SourceAirport", "GROUP", "BY", "T1.AirportCode", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "airportcode", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "destairport", "or", "t1", ".", "airportcode", "=", "t2", ".", "sourceairport", "group", "by", "t1", ".", "airportcode", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le code de l'aéroport qui a le plus grand nombre de vols?", "question_toks": [ "Quel", "est", "le", "code", "de", "l'", "aéroport", "qui", "a", "le", "plus", "grand", "nombre", "de", "vols", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.AirportCode", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.DestAirport", "OR", "T1.AirportCode", "=", "T2.SourceAirport", "GROUP", "BY", "T1.AirportCode", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "airportcode", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "destairport", "or", "t1", ".", "airportcode", "=", "t2", ".", "sourceairport", "group", "by", "t1", ".", "airportcode", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le code de l'aéroport de l'aéroport avec la plupart des vols?", "question_toks": [ "Quel", "est", "le", "code", "de", "l'", "aéroport", "de", "l'", "aéroport", "avec", "la", "plupart", "des", "vols", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.AirportCode", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.DestAirport", "OR", "T1.AirportCode", "=", "T2.SourceAirport", "GROUP", "BY", "T1.AirportCode", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "airportcode", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "destairport", "or", "t1", ".", "airportcode", "=", "t2", ".", "sourceairport", "group", "by", "t1", ".", "airportcode", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Quel est le code de l'aéroport qui a le moins de vols?", "question_toks": [ "Quel", "est", "le", "code", "de", "l'", "aéroport", "qui", "a", "le", "moins", "de", "vols", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.AirportCode", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.DestAirport", "OR", "T1.AirportCode", "=", "T2.SourceAirport", "GROUP", "BY", "T1.AirportCode", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "airportcode", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "destairport", "or", "t1", ".", "airportcode", "=", "t2", ".", "sourceairport", "group", "by", "t1", ".", "airportcode", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Donnez au code de l'aéroport avec les moindres vols.", "question_toks": [ "Donnez", "au", "code", "de", "l'", "aéroport", "avec", "les", "moindres", "vols", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle compagnie aérienne a la plupart des vols?", "question_toks": [ "Quelle", "compagnie", "aérienne", "a", "la", "plupart", "des", "vols", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle compagnie aérienne sert la plupart des vols?", "question_toks": [ "Quelle", "compagnie", "aérienne", "sert", "la", "plupart", "des", "vols", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.Abbreviation", ",", "T1.Country", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "abbreviation", ",", "t1", ".", "country", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Trouvez l'abréviation et le pays de la compagnie aérienne qui a le moins de vols?", "question_toks": [ "Trouvez", "l'", "abréviation", "et", "le", "pays", "de", "la", "compagnie", "aérienne", "qui", "a", "le", "moins", "de", "vols", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.Abbreviation", ",", "T1.Country", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "abbreviation", ",", "t1", ".", "country", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Quelle est l'abréviation de l'Airilne a le moins de vols et de quel pays est-ce?", "question_toks": [ "Quelle", "est", "l'", "abréviation", "de", "l'", "Airilne", "a", "le", "moins", "de", "vols", "et", "de", "quel", "pays", "est", "-ce", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "AHD", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value" ], "question": "Quelles sont les compagnies aériennes qui ont un vol au départ de l'aéroport 'AHD'?", "question_toks": [ "Quelles", "sont", "les", "compagnies", "aériennes", "qui", "ont", "un", "vol", "au", "départ", "de", "l'", "aéroport", "'", "AHD", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"AHD\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "AHD", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value" ], "question": "Quelles compagnies aériennes ont un vol avec l'aéroport source AHD?", "question_toks": [ "Quelles", "compagnies", "aériennes", "ont", "un", "vol", "avec", "l'", "aéroport", "source", "AHD", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"AHD\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.DestAirport", "=", "``", "AHD", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "destairport", "=", "value" ], "question": "Quelles sont les compagnies aériennes qui ont des vols arrivant à l'aéroport 'AHD'?", "question_toks": [ "Quelles", "sont", "les", "compagnies", "aériennes", "qui", "ont", "des", "vols", "arrivant", "à", "l'", "aéroport", "'", "AHD", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"AHD\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.DestAirport", "=", "``", "AHD", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "destairport", "=", "value" ], "question": "Quelles compagnies aériennes ont un vol avec l'aéroport de destination AHD?", "question_toks": [ "Quelles", "compagnies", "aériennes", "ont", "un", "vol", "avec", "l'", "aéroport", "de", "destination", "AHD", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"AHD\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "APG", "''", "INTERSECT", "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "CVO", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "intersect", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value" ], "question": "Trouvez toutes les compagnies aériennes qui ont des vols à partir des deux aéroports 'APG' et «CVO».", "question_toks": [ "Trouvez", "toutes", "les", "compagnies", "aériennes", "qui", "ont", "des", "vols", "à", "partir", "des", "deux", "aéroports", "'", "APG", "'", "et", "«", "CVO", "»", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"APG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"CVO\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "APG", "''", "INTERSECT", "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "CVO", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "intersect", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value" ], "question": "Quelles compagnies aériennes quittent-elles des vols d'APG et de CVO?", "question_toks": [ "Quelles", "compagnies", "aériennes", "quittent", "-", "elles", "des", "vols", "d'", "APG", "et", "de", "CVO", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"APG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"CVO\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "CVO", "''", "EXCEPT", "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "except", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value" ], "question": "Trouvez toutes les compagnies aériennes qui ont des vols à partir de l'aéroport 'CVO' mais pas de 'APG'.", "question_toks": [ "Trouvez", "toutes", "les", "compagnies", "aériennes", "qui", "ont", "des", "vols", "à", "partir", "de", "l'", "aéroport", "'", "CVO", "'", "mais", "pas", "de", "'", "APG", "'", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"CVO\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"APG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "CVO", "''", "EXCEPT", "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "except", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value" ], "question": "Quelles compagnies aériennes ont des départs de la CVO mais pas des aéroports APG?", "question_toks": [ "Quelles", "compagnies", "aériennes", "ont", "des", "départs", "de", "la", "CVO", "mais", "pas", "des", "aéroports", "APG", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"CVO\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"APG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "HAVING", "count", "(", "*", ")", ">", "10" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "having", "count", "(", "*", ")", ">", "value" ], "question": "Trouvez toutes les compagnies aériennes qui ont au moins 10 vols.", "question_toks": [ "Trouvez", "toutes", "les", "compagnies", "aériennes", "qui", "ont", "au", "moins", "10", "vols", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 10.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "HAVING", "count", "(", "*", ")", ">", "10" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quelles compagnies aériennes ont au moins 10 vols?", "question_toks": [ "Quelles", "compagnies", "aériennes", "ont", "au", "moins", "10", "vols", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 10.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "HAVING", "count", "(", "*", ")", "<", "200" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "having", "count", "(", "*", ")", "<", "value" ], "question": "Trouvez toutes les compagnies aériennes qui ont moins de 200 vols.", "question_toks": [ "Trouvez", "toutes", "les", "compagnies", "aériennes", "qui", "ont", "moins", "de", "200", "vols", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 200.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "HAVING", "count", "(", "*", ")", "<", "200" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "having", "count", "(", "*", ")", "<", "value" ], "question": "Quelles compagnies aériennes ont moins de 200 vols?", "question_toks": [ "Quelles", "compagnies", "aériennes", "ont", "moins", "de", "200", "vols", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 200.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", "query_toks": [ "SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T2.uid", "=", "T1.Airline", "WHERE", "T2.Airline", "=", "``", "United", "Airlines", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t2", ".", "uid", "=", "t1", ".", "airline", "where", "t2", ".", "airline", "=", "value" ], "question": "Quels sont les numéros de vol de la compagnie aérienne \"United Airlines\"?", "question_toks": [ "Quels", "sont", "les", "numéros", "de", "vol", "de", "la", "compagnie", "aérienne", "\"", "United", "Airlines", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"United Airlines\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", "query_toks": [ "SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T2.uid", "=", "T1.Airline", "WHERE", "T2.Airline", "=", "``", "United", "Airlines", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t2", ".", "uid", "=", "t1", ".", "airline", "where", "t2", ".", "airline", "=", "value" ], "question": "Quels numéros de vol correspondent aux vols United Airlines?", "question_toks": [ "Quels", "numéros", "de", "vol", "correspondent", "aux", "vols", "United", "Airlines", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"United Airlines\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", "query_toks": [ "SELECT", "FlightNo", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "flightno", "from", "flights", "where", "sourceairport", "=", "value" ], "question": "Quels sont les numéros de vol des vols au départ de l'aéroport \"APG\"?", "question_toks": [ "Quels", "sont", "les", "numéros", "de", "vol", "des", "vols", "au", "départ", "de", "l'", "aéroport", "\"", "APG", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"APG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", "query_toks": [ "SELECT", "FlightNo", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "flightno", "from", "flights", "where", "sourceairport", "=", "value" ], "question": "Donnez aux numéros de vol des vols en laissant à partir d'APG.", "question_toks": [ "Donnez", "aux", "numéros", "de", "vol", "des", "vols", "en", "laissant", "à", "partir", "d'", "APG", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"APG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", "query_toks": [ "SELECT", "FlightNo", "FROM", "FLIGHTS", "WHERE", "DestAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "flightno", "from", "flights", "where", "destairport", "=", "value" ], "question": "Quels sont les numéros de vol des vols arrivant à l'aéroport \"APG\"?", "question_toks": [ "Quels", "sont", "les", "numéros", "de", "vol", "des", "vols", "arrivant", "à", "l'", "aéroport", "\"", "APG", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"APG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", "query_toks": [ "SELECT", "FlightNo", "FROM", "FLIGHTS", "WHERE", "DestAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "flightno", "from", "flights", "where", "destairport", "=", "value" ], "question": "Donnez aux vols des vols des vols atterrissant à APG.", "question_toks": [ "Donnez", "aux", "vols", "des", "vols", "des", "vols", "atterrissant", "à", "APG", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"APG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "query_toks": [ "SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "Quels sont les numéros de vol des vols au départ de la ville \"Aberdeen\"?", "question_toks": [ "Quels", "sont", "les", "numéros", "de", "vol", "des", "vols", "au", "départ", "de", "la", "ville", "\"", "Aberdeen", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "query_toks": [ "SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "Donnez aux numéros de vol des vols en laissant d'Aberdeen.", "question_toks": [ "Donnez", "aux", "numéros", "de", "vol", "des", "vols", "en", "laissant", "d'", "Aberdeen", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "query_toks": [ "SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "Quels sont les numéros de vol des vols arrivant à la ville \"Aberdeen\"?", "question_toks": [ "Quels", "sont", "les", "numéros", "de", "vol", "des", "vols", "arrivant", "à", "la", "ville", "\"", "Aberdeen", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", "query_toks": [ "SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "Donnez aux numéros de vol des vols arrivant à Aberdeen.", "question_toks": [ "Donnez", "aux", "numéros", "de", "vol", "des", "vols", "arrivant", "à", "Aberdeen", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.city", "=", "``", "Aberdeen", "''", "OR", "T2.city", "=", "``", "Abilene", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value", "or", "t2", ".", "city", "=", "value" ], "question": "Trouvez le nombre de vols atterrissant dans la ville d'Aberdeen ou Abilene.", "question_toks": [ "Trouvez", "le", "nombre", "de", "vols", "atterrissant", "dans", "la", "ville", "d'", "Aberdeen", "ou", "Abilene", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Abilene\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.city", "=", "``", "Aberdeen", "''", "OR", "T2.city", "=", "``", "Abilene", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value", "or", "t2", ".", "city", "=", "value" ], "question": "Combien de vols atterrissent à Aberdeen ou à Abilène?", "question_toks": [ "Combien", "de", "vols", "atterrissent", "à", "Aberdeen", "ou", "à", "Abilène", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Aberdeen\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Abilene\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", "query_toks": [ "SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")" ], "query_toks_no_value": [ "select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")" ], "question": "Trouvez le nom des aéroports qui n'ont pas de vol dans et de sortie.", "question_toks": [ "Trouvez", "le", "nom", "des", "aéroports", "qui", "n'", "ont", "pas", "de", "vol", "dans", "et", "de", "sortie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "flight_2", "query": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", "query_toks": [ "SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")" ], "query_toks_no_value": [ "select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")" ], "question": "Quels aéroports n'ont pas de vol ou d'arrivée?", "question_toks": [ "Quels", "aéroports", "n'", "ont", "pas", "de", "vol", "ou", "d'", "arrivée", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) FROM employee", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employee" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee" ], "question": "Combien d'employés y a-t-il?", "question_toks": [ "Combien", "d'", "employés", "y", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) FROM employee", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employee" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee" ], "question": "Compter le nombre d'employés", "question_toks": [ "Compter", "le", "nombre", "d'", "employés" ], "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": "employee_hire_evaluation", "query": "SELECT name FROM employee ORDER BY age", "query_toks": [ "SELECT", "name", "FROM", "employee", "ORDER", "BY", "age" ], "query_toks_no_value": [ "select", "name", "from", "employee", "order", "by", "age" ], "question": "Trier les noms d'employés de leur âge dans l'ordre croissant.", "question_toks": [ "Trier", "les", "noms", "d'", "employés", "de", "leur", "âge", "dans", "l'", "ordre", "croissant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT name FROM employee ORDER BY age", "query_toks": [ "SELECT", "name", "FROM", "employee", "ORDER", "BY", "age" ], "query_toks_no_value": [ "select", "name", "from", "employee", "order", "by", "age" ], "question": "Énumérez les noms des employés et trier par ordre croissant d'âge.", "question_toks": [ "Énumérez", "les", "noms", "des", "employés", "et", "trier", "par", "ordre", "croissant", "d'", "âge", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) , city FROM employee GROUP BY city", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "city", "FROM", "employee", "GROUP", "BY", "city" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "city", "from", "employee", "group", "by", "city" ], "question": "Quel est le nombre d'employés de chaque ville?", "question_toks": [ "Quel", "est", "le", "nombre", "d'", "employés", "de", "chaque", "ville", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) , city FROM employee GROUP BY city", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "city", "FROM", "employee", "GROUP", "BY", "city" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "city", "from", "employee", "group", "by", "city" ], "question": "Comptez le nombre d'employés pour chaque ville.", "question_toks": [ "Comptez", "le", "nombre", "d'", "employés", "pour", "chaque", "ville", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", "query_toks": [ "SELECT", "city", "FROM", "employee", "WHERE", "age", "<", "30", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "city", "from", "employee", "where", "age", "<", "value", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quelles villes font-elles plus d'un employé de moins de 30 ans viennent?", "question_toks": [ "Quelles", "villes", "font", "-", "elles", "plus", "d'", "un", "employé", "de", "moins", "de", "30", "ans", "viennent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 30.0, null ] ], "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", "query_toks": [ "SELECT", "city", "FROM", "employee", "WHERE", "age", "<", "30", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "city", "from", "employee", "where", "age", "<", "value", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ], "question": "Trouvez les villes qui ont plus d'un employé de moins de 30 ans.", "question_toks": [ "Trouvez", "les", "villes", "qui", "ont", "plus", "d'", "un", "employé", "de", "moins", "de", "30", "ans", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 30.0, null ] ], "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "LOCATION", "FROM", "shop", "GROUP", "BY", "LOCATION" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "location", "from", "shop", "group", "by", "location" ], "question": "Trouvez le nombre de magasins à chaque emplacement.", "question_toks": [ "Trouvez", "le", "nombre", "de", "magasins", "à", "chaque", "emplacement", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 7, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "LOCATION", "FROM", "shop", "GROUP", "BY", "LOCATION" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "location", "from", "shop", "group", "by", "location" ], "question": "Combien de magasins y a-t-il à chaque endroit?", "question_toks": [ "Combien", "de", "magasins", "y", "a", "-t", "-il", "à", "chaque", "endroit", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 7, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", "query_toks": [ "SELECT", "manager_name", ",", "district", "FROM", "shop", "ORDER", "BY", "number_products", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "manager_name", ",", "district", "from", "shop", "order", "by", "number_products", "desc", "limit", "value" ], "question": "Trouvez le nom du gestionnaire et le district de la boutique dont le nombre de produits est le plus grand.", "question_toks": [ "Trouvez", "le", "nom", "du", "gestionnaire", "et", "le", "district", "de", "la", "boutique", "dont", "le", "nombre", "de", "produits", "est", "le", "plus", "grand", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", "query_toks": [ "SELECT", "manager_name", ",", "district", "FROM", "shop", "ORDER", "BY", "number_products", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "manager_name", ",", "district", "from", "shop", "order", "by", "number_products", "desc", "limit", "value" ], "question": "Quel est le nom du gestionnaire et le district de la boutique qui vend le plus grand nombre de produits?", "question_toks": [ "Quel", "est", "le", "nom", "du", "gestionnaire", "et", "le", "district", "de", "la", "boutique", "qui", "vend", "le", "plus", "grand", "nombre", "de", "produits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT min(Number_products) , max(Number_products) FROM shop", "query_toks": [ "SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop" ], "query_toks_no_value": [ "select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop" ], "question": "Trouvez le nombre minimum et maximum de produits de tous les magasins.", "question_toks": [ "Trouvez", "le", "nombre", "minimum", "et", "maximum", "de", "produits", "de", "tous", "les", "magasins", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 9, false ], null ] ], [ 1, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT min(Number_products) , max(Number_products) FROM shop", "query_toks": [ "SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop" ], "query_toks_no_value": [ "select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop" ], "question": "Quel est le nombre minimum et maximum de produits dans tous les magasins?", "question_toks": [ "Quel", "est", "le", "nombre", "minimum", "et", "maximum", "de", "produits", "dans", "tous", "les", "magasins", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 9, false ], null ] ], [ 1, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", "query_toks": [ "SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop", "ORDER", "BY", "number_products", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "location", ",", "district", "from", "shop", "order", "by", "number_products", "desc" ], "question": "Renvoyez le nom, l'emplacement et le district de tous commerces de l'ordre décroissant du nombre de produits.", "question_toks": [ "Renvoyez", "le", "nom", ",", "l'", "emplacement", "et", "le", "district", "de", "tous", "commerces", "de", "l'", "ordre", "décroissant", "du", "nombre", "de", "produits", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", "query_toks": [ "SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop", "ORDER", "BY", "number_products", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "location", ",", "district", "from", "shop", "order", "by", "number_products", "desc" ], "question": "Trier tous les magasins par numéro de numéro en ordre décroissant et renvoyez le nom, l'emplacement et le district de chaque magasin.", "question_toks": [ "Trier", "tous", "les", "magasins", "par", "numéro", "de", "numéro", "en", "ordre", "décroissant", "et", "renvoyez", "le", "nom", ",", "l'", "emplacement", "et", "le", "district", "de", "chaque", "magasin", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", "query_toks": [ "SELECT", "name", "FROM", "shop", "WHERE", "number_products", ">", "(", "SELECT", "avg", "(", "number_products", ")", "FROM", "shop", ")" ], "query_toks_no_value": [ "select", "name", "from", "shop", "where", "number_products", ">", "(", "select", "avg", "(", "number_products", ")", "from", "shop", ")" ], "question": "Trouvez les noms des magasins dont le nombre produit est supérieur au nombre moyen de produits.", "question_toks": [ "Trouvez", "les", "noms", "des", "magasins", "dont", "le", "nombre", "produit", "est", "supérieur", "au", "nombre", "moyen", "de", "produits", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 9, 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": "employee_hire_evaluation", "query": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", "query_toks": [ "SELECT", "name", "FROM", "shop", "WHERE", "number_products", ">", "(", "SELECT", "avg", "(", "number_products", ")", "FROM", "shop", ")" ], "query_toks_no_value": [ "select", "name", "from", "shop", "where", "number_products", ">", "(", "select", "avg", "(", "number_products", ")", "from", "shop", ")" ], "question": "Quels numéros de magasin sont au-dessus de la moyenne? Donnez-moi les noms des magasins.", "question_toks": [ "Quels", "numéros", "de", "magasin", "sont", "au-dessus", "de", "la", "moyenne", "?", "Donnez", "-moi", "les", "noms", "des", "magasins", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 9, 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": "employee_hire_evaluation", "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "employee", "AS", "t1", "JOIN", "evaluation", "AS", "t2", "ON", "t1.Employee_ID", "=", "t2.Employee_ID", "GROUP", "BY", "t2.Employee_ID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "evaluation", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id", "group", "by", "t2", ".", "employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Trouvez le nom de l'employé qui a été récompensé le plus souvent dans l'évaluation.", "question_toks": [ "Trouvez", "le", "nom", "de", "l'", "employé", "qui", "a", "été", "récompensé", "le", "plus", "souvent", "dans", "l'", "évaluation", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "employee", "AS", "t1", "JOIN", "evaluation", "AS", "t2", "ON", "t1.Employee_ID", "=", "t2.Employee_ID", "GROUP", "BY", "t2.Employee_ID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "evaluation", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id", "group", "by", "t2", ".", "employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel employé a reçu les plus récompenses dans les évaluations? Donnez-moi le nom de l'employé.", "question_toks": [ "Quel", "employé", "a", "reçu", "les", "plus", "récompenses", "dans", "les", "évaluations", "?", "Donnez", "-moi", "le", "nom", "de", "l'", "employé", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "employee", "AS", "t1", "JOIN", "evaluation", "AS", "t2", "ON", "t1.Employee_ID", "=", "t2.Employee_ID", "ORDER", "BY", "t2.bonus", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "evaluation", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id", "order", "by", "t2", ".", "bonus", "desc", "limit", "value" ], "question": "Trouvez le nom de l'employé qui a obtenu le bonus le plus élevé en une fois.", "question_toks": [ "Trouvez", "le", "nom", "de", "l'", "employé", "qui", "a", "obtenu", "le", "bonus", "le", "plus", "élevé", "en", "une", "fois", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "employee", "AS", "t1", "JOIN", "evaluation", "AS", "t2", "ON", "t1.Employee_ID", "=", "t2.Employee_ID", "ORDER", "BY", "t2.bonus", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "evaluation", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id", "order", "by", "t2", ".", "bonus", "desc", "limit", "value" ], "question": "Quel employé a reçu le plus grand bonus? Donnez-moi le nom de l'employé.", "question_toks": [ "Quel", "employé", "a", "reçu", "le", "plus", "grand", "bonus", "?", "Donnez", "-moi", "le", "nom", "de", "l'", "employé", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", "query_toks": [ "SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")" ], "query_toks_no_value": [ "select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")" ], "question": "Trouvez les noms des employés qui n'ont jamais remporté de prix dans l'évaluation.", "question_toks": [ "Trouvez", "les", "noms", "des", "employés", "qui", "n'", "ont", "jamais", "remporté", "de", "prix", "dans", "l'", "évaluation", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, 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": "employee_hire_evaluation", "query": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", "query_toks": [ "SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")" ], "query_toks_no_value": [ "select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")" ], "question": "Quels sont les noms des employés qui n'ont jamais reçu d'évaluation?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "employés", "qui", "n'", "ont", "jamais", "reçu", "d'", "évaluation", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, 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": "employee_hire_evaluation", "query": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.name", "FROM", "hiring", "AS", "t1", "JOIN", "shop", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "GROUP", "BY", "t1.shop_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "hiring", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t1", ".", "shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom de la boutique qui embauche le plus grand nombre d'employés?", "question_toks": [ "Quel", "est", "le", "nom", "de", "la", "boutique", "qui", "embauche", "le", "plus", "grand", "nombre", "d'", "employés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 11, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.name", "FROM", "hiring", "AS", "t1", "JOIN", "shop", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "GROUP", "BY", "t1.shop_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "hiring", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t1", ".", "shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel magasin a le plus d'employés? Donnez-moi le nom de la boutique.", "question_toks": [ "Quel", "magasin", "a", "le", "plus", "d'", "employés", "?", "Donnez", "-moi", "le", "nom", "de", "la", "boutique", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 11, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", "query_toks": [ "SELECT", "name", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "hiring", ")" ], "query_toks_no_value": [ "select", "name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "hiring", ")" ], "question": "Trouvez le nom des magasins qui n'embauchent aucun employé.", "question_toks": [ "Trouvez", "le", "nom", "des", "magasins", "qui", "n'", "embauchent", "aucun", "employé", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, 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": "employee_hire_evaluation", "query": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", "query_toks": [ "SELECT", "name", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "hiring", ")" ], "query_toks_no_value": [ "select", "name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "hiring", ")" ], "question": "Quels magasins fonctionnent sans employés? Trouvez les noms de magasins", "question_toks": [ "Quels", "magasins", "fonctionnent", "sans", "employés", "?", "Trouvez", "les", "noms", "de", "magasins" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, 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": "employee_hire_evaluation", "query": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "t2.name", "FROM", "hiring", "AS", "t1", "JOIN", "shop", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "GROUP", "BY", "t2.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "name", "from", "hiring", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t2", ".", "name" ], "question": "Trouvez le nombre d'employés embauchés dans chaque magasin", "question_toks": [ "Trouvez", "le", "nombre", "d'", "employés", "embauchés", "dans", "chaque", "magasin" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "t2.name", "FROM", "hiring", "AS", "t1", "JOIN", "shop", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "GROUP", "BY", "t2.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "name", "from", "hiring", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t2", ".", "name" ], "question": "Pour chaque magasin, renvoyez le nombre d'employés qui y travaillent et le nom de la boutique.", "question_toks": [ "Pour", "chaque", "magasin", ",", "renvoyez", "le", "nombre", "d'", "employés", "qui", "y", "travaillent", "et", "le", "nom", "de", "la", "boutique", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT sum(bonus) FROM evaluation", "query_toks": [ "SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation" ], "query_toks_no_value": [ "select", "sum", "(", "bonus", ")", "from", "evaluation" ], "question": "Quel est le bonus total donné dans toutes les évaluations?", "question_toks": [ "Quel", "est", "le", "bonus", "total", "donné", "dans", "toutes", "les", "évaluations", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT sum(bonus) FROM evaluation", "query_toks": [ "SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation" ], "query_toks_no_value": [ "select", "sum", "(", "bonus", ")", "from", "evaluation" ], "question": "Trouvez le montant total du bonus donné dans toutes les évaluations.", "question_toks": [ "Trouvez", "le", "montant", "total", "du", "bonus", "donné", "dans", "toutes", "les", "évaluations", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT * FROM hiring", "query_toks": [ "SELECT", "*", "FROM", "hiring" ], "query_toks_no_value": [ "select", "*", "from", "hiring" ], "question": "Donnez-moi toutes les informations sur l'embauche.", "question_toks": [ "Donnez", "-moi", "toutes", "les", "informations", "sur", "l'", "embauche", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT * FROM hiring", "query_toks": [ "SELECT", "*", "FROM", "hiring" ], "query_toks_no_value": [ "select", "*", "from", "hiring" ], "question": "Qu'est-ce que toutes les informations sur l'embauche?", "question_toks": [ "Qu'", "est", "-ce", "que", "toutes", "les", "informations", "sur", "l'", "embauche", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", "query_toks": [ "SELECT", "district", "FROM", "shop", "WHERE", "Number_products", "<", "3000", "INTERSECT", "SELECT", "district", "FROM", "shop", "WHERE", "Number_products", ">", "10000" ], "query_toks_no_value": [ "select", "district", "from", "shop", "where", "number_products", "<", "value", "intersect", "select", "district", "from", "shop", "where", "number_products", ">", "value" ], "question": "Quel district a les deux magasins avec moins de 3000 produits et des magasins avec plus de 10000 produits?", "question_toks": [ "Quel", "district", "a", "les", "deux", "magasins", "avec", "moins", "de", "3000", "produits", "et", "des", "magasins", "avec", "plus", "de", "10000", "produits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 9, false ], null ], 3000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 10000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", "query_toks": [ "SELECT", "district", "FROM", "shop", "WHERE", "Number_products", "<", "3000", "INTERSECT", "SELECT", "district", "FROM", "shop", "WHERE", "Number_products", ">", "10000" ], "query_toks_no_value": [ "select", "district", "from", "shop", "where", "number_products", "<", "value", "intersect", "select", "district", "from", "shop", "where", "number_products", ">", "value" ], "question": "Trouvez les quartiers dans lesquels des deux magasins vendent moins de 3000 produits et magasins viennent plus de 10000 produits.", "question_toks": [ "Trouvez", "les", "quartiers", "dans", "lesquels", "des", "deux", "magasins", "vendent", "moins", "de", "3000", "produits", "et", "magasins", "viennent", "plus", "de", "10000", "produits", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 9, false ], null ], 3000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 10000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(DISTINCT LOCATION) FROM shop", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "LOCATION", ")", "FROM", "shop" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "location", ")", "from", "shop" ], "question": "Combien y a-t-il de localisations de magasins différents?", "question_toks": [ "Combien", "y", "a", "-t", "-il", "de", "localisations", "de", "magasins", "différents", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(DISTINCT LOCATION) FROM shop", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "LOCATION", ")", "FROM", "shop" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "location", ")", "from", "shop" ], "question": "Comptez le nombre d'emplacements de magasin distincts.", "question_toks": [ "Comptez", "le", "nombre", "d'", "emplacements", "de", "magasin", "distincts", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Documents", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents" ], "question": "Combien de documents avons-nous?", "question_toks": [ "Combien", "de", "documents", "avons", "-nous", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Documents", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents" ], "question": "Compter le nombre de documents.", "question_toks": [ "Compter", "le", "nombre", "de", "documents", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id , document_name , document_description FROM Documents", "query_toks": [ "SELECT", "document_id", ",", "document_name", ",", "document_description", "FROM", "Documents" ], "query_toks_no_value": [ "select", "document_id", ",", "document_name", ",", "document_description", "from", "documents" ], "question": "Liste des identifiants de document, des noms de documents et des descriptions de documents pour tous les documents.", "question_toks": [ "Liste", "des", "identifiants", "de", "document", ",", "des", "noms", "de", "documents", "et", "des", "descriptions", "de", "documents", "pour", "tous", "les", "documents", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id , document_name , document_description FROM Documents", "query_toks": [ "SELECT", "document_id", ",", "document_name", ",", "document_description", "FROM", "Documents" ], "query_toks_no_value": [ "select", "document_id", ",", "document_name", ",", "document_description", "from", "documents" ], "question": "Quels sont les identifiants, les noms et les descriptions de tous les documents?", "question_toks": [ "Quels", "sont", "les", "identifiants", ",", "les", "noms", "et", "les", "descriptions", "de", "tous", "les", "documents", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", "query_toks": [ "SELECT", "document_name", ",", "template_id", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "``", "%", "w", "%", "''" ], "query_toks_no_value": [ "select", "document_name", ",", "template_id", "from", "documents", "where", "document_description", "like", "value" ], "question": "Quel est le nom du document et l'ID de modèle pour le document avec la description avec la lettre 'w' dans celle-ci?", "question_toks": [ "Quel", "est", "le", "nom", "du", "document", "et", "l'", "ID", "de", "modèle", "pour", "le", "document", "avec", "la", "description", "avec", "la", "lettre", "'", "w", "'", "dans", "celle-ci", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%w%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", "query_toks": [ "SELECT", "document_name", ",", "template_id", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "``", "%", "w", "%", "''" ], "query_toks_no_value": [ "select", "document_name", ",", "template_id", "from", "documents", "where", "document_description", "like", "value" ], "question": "Renvoyez les noms et ID de modèle pour des documents contenant la lettre W dans leur description.", "question_toks": [ "Renvoyez", "les", "noms", "et", "ID", "de", "modèle", "pour", "des", "documents", "contenant", "la", "lettre", "W", "dans", "leur", "description", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%w%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", "query_toks": [ "SELECT", "document_id", ",", "template_id", ",", "Document_Description", "FROM", "Documents", "WHERE", "document_name", "=", "``", "Robbin", "CV", "''" ], "query_toks_no_value": [ "select", "document_id", ",", "template_id", ",", "document_description", "from", "documents", "where", "document_name", "=", "value" ], "question": "Quel est l'ID de document, l'ID de modèle et la description du document nommé \"Robbin CV\"?", "question_toks": [ "Quel", "est", "l'", "ID", "de", "document", ",", "l'", "ID", "de", "modèle", "et", "la", "description", "du", "document", "nommé", "\"", "Robbin", "CV", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Robbin CV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", "query_toks": [ "SELECT", "document_id", ",", "template_id", ",", "Document_Description", "FROM", "Documents", "WHERE", "document_name", "=", "``", "Robbin", "CV", "''" ], "query_toks_no_value": [ "select", "document_id", ",", "template_id", ",", "document_description", "from", "documents", "where", "document_name", "=", "value" ], "question": "Renvoie l'ID de document, l'ID de modèle et la description du document avec le nom Robbin CV.", "question_toks": [ "Renvoie", "l'", "ID", "de", "document", ",", "l'", "ID", "de", "modèle", "et", "la", "description", "du", "document", "avec", "le", "nom", "Robbin", "CV", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Robbin CV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(DISTINCT template_id) FROM Documents", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "template_id", ")", "FROM", "Documents" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "template_id", ")", "from", "documents" ], "question": "Combien de modèles différents utilisent-ils tous les documents?", "question_toks": [ "Combien", "de", "modèles", "différents", "utilisent", "-ils", "tous", "les", "documents", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(DISTINCT template_id) FROM Documents", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "template_id", ")", "FROM", "Documents" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "template_id", ")", "from", "documents" ], "question": "Comptez le nombre de modèles différents utilisés pour les documents.", "question_toks": [ "Comptez", "le", "nombre", "de", "modèles", "différents", "utilisés", "pour", "les", "documents", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.Template_ID", "=", "T2.Template_ID", "WHERE", "T2.Template_Type_Code", "=", "'PPT", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "template_type_code", "=", "value" ], "question": "Combien de documents utilisent le modèle avec le code de type 'ppt'?", "question_toks": [ "Combien", "de", "documents", "utilisent", "le", "modèle", "avec", "le", "code", "de", "type", "'", "ppt", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"PPT\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.Template_ID", "=", "T2.Template_ID", "WHERE", "T2.Template_Type_Code", "=", "'PPT", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "template_type_code", "=", "value" ], "question": "Comptez le nombre de documents utilisant le type de modèle PPT.", "question_toks": [ "Comptez", "le", "nombre", "de", "documents", "utilisant", "le", "type", "de", "modèle", "PPT", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"PPT\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", "query_toks": [ "SELECT", "template_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "template_id" ], "query_toks_no_value": [ "select", "template_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "template_id" ], "question": "Afficher tous les identifiants et le nombre de documents à l'aide de chaque modèle.", "question_toks": [ "Afficher", "tous", "les", "identifiants", "et", "le", "nombre", "de", "documents", "à", "l'", "aide", "de", "chaque", "modèle", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", "query_toks": [ "SELECT", "template_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "template_id" ], "query_toks_no_value": [ "select", "template_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "template_id" ], "question": "Quels sont tous les identifiants de modèle utilisés pour les documents et combien de fois chacun d'entre eux était utilisé?", "question_toks": [ "Quels", "sont", "tous", "les", "identifiants", "de", "modèle", "utilisés", "pour", "les", "documents", "et", "combien", "de", "fois", "chacun", "d'", "entre", "eux", "était", "utilisé", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.template_id", ",", "T2.Template_Type_Code", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "GROUP", "BY", "T1.template_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "template_id", ",", "t2", ".", "template_type_code", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "group", "by", "t1", ".", "template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est l'identifiant et le code de type pour le modèle utilisé par le plus de documents?", "question_toks": [ "Quel", "est", "l'", "identifiant", "et", "le", "code", "de", "type", "pour", "le", "modèle", "utilisé", "par", "le", "plus", "de", "documents", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.template_id", ",", "T2.Template_Type_Code", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "GROUP", "BY", "T1.template_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "template_id", ",", "t2", ".", "template_type_code", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "group", "by", "t1", ".", "template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Renvoyez l'identifiant et tapez le code du modèle utilisé pour le plus grand nombre de documents.", "question_toks": [ "Renvoyez", "l'", "identifiant", "et", "tapez", "le", "code", "du", "modèle", "utilisé", "pour", "le", "plus", "grand", "nombre", "de", "documents", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", "query_toks": [ "SELECT", "template_id", "FROM", "Documents", "GROUP", "BY", "template_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "template_id", "from", "documents", "group", "by", "template_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Afficher les identifiants pour tous les modèles utilisés par plus d'un document.", "question_toks": [ "Afficher", "les", "identifiants", "pour", "tous", "les", "modèles", "utilisés", "par", "plus", "d'", "un", "document", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", "query_toks": [ "SELECT", "template_id", "FROM", "Documents", "GROUP", "BY", "template_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "template_id", "from", "documents", "group", "by", "template_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels sont les identifiants de modèle de tous les modèles utilisés dans plusieurs documents?", "question_toks": [ "Quels", "sont", "les", "identifiants", "de", "modèle", "de", "tous", "les", "modèles", "utilisés", "dans", "plusieurs", "documents", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", "query_toks": [ "SELECT", "template_id", "FROM", "Templates", "EXCEPT", "SELECT", "template_id", "FROM", "Documents" ], "query_toks_no_value": [ "select", "template_id", "from", "templates", "except", "select", "template_id", "from", "documents" ], "question": "Afficher les identifiants pour tous les modèles non utilisés par aucun document.", "question_toks": [ "Afficher", "les", "identifiants", "pour", "tous", "les", "modèles", "non", "utilisés", "par", "aucun", "document", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", "query_toks": [ "SELECT", "template_id", "FROM", "Templates", "EXCEPT", "SELECT", "template_id", "FROM", "Documents" ], "query_toks_no_value": [ "select", "template_id", "from", "templates", "except", "select", "template_id", "from", "documents" ], "question": "Quels sont les identifiants pour les modèles qui ne sont utilisés dans aucun document?", "question_toks": [ "Quels", "sont", "les", "identifiants", "pour", "les", "modèles", "qui", "ne", "sont", "utilisés", "dans", "aucun", "document", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Templates", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Templates" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "templates" ], "question": "Combien de modèles avons-nous?", "question_toks": [ "Combien", "de", "modèles", "avons", "-nous", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Templates", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Templates" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "templates" ], "question": "Compter le nombre de modèles.", "question_toks": [ "Compter", "le", "nombre", "de", "modèles", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_id , version_number , template_type_code FROM Templates", "query_toks": [ "SELECT", "template_id", ",", "version_number", ",", "template_type_code", "FROM", "Templates" ], "query_toks_no_value": [ "select", "template_id", ",", "version_number", ",", "template_type_code", "from", "templates" ], "question": "Afficher les identifiants de template, les numéros de version et les codes de type de modèle pour tous les modèles.", "question_toks": [ "Afficher", "les", "identifiants", "de", "template", ",", "les", "numéros", "de", "version", "et", "les", "codes", "de", "type", "de", "modèle", "pour", "tous", "les", "modèles", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_id , version_number , template_type_code FROM Templates", "query_toks": [ "SELECT", "template_id", ",", "version_number", ",", "template_type_code", "FROM", "Templates" ], "query_toks_no_value": [ "select", "template_id", ",", "version_number", ",", "template_type_code", "from", "templates" ], "question": "Quels sont les identifiants, les numéros de version et les codes de type pour chaque modèle?", "question_toks": [ "Quels", "sont", "les", "identifiants", ",", "les", "numéros", "de", "version", "et", "les", "codes", "de", "type", "pour", "chaque", "modèle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT DISTINCT template_type_code FROM Templates", "query_toks": [ "SELECT", "DISTINCT", "template_type_code", "FROM", "Templates" ], "query_toks_no_value": [ "select", "distinct", "template_type_code", "from", "templates" ], "question": "Afficher tous les codes de type modèle distincts pour tous les modèles.", "question_toks": [ "Afficher", "tous", "les", "codes", "de", "type", "modèle", "distincts", "pour", "tous", "les", "modèles", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT DISTINCT template_type_code FROM Templates", "query_toks": [ "SELECT", "DISTINCT", "template_type_code", "FROM", "Templates" ], "query_toks_no_value": [ "select", "distinct", "template_type_code", "from", "templates" ], "question": "Quels sont les différents codes de type modèle?", "question_toks": [ "Quels", "sont", "les", "différents", "codes", "de", "type", "modèle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", "query_toks": [ "SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "PP", "''", "OR", "template_type_code", "=", "``", "PPT", "''" ], "query_toks_no_value": [ "select", "template_id", "from", "templates", "where", "template_type_code", "=", "value", "or", "template_type_code", "=", "value" ], "question": "Quels sont les identifiants de modèles avec le code de type de modèle PP ou PPT?", "question_toks": [ "Quels", "sont", "les", "identifiants", "de", "modèles", "avec", "le", "code", "de", "type", "de", "modèle", "PP", "ou", "PPT", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"PP\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"PPT\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", "query_toks": [ "SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "PP", "''", "OR", "template_type_code", "=", "``", "PPT", "''" ], "query_toks_no_value": [ "select", "template_id", "from", "templates", "where", "template_type_code", "=", "value", "or", "template_type_code", "=", "value" ], "question": "Renvoyez les identifiants de modèles qui ont le code PP ou PPT.", "question_toks": [ "Renvoyez", "les", "identifiants", "de", "modèles", "qui", "ont", "le", "code", "PP", "ou", "PPT", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"PP\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"PPT\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "CV", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "templates", "where", "template_type_code", "=", "value" ], "question": "Combien de modèles ont un modèle de type de modèle CV?", "question_toks": [ "Combien", "de", "modèles", "ont", "un", "modèle", "de", "type", "de", "modèle", "CV", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"CV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "CV", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "templates", "where", "template_type_code", "=", "value" ], "question": "Comptez le nombre de modèles de type CV.", "question_toks": [ "Comptez", "le", "nombre", "de", "modèles", "de", "type", "CV", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"CV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", "query_toks": [ "SELECT", "version_number", ",", "template_type_code", "FROM", "Templates", "WHERE", "version_number", ">", "5" ], "query_toks_no_value": [ "select", "version_number", ",", "template_type_code", "from", "templates", "where", "version_number", ">", "value" ], "question": "Quel est le code de version et le code de type de modèle pour le modèle avec le numéro de version plus tard 5?", "question_toks": [ "Quel", "est", "le", "code", "de", "version", "et", "le", "code", "de", "type", "de", "modèle", "pour", "le", "modèle", "avec", "le", "numéro", "de", "version", "plus", "tard", "5", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 5.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", "query_toks": [ "SELECT", "version_number", ",", "template_type_code", "FROM", "Templates", "WHERE", "version_number", ">", "5" ], "query_toks_no_value": [ "select", "version_number", ",", "template_type_code", "from", "templates", "where", "version_number", ">", "value" ], "question": "Remettez les numéros de version et le type de modèle de modèles de modèles avec un numéro de version supérieur à 5.", "question_toks": [ "Remettez", "les", "numéros", "de", "version", "et", "le", "type", "de", "modèle", "de", "modèles", "de", "modèles", "avec", "un", "numéro", "de", "version", "supérieur", "à", "5", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 5.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", "query_toks": [ "SELECT", "template_type_code", ",", "count", "(", "*", ")", "FROM", "Templates", "GROUP", "BY", "template_type_code" ], "query_toks_no_value": [ "select", "template_type_code", ",", "count", "(", "*", ")", "from", "templates", "group", "by", "template_type_code" ], "question": "Afficher tous les codes de type de modèle et nombre de modèles pour chacun.", "question_toks": [ "Afficher", "tous", "les", "codes", "de", "type", "de", "modèle", "et", "nombre", "de", "modèles", "pour", "chacun", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", "query_toks": [ "SELECT", "template_type_code", ",", "count", "(", "*", ")", "FROM", "Templates", "GROUP", "BY", "template_type_code" ], "query_toks_no_value": [ "select", "template_type_code", ",", "count", "(", "*", ")", "from", "templates", "group", "by", "template_type_code" ], "question": "Quels sont les différents types de types de gabarits et combien de modèles correspondent à chacun?", "question_toks": [ "Quels", "sont", "les", "différents", "types", "de", "types", "de", "gabarits", "et", "combien", "de", "modèles", "correspondent", "à", "chacun", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "template_type_code", "FROM", "Templates", "GROUP", "BY", "template_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "template_type_code", "from", "templates", "group", "by", "template_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel code de type de modèle a la plupart des numéros de modèles?", "question_toks": [ "Quel", "code", "de", "type", "de", "modèle", "a", "la", "plupart", "des", "numéros", "de", "modèles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "template_type_code", "FROM", "Templates", "GROUP", "BY", "template_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "template_type_code", "from", "templates", "group", "by", "template_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Renvoie le code de type du type de modèle que le plus de modèles appartiennent à.", "question_toks": [ "Renvoie", "le", "code", "de", "type", "du", "type", "de", "modèle", "que", "le", "plus", "de", "modèles", "appartiennent", "à", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", "query_toks": [ "SELECT", "template_type_code", "FROM", "Templates", "GROUP", "BY", "template_type_code", "HAVING", "count", "(", "*", ")", "<", "3" ], "query_toks_no_value": [ "select", "template_type_code", "from", "templates", "group", "by", "template_type_code", "having", "count", "(", "*", ")", "<", "value" ], "question": "Afficher tous les codes de type de modèle avec moins de trois modèles.", "question_toks": [ "Afficher", "tous", "les", "codes", "de", "type", "de", "modèle", "avec", "moins", "de", "trois", "modèles", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", "query_toks": [ "SELECT", "template_type_code", "FROM", "Templates", "GROUP", "BY", "template_type_code", "HAVING", "count", "(", "*", ")", "<", "3" ], "query_toks_no_value": [ "select", "template_type_code", "from", "templates", "group", "by", "template_type_code", "having", "count", "(", "*", ")", "<", "value" ], "question": "Quels sont les codes des types de modèles comportant moins de 3 modèles?", "question_toks": [ "Quels", "sont", "les", "codes", "des", "types", "de", "modèles", "comportant", "moins", "de", "3", "modèles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT min(Version_Number) , template_type_code FROM Templates", "query_toks": [ "SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates" ], "query_toks_no_value": [ "select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates" ], "question": "Quel type de version le plus petit et son code de type de modèle?", "question_toks": [ "Quel", "type", "de", "version", "le", "plus", "petit", "et", "son", "code", "de", "type", "de", "modèle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT min(Version_Number) , template_type_code FROM Templates", "query_toks": [ "SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates" ], "query_toks_no_value": [ "select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates" ], "question": "Renvoyez le numéro de version le plus bas, ainsi que le code de type de modèle correspondant.", "question_toks": [ "Renvoyez", "le", "numéro", "de", "version", "le", "plus", "bas", ",", "ainsi", "que", "le", "code", "de", "type", "de", "modèle", "correspondant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"", "query_toks": [ "SELECT", "T1.template_type_code", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "WHERE", "T2.document_name", "=", "``", "Data", "base", "''" ], "query_toks_no_value": [ "select", "t1", ".", "template_type_code", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Quel est le code de type de modèle du modèle utilisé par document avec le nom \"Base de données\"?", "question_toks": [ "Quel", "est", "le", "code", "de", "type", "de", "modèle", "du", "modèle", "utilisé", "par", "document", "avec", "le", "nom", "\"", "Base", "de", "données", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Data base\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"", "query_toks": [ "SELECT", "T1.template_type_code", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "WHERE", "T2.document_name", "=", "``", "Data", "base", "''" ], "query_toks_no_value": [ "select", "t1", ".", "template_type_code", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Renvoie le code de type de modèle du modèle utilisé par un document nommé base de données.", "question_toks": [ "Renvoie", "le", "code", "de", "type", "de", "modèle", "du", "modèle", "utilisé", "par", "un", "document", "nommé", "base", "de", "données", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Data base\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\"", "query_toks": [ "SELECT", "T2.document_name", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "WHERE", "T1.template_type_code", "=", "``", "BK", "''" ], "query_toks_no_value": [ "select", "t2", ".", "document_name", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t1", ".", "template_type_code", "=", "value" ], "question": "Afficher tous les noms de document à l'aide de modèles avec le code de type de modèle BK.", "question_toks": [ "Afficher", "tous", "les", "noms", "de", "document", "à", "l'", "aide", "de", "modèles", "avec", "le", "code", "de", "type", "de", "modèle", "BK", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"BK\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\"", "query_toks": [ "SELECT", "T2.document_name", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "WHERE", "T1.template_type_code", "=", "``", "BK", "''" ], "query_toks_no_value": [ "select", "t2", ".", "document_name", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t1", ".", "template_type_code", "=", "value" ], "question": "Quels sont les noms des documents qui utilisent des modèles avec le code BK?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "documents", "qui", "utilisent", "des", "modèles", "avec", "le", "code", "BK", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"BK\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", "query_toks": [ "SELECT", "T1.template_type_code", ",", "count", "(", "*", ")", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "GROUP", "BY", "T1.template_type_code" ], "query_toks_no_value": [ "select", "t1", ".", "template_type_code", ",", "count", "(", "*", ")", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "group", "by", "t1", ".", "template_type_code" ], "question": "Afficher tous les codes Type de modèle et le nombre de documents à l'aide de chaque type.", "question_toks": [ "Afficher", "tous", "les", "codes", "Type", "de", "modèle", "et", "le", "nombre", "de", "documents", "à", "l'", "aide", "de", "chaque", "type", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", "query_toks": [ "SELECT", "T1.template_type_code", ",", "count", "(", "*", ")", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "GROUP", "BY", "T1.template_type_code" ], "query_toks_no_value": [ "select", "t1", ".", "template_type_code", ",", "count", "(", "*", ")", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "group", "by", "t1", ".", "template_type_code" ], "question": "Quels sont les différents codes de type de modèle et combien de documents utilisent chaque type?", "question_toks": [ "Quels", "sont", "les", "différents", "codes", "de", "type", "de", "modèle", "et", "combien", "de", "documents", "utilisent", "chaque", "type", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.template_type_code", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "GROUP", "BY", "T1.template_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "template_type_code", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "group", "by", "t1", ".", "template_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel code de type de modèle est utilisé par la plupart des documents?", "question_toks": [ "Quel", "code", "de", "type", "de", "modèle", "est", "utilisé", "par", "la", "plupart", "des", "documents", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.template_type_code", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "GROUP", "BY", "T1.template_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "template_type_code", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "group", "by", "t1", ".", "template_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Renvoie le code du type de modèle qui est le plus couramment utilisé dans les documents.", "question_toks": [ "Renvoie", "le", "code", "du", "type", "de", "modèle", "qui", "est", "le", "plus", "couramment", "utilisé", "dans", "les", "documents", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", "query_toks": [ "SELECT", "template_type_code", "FROM", "Templates", "EXCEPT", "SELECT", "template_type_code", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id" ], "query_toks_no_value": [ "select", "template_type_code", "from", "templates", "except", "select", "template_type_code", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id" ], "question": "Afficher tous les codes de type modèle qui ne sont utilisés pas par aucun document.", "question_toks": [ "Afficher", "tous", "les", "codes", "de", "type", "modèle", "qui", "ne", "sont", "utilisés", "pas", "par", "aucun", "document", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", "query_toks": [ "SELECT", "template_type_code", "FROM", "Templates", "EXCEPT", "SELECT", "template_type_code", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id" ], "query_toks_no_value": [ "select", "template_type_code", "from", "templates", "except", "select", "template_type_code", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id" ], "question": "Quels sont les codes de types de modèles qui ne sont utilisés pour aucun document?", "question_toks": [ "Quels", "sont", "les", "codes", "de", "types", "de", "modèles", "qui", "ne", "sont", "utilisés", "pour", "aucun", "document", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code , template_type_description FROM Ref_template_types", "query_toks": [ "SELECT", "template_type_code", ",", "template_type_description", "FROM", "Ref_template_types" ], "query_toks_no_value": [ "select", "template_type_code", ",", "template_type_description", "from", "ref_template_types" ], "question": "Afficher tous les codes et descriptions de type de modèle.", "question_toks": [ "Afficher", "tous", "les", "codes", "et", "descriptions", "de", "type", "de", "modèle", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code , template_type_description FROM Ref_template_types", "query_toks": [ "SELECT", "template_type_code", ",", "template_type_description", "FROM", "Ref_template_types" ], "query_toks_no_value": [ "select", "template_type_code", ",", "template_type_description", "from", "ref_template_types" ], "question": "Quels sont les types de types et des descriptions de tous les types de modèles?", "question_toks": [ "Quels", "sont", "les", "types", "de", "types", "et", "des", "descriptions", "de", "tous", "les", "types", "de", "modèles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", "query_toks": [ "SELECT", "template_type_description", "FROM", "Ref_template_types", "WHERE", "template_type_code", "=", "``", "AD", "''" ], "query_toks_no_value": [ "select", "template_type_description", "from", "ref_template_types", "where", "template_type_code", "=", "value" ], "question": "Quelles sont les descriptions de type de modèle pour le code de type de modèle \"ad\".", "question_toks": [ "Quelles", "sont", "les", "descriptions", "de", "type", "de", "modèle", "pour", "le", "code", "de", "type", "de", "modèle", "\"", "ad", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"AD\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", "query_toks": [ "SELECT", "template_type_description", "FROM", "Ref_template_types", "WHERE", "template_type_code", "=", "``", "AD", "''" ], "query_toks_no_value": [ "select", "template_type_description", "from", "ref_template_types", "where", "template_type_code", "=", "value" ], "question": "Renvoie le type de modèle Description du type de modèle avec le code ad.", "question_toks": [ "Renvoie", "le", "type", "de", "modèle", "Description", "du", "type", "de", "modèle", "avec", "le", "code", "ad", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"AD\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", "query_toks": [ "SELECT", "template_type_code", "FROM", "Ref_template_types", "WHERE", "template_type_description", "=", "``", "Book", "''" ], "query_toks_no_value": [ "select", "template_type_code", "from", "ref_template_types", "where", "template_type_description", "=", "value" ], "question": "Quel est le code de type de modèle pour la description du type de modèle \"Book\".", "question_toks": [ "Quel", "est", "le", "code", "de", "type", "de", "modèle", "pour", "la", "description", "du", "type", "de", "modèle", "\"", "Book", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Book\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", "query_toks": [ "SELECT", "template_type_code", "FROM", "Ref_template_types", "WHERE", "template_type_description", "=", "``", "Book", "''" ], "query_toks_no_value": [ "select", "template_type_code", "from", "ref_template_types", "where", "template_type_description", "=", "value" ], "question": "Renvoie le code de type du type de modèle avec la description \"Book\".", "question_toks": [ "Renvoie", "le", "code", "de", "type", "du", "type", "de", "modèle", "avec", "la", "description", "\"", "Book", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Book\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", "query_toks": [ "SELECT", "DISTINCT", "T1.template_type_description", "FROM", "Ref_template_types", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.template_type_code", "=", "T2.template_type_code", "JOIN", "Documents", "AS", "T3", "ON", "T2.Template_ID", "=", "T3.template_ID" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "template_type_description", "from", "ref_template_types", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_type_code", "=", "t2", ".", "template_type_code", "join", "documents", "as", "t3", "on", "t2", ".", "template_id", "=", "t3", ".", "template_id" ], "question": "Quelles sont les descriptions de type de modèle distinctes pour les modèles jamais utilisés par n'importe quel document?", "question_toks": [ "Quelles", "sont", "les", "descriptions", "de", "type", "de", "modèle", "distinctes", "pour", "les", "modèles", "jamais", "utilisés", "par", "n'", "importe", "quel", "document", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", "query_toks": [ "SELECT", "DISTINCT", "T1.template_type_description", "FROM", "Ref_template_types", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.template_type_code", "=", "T2.template_type_code", "JOIN", "Documents", "AS", "T3", "ON", "T2.Template_ID", "=", "T3.template_ID" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "template_type_description", "from", "ref_template_types", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_type_code", "=", "t2", ".", "template_type_code", "join", "documents", "as", "t3", "on", "t2", ".", "template_id", "=", "t3", ".", "template_id" ], "question": "Renvoyez les différentes descriptions pour les modèles utilisés dans un document.", "question_toks": [ "Renvoyez", "les", "différentes", "descriptions", "pour", "les", "modèles", "utilisés", "dans", "un", "document", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"", "query_toks": [ "SELECT", "T2.template_id", "FROM", "Ref_template_types", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.template_type_code", "=", "T2.template_type_code", "WHERE", "T1.template_type_description", "=", "``", "Presentation", "''" ], "query_toks_no_value": [ "select", "t2", ".", "template_id", "from", "ref_template_types", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_type_code", "=", "t2", ".", "template_type_code", "where", "t1", ".", "template_type_description", "=", "value" ], "question": "Quels sont les identifiants de modèle avec le type de modèle Description \"Présentation\".", "question_toks": [ "Quels", "sont", "les", "identifiants", "de", "modèle", "avec", "le", "type", "de", "modèle", "Description", "\"", "Présentation", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Presentation\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"", "query_toks": [ "SELECT", "T2.template_id", "FROM", "Ref_template_types", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.template_type_code", "=", "T2.template_type_code", "WHERE", "T1.template_type_description", "=", "``", "Presentation", "''" ], "query_toks_no_value": [ "select", "t2", ".", "template_id", "from", "ref_template_types", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_type_code", "=", "t2", ".", "template_type_code", "where", "t1", ".", "template_type_description", "=", "value" ], "question": "Renvoie les identifiants correspondant aux modèles avec la description \"Présentation\".", "question_toks": [ "Renvoie", "les", "identifiants", "correspondant", "aux", "modèles", "avec", "la", "description", "\"", "Présentation", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Presentation\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Paragraphs", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Paragraphs" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "paragraphs" ], "question": "Combien de paragraphes au total?", "question_toks": [ "Combien", "de", "paragraphes", "au", "total", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Paragraphs", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Paragraphs" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "paragraphs" ], "question": "Compter le nombre de paragraphes.", "question_toks": [ "Compter", "le", "nombre", "de", "paragraphes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_ID", "=", "T2.document_ID", "WHERE", "T2.document_name", "=", "'Summer", "Show", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Combien de paragraphes pour le document avec nom 'Summer Show'?", "question_toks": [ "Combien", "de", "paragraphes", "pour", "le", "document", "avec", "nom", "'", "Summer", "Show", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Summer Show\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_ID", "=", "T2.document_ID", "WHERE", "T2.document_name", "=", "'Summer", "Show", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Comptez le nombre de paragraphes du document nommé «spectacle d'été».", "question_toks": [ "Comptez", "le", "nombre", "de", "paragraphes", "du", "document", "nommé", "«", "spectacle", "d'", "été", "»", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Summer Show\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "select other_details from paragraphs where paragraph_text like 'korea'", "query_toks": [ "select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "\"korea\"" ], "query_toks_no_value": [ "select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "value" ], "question": "Afficher les détails du paragraphe pour le paragraphe avec le texte «Corée».", "question_toks": [ "Afficher", "les", "détails", "du", "paragraphe", "pour", "le", "paragraphe", "avec", "le", "texte", "«", "Corée", "»", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 16, false ], null ], "\"korea\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "select other_details from paragraphs where paragraph_text like 'korea'", "query_toks": [ "select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "\"korea\"" ], "query_toks_no_value": [ "select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "value" ], "question": "Quels sont les détails du paragraphe qui inclut le texte 'Corée'?", "question_toks": [ "Quels", "sont", "les", "détails", "du", "paragraphe", "qui", "inclut", "le", "texte", "'", "Corée", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 16, false ], null ], "\"korea\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", "query_toks": [ "SELECT", "T1.paragraph_id", ",", "T1.paragraph_text", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.Document_Name", "=", "'Welcome", "to", "NY", "'" ], "query_toks_no_value": [ "select", "t1", ".", "paragraph_id", ",", "t1", ".", "paragraph_text", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Afficher tous les identifiants de paragraphes et Textes du document avec nom 'Bienvenue à NY'.", "question_toks": [ "Afficher", "tous", "les", "identifiants", "de", "paragraphes", "et", "Textes", "du", "document", "avec", "nom", "'", "Bienvenue", "à", "NY", "'", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Welcome to NY\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", "query_toks": [ "SELECT", "T1.paragraph_id", ",", "T1.paragraph_text", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.Document_Name", "=", "'Welcome", "to", "NY", "'" ], "query_toks_no_value": [ "select", "t1", ".", "paragraph_id", ",", "t1", ".", "paragraph_text", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Quels sont les identifiants et textes des paragraphes du document intitulé «Bienvenue à NY»?", "question_toks": [ "Quels", "sont", "les", "identifiants", "et", "textes", "des", "paragraphes", "du", "document", "intitulé", "«", "Bienvenue", "à", "NY", "»", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Welcome to NY\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"", "query_toks": [ "SELECT", "T1.paragraph_text", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.document_name", "=", "``", "Customer", "reviews", "''" ], "query_toks_no_value": [ "select", "t1", ".", "paragraph_text", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Afficher tous les textes de paragraphes pour le document \"Avis des clients\".", "question_toks": [ "Afficher", "tous", "les", "textes", "de", "paragraphes", "pour", "le", "document", "\"", "Avis", "des", "clients", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Customer reviews\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"", "query_toks": [ "SELECT", "T1.paragraph_text", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.document_name", "=", "``", "Customer", "reviews", "''" ], "query_toks_no_value": [ "select", "t1", ".", "paragraph_text", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Quels sont les textes de paragraphe pour le document avec le nom 'Avis des clients'?", "question_toks": [ "Quels", "sont", "les", "textes", "de", "paragraphe", "pour", "le", "document", "avec", "le", "nom", "'", "Avis", "des", "clients", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Customer reviews\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", "query_toks": [ "SELECT", "document_id", ",", "count", "(", "*", ")", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "ORDER", "BY", "document_id" ], "query_toks_no_value": [ "select", "document_id", ",", "count", "(", "*", ")", "from", "paragraphs", "group", "by", "document_id", "order", "by", "document_id" ], "question": "Afficher tous les ID du document et le nombre de paragraphes dans chaque document. Ordre par document ID.", "question_toks": [ "Afficher", "tous", "les", "ID", "du", "document", "et", "le", "nombre", "de", "paragraphes", "dans", "chaque", "document", ".", "Ordre", "par", "document", "ID", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", "query_toks": [ "SELECT", "document_id", ",", "count", "(", "*", ")", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "ORDER", "BY", "document_id" ], "query_toks_no_value": [ "select", "document_id", ",", "count", "(", "*", ")", "from", "paragraphs", "group", "by", "document_id", "order", "by", "document_id" ], "question": "Renvoyez les différents identifiants de documents avec le nombre de paragraphes correspondant à chacun, commandé par ID.", "question_toks": [ "Renvoyez", "les", "différents", "identifiants", "de", "documents", "avec", "le", "nombre", "de", "paragraphes", "correspondant", "à", "chacun", ",", "commandé", "par", "ID", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", "query_toks": [ "SELECT", "T1.document_id", ",", "T2.document_name", ",", "count", "(", "*", ")", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "GROUP", "BY", "T1.document_id" ], "query_toks_no_value": [ "select", "t1", ".", "document_id", ",", "t2", ".", "document_name", ",", "count", "(", "*", ")", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "group", "by", "t1", ".", "document_id" ], "question": "Afficher tous les ID de document, les noms et le nombre de paragraphes dans chaque document.", "question_toks": [ "Afficher", "tous", "les", "ID", "de", "document", ",", "les", "noms", "et", "le", "nombre", "de", "paragraphes", "dans", "chaque", "document", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", "query_toks": [ "SELECT", "T1.document_id", ",", "T2.document_name", ",", "count", "(", "*", ")", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "GROUP", "BY", "T1.document_id" ], "query_toks_no_value": [ "select", "t1", ".", "document_id", ",", "t2", ".", "document_name", ",", "count", "(", "*", ")", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "group", "by", "t1", ".", "document_id" ], "question": "Quels sont les identifiants et les noms de chaque document, ainsi que le nombre de paragraphes dans chacun?", "question_toks": [ "Quels", "sont", "les", "identifiants", "et", "les", "noms", "de", "chaque", "document", ",", "ainsi", "que", "le", "nombre", "de", "paragraphes", "dans", "chacun", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "group", "by", "document_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Énumérez tous les identifiants de document avec au moins deux paragraphes.", "question_toks": [ "Énumérez", "tous", "les", "identifiants", "de", "document", "avec", "au", "moins", "deux", "paragraphes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "group", "by", "document_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les identifiants de documents qui ont 2 paragraphes ou plus?", "question_toks": [ "Quels", "sont", "les", "identifiants", "de", "documents", "qui", "ont", "2", "paragraphes", "ou", "plus", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.document_id", ",", "T2.document_name", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "GROUP", "BY", "T1.document_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "document_id", ",", "t2", ".", "document_name", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "group", "by", "t1", ".", "document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est l'identifiant de document et le nom avec le plus grand nombre de paragraphes?", "question_toks": [ "Quel", "est", "l'", "identifiant", "de", "document", "et", "le", "nom", "avec", "le", "plus", "grand", "nombre", "de", "paragraphes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.document_id", ",", "T2.document_name", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "GROUP", "BY", "T1.document_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "document_id", ",", "t2", ".", "document_name", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "group", "by", "t1", ".", "document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Renvoie l'identifiant et le nom du document avec le plus de paragraphes.", "question_toks": [ "Renvoie", "l'", "identifiant", "et", "le", "nom", "du", "document", "avec", "le", "plus", "de", "paragraphes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "group", "by", "document_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Quel est l'ID de document avec le moins de paragraphes?", "question_toks": [ "Quel", "est", "l'", "ID", "de", "document", "avec", "le", "moins", "de", "paragraphes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "group", "by", "document_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Renvoie l'ID du document avec le moins de paragraphes.", "question_toks": [ "Renvoie", "l'", "ID", "du", "document", "avec", "le", "moins", "de", "paragraphes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "HAVING", "count", "(", "*", ")", "BETWEEN", "1", "AND", "2" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "group", "by", "document_id", "having", "count", "(", "*", ")", "between", "value", "and", "value" ], "question": "Quel est l'ID de document avec 1 à 2 paragraphes?", "question_toks": [ "Quel", "est", "l'", "ID", "de", "document", "avec", "1", "à", "2", "paragraphes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 1, [ 0, [ 3, 0, false ], null ], 1.0, 2.0 ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "HAVING", "count", "(", "*", ")", "BETWEEN", "1", "AND", "2" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "group", "by", "document_id", "having", "count", "(", "*", ")", "between", "value", "and", "value" ], "question": "Donnez aux ID des documents entre un et deux paragraphes.", "question_toks": [ "Donnez", "aux", "ID", "des", "documents", "entre", "un", "et", "deux", "paragraphes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 1, [ 0, [ 3, 0, false ], null ], 1.0, 2.0 ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "WHERE", "paragraph_text", "=", "'Brazil", "'", "INTERSECT", "SELECT", "document_id", "FROM", "Paragraphs", "WHERE", "paragraph_text", "=", "'Ireland", "'" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "where", "paragraph_text", "=", "value", "intersect", "select", "document_id", "from", "paragraphs", "where", "paragraph_text", "=", "value" ], "question": "Montrez l'ID de document avec le paragraphe «Brésil» et «Ireland».", "question_toks": [ "Montrez", "l'", "ID", "de", "document", "avec", "le", "paragraphe", "«", "Brésil", "»", "et", "«", "Ireland", "»", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Brazil\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Ireland\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "cre_Doc_Template_Mgt", "query": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "WHERE", "paragraph_text", "=", "'Brazil", "'", "INTERSECT", "SELECT", "document_id", "FROM", "Paragraphs", "WHERE", "paragraph_text", "=", "'Ireland", "'" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "where", "paragraph_text", "=", "value", "intersect", "select", "document_id", "from", "paragraphs", "where", "paragraph_text", "=", "value" ], "question": "Quels sont les identifiants de documents contenant le texte du paragraphe «Brésil» et «Ireland»?", "question_toks": [ "Quels", "sont", "les", "identifiants", "de", "documents", "contenant", "le", "texte", "du", "paragraphe", "«", "Brésil", "»", "et", "«", "Ireland", "»", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Brazil\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Ireland\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT count(*) FROM teacher", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "teacher" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "teacher" ], "question": "Combien d'enseignants y a-t-il?", "question_toks": [ "Combien", "d'", "enseignants", "y", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT count(*) FROM teacher", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "teacher" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "teacher" ], "question": "Quel est le nombre total d'enseignants?", "question_toks": [ "Quel", "est", "le", "nombre", "total", "d'", "enseignants", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Name FROM teacher ORDER BY Age ASC", "query_toks": [ "SELECT", "Name", "FROM", "teacher", "ORDER", "BY", "Age", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "order", "by", "age", "asc" ], "question": "Énumérez les noms des enseignants à l'ordre croissant de l'âge.", "question_toks": [ "Énumérez", "les", "noms", "des", "enseignants", "à", "l'", "ordre", "croissant", "de", "l'", "âge", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Name FROM teacher ORDER BY Age ASC", "query_toks": [ "SELECT", "Name", "FROM", "teacher", "ORDER", "BY", "Age", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "order", "by", "age", "asc" ], "question": "Quels sont les noms des enseignants commandés par l'âge ascendant?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "enseignants", "commandés", "par", "l'", "âge", "ascendant", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Age , Hometown FROM teacher", "query_toks": [ "SELECT", "Age", ",", "Hometown", "FROM", "teacher" ], "query_toks_no_value": [ "select", "age", ",", "hometown", "from", "teacher" ], "question": "Quels sont l'âge et la ville natale des enseignants?", "question_toks": [ "Quels", "sont", "l'", "âge", "et", "la", "ville", "natale", "des", "enseignants", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Age , Hometown FROM teacher", "query_toks": [ "SELECT", "Age", ",", "Hometown", "FROM", "teacher" ], "query_toks_no_value": [ "select", "age", ",", "hometown", "from", "teacher" ], "question": "Quel est l'âge et la ville natale de chaque enseignant?", "question_toks": [ "Quel", "est", "l'", "âge", "et", "la", "ville", "natale", "de", "chaque", "enseignant", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "select name from teacher where hometown != \"little lever urban district\"", "query_toks": [ "select", "name", "from", "teacher", "where", "hometown", "!=", "\"little lever urban district\"" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "where", "hometown", "!", "=", "value" ], "question": "Énumérez le nom des enseignants dont la ville natale n'est pas «petit district urbain du levier».", "question_toks": [ "Énumérez", "le", "nom", "des", "enseignants", "dont", "la", "ville", "natale", "n'", "est", "pas", "«", "petit", "district", "urbain", "du", "levier", "»", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 7, false ], null ], "\"little lever urban district\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "select name from teacher where hometown != \"little lever urban district\"", "query_toks": [ "select", "name", "from", "teacher", "where", "hometown", "!=", "\"little lever urban district\"" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "where", "hometown", "!", "=", "value" ], "question": "Quels sont les noms des enseignants dont la ville natale n'est pas \"petit district urbain\"?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "enseignants", "dont", "la", "ville", "natale", "n'", "est", "pas", "\"", "petit", "district", "urbain", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 7, false ], null ], "\"little lever urban district\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", "query_toks": [ "SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "32", "OR", "Age", "=", "33" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "where", "age", "=", "value", "or", "age", "=", "value" ], "question": "Montrer le nom des enseignants âgés 32 ou 33?", "question_toks": [ "Montrer", "le", "nom", "des", "enseignants", "âgés", "32", "ou", "33", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 32.0, null ], "or", [ false, 2, [ 0, [ 0, 6, false ], null ], 33.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", "query_toks": [ "SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "32", "OR", "Age", "=", "33" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "where", "age", "=", "value", "or", "age", "=", "value" ], "question": "Quels sont les noms des enseignants âgés de 32 ou 33 ans?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "enseignants", "âgés", "de", "32", "ou", "33", "ans", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 32.0, null ], "or", [ false, 2, [ 0, [ 0, 6, false ], null ], 33.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", "query_toks": [ "SELECT", "Hometown", "FROM", "teacher", "ORDER", "BY", "Age", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "hometown", "from", "teacher", "order", "by", "age", "asc", "limit", "value" ], "question": "Quelle est la ville natale du plus jeune enseignant?", "question_toks": [ "Quelle", "est", "la", "ville", "natale", "du", "plus", "jeune", "enseignant", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", "query_toks": [ "SELECT", "Hometown", "FROM", "teacher", "ORDER", "BY", "Age", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "hometown", "from", "teacher", "order", "by", "age", "asc", "limit", "value" ], "question": "D'où vient le plus jeune enseignant?", "question_toks": [ "D'", "où", "vient", "le", "plus", "jeune", "enseignant", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown", "query_toks": [ "SELECT", "Hometown", ",", "COUNT", "(", "*", ")", "FROM", "teacher", "GROUP", "BY", "Hometown" ], "query_toks_no_value": [ "select", "hometown", ",", "count", "(", "*", ")", "from", "teacher", "group", "by", "hometown" ], "question": "Montrer une ville natale différente des professeurs et le nombre d'enseignants de chaque ville natale.", "question_toks": [ "Montrer", "une", "ville", "natale", "différente", "des", "professeurs", "et", "le", "nombre", "d'", "enseignants", "de", "chaque", "ville", "natale", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 7, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown", "query_toks": [ "SELECT", "Hometown", ",", "COUNT", "(", "*", ")", "FROM", "teacher", "GROUP", "BY", "Hometown" ], "query_toks_no_value": [ "select", "hometown", ",", "count", "(", "*", ")", "from", "teacher", "group", "by", "hometown" ], "question": "Pour chaque ville natale, combien d'enseignants y a-t-il?", "question_toks": [ "Pour", "chaque", "ville", "natale", ",", "combien", "d'", "enseignants", "y", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 7, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "hometown", "from", "teacher", "group", "by", "hometown", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Énumérez la ville natale la plus courante des enseignants.", "question_toks": [ "Énumérez", "la", "ville", "natale", "la", "plus", "courante", "des", "enseignants", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 7, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "hometown", "from", "teacher", "group", "by", "hometown", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelles sont les villes natales les plus commumes des enseignants?", "question_toks": [ "Quelles", "sont", "les", "villes", "natales", "les", "plus", "commumes", "des", "enseignants", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 7, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "hometown", "from", "teacher", "group", "by", "hometown", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Montrez aux villes natales partagées par au moins deux enseignants.", "question_toks": [ "Montrez", "aux", "villes", "natales", "partagées", "par", "au", "moins", "deux", "enseignants", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "hometown", "from", "teacher", "group", "by", "hometown", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quelles sont les villes d'où viennent les villes d'au moins deux enseignants?", "question_toks": [ "Quelles", "sont", "les", "villes", "d'", "où", "viennent", "les", "villes", "d'", "au", "moins", "deux", "enseignants", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Course", "FROM", "course_arrange", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.Course_ID", "=", "T2.Course_ID", "JOIN", "teacher", "AS", "T3", "ON", "T1.Teacher_ID", "=", "T3.Teacher_ID" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "course", "from", "course_arrange", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "teacher", "as", "t3", "on", "t1", ".", "teacher_id", "=", "t3", ".", "teacher_id" ], "question": "Montrer des noms des enseignants et des cours qu'ils sont organisés pour enseigner.", "question_toks": [ "Montrer", "des", "noms", "des", "enseignants", "et", "des", "cours", "qu'", "ils", "sont", "organisés", "pour", "enseigner", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Course", "FROM", "course_arrange", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.Course_ID", "=", "T2.Course_ID", "JOIN", "teacher", "AS", "T3", "ON", "T1.Teacher_ID", "=", "T3.Teacher_ID" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "course", "from", "course_arrange", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "teacher", "as", "t3", "on", "t1", ".", "teacher_id", "=", "t3", ".", "teacher_id" ], "question": "Quel est le nom de chaque enseignant et quel cours ils enseignent?", "question_toks": [ "Quel", "est", "le", "nom", "de", "chaque", "enseignant", "et", "quel", "cours", "ils", "enseignent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Course", "FROM", "course_arrange", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.Course_ID", "=", "T2.Course_ID", "JOIN", "teacher", "AS", "T3", "ON", "T1.Teacher_ID", "=", "T3.Teacher_ID", "ORDER", "BY", "T3.Name" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "course", "from", "course_arrange", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "teacher", "as", "t3", "on", "t1", ".", "teacher_id", "=", "t3", ".", "teacher_id", "order", "by", "t3", ".", "name" ], "question": "Montrez des noms des enseignants et des cours qu'ils sont organisés pour enseigner l'ordre alphabétique croissant du nom de l'enseignant.", "question_toks": [ "Montrez", "des", "noms", "des", "enseignants", "et", "des", "cours", "qu'", "ils", "sont", "organisés", "pour", "enseigner", "l'", "ordre", "alphabétique", "croissant", "du", "nom", "de", "l'", "enseignant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Course", "FROM", "course_arrange", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.Course_ID", "=", "T2.Course_ID", "JOIN", "teacher", "AS", "T3", "ON", "T1.Teacher_ID", "=", "T3.Teacher_ID", "ORDER", "BY", "T3.Name" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "course", "from", "course_arrange", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "teacher", "as", "t3", "on", "t1", ".", "teacher_id", "=", "t3", ".", "teacher_id", "order", "by", "t3", ".", "name" ], "question": "Quels sont les noms des enseignants et des cours qu'ils enseignent par ordre alphabétique croissant par le nom de l'enseignant?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "enseignants", "et", "des", "cours", "qu'", "ils", "enseignent", "par", "ordre", "alphabétique", "croissant", "par", "le", "nom", "de", "l'", "enseignant", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"", "query_toks": [ "SELECT", "T3.Name", "FROM", "course_arrange", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.Course_ID", "=", "T2.Course_ID", "JOIN", "teacher", "AS", "T3", "ON", "T1.Teacher_ID", "=", "T3.Teacher_ID", "WHERE", "T2.Course", "=", "``", "Math", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "course_arrange", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "teacher", "as", "t3", "on", "t1", ".", "teacher_id", "=", "t3", ".", "teacher_id", "where", "t2", ".", "course", "=", "value" ], "question": "Montrez le nom de l'enseignant pour le cours de mathématiques.", "question_toks": [ "Montrez", "le", "nom", "de", "l'", "enseignant", "pour", "le", "cours", "de", "mathématiques", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Math\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"", "query_toks": [ "SELECT", "T3.Name", "FROM", "course_arrange", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.Course_ID", "=", "T2.Course_ID", "JOIN", "teacher", "AS", "T3", "ON", "T1.Teacher_ID", "=", "T3.Teacher_ID", "WHERE", "T2.Course", "=", "``", "Math", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "course_arrange", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "teacher", "as", "t3", "on", "t1", ".", "teacher_id", "=", "t3", ".", "teacher_id", "where", "t2", ".", "course", "=", "value" ], "question": "Quels sont les noms des personnes qui enseignent des cours de mathématiques?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "personnes", "qui", "enseignent", "des", "cours", "de", "mathématiques", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Math\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", "query_toks": [ "SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1.Teacher_ID", "=", "T2.Teacher_ID", "GROUP", "BY", "T2.Name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name" ], "question": "Montrer les noms des enseignants et le nombre de cours qu'ils enseignent.", "question_toks": [ "Montrer", "les", "noms", "des", "enseignants", "et", "le", "nombre", "de", "cours", "qu'", "ils", "enseignent", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", "query_toks": [ "SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1.Teacher_ID", "=", "T2.Teacher_ID", "GROUP", "BY", "T2.Name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name" ], "question": "Quels sont les noms des enseignants et combien de cours enseignent-ils?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "enseignants", "et", "combien", "de", "cours", "enseignent", "-ils", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T2.Name", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1.Teacher_ID", "=", "T2.Teacher_ID", "GROUP", "BY", "T2.Name", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Montrer des noms des enseignants qui enseignent au moins deux cours.", "question_toks": [ "Montrer", "des", "noms", "des", "enseignants", "qui", "enseignent", "au", "moins", "deux", "cours", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T2.Name", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1.Teacher_ID", "=", "T2.Teacher_ID", "GROUP", "BY", "T2.Name", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les noms des enseignants qui enseignent au moins deux cours?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "enseignants", "qui", "enseignent", "au", "moins", "deux", "cours", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "course_teach", "query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", "query_toks": [ "SELECT", "Name", "FROM", "teacher", "WHERE", "Teacher_id", "NOT", "IN", "(", "SELECT", "Teacher_id", "FROM", "course_arrange", ")" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "where", "teacher_id", "not", "in", "(", "select", "teacher_id", "from", "course_arrange", ")" ], "question": "Énumérez les noms des enseignants qui n'ont pas été organisés pour enseigner des cours.", "question_toks": [ "Énumérez", "les", "noms", "des", "enseignants", "qui", "n'", "ont", "pas", "été", "organisés", "pour", "enseigner", "des", "cours", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 4, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, 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": "course_teach", "query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", "query_toks": [ "SELECT", "Name", "FROM", "teacher", "WHERE", "Teacher_id", "NOT", "IN", "(", "SELECT", "Teacher_id", "FROM", "course_arrange", ")" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "where", "teacher_id", "not", "in", "(", "select", "teacher_id", "from", "course_arrange", ")" ], "question": "Quels sont les noms des enseignants dont les cours n'ont pas été arrangés?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "enseignants", "dont", "les", "cours", "n'", "ont", "pas", "été", "arrangés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 4, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, 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": "museum_visit", "query": "SELECT count(*) FROM visitor WHERE age < 30", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "visitor", "WHERE", "age", "<", "30" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "visitor", "where", "age", "<", "value" ], "question": "Combien de visiteurs de moins de 30 ans sont là?", "question_toks": [ "Combien", "de", "visiteurs", "de", "moins", "de", "30", "ans", "sont", "là", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 8, false ], null ], 30.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC", "query_toks": [ "SELECT", "name", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "4", "ORDER", "BY", "Level_of_membership", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "visitor", "where", "level_of_membership", ">", "value", "order", "by", "level_of_membership", "desc" ], "question": "Trouvez les noms des visiteurs dont le niveau d'adhésion est supérieur à 4 et commandez les résultats par le niveau de haut à bas.", "question_toks": [ "Trouvez", "les", "noms", "des", "visiteurs", "dont", "le", "niveau", "d'", "adhésion", "est", "supérieur", "à", "4", "et", "commandez", "les", "résultats", "par", "le", "niveau", "de", "haut", "à", "bas", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 7, false ], null ], 4.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 7, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT avg(age) FROM visitor WHERE Level_of_membership <= 4", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "visitor", "WHERE", "Level_of_membership", "<", "=", "4" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "visitor", "where", "level_of_membership", "<", "=", "value" ], "question": "Quel est l'âge moyen des visiteurs dont le niveau d'adhésion n'est pas supérieur à 4?", "question_toks": [ "Quel", "est", "l'", "âge", "moyen", "des", "visiteurs", "dont", "le", "niveau", "d'", "adhésion", "n'", "est", "pas", "supérieur", "à", "4", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 6, [ 0, [ 0, 7, false ], null ], 4.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT name , Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC", "query_toks": [ "SELECT", "name", ",", "Level_of_membership", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "4", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "level_of_membership", "from", "visitor", "where", "level_of_membership", ">", "value", "order", "by", "age", "desc" ], "question": "Trouvez le nom et le niveau d'adhésion des visiteurs dont le niveau d'adhésion est supérieur à 4 et trier par leur âge de vieux à jeune.", "question_toks": [ "Trouvez", "le", "nom", "et", "le", "niveau", "d'", "adhésion", "des", "visiteurs", "dont", "le", "niveau", "d'", "adhésion", "est", "supérieur", "à", "4", "et", "trier", "par", "leur", "âge", "de", "vieux", "à", "jeune", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 7, false ], null ], 4.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT museum_id , name FROM museum ORDER BY num_of_staff DESC LIMIT 1", "query_toks": [ "SELECT", "museum_id", ",", "name", "FROM", "museum", "ORDER", "BY", "num_of_staff", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "museum_id", ",", "name", "from", "museum", "order", "by", "num_of_staff", "desc", "limit", "value" ], "question": "Trouvez l'identifiant et le nom du musée qui a le plus de membres du personnel?", "question_toks": [ "Trouvez", "l'", "identifiant", "et", "le", "nom", "du", "musée", "qui", "a", "le", "plus", "de", "membres", "du", "personnel", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009", "query_toks": [ "SELECT", "avg", "(", "num_of_staff", ")", "FROM", "museum", "WHERE", "open_year", "<", "2009" ], "query_toks_no_value": [ "select", "avg", "(", "num_of_staff", ")", "from", "museum", "where", "open_year", "<", "value" ], "question": "Trouvez le nombre moyen de personnel travaillant pour les musées ouverts avant 2009.", "question_toks": [ "Trouvez", "le", "nombre", "moyen", "de", "personnel", "travaillant", "pour", "les", "musées", "ouverts", "avant", "2009", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 4, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT Num_of_Staff , Open_Year FROM museum WHERE name = 'Plaza Museum'", "query_toks": [ "SELECT", "Num_of_Staff", ",", "Open_Year", "FROM", "museum", "WHERE", "name", "=", "'Plaza", "Museum", "'" ], "query_toks_no_value": [ "select", "num_of_staff", ",", "open_year", "from", "museum", "where", "name", "=", "value" ], "question": "Quelles sont l'année d'ouverture et le numéro de personnel du musée nommé Plaza Museum?", "question_toks": [ "Quelles", "sont", "l'", "année", "d'", "ouverture", "et", "le", "numéro", "de", "personnel", "du", "musée", "nommé", "Plaza", "Museum", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Plaza Museum\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010)", "query_toks": [ "SELECT", "name", "FROM", "museum", "WHERE", "num_of_staff", ">", "(", "SELECT", "min", "(", "num_of_staff", ")", "FROM", "museum", "WHERE", "open_year", ">", "2010", ")" ], "query_toks_no_value": [ "select", "name", "from", "museum", "where", "num_of_staff", ">", "(", "select", "min", "(", "num_of_staff", ")", "from", "museum", "where", "open_year", ">", "value", ")" ], "question": "Trouvez les noms des musées qui ont plus de personnel que le numéro de personnel minimum de tous les musées ouverts après 2010.", "question_toks": [ "Trouvez", "les", "noms", "des", "musées", "qui", "ont", "plus", "de", "personnel", "que", "le", "numéro", "de", "personnel", "minimum", "de", "tous", "les", "musées", "ouverts", "après", "2010", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 2010.0, null ] ], "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": "museum_visit", "query": "SELECT t1.id , t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING count(*) > 1", "query_toks": [ "SELECT", "t1.id", ",", "t1.name", ",", "t1.age", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "GROUP", "BY", "t1.id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "age", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Trouvez l'identifiant, le nom et l'âge des visiteurs qui ont visité plusieurs musées plus d'une fois.", "question_toks": [ "Trouvez", "l'", "identifiant", ",", "le", "nom", "et", "l'", "âge", "des", "visiteurs", "qui", "ont", "visité", "plusieurs", "musées", "plus", "d'", "une", "fois", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT t2.visitor_id , t1.name , t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY sum(t2.Total_spent) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.visitor_id", ",", "t1.name", ",", "t1.Level_of_membership", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "GROUP", "BY", "t2.visitor_id", "ORDER", "BY", "sum", "(", "t2.Total_spent", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "visitor_id", ",", "t1", ".", "name", ",", "t1", ".", "level_of_membership", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "group", "by", "t2", ".", "visitor_id", "order", "by", "sum", "(", "t2", ".", "total_spent", ")", "desc", "limit", "value" ], "question": "Quels sont les identifiants, le nom et le niveau d'adhésion des visiteurs qui ont dépensé la plus grande somme d'argent au total dans tous les billets de musée?", "question_toks": [ "Quels", "sont", "les", "identifiants", ",", "le", "nom", "et", "le", "niveau", "d'", "adhésion", "des", "visiteurs", "qui", "ont", "dépensé", "la", "plus", "grande", "somme", "d'", "argent", "au", "total", "dans", "tous", "les", "billets", "de", "musée", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 4, 12, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT t2.Museum_ID , t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.Museum_ID", ",", "t1.name", "FROM", "museum", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.Museum_ID", "=", "t2.Museum_ID", "GROUP", "BY", "t2.Museum_ID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "museum_id", ",", "t1", ".", "name", "from", "museum", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "museum_id", "=", "t2", ".", "museum_id", "group", "by", "t2", ".", "museum_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quels sont les identifiants et le nom du musée visité la plupart des temps?", "question_toks": [ "Quels", "sont", "les", "identifiants", "et", "le", "nom", "du", "musée", "visité", "la", "plupart", "des", "temps", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)", "query_toks": [ "SELECT", "name", "FROM", "museum", "WHERE", "Museum_ID", "NOT", "IN", "(", "SELECT", "museum_id", "FROM", "visit", ")" ], "query_toks_no_value": [ "select", "name", "from", "museum", "where", "museum_id", "not", "in", "(", "select", "museum_id", "from", "visit", ")" ], "question": "Quel est le nom du musée qui n'avait pas encore de visiteur?", "question_toks": [ "Quel", "est", "le", "nom", "du", "musée", "qui", "n'", "avait", "pas", "encore", "de", "visiteur", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, 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": "museum_visit", "query": "SELECT t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", ",", "t1.age", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "ORDER", "BY", "t2.num_of_ticket", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "order", "by", "t2", ".", "num_of_ticket", "desc", "limit", "value" ], "question": "Trouvez le nom et l'âge du visiteur qui a acheté le plus de billets à la fois.", "question_toks": [ "Trouvez", "le", "nom", "et", "l'", "âge", "du", "visiteur", "qui", "a", "acheté", "le", "plus", "de", "billets", "à", "la", "fois", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit", "query_toks": [ "SELECT", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "FROM", "visit" ], "query_toks_no_value": [ "select", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "from", "visit" ], "question": "Quel est le nombre moyen et maximum de billets achetés dans toutes les visites?", "question_toks": [ "Quel", "est", "le", "nombre", "moyen", "et", "maximum", "de", "billets", "achetés", "dans", "toutes", "les", "visites", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 11, false ], null ] ], [ 1, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT sum(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1", "query_toks": [ "SELECT", "sum", "(", "t2.Total_spent", ")", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "WHERE", "t1.Level_of_membership", "=", "1" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "total_spent", ")", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "where", "t1", ".", "level_of_membership", "=", "value" ], "question": "Quelle est la dépense totale du billet des visiteurs dont le niveau d'adhésion est 1?", "question_toks": [ "Quelle", "est", "la", "dépense", "totale", "du", "billet", "des", "visiteurs", "dont", "le", "niveau", "d'", "adhésion", "est", "1", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], 1.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011", "query_toks": [ "SELECT", "t1.name", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "JOIN", "museum", "AS", "t3", "ON", "t3.Museum_ID", "=", "t2.Museum_ID", "WHERE", "t3.open_year", "<", "2009", "INTERSECT", "SELECT", "t1.name", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "JOIN", "museum", "AS", "t3", "ON", "t3.Museum_ID", "=", "t2.Museum_ID", "WHERE", "t3.open_year", ">", "2011" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "join", "museum", "as", "t3", "on", "t3", ".", "museum_id", "=", "t2", ".", "museum_id", "where", "t3", ".", "open_year", "<", "value", "intersect", "select", "t1", ".", "name", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "join", "museum", "as", "t3", "on", "t3", ".", "museum_id", "=", "t2", ".", "museum_id", "where", "t3", ".", "open_year", ">", "value" ], "question": "Quel est le nom du visiteur qui a visité à la fois un musée ouvert avant 2009 et un musée ouvert après 2011?", "question_toks": [ "Quel", "est", "le", "nom", "du", "visiteur", "qui", "a", "visité", "à", "la", "fois", "un", "musée", "ouvert", "avant", "2009", "et", "un", "musée", "ouvert", "après", "2011", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 4, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 2011.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "museum_visit", "query": "SELECT count(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "visitor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "t2.visitor_id", "FROM", "museum", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.Museum_ID", "=", "t2.Museum_ID", "WHERE", "t1.open_year", ">", "2010", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "visitor", "where", "id", "not", "in", "(", "select", "t2", ".", "visitor_id", "from", "museum", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "museum_id", "=", "t2", ".", "museum_id", "where", "t1", ".", "open_year", ">", "value", ")" ], "question": "Trouvez le nombre de visiteurs qui n'ont visité aucun musée ouvert après 2010.", "question_toks": [ "Trouvez", "le", "nombre", "de", "visiteurs", "qui", "n'", "ont", "visité", "aucun", "musée", "ouvert", "après", "2010", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 2010.0, null ] ], "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": "museum_visit", "query": "SELECT count(*) FROM museum WHERE open_year > 2013 OR open_year < 2008", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "museum", "WHERE", "open_year", ">", "2013", "OR", "open_year", "<", "2008" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "museum", "where", "open_year", ">", "value", "or", "open_year", "<", "value" ], "question": "Combien de musées ont été ouverts après 2013 ou avant 2008?", "question_toks": [ "Combien", "de", "musées", "ont", "été", "ouverts", "après", "2013", "ou", "avant", "2008", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 2013.0, null ], "or", [ false, 4, [ 0, [ 0, 4, false ], null ], 2008.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) FROM players", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "players" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "players" ], "question": "Trouvez le nombre total de joueurs.", "question_toks": [ "Trouvez", "le", "nombre", "total", "de", "joueurs", "." ], "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": "wta_1", "query": "SELECT count(*) FROM players", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "players" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "players" ], "question": "Combien de joueurs y a-t-il?", "question_toks": [ "Combien", "de", "joueurs", "y", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) FROM matches", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "matches" ], "question": "Trouvez le nombre total de correspondances.", "question_toks": [ "Trouvez", "le", "nombre", "total", "de", "correspondances", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) FROM matches", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "matches" ], "question": "Compter le nombre de correspondances.", "question_toks": [ "Compter", "le", "nombre", "de", "correspondances", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'", "query_toks": [ "SELECT", "first_name", ",", "birth_date", "FROM", "players", "WHERE", "country_code", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "birth_date", "from", "players", "where", "country_code", "=", "value" ], "question": "Énumérez le prénom et la date de naissance de tous les joueurs du pays avec le code USA.", "question_toks": [ "Énumérez", "le", "prénom", "et", "la", "date", "de", "naissance", "de", "tous", "les", "joueurs", "du", "pays", "avec", "le", "code", "USA", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"USA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'", "query_toks": [ "SELECT", "first_name", ",", "birth_date", "FROM", "players", "WHERE", "country_code", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "birth_date", "from", "players", "where", "country_code", "=", "value" ], "question": "Quels sont les prénoms et dates de naissance des joueurs des États-Unis?", "question_toks": [ "Quels", "sont", "les", "prénoms", "et", "dates", "de", "naissance", "des", "joueurs", "des", "États-Unis", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"USA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT avg(loser_age) , avg(winner_age) FROM matches", "query_toks": [ "SELECT", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "from", "matches" ], "question": "Trouvez l'âge moyen des perdants et des gagnants de tous les matchs.", "question_toks": [ "Trouvez", "l'", "âge", "moyen", "des", "perdants", "et", "des", "gagnants", "de", "tous", "les", "matchs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ], [ 5, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT avg(loser_age) , avg(winner_age) FROM matches", "query_toks": [ "SELECT", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "from", "matches" ], "question": "Quels sont les âges moyens des perdants et des gagnants entre les matches?", "question_toks": [ "Quels", "sont", "les", "âges", "moyens", "des", "perdants", "et", "des", "gagnants", "entre", "les", "matches", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ], [ 5, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT avg(winner_rank) FROM matches", "query_toks": [ "SELECT", "avg", "(", "winner_rank", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "avg", "(", "winner_rank", ")", "from", "matches" ], "question": "Trouvez le rang moyen de gagnants dans tous les matchs.", "question_toks": [ "Trouvez", "le", "rang", "moyen", "de", "gagnants", "dans", "tous", "les", "matchs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT avg(winner_rank) FROM matches", "query_toks": [ "SELECT", "avg", "(", "winner_rank", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "avg", "(", "winner_rank", ")", "from", "matches" ], "question": "Quel est le rang moyen pour les gagnants de tous les matchs?", "question_toks": [ "Quel", "est", "le", "rang", "moyen", "pour", "les", "gagnants", "de", "tous", "les", "matchs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT min(loser_rank) FROM matches", "query_toks": [ "SELECT", "min", "(", "loser_rank", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "min", "(", "loser_rank", ")", "from", "matches" ], "question": "Trouvez le rang le plus élevé de perdants dans tous les matchs.", "question_toks": [ "Trouvez", "le", "rang", "le", "plus", "élevé", "de", "perdants", "dans", "tous", "les", "matchs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT min(loser_rank) FROM matches", "query_toks": [ "SELECT", "min", "(", "loser_rank", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "min", "(", "loser_rank", ")", "from", "matches" ], "question": "Quel est le meilleur rang de perdants sur tous les matchs?", "question_toks": [ "Quel", "est", "le", "meilleur", "rang", "de", "perdants", "sur", "tous", "les", "matchs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(DISTINCT country_code) FROM players", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "country_code", ")", "FROM", "players" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "country_code", ")", "from", "players" ], "question": "Trouvez le nombre de codes de pays distincts de tous les joueurs.", "question_toks": [ "Trouvez", "le", "nombre", "de", "codes", "de", "pays", "distincts", "de", "tous", "les", "joueurs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(DISTINCT country_code) FROM players", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "country_code", ")", "FROM", "players" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "country_code", ")", "from", "players" ], "question": "De combien de pays distincts les joueurs viennent-ils?", "question_toks": [ "De", "combien", "de", "pays", "distincts", "les", "joueurs", "viennent", "-ils", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(DISTINCT loser_name) FROM matches", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "loser_name", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "loser_name", ")", "from", "matches" ], "question": "Trouvez le nombre de noms distincts des perdants.", "question_toks": [ "Trouvez", "le", "nombre", "de", "noms", "distincts", "des", "perdants", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(DISTINCT loser_name) FROM matches", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "loser_name", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "loser_name", ")", "from", "matches" ], "question": "Combien de noms de perdants différents sont là?", "question_toks": [ "Combien", "de", "noms", "de", "perdants", "différents", "sont", "là", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", "query_toks": [ "SELECT", "tourney_name", "FROM", "matches", "GROUP", "BY", "tourney_name", "HAVING", "count", "(", "*", ")", ">", "10" ], "query_toks_no_value": [ "select", "tourney_name", "from", "matches", "group", "by", "tourney_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Trouvez le nom du tournoi qui a plus de 10 matchs.", "question_toks": [ "Trouvez", "le", "nom", "du", "tournoi", "qui", "a", "plus", "de", "10", "matchs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 27, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 10.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", "query_toks": [ "SELECT", "tourney_name", "FROM", "matches", "GROUP", "BY", "tourney_name", "HAVING", "count", "(", "*", ")", ">", "10" ], "query_toks_no_value": [ "select", "tourney_name", "from", "matches", "group", "by", "tourney_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels sont les noms des tournois qui ont plus de 10 matchs?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "tournois", "qui", "ont", "plus", "de", "10", "matchs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 27, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 10.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", "query_toks": [ "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "INTERSECT", "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2016" ], "query_toks_no_value": [ "select", "winner_name", "from", "matches", "where", "year", "=", "value", "intersect", "select", "winner_name", "from", "matches", "where", "year", "=", "value" ], "question": "Énumérez les noms de tous les gagnants qui ont joué en 2013 et 2016.", "question_toks": [ "Énumérez", "les", "noms", "de", "tous", "les", "gagnants", "qui", "ont", "joué", "en", "2013", "et", "2016", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 2013.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 2016.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", "query_toks": [ "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "INTERSECT", "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2016" ], "query_toks_no_value": [ "select", "winner_name", "from", "matches", "where", "year", "=", "value", "intersect", "select", "winner_name", "from", "matches", "where", "year", "=", "value" ], "question": "Quels sont les noms des joueurs qui ont gagné en 2013 et 2016?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "joueurs", "qui", "ont", "gagné", "en", "2013", "et", "2016", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 2013.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 2016.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "OR", "YEAR", "=", "2016" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "matches", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "Énumérez le nombre de tous les matchs qui ont joué depuis 2013 ou 2016.", "question_toks": [ "Énumérez", "le", "nombre", "de", "tous", "les", "matchs", "qui", "ont", "joué", "depuis", "2013", "ou", "2016", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 2013.0, null ], "or", [ false, 2, [ 0, [ 0, 38, false ], null ], 2016.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "OR", "YEAR", "=", "2016" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "matches", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "Combien de matchs ont été joués en 2013 ou 2016?", "question_toks": [ "Combien", "de", "matchs", "ont", "été", "joués", "en", "2013", "ou", "2016", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 2013.0, null ], "or", [ false, 2, [ 0, [ 0, 38, false ], null ], 2016.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'", "query_toks": [ "SELECT", "T1.country_code", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "matches", "AS", "T2", "ON", "T1.player_id", "=", "T2.winner_id", "WHERE", "T2.tourney_name", "=", "'WTA", "Championships", "'", "INTERSECT", "SELECT", "T1.country_code", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "matches", "AS", "T2", "ON", "T1.player_id", "=", "T2.winner_id", "WHERE", "T2.tourney_name", "=", "'Australian", "Open", "'" ], "query_toks_no_value": [ "select", "t1", ".", "country_code", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "matches", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "winner_id", "where", "t2", ".", "tourney_name", "=", "value", "intersect", "select", "t1", ".", "country_code", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "matches", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "winner_id", "where", "t2", ".", "tourney_name", "=", "value" ], "question": "Quel est le code de pays et le prénom des joueurs qui ont gagné dans les championnats de Tourney WTA et à Australian Open?", "question_toks": [ "Quel", "est", "le", "code", "de", "pays", "et", "le", "prénom", "des", "joueurs", "qui", "ont", "gagné", "dans", "les", "championnats", "de", "Tourney", "WTA", "et", "à", "Australian", "Open", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"WTA Championships\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Australian Open\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'", "query_toks": [ "SELECT", "T1.country_code", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "matches", "AS", "T2", "ON", "T1.player_id", "=", "T2.winner_id", "WHERE", "T2.tourney_name", "=", "'WTA", "Championships", "'", "INTERSECT", "SELECT", "T1.country_code", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "matches", "AS", "T2", "ON", "T1.player_id", "=", "T2.winner_id", "WHERE", "T2.tourney_name", "=", "'Australian", "Open", "'" ], "query_toks_no_value": [ "select", "t1", ".", "country_code", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "matches", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "winner_id", "where", "t2", ".", "tourney_name", "=", "value", "intersect", "select", "t1", ".", "country_code", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "matches", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "winner_id", "where", "t2", ".", "tourney_name", "=", "value" ], "question": "Quels sont les prénoms et les codes de pays des joueurs qui ont remporté les championnats WTA et l'Australian Open?", "question_toks": [ "Quels", "sont", "les", "prénoms", "et", "les", "codes", "de", "pays", "des", "joueurs", "qui", "ont", "remporté", "les", "championnats", "WTA", "et", "l'", "Australian", "Open", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"WTA Championships\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Australian Open\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "country_code", "FROM", "players", "ORDER", "BY", "birth_date", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "country_code", "from", "players", "order", "by", "birth_date", "limit", "value" ], "question": "Trouvez le prénom et le code de pays du joueur le plus ancien.", "question_toks": [ "Trouvez", "le", "prénom", "et", "le", "code", "de", "pays", "du", "joueur", "le", "plus", "ancien", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "country_code", "FROM", "players", "ORDER", "BY", "birth_date", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "country_code", "from", "players", "order", "by", "birth_date", "limit", "value" ], "question": "Quel est le prénom et le code de pays du plus ancien joueur?", "question_toks": [ "Quel", "est", "le", "prénom", "et", "le", "code", "de", "pays", "du", "plus", "ancien", "joueur", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT first_name , last_name FROM players ORDER BY birth_date", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date" ], "question": "Énumérez le premier et le nom de famille de tous les joueurs de l'ordre de naissance.", "question_toks": [ "Énumérez", "le", "premier", "et", "le", "nom", "de", "famille", "de", "tous", "les", "joueurs", "de", "l'", "ordre", "de", "naissance", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT first_name , last_name FROM players ORDER BY birth_date", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date" ], "question": "Quels sont les noms complets de tous les joueurs, triés par date de naissance?", "question_toks": [ "Quels", "sont", "les", "noms", "complets", "de", "tous", "les", "joueurs", ",", "triés", "par", "date", "de", "naissance", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "'L", "'", "ORDER", "BY", "birth_date" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "value", "order", "by", "birth_date" ], "question": "Énumérez le premier et le nom de famille de tous les joueurs qui sont laissés / l la main dans l'ordre de la date de naissance.", "question_toks": [ "Énumérez", "le", "premier", "et", "le", "nom", "de", "famille", "de", "tous", "les", "joueurs", "qui", "sont", "laissés", "/", "l", "la", "main", "dans", "l'", "ordre", "de", "la", "date", "de", "naissance", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"L\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "'L", "'", "ORDER", "BY", "birth_date" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "value", "order", "by", "birth_date" ], "question": "Quels sont les noms complets de tous les joueurs gauchers, par ordre de naissance?", "question_toks": [ "Quels", "sont", "les", "noms", "complets", "de", "tous", "les", "joueurs", "gauchers", ",", "par", "ordre", "de", "naissance", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"L\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1", "query_toks": [ "SELECT", "T1.country_code", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "ORDER", "BY", "T2.tours", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "country_code", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "order", "by", "t2", ".", "tours", "desc", "limit", "value" ], "question": "Trouvez le prénom et le code de pays du joueur qui a fait le plus grand nombre de visites.", "question_toks": [ "Trouvez", "le", "prénom", "et", "le", "code", "de", "pays", "du", "joueur", "qui", "a", "fait", "le", "plus", "grand", "nombre", "de", "visites", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 41, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 43, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1", "query_toks": [ "SELECT", "T1.country_code", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "ORDER", "BY", "T2.tours", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "country_code", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "order", "by", "t2", ".", "tours", "desc", "limit", "value" ], "question": "Quel est le prénom et le code de pays du joueur avec la plupart des visites?", "question_toks": [ "Quel", "est", "le", "prénom", "et", "le", "code", "de", "pays", "du", "joueur", "avec", "la", "plupart", "des", "visites", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 41, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 43, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "matches", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Trouvez l'année qui a le plus grand nombre de correspondances.", "question_toks": [ "Trouvez", "l'", "année", "qui", "a", "le", "plus", "grand", "nombre", "de", "correspondances", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 38, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "matches", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "En quelle année a eu le plus de matchs?", "question_toks": [ "En", "quelle", "année", "a", "eu", "le", "plus", "de", "matchs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 38, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "winner_name", ",", "winner_rank_points", "FROM", "matches", "GROUP", "BY", "winner_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winner_name", ",", "winner_rank_points", "from", "matches", "group", "by", "winner_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Trouvez le nom et les points de rang du gagnant qui ont gagné le plus souvent.", "question_toks": [ "Trouvez", "le", "nom", "et", "les", "points", "de", "rang", "du", "gagnant", "qui", "ont", "gagné", "le", "plus", "souvent", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 34, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "winner_name", ",", "winner_rank_points", "FROM", "matches", "GROUP", "BY", "winner_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winner_name", ",", "winner_rank_points", "from", "matches", "group", "by", "winner_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom du gagnant qui a gagné le plus de matchs et combien de points de classement ce joueur a-t-il?", "question_toks": [ "Quel", "est", "le", "nom", "du", "gagnant", "qui", "a", "gagné", "le", "plus", "de", "matchs", "et", "combien", "de", "points", "de", "classement", "ce", "joueur", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 34, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", "query_toks": [ "SELECT", "winner_name", "FROM", "matches", "WHERE", "tourney_name", "=", "'Australian", "Open", "'", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winner_name", "from", "matches", "where", "tourney_name", "=", "value", "order", "by", "winner_rank_points", "desc", "limit", "value" ], "question": "Trouvez le nom du gagnant qui a les points de rang les plus élevés et a participé au tournoi Open Australian.", "question_toks": [ "Trouvez", "le", "nom", "du", "gagnant", "qui", "a", "les", "points", "de", "rang", "les", "plus", "élevés", "et", "a", "participé", "au", "tournoi", "Open", "Australian", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Australian Open\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 36, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", "query_toks": [ "SELECT", "winner_name", "FROM", "matches", "WHERE", "tourney_name", "=", "'Australian", "Open", "'", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winner_name", "from", "matches", "where", "tourney_name", "=", "value", "order", "by", "winner_rank_points", "desc", "limit", "value" ], "question": "Quel est le nom du gagnant avec les points les plus classés qui ont participé au tournoi ouvert australien?", "question_toks": [ "Quel", "est", "le", "nom", "du", "gagnant", "avec", "les", "points", "les", "plus", "classés", "qui", "ont", "participé", "au", "tournoi", "ouvert", "australien", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Australian Open\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 36, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1", "query_toks": [ "SELECT", "winner_name", ",", "loser_name", "FROM", "matches", "ORDER", "BY", "minutes", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winner_name", ",", "loser_name", "from", "matches", "order", "by", "minutes", "desc", "limit", "value" ], "question": "Trouvez les noms de perdant et gagnant qui ont joué dans le match avec le plus grand nombre de minutes.", "question_toks": [ "Trouvez", "les", "noms", "de", "perdant", "et", "gagnant", "qui", "ont", "joué", "dans", "le", "match", "avec", "le", "plus", "grand", "nombre", "de", "minutes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1", "query_toks": [ "SELECT", "winner_name", ",", "loser_name", "FROM", "matches", "ORDER", "BY", "minutes", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winner_name", ",", "loser_name", "from", "matches", "order", "by", "minutes", "desc", "limit", "value" ], "question": "Quels sont les noms du gagnant et du perdant qui a joué dans le plus long match?", "question_toks": [ "Quels", "sont", "les", "noms", "du", "gagnant", "et", "du", "perdant", "qui", "a", "joué", "dans", "le", "plus", "long", "match", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", "query_toks": [ "SELECT", "avg", "(", "ranking", ")", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.first_name" ], "query_toks_no_value": [ "select", "avg", "(", "ranking", ")", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "first_name" ], "question": "Trouvez le classement moyen pour chaque joueur et son prénom.", "question_toks": [ "Trouvez", "le", "classement", "moyen", "pour", "chaque", "joueur", "et", "son", "prénom", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 41, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 40, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", "query_toks": [ "SELECT", "avg", "(", "ranking", ")", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.first_name" ], "query_toks_no_value": [ "select", "avg", "(", "ranking", ")", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "first_name" ], "question": "Quels sont les prénoms de tous les joueurs et de leurs classements moyens?", "question_toks": [ "Quels", "sont", "les", "prénoms", "de", "tous", "les", "joueurs", "et", "de", "leurs", "classements", "moyens", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 41, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 40, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", "query_toks": [ "SELECT", "sum", "(", "ranking_points", ")", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.first_name" ], "query_toks_no_value": [ "select", "sum", "(", "ranking_points", ")", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "first_name" ], "question": "Trouvez les points de classement totaux pour chaque joueur et leur prénom.", "question_toks": [ "Trouvez", "les", "points", "de", "classement", "totaux", "pour", "chaque", "joueur", "et", "leur", "prénom", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 41, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 42, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", "query_toks": [ "SELECT", "sum", "(", "ranking_points", ")", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.first_name" ], "query_toks_no_value": [ "select", "sum", "(", "ranking_points", ")", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "first_name" ], "question": "Quels sont les prénoms de tous les joueurs et de leurs points de classement total?", "question_toks": [ "Quels", "sont", "les", "prénoms", "de", "tous", "les", "joueurs", "et", "de", "leurs", "points", "de", "classement", "total", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 41, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 42, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) , country_code FROM players GROUP BY country_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "country_code", "FROM", "players", "GROUP", "BY", "country_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "country_code", "from", "players", "group", "by", "country_code" ], "question": "Trouvez le nombre de joueurs pour chaque pays.", "question_toks": [ "Trouvez", "le", "nombre", "de", "joueurs", "pour", "chaque", "pays", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) , country_code FROM players GROUP BY country_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "country_code", "FROM", "players", "GROUP", "BY", "country_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "country_code", "from", "players", "group", "by", "country_code" ], "question": "Combien de joueurs viennent de chaque pays?", "question_toks": [ "Combien", "de", "joueurs", "viennent", "de", "chaque", "pays", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country_code", "from", "players", "group", "by", "country_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Trouvez le code du pays où a le plus grand nombre de joueurs.", "question_toks": [ "Trouvez", "le", "code", "du", "pays", "où", "a", "le", "plus", "grand", "nombre", "de", "joueurs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country_code", "from", "players", "group", "by", "country_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le code du pays avec le plus de joueurs?", "question_toks": [ "Quel", "est", "le", "code", "du", "pays", "avec", "le", "plus", "de", "joueurs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", "query_toks": [ "SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "HAVING", "count", "(", "*", ")", ">", "50" ], "query_toks_no_value": [ "select", "country_code", "from", "players", "group", "by", "country_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Trouvez les codes des pays qui ont plus de 50 joueurs.", "question_toks": [ "Trouvez", "les", "codes", "des", "pays", "qui", "ont", "plus", "de", "50", "joueurs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 50.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", "query_toks": [ "SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "HAVING", "count", "(", "*", ")", ">", "50" ], "query_toks_no_value": [ "select", "country_code", "from", "players", "group", "by", "country_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels sont les codes des pays avec plus de 50 joueurs?", "question_toks": [ "Quels", "sont", "les", "codes", "des", "pays", "avec", "plus", "de", "50", "joueurs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 50.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date", "query_toks": [ "SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date" ], "query_toks_no_value": [ "select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date" ], "question": "Trouvez le nombre total de visites pour chaque date de classement.", "question_toks": [ "Trouvez", "le", "nombre", "total", "de", "visites", "pour", "chaque", "date", "de", "classement", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 43, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 39, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date", "query_toks": [ "SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date" ], "query_toks_no_value": [ "select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date" ], "question": "Combien de visites totales étaient là pour chaque date de classement?", "question_toks": [ "Combien", "de", "visites", "totales", "étaient", "là", "pour", "chaque", "date", "de", "classement", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 43, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 39, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "year", "from", "matches", "group", "by", "year" ], "question": "Trouvez le nombre de matchs arrivés chaque année.", "question_toks": [ "Trouvez", "le", "nombre", "de", "matchs", "arrivés", "chaque", "année", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 38, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "year", "from", "matches", "group", "by", "year" ], "question": "Combien de matchs ont été joués chaque année?", "question_toks": [ "Combien", "de", "matchs", "ont", "été", "joués", "chaque", "année", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 38, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3", "query_toks": [ "SELECT", "DISTINCT", "winner_name", ",", "winner_rank", "FROM", "matches", "ORDER", "BY", "winner_age", "LIMIT", "3" ], "query_toks_no_value": [ "select", "distinct", "winner_name", ",", "winner_rank", "from", "matches", "order", "by", "winner_age", "limit", "value" ], "question": "Trouvez le nom et le rang des 3 plus jeunes gagnants de tous les matchs.", "question_toks": [ "Trouvez", "le", "nom", "et", "le", "rang", "des", "3", "plus", "jeunes", "gagnants", "de", "tous", "les", "matchs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 28, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3", "query_toks": [ "SELECT", "DISTINCT", "winner_name", ",", "winner_rank", "FROM", "matches", "ORDER", "BY", "winner_age", "LIMIT", "3" ], "query_toks_no_value": [ "select", "distinct", "winner_name", ",", "winner_rank", "from", "matches", "order", "by", "winner_age", "limit", "value" ], "question": "Quels sont les noms et les rangs des trois plus jeunes gagnants de tous les matchs?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "les", "rangs", "des", "trois", "plus", "jeunes", "gagnants", "de", "tous", "les", "matchs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 28, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "'WTA", "Championships", "'", "AND", "winner_hand", "=", "'L", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "value", "and", "winner_hand", "=", "value" ], "question": "Combien de gagnants différents ont-ils participé aux championnats WTA et ont été gauchistes?", "question_toks": [ "Combien", "de", "gagnants", "différents", "ont", "-ils", "participé", "aux", "championnats", "WTA", "et", "ont", "été", "gauchistes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 34, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"WTA Championships\"", null ], "and", [ false, 2, [ 0, [ 0, 30, false ], null ], "\"L\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "'WTA", "Championships", "'", "AND", "winner_hand", "=", "'L", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "value", "and", "winner_hand", "=", "value" ], "question": "Trouvez le nombre de gagnants gauchers qui ont participé aux championnats WTA.", "question_toks": [ "Trouvez", "le", "nombre", "de", "gagnants", "gauchers", "qui", "ont", "participé", "aux", "championnats", "WTA", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 34, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"WTA Championships\"", null ], "and", [ false, 2, [ 0, [ 0, 30, false ], null ], "\"L\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.country_code", ",", "T1.birth_date", "FROM", "players", "AS", "T1", "JOIN", "matches", "AS", "T2", "ON", "T1.player_id", "=", "T2.winner_id", "ORDER", "BY", "T2.winner_rank_points", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "country_code", ",", "t1", ".", "birth_date", "from", "players", "as", "t1", "join", "matches", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "winner_id", "order", "by", "t2", ".", "winner_rank_points", "desc", "limit", "value" ], "question": "Trouvez le prénom, le code de pays et la date de naissance du gagnant qui a les points de rang les plus élevés de toutes les correspondances.", "question_toks": [ "Trouvez", "le", "prénom", ",", "le", "code", "de", "pays", "et", "la", "date", "de", "naissance", "du", "gagnant", "qui", "a", "les", "points", "de", "rang", "les", "plus", "élevés", "de", "toutes", "les", "correspondances", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 36, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.country_code", ",", "T1.birth_date", "FROM", "players", "AS", "T1", "JOIN", "matches", "AS", "T2", "ON", "T1.player_id", "=", "T2.winner_id", "ORDER", "BY", "T2.winner_rank_points", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "country_code", ",", "t1", ".", "birth_date", "from", "players", "as", "t1", "join", "matches", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "winner_id", "order", "by", "t2", ".", "winner_rank_points", "desc", "limit", "value" ], "question": "Quel est le prénom, le code de pays et la date de naissance du joueur avec les points de classement les plus gagnants sur tous les matchs?", "question_toks": [ "Quel", "est", "le", "prénom", ",", "le", "code", "de", "pays", "et", "la", "date", "de", "naissance", "du", "joueur", "avec", "les", "points", "de", "classement", "les", "plus", "gagnants", "sur", "tous", "les", "matchs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 36, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) , hand FROM players GROUP BY hand", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "hand", "FROM", "players", "GROUP", "BY", "hand" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "hand", "from", "players", "group", "by", "hand" ], "question": "Trouvez le nombre de joueurs pour chaque type de main.", "question_toks": [ "Trouvez", "le", "nombre", "de", "joueurs", "pour", "chaque", "type", "de", "main", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "wta_1", "query": "SELECT count(*) , hand FROM players GROUP BY hand", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "hand", "FROM", "players", "GROUP", "BY", "hand" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "hand", "from", "players", "group", "by", "hand" ], "question": "Combien de joueurs y a-t-il pour chaque type de main?", "question_toks": [ "Combien", "de", "joueurs", "y", "a", "-t", "-il", "pour", "chaque", "type", "de", "main", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT count(*) FROM ship WHERE disposition_of_ship = 'Captured'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ship", "WHERE", "disposition_of_ship", "=", "'Captured", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ship", "where", "disposition_of_ship", "=", "value" ], "question": "Combien de navires ont fini par être «capturé»?", "question_toks": [ "Combien", "de", "navires", "ont", "fini", "par", "être", "«", "capturé", "»", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Captured\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT name , tonnage FROM ship ORDER BY name DESC", "query_toks": [ "SELECT", "name", ",", "tonnage", "FROM", "ship", "ORDER", "BY", "name", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "tonnage", "from", "ship", "order", "by", "name", "desc" ], "question": "Énumérez le nom et le tonnage commandé par ordre alphaetique décroissant pour les noms.", "question_toks": [ "Énumérez", "le", "nom", "et", "le", "tonnage", "commandé", "par", "ordre", "alphaetique", "décroissant", "pour", "les", "noms", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT name , date FROM battle", "query_toks": [ "SELECT", "name", ",", "date", "FROM", "battle" ], "query_toks_no_value": [ "select", "name", ",", "date", "from", "battle" ], "question": "Énumérez le nom, la date et le résultat de chaque bataille.", "question_toks": [ "Énumérez", "le", "nom", ",", "la", "date", "et", "le", "résultat", "de", "chaque", "bataille", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT max(killed) , min(killed) FROM death", "query_toks": [ "SELECT", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "FROM", "death" ], "query_toks_no_value": [ "select", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "from", "death" ], "question": "Quel est le nombre maximum et minimum de la mort causée à chaque fois?", "question_toks": [ "Quel", "est", "le", "nombre", "maximum", "et", "minimum", "de", "la", "mort", "causée", "à", "chaque", "fois", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ], [ 2, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT avg(injured) FROM death", "query_toks": [ "SELECT", "avg", "(", "injured", ")", "FROM", "death" ], "query_toks_no_value": [ "select", "avg", "(", "injured", ")", "from", "death" ], "question": "Quel est le nombre moyen de blessures causées à chaque fois?", "question_toks": [ "Quel", "est", "le", "nombre", "moyen", "de", "blessures", "causées", "à", "chaque", "fois", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT T1.killed , T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'", "query_toks": [ "SELECT", "T1.killed", ",", "T1.injured", "FROM", "death", "AS", "T1", "JOIN", "ship", "AS", "t2", "ON", "T1.caused_by_ship_id", "=", "T2.id", "WHERE", "T2.tonnage", "=", "'t", "'" ], "query_toks_no_value": [ "select", "t1", ".", "killed", ",", "t1", ".", "injured", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id", "where", "t2", ".", "tonnage", "=", "value" ], "question": "Quelles sont les situations de mort et de blessure causées par le navire avec Tonnage 'T'?", "question_toks": [ "Quelles", "sont", "les", "situations", "de", "mort", "et", "de", "blessure", "causées", "par", "le", "navire", "avec", "Tonnage", "'", "T", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"t\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'", "query_toks": [ "SELECT", "name", ",", "RESULT", "FROM", "battle", "WHERE", "bulgarian_commander", "!", "=", "'Boril", "'" ], "query_toks_no_value": [ "select", "name", ",", "result", "from", "battle", "where", "bulgarian_commander", "!", "=", "value" ], "question": "Quel est le nom et les résultats des batailles lorsque le commandant bulgare n'est pas \"Boril\"", "question_toks": [ "Quel", "est", "le", "nom", "et", "les", "résultats", "des", "batailles", "lorsque", "le", "commandant", "bulgare", "n'", "est", "pas", "\"", "Boril", "\"" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"Boril\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT DISTINCT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'", "query_toks": [ "SELECT", "DISTINCT", "T1.id", ",", "T1.name", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.id", "=", "T2.lost_in_battle", "WHERE", "T2.ship_type", "=", "'Brig", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "id", ",", "t1", ".", "name", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "ship_type", "=", "value" ], "question": "Quels sont les différents identifiants et noms des batailles qui ont perdu des navires de type «Brig»?", "question_toks": [ "Quels", "sont", "les", "différents", "identifiants", "et", "noms", "des", "batailles", "qui", "ont", "perdu", "des", "navires", "de", "type", "«", "Brig", "»", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Brig\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.id", "=", "T2.lost_in_battle", "JOIN", "death", "AS", "T3", "ON", "T2.id", "=", "T3.caused_by_ship_id", "GROUP", "BY", "T1.id", "HAVING", "sum", "(", "T3.killed", ")", ">", "10" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "join", "death", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "caused_by_ship_id", "group", "by", "t1", ".", "id", "having", "sum", "(", "t3", ".", "killed", ")", ">", "value" ], "question": "Quels sont les identifiants et les noms des batailles qui ont conduit à plus de 10 personnes tuées au total.", "question_toks": [ "Quels", "sont", "les", "identifiants", "et", "les", "noms", "des", "batailles", "qui", "ont", "conduit", "à", "plus", "de", "10", "personnes", "tuées", "au", "total", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 14, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 4, 17, false ], null ], 10.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT T2.id , T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.id", ",", "T2.name", "FROM", "death", "AS", "T1", "JOIN", "ship", "AS", "t2", "ON", "T1.caused_by_ship_id", "=", "T2.id", "GROUP", "BY", "T2.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "id", ",", "t2", ".", "name", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id", "group", "by", "t2", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est l'identifiant de navire et le nom qui a provoqué la plupart des blessures totales?", "question_toks": [ "Quel", "est", "l'", "identifiant", "de", "navire", "et", "le", "nom", "qui", "a", "provoqué", "la", "plupart", "des", "blessures", "totales", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'", "query_toks": [ "SELECT", "name", "FROM", "battle", "WHERE", "bulgarian_commander", "=", "'Kaloyan", "'", "AND", "latin_commander", "=", "'Baldwin", "I", "'" ], "query_toks_no_value": [ "select", "name", "from", "battle", "where", "bulgarian_commander", "=", "value", "and", "latin_commander", "=", "value" ], "question": "Quels sont les noms de bataille distincts qui sont entre le commandant bulgare 'Kaloyan' et le commandant latin 'Baldwin I'?", "question_toks": [ "Quels", "sont", "les", "noms", "de", "bataille", "distincts", "qui", "sont", "entre", "le", "commandant", "bulgare", "'", "Kaloyan", "'", "et", "le", "commandant", "latin", "'", "Baldwin", "I", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Kaloyan\"", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Baldwin I\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT count(DISTINCT RESULT) FROM battle", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "RESULT", ")", "FROM", "battle" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "result", ")", "from", "battle" ], "question": "Combien de résultats différents sont là pour les batailles?", "question_toks": [ "Combien", "de", "résultats", "différents", "sont", "là", "pour", "les", "batailles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage = '225' );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "battle", "WHERE", "id", "NOT", "IN", "(", "SELECT", "lost_in_battle", "FROM", "ship", "WHERE", "tonnage", "=", "'225", "'", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "battle", "where", "id", "not", "in", "(", "select", "lost_in_battle", "from", "ship", "where", "tonnage", "=", "value", ")" ], "question": "Combien de batailles n'a perdu aucun navire avec Tonnage '225'?", "question_toks": [ "Combien", "de", "batailles", "n'", "a", "perdu", "aucun", "navire", "avec", "Tonnage", "'", "225", "'", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"225\"", null ] ], "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": "battle_death", "query": "SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'", "query_toks": [ "SELECT", "T1.name", ",", "T1.date", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.id", "=", "T2.lost_in_battle", "WHERE", "T2.name", "=", "'Lettice", "'", "INTERSECT", "SELECT", "T1.name", ",", "T1.date", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.id", "=", "T2.lost_in_battle", "WHERE", "T2.name", "=", "'HMS", "Atalanta", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "date", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "date", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "name", "=", "value" ], "question": "Énumérez le nom et la date de la bataille qui a perdu le navire nommé 'Levetice' et le navire nommé 'HMS Atalanta'", "question_toks": [ "Énumérez", "le", "nom", "et", "la", "date", "de", "la", "bataille", "qui", "a", "perdu", "le", "navire", "nommé", "'", "Levetice", "'", "et", "le", "navire", "nommé", "'", "HMS", "Atalanta", "'" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Lettice\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"HMS Atalanta\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "battle_death", "query": "SELECT name , RESULT , bulgarian_commander FROM battle EXCEPT SELECT T1.name , T1.result , T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'", "query_toks": [ "SELECT", "name", ",", "RESULT", ",", "bulgarian_commander", "FROM", "battle", "EXCEPT", "SELECT", "T1.name", ",", "T1.result", ",", "T1.bulgarian_commander", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.id", "=", "T2.lost_in_battle", "WHERE", "T2.location", "=", "'English", "Channel", "'" ], "query_toks_no_value": [ "select", "name", ",", "result", ",", "bulgarian_commander", "from", "battle", "except", "select", "t1", ".", "name", ",", "t1", ".", "result", ",", "t1", ".", "bulgarian_commander", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "location", "=", "value" ], "question": "Montrer des noms, des résultats et des commandants bulgares des batailles sans navires perdus dans la \"Manche\".", "question_toks": [ "Montrer", "des", "noms", ",", "des", "résultats", "et", "des", "commandants", "bulgares", "des", "batailles", "sans", "navires", "perdus", "dans", "la", "\"", "Manche", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"English Channel\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "battle_death", "query": "SELECT note FROM death WHERE note LIKE '%East%'", "query_toks": [ "SELECT", "note", "FROM", "death", "WHERE", "note", "LIKE", "'", "%", "East", "%", "'" ], "query_toks_no_value": [ "select", "note", "from", "death", "where", "note", "like", "value" ], "question": "Quelles sont les notes des événements de mort qui ont des sous-chaînes «Est»?", "question_toks": [ "Quelles", "sont", "les", "notes", "des", "événements", "de", "mort", "qui", "ont", "des", "sous-chaînes", "«", "Est", "»", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 16, false ], null ], "\"%East%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT line_1 , line_2 FROM addresses", "query_toks": [ "SELECT", "line_1", ",", "line_2", "FROM", "addresses" ], "query_toks_no_value": [ "select", "line_1", ",", "line_2", "from", "addresses" ], "question": "Quelles sont toutes les adresses, y compris la ligne 1 et la ligne 2?", "question_toks": [ "Quelles", "sont", "toutes", "les", "adresses", ",", "y", "compris", "la", "ligne", "1", "et", "la", "ligne", "2", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT line_1 , line_2 FROM addresses", "query_toks": [ "SELECT", "line_1", ",", "line_2", "FROM", "addresses" ], "query_toks_no_value": [ "select", "line_1", ",", "line_2", "from", "addresses" ], "question": "Quelle est la première et la deuxième ligne de toutes les adresses?", "question_toks": [ "Quelle", "est", "la", "première", "et", "la", "deuxième", "ligne", "de", "toutes", "les", "adresses", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) FROM Courses", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Courses" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "courses" ], "question": "Combien de cours au total sont énumérés?", "question_toks": [ "Combien", "de", "cours", "au", "total", "sont", "énumérés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) FROM Courses", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Courses" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "courses" ], "question": "Combien y a-t-il de cours?", "question_toks": [ "Combien", "y", "a", "-t", "-il", "de", "cours", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT course_description FROM Courses WHERE course_name = 'math'", "query_toks": [ "SELECT", "course_description", "FROM", "Courses", "WHERE", "course_name", "=", "'math", "'" ], "query_toks_no_value": [ "select", "course_description", "from", "courses", "where", "course_name", "=", "value" ], "question": "Comment le cours de maths est-il décrit?", "question_toks": [ "Comment", "le", "cours", "de", "maths", "est", "-il", "décrit", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"math\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT course_description FROM Courses WHERE course_name = 'math'", "query_toks": [ "SELECT", "course_description", "FROM", "Courses", "WHERE", "course_name", "=", "'math", "'" ], "query_toks_no_value": [ "select", "course_description", "from", "courses", "where", "course_name", "=", "value" ], "question": "Quelles sont les descriptions de tous les cours de mathématiques?", "question_toks": [ "Quelles", "sont", "les", "descriptions", "de", "tous", "les", "cours", "de", "mathématiques", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"math\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", "query_toks": [ "SELECT", "zip_postcode", "FROM", "Addresses", "WHERE", "city", "=", "'Port", "Chelsea", "'" ], "query_toks_no_value": [ "select", "zip_postcode", "from", "addresses", "where", "city", "=", "value" ], "question": "Quel est le code postal de l'adresse dans le port de ville chelsea?", "question_toks": [ "Quel", "est", "le", "code", "postal", "de", "l'", "adresse", "dans", "le", "port", "de", "ville", "chelsea", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Port Chelsea\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", "query_toks": [ "SELECT", "zip_postcode", "FROM", "Addresses", "WHERE", "city", "=", "'Port", "Chelsea", "'" ], "query_toks_no_value": [ "select", "zip_postcode", "from", "addresses", "where", "city", "=", "value" ], "question": "Quel est le code postal pour le port chelsea?", "question_toks": [ "Quel", "est", "le", "code", "postal", "pour", "le", "port", "chelsea", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Port Chelsea\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T2.department_name , T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.department_name", ",", "T1.department_id", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "GROUP", "BY", "T1.department_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "department_name", ",", "t1", ".", "department_id", "from", "degree_programs", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "t1", ".", "department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel département offre le plus grand nombre de degrés? Nom du département et ID de liste.", "question_toks": [ "Quel", "département", "offre", "le", "plus", "grand", "nombre", "de", "degrés", "?", "Nom", "du", "département", "et", "ID", "de", "liste", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 14, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "select t2.department_name , t1.department_id from degree_programs as t1 join departments as t2 on t1.department_id = t2.department_id group by t1.department_id order by count(*) desc limit 1", "query_toks": [ "select", "t2.department_name", ",", "t1.department_id", "from", "degree_programs", "as", "t1", "join", "departments", "as", "t2", "on", "t1.department_id", "=", "t2.department_id", "group", "by", "t1.department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1" ], "query_toks_no_value": [ "select", "t2", ".", "department_name", ",", "t1", ".", "department_id", "from", "degree_programs", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "t1", ".", "department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom et l'identifiant du département avec le plus grand nombre de degrés?", "question_toks": [ "Quel", "est", "le", "nom", "et", "l'", "identifiant", "du", "département", "avec", "le", "plus", "grand", "nombre", "de", "degrés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 14, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(DISTINCT department_id) FROM Degree_Programs", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "department_id", ")", "FROM", "Degree_Programs" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "department_id", ")", "from", "degree_programs" ], "question": "Combien de départements offrent une certaine mesure?", "question_toks": [ "Combien", "de", "départements", "offrent", "une", "certaine", "mesure", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 19, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(DISTINCT department_id) FROM Degree_Programs", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "department_id", ")", "FROM", "Degree_Programs" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "department_id", ")", "from", "degree_programs" ], "question": "Combien de ministères différents offrent des diplômes?", "question_toks": [ "Combien", "de", "ministères", "différents", "offrent", "des", "diplômes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 19, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs" ], "question": "Combien de noms de degré différents sont proposés?", "question_toks": [ "Combien", "de", "noms", "de", "degré", "différents", "sont", "proposés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 20, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs" ], "question": "Combien de degrés différents sont proposés?", "question_toks": [ "Combien", "de", "degrés", "différents", "sont", "proposés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 20, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Departments", "AS", "T1", "JOIN", "Degree_Programs", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T1.department_name", "=", "'engineer", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "departments", "as", "t1", "join", "degree_programs", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t1", ".", "department_name", "=", "value" ], "question": "Combien de diplômes le service d'ingénierie propose-t-il?", "question_toks": [ "Combien", "de", "diplômes", "le", "service", "d'", "ingénierie", "propose", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 19, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"engineer\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Departments", "AS", "T1", "JOIN", "Degree_Programs", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T1.department_name", "=", "'engineer", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "departments", "as", "t1", "join", "degree_programs", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t1", ".", "department_name", "=", "value" ], "question": "Combien de diplômes le département d'ingénierie a-t-il?", "question_toks": [ "Combien", "de", "diplômes", "le", "département", "d'", "ingénierie", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 19, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"engineer\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT section_name , section_description FROM Sections", "query_toks": [ "SELECT", "section_name", ",", "section_description", "FROM", "Sections" ], "query_toks_no_value": [ "select", "section_name", ",", "section_description", "from", "sections" ], "question": "Quels sont les noms et les descriptions de toutes les sections?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "les", "descriptions", "de", "toutes", "les", "sections", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT section_name , section_description FROM Sections", "query_toks": [ "SELECT", "section_name", ",", "section_description", "FROM", "Sections" ], "query_toks_no_value": [ "select", "section_name", ",", "section_description", "from", "sections" ], "question": "Quels sont les noms et les descriptions de toutes les sections?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "les", "descriptions", "de", "toutes", "les", "sections", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2", "query_toks": [ "SELECT", "T1.course_name", ",", "T1.course_id", "FROM", "Courses", "AS", "T1", "JOIN", "Sections", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_id", "HAVING", "count", "(", "*", ")", "<", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", ",", "t1", ".", "course_id", "from", "courses", "as", "t1", "join", "sections", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_id", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "Quels sont les noms et identifiant des cours ayant au plus 2 sections?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "identifiant", "des", "cours", "ayant", "au", "plus", "2", "sections", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 24, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2", "query_toks": [ "SELECT", "T1.course_name", ",", "T1.course_id", "FROM", "Courses", "AS", "T1", "JOIN", "Sections", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_id", "HAVING", "count", "(", "*", ")", "<", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", ",", "t1", ".", "course_id", "from", "courses", "as", "t1", "join", "sections", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_id", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "Quels sont les noms et les identifiants de chaque cours avec moins de 2 sections?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "les", "identifiants", "de", "chaque", "cours", "avec", "moins", "de", "2", "sections", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 24, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT section_name FROM Sections ORDER BY section_name DESC", "query_toks": [ "SELECT", "section_name", "FROM", "Sections", "ORDER", "BY", "section_name", "DESC" ], "query_toks_no_value": [ "select", "section_name", "from", "sections", "order", "by", "section_name", "desc" ], "question": "Énumérez la section_Name dans l'ordre lexicographique inversé.", "question_toks": [ "Énumérez", "la", "section_Name", "dans", "l'", "ordre", "lexicographique", "inversé", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 25, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT section_name FROM Sections ORDER BY section_name DESC", "query_toks": [ "SELECT", "section_name", "FROM", "Sections", "ORDER", "BY", "section_name", "DESC" ], "query_toks_no_value": [ "select", "section_name", "from", "sections", "order", "by", "section_name", "desc" ], "question": "Quels sont les noms des sections dans l'ordre alphabétique inversé?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "sections", "dans", "l'", "ordre", "alphabétique", "inversé", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 25, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.semester_name", ",", "T1.semester_id", "FROM", "Semesters", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.semester_id", "=", "T2.semester_id", "GROUP", "BY", "T1.semester_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "semester_name", ",", "t1", ".", "semester_id", "from", "semesters", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "semester_id", "=", "t2", ".", "semester_id", "group", "by", "t1", ".", "semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le semestre que la plupart des étudiants enregistrés? Montrer à la fois le nom et l'identifiant.", "question_toks": [ "Quel", "est", "le", "semestre", "que", "la", "plupart", "des", "étudiants", "enregistrés", "?", "Montrer", "à", "la", "fois", "le", "nom", "et", "l'", "identifiant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 46, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 28, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.semester_name", ",", "T1.semester_id", "FROM", "Semesters", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.semester_id", "=", "T2.semester_id", "GROUP", "BY", "T1.semester_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "semester_name", ",", "t1", ".", "semester_id", "from", "semesters", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "semester_id", "=", "t2", ".", "semester_id", "group", "by", "t1", ".", "semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Pour chaque semestre, quel est le nom et l'identifiant de celui avec la plupart des étudiants enregistrés?", "question_toks": [ "Pour", "chaque", "semestre", ",", "quel", "est", "le", "nom", "et", "l'", "identifiant", "de", "celui", "avec", "la", "plupart", "des", "étudiants", "enregistrés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 46, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 28, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", "query_toks": [ "SELECT", "department_description", "FROM", "Departments", "WHERE", "department_name", "LIKE", "'", "%", "computer", "%", "'" ], "query_toks_no_value": [ "select", "department_description", "from", "departments", "where", "department_name", "like", "value" ], "question": "Quelle est la description du département dont le nom a la sous-chaîne de l'ordinateur?", "question_toks": [ "Quelle", "est", "la", "description", "du", "département", "dont", "le", "nom", "a", "la", "sous-chaîne", "de", "l'", "ordinateur", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%computer%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", "query_toks": [ "SELECT", "department_description", "FROM", "Departments", "WHERE", "department_name", "LIKE", "'", "%", "computer", "%", "'" ], "query_toks_no_value": [ "select", "department_description", "from", "departments", "where", "department_name", "like", "value" ], "question": "Quelle est la description du département pour celui dont le nom a le mot ordinateur?", "question_toks": [ "Quelle", "est", "la", "description", "du", "département", "pour", "celui", "dont", "le", "nom", "a", "le", "mot", "ordinateur", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%computer%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", ",", "T1.student_id", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", ",", "t1", ".", "student_id", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "Qui sont inscrits dans des programmes de 2 degrés dans un semestre? Énumérez le prénom, le deuxième prénom et le nom de famille et l'ID.", "question_toks": [ "Qui", "sont", "inscrits", "dans", "des", "programmes", "de", "2", "degrés", "dans", "un", "semestre", "?", "Énumérez", "le", "prénom", ",", "le", "deuxième", "prénom", "et", "le", "nom", "de", "famille", "et", "l'", "ID", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 32, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", ",", "T1.student_id", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", ",", "t1", ".", "student_id", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "Quels sont les prénoms du premier, du milieu et de la famille, ainsi que des ID, de tous les étudiants inscrits dans des programmes de 2 degrés dans un semestre?", "question_toks": [ "Quels", "sont", "les", "prénoms", "du", "premier", ",", "du", "milieu", "et", "de", "la", "famille", ",", "ainsi", "que", "des", "ID", ",", "de", "tous", "les", "étudiants", "inscrits", "dans", "des", "programmes", "de", "2", "degrés", "dans", "un", "semestre", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 32, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "JOIN", "Degree_Programs", "AS", "T3", "ON", "T2.degree_program_id", "=", "T3.degree_program_id", "WHERE", "T3.degree_summary_name", "=", "'Bachelor", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "join", "degree_programs", "as", "t3", "on", "t2", ".", "degree_program_id", "=", "t3", ".", "degree_program_id", "where", "t3", ".", "degree_summary_name", "=", "value" ], "question": "Qui est inscrit dans un programme de baccalauréat? Énumérez le prénom, le deuxième prénom, le nom de famille.", "question_toks": [ "Qui", "est", "inscrit", "dans", "un", "programme", "de", "baccalauréat", "?", "Énumérez", "le", "prénom", ",", "le", "deuxième", "prénom", ",", "le", "nom", "de", "famille", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ], "and", [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 18, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Bachelor\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "JOIN", "Degree_Programs", "AS", "T3", "ON", "T2.degree_program_id", "=", "T3.degree_program_id", "WHERE", "T3.degree_summary_name", "=", "'Bachelor", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "join", "degree_programs", "as", "t3", "on", "t2", ".", "degree_program_id", "=", "t3", ".", "degree_program_id", "where", "t3", ".", "degree_summary_name", "=", "value" ], "question": "Quels sont les noms de premier, milieu et de famille pour tout le monde inscrit dans un programme de baccalauréats?", "question_toks": [ "Quels", "sont", "les", "noms", "de", "premier", ",", "milieu", "et", "de", "famille", "pour", "tout", "le", "monde", "inscrit", "dans", "un", "programme", "de", "baccalauréats", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ], "and", [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 18, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Bachelor\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.degree_summary_name", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "GROUP", "BY", "T1.degree_summary_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "degree_summary_name", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "group", "by", "t1", ".", "degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Trouvez le type de programme que la plupart des élèves sont inscrits?", "question_toks": [ "Trouvez", "le", "type", "de", "programme", "que", "la", "plupart", "des", "élèves", "sont", "inscrits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 20, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.degree_summary_name", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "GROUP", "BY", "T1.degree_summary_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "degree_summary_name", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "group", "by", "t1", ".", "degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom de degré de synthèse qui a le plus grand nombre d'étudiants inscrits?", "question_toks": [ "Quel", "est", "le", "nom", "de", "degré", "de", "synthèse", "qui", "a", "le", "plus", "grand", "nombre", "d'", "étudiants", "inscrits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 20, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.degree_program_id", ",", "T1.degree_summary_name", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "GROUP", "BY", "T1.degree_program_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "degree_program_id", ",", "t1", ".", "degree_summary_name", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "group", "by", "t1", ".", "degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Trouvez le programme que la plupart des étudiants sont inscrits. Répertoriez à la fois l'ID et le résumé.", "question_toks": [ "Trouvez", "le", "programme", "que", "la", "plupart", "des", "étudiants", "sont", "inscrits", ".", "Répertoriez", "à", "la", "fois", "l'", "ID", "et", "le", "résumé", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 18, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.degree_program_id", ",", "T1.degree_summary_name", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "GROUP", "BY", "T1.degree_program_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "degree_program_id", ",", "t1", ".", "degree_summary_name", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "group", "by", "t1", ".", "degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est l'ID de programme et le résumé de la degré qui a la plupart des étudiants inscrits?", "question_toks": [ "Quel", "est", "l'", "ID", "de", "programme", "et", "le", "résumé", "de", "la", "degré", "qui", "a", "la", "plupart", "des", "étudiants", "inscrits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 18, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", ",", "count", "(", "*", ")", ",", "T1.student_id", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", ",", "count", "(", "*", ")", ",", "t1", ".", "student_id", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel étudiant s'est-il inscrit pour le plus grand nombre de programmes? Répertoriez l'ID, le prénom, le deuxième prénom, le nom de famille, le nombre d'inscriptions et ID d'étudiant.", "question_toks": [ "Quel", "étudiant", "s'", "est", "-il", "inscrit", "pour", "le", "plus", "grand", "nombre", "de", "programmes", "?", "Répertoriez", "l'", "ID", ",", "le", "prénom", ",", "le", "deuxième", "prénom", ",", "le", "nom", "de", "famille", ",", "le", "nombre", "d'", "inscriptions", "et", "ID", "d'", "étudiant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 32, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", ",", "count", "(", "*", ")", ",", "T1.student_id", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", ",", "count", "(", "*", ")", ",", "t1", ".", "student_id", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le premier, milieu et nom de famille, ainsi que l'ID et le nombre d'inscriptions, pour l'étudiant qui a le plus inscrit le plus dans n'importe quel programme?", "question_toks": [ "Quel", "est", "le", "premier", ",", "milieu", "et", "nom", "de", "famille", ",", "ainsi", "que", "l'", "ID", "et", "le", "nombre", "d'", "inscriptions", ",", "pour", "l'", "étudiant", "qui", "a", "le", "plus", "inscrit", "le", "plus", "dans", "n'", "importe", "quel", "programme", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 32, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )", "query_toks": [ "SELECT", "semester_name", "FROM", "Semesters", "WHERE", "semester_id", "NOT", "IN", "(", "SELECT", "semester_id", "FROM", "Student_Enrolment", ")" ], "query_toks_no_value": [ "select", "semester_name", "from", "semesters", "where", "semester_id", "not", "in", "(", "select", "semester_id", "from", "student_enrolment", ")" ], "question": "Quels semestres n'ont pas d'étudiant inscrit? Énumérez le nom du semestre.", "question_toks": [ "Quels", "semestres", "n'", "ont", "pas", "d'", "étudiant", "inscrit", "?", "Énumérez", "le", "nom", "du", "semestre", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 28, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 46, 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": "student_transcripts_tracking", "query": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )", "query_toks": [ "SELECT", "semester_name", "FROM", "Semesters", "WHERE", "semester_id", "NOT", "IN", "(", "SELECT", "semester_id", "FROM", "Student_Enrolment", ")" ], "query_toks_no_value": [ "select", "semester_name", "from", "semesters", "where", "semester_id", "not", "in", "(", "select", "semester_id", "from", "student_enrolment", ")" ], "question": "Quel est le nom du semestre sans étudiants inscrits?", "question_toks": [ "Quel", "est", "le", "nom", "du", "semestre", "sans", "étudiants", "inscrits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 28, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 46, 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": "student_transcripts_tracking", "query": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", "query_toks": [ "SELECT", "DISTINCT", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Enrolment_Courses", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_enrolment_courses", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id" ], "question": "Quels sont tous les noms de cours des cours qui ont déjà été inscrits?", "question_toks": [ "Quels", "sont", "tous", "les", "noms", "de", "cours", "des", "cours", "qui", "ont", "déjà", "été", "inscrits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 50, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", "query_toks": [ "SELECT", "DISTINCT", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Enrolment_Courses", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_enrolment_courses", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id" ], "question": "Quels sont les noms de tous les cours qui ont des étudiants inscrits?", "question_toks": [ "Quels", "sont", "les", "noms", "de", "tous", "les", "cours", "qui", "ont", "des", "étudiants", "inscrits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 50, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Enrolment_Courses", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_enrolment_courses", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom du cours avec la plupart des inscriptions?", "question_toks": [ "Quel", "est", "le", "nom", "du", "cours", "avec", "la", "plupart", "des", "inscriptions", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 50, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 11, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Enrolment_Courses", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_enrolment_courses", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom du cours avec la plupart des étudiants inscrits?", "question_toks": [ "Quel", "est", "le", "nom", "du", "cours", "avec", "la", "plupart", "des", "étudiants", "inscrits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 50, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 11, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id", "query_toks": [ "SELECT", "T1.last_name", "FROM", "Students", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.current_address_id", "=", "T2.address_id", "WHERE", "T2.state_province_county", "=", "'NorthCarolina", "'", "EXCEPT", "SELECT", "DISTINCT", "T3.last_name", "FROM", "Students", "AS", "T3", "JOIN", "Student_Enrolment", "AS", "T4", "ON", "T3.student_id", "=", "T4.student_id" ], "query_toks_no_value": [ "select", "t1", ".", "last_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "current_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "state_province_county", "=", "value", "except", "select", "distinct", "t3", ".", "last_name", "from", "students", "as", "t3", "join", "student_enrolment", "as", "t4", "on", "t3", ".", "student_id", "=", "t4", ".", "student_id" ], "question": "Trouvez le nom de famille des étudiants qui vivent actuellement dans l'État de Caroline du Nord mais ne sont pas inscrits dans un programme de diplôme.", "question_toks": [ "Trouvez", "le", "nom", "de", "famille", "des", "étudiants", "qui", "vivent", "actuellement", "dans", "l'", "État", "de", "Caroline", "du", "Nord", "mais", "ne", "sont", "pas", "inscrits", "dans", "un", "programme", "de", "diplôme", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"NorthCarolina\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id", "query_toks": [ "SELECT", "T1.last_name", "FROM", "Students", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.current_address_id", "=", "T2.address_id", "WHERE", "T2.state_province_county", "=", "'NorthCarolina", "'", "EXCEPT", "SELECT", "DISTINCT", "T3.last_name", "FROM", "Students", "AS", "T3", "JOIN", "Student_Enrolment", "AS", "T4", "ON", "T3.student_id", "=", "T4.student_id" ], "query_toks_no_value": [ "select", "t1", ".", "last_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "current_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "state_province_county", "=", "value", "except", "select", "distinct", "t3", ".", "last_name", "from", "students", "as", "t3", "join", "student_enrolment", "as", "t4", "on", "t3", ".", "student_id", "=", "t4", ".", "student_id" ], "question": "Quel est le nom de famille des étudiants qui vivent en Caroline du Nord mais ne sont pas inscrits dans des programmes de diplôme?", "question_toks": [ "Quel", "est", "le", "nom", "de", "famille", "des", "étudiants", "qui", "vivent", "en", "Caroline", "du", "Nord", "mais", "ne", "sont", "pas", "inscrits", "dans", "des", "programmes", "de", "diplôme", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"NorthCarolina\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.transcript_date", ",", "T1.transcript_id", "FROM", "Transcript_Contents", "AS", "T1", "JOIN", "Transcripts", "AS", "T2", "ON", "T1.transcript_id", "=", "T2.transcript_id", "GROUP", "BY", "T1.transcript_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "transcript_date", ",", "t1", ".", "transcript_id", "from", "transcript_contents", "as", "t1", "join", "transcripts", "as", "t2", "on", "t1", ".", "transcript_id", "=", "t2", ".", "transcript_id", "group", "by", "t1", ".", "transcript_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Montrez la date et l'ID de la transcription avec au moins deux résultats du parcours.", "question_toks": [ "Montrez", "la", "date", "et", "l'", "ID", "de", "la", "transcription", "avec", "au", "moins", "deux", "résultats", "du", "parcours", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 10 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 52, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ], [ 0, [ 0, [ 0, 56, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 56, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.transcript_date", ",", "T1.transcript_id", "FROM", "Transcript_Contents", "AS", "T1", "JOIN", "Transcripts", "AS", "T2", "ON", "T1.transcript_id", "=", "T2.transcript_id", "GROUP", "BY", "T1.transcript_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "transcript_date", ",", "t1", ".", "transcript_id", "from", "transcript_contents", "as", "t1", "join", "transcripts", "as", "t2", "on", "t1", ".", "transcript_id", "=", "t2", ".", "transcript_id", "group", "by", "t1", ".", "transcript_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quelle est la date et l'identifiant de la transcription avec au moins 2 cours répertoriés?", "question_toks": [ "Quelle", "est", "la", "date", "et", "l'", "identifiant", "de", "la", "transcription", "avec", "au", "moins", "2", "cours", "répertoriés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 10 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 52, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ], [ 0, [ 0, [ 0, 56, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 56, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'", "query_toks": [ "SELECT", "cell_mobile_number", "FROM", "Students", "WHERE", "first_name", "=", "'Timmothy", "'", "AND", "last_name", "=", "'Ward", "'" ], "query_toks_no_value": [ "select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "Quel est le numéro de téléphone de l'homme avec le prénom Timmothy et le nom de famille Ward?", "question_toks": [ "Quel", "est", "le", "numéro", "de", "téléphone", "de", "l'", "homme", "avec", "le", "prénom", "Timmothy", "et", "le", "nom", "de", "famille", "Ward", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Timmothy\"", null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Ward\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'", "query_toks": [ "select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "\"timmothy\"", "and", "last_name", "=", "\"ward\"" ], "query_toks_no_value": [ "select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "Quel est le numéro de téléphone mobile de l'étudiant nommé Timmothy Ward?", "question_toks": [ "Quel", "est", "le", "numéro", "de", "téléphone", "mobile", "de", "l'", "étudiant", "nommé", "Timmothy", "Ward", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"timmothy\"", null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], "\"ward\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Students", "ORDER", "BY", "date_first_registered", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "middle_name", ",", "last_name", "from", "students", "order", "by", "date_first_registered", "asc", "limit", "value" ], "question": "Qui est le premier étudiant à s'inscrire? Énumérez le prénom, le deuxième prénom et le nom de famille.", "question_toks": [ "Qui", "est", "le", "premier", "étudiant", "à", "s'", "inscrire", "?", "Énumérez", "le", "prénom", ",", "le", "deuxième", "prénom", "et", "le", "nom", "de", "famille", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 41, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Students", "ORDER", "BY", "date_first_registered", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "middle_name", ",", "last_name", "from", "students", "order", "by", "date_first_registered", "asc", "limit", "value" ], "question": "Quel est le premier, le milieu et le nom de famille du premier élève à s'inscrire?", "question_toks": [ "Quel", "est", "le", "premier", ",", "le", "milieu", "et", "le", "nom", "de", "famille", "du", "premier", "élève", "à", "s'", "inscrire", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 41, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Students", "ORDER", "BY", "date_left", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "middle_name", ",", "last_name", "from", "students", "order", "by", "date_left", "asc", "limit", "value" ], "question": "Qui est le premier diplôme de scolarité? Énumérez le prénom, le deuxième prénom et le nom de famille.", "question_toks": [ "Qui", "est", "le", "premier", "diplôme", "de", "scolarité", "?", "Énumérez", "le", "prénom", ",", "le", "deuxième", "prénom", "et", "le", "nom", "de", "famille", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 42, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Students", "ORDER", "BY", "date_left", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "middle_name", ",", "last_name", "from", "students", "order", "by", "date_left", "asc", "limit", "value" ], "question": "Quel est le premier, le deuxième milieu et le nom de famille du plus ancien diplômé de l'école?", "question_toks": [ "Quel", "est", "le", "premier", ",", "le", "deuxième", "milieu", "et", "le", "nom", "de", "famille", "du", "plus", "ancien", "diplômé", "de", "l'", "école", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 42, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", "query_toks": [ "SELECT", "first_name", "FROM", "Students", "WHERE", "current_address_id", "!", "=", "permanent_address_id" ], "query_toks_no_value": [ "select", "first_name", "from", "students", "where", "current_address_id", "!", "=", "permanent_address_id" ], "question": "Dont l'adresse permanente est-elle différente de son adresse actuelle? Énumérez son prénom.", "question_toks": [ "Dont", "l'", "adresse", "permanente", "est-elle", "différente", "de", "son", "adresse", "actuelle", "?", "Énumérez", "son", "prénom", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 33, false ], null ], [ 0, 34, false ], null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", "query_toks": [ "SELECT", "first_name", "FROM", "Students", "WHERE", "current_address_id", "!", "=", "permanent_address_id" ], "query_toks_no_value": [ "select", "first_name", "from", "students", "where", "current_address_id", "!", "=", "permanent_address_id" ], "question": "Quel est le prénom de l'étudiant dont l'adresse permanente est différente de son actuel?", "question_toks": [ "Quel", "est", "le", "prénom", "de", "l'", "étudiant", "dont", "l'", "adresse", "permanente", "est", "différente", "de", "son", "actuel", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 33, false ], null ], [ 0, 34, false ], null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.address_id", ",", "T1.line_1", ",", "T1.line_2", "FROM", "Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.address_id", "=", "T2.current_address_id", "GROUP", "BY", "T1.address_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "address_id", ",", "t1", ".", "line_1", ",", "t1", ".", "line_2", "from", "addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "current_address_id", "group", "by", "t1", ".", "address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle adresse contient le plus grand nombre d'étudiants actuellement? Répertoriez l'ID d'adresse et toutes les lignes.", "question_toks": [ "Quelle", "adresse", "contient", "le", "plus", "grand", "nombre", "d'", "étudiants", "actuellement", "?", "Répertoriez", "l'", "ID", "d'", "adresse", "et", "toutes", "les", "lignes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 33, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.address_id", ",", "T1.line_1", ",", "T1.line_2", "FROM", "Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.address_id", "=", "T2.current_address_id", "GROUP", "BY", "T1.address_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "address_id", ",", "t1", ".", "line_1", ",", "t1", ".", "line_2", "from", "addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "current_address_id", "group", "by", "t1", ".", "address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est l'identifiant, la ligne 1 et la ligne 2 de l'adresse avec la plupart des étudiants?", "question_toks": [ "Quel", "est", "l'", "identifiant", ",", "la", "ligne", "1", "et", "la", "ligne", "2", "de", "l'", "adresse", "avec", "la", "plupart", "des", "étudiants", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 33, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT avg(transcript_date) FROM Transcripts", "query_toks": [ "SELECT", "avg", "(", "transcript_date", ")", "FROM", "Transcripts" ], "query_toks_no_value": [ "select", "avg", "(", "transcript_date", ")", "from", "transcripts" ], "question": "En moyenne, quand les transcriptions sont-elles imprimées?", "question_toks": [ "En", "moyenne", ",", "quand", "les", "transcriptions", "sont", "-", "elles", "imprimées", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 53, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT avg(transcript_date) FROM Transcripts", "query_toks": [ "SELECT", "avg", "(", "transcript_date", ")", "FROM", "Transcripts" ], "query_toks_no_value": [ "select", "avg", "(", "transcript_date", ")", "from", "transcripts" ], "question": "Quelle est la date de transcription moyenne?", "question_toks": [ "Quelle", "est", "la", "date", "de", "transcription", "moyenne", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 53, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", "query_toks": [ "SELECT", "transcript_date", ",", "other_details", "FROM", "Transcripts", "ORDER", "BY", "transcript_date", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "transcript_date", ",", "other_details", "from", "transcripts", "order", "by", "transcript_date", "asc", "limit", "value" ], "question": "Quand est la première transcription libérée? Énumérez la date et les détails.", "question_toks": [ "Quand", "est", "la", "première", "transcription", "libérée", "?", "Énumérez", "la", "date", "et", "les", "détails", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ], [ 0, [ 0, [ 0, 54, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 53, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", "query_toks": [ "SELECT", "transcript_date", ",", "other_details", "FROM", "Transcripts", "ORDER", "BY", "transcript_date", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "transcript_date", ",", "other_details", "from", "transcripts", "order", "by", "transcript_date", "asc", "limit", "value" ], "question": "Quelle est la date la plus ancienne d'une version de transcription et quels détails pouvez-vous me dire?", "question_toks": [ "Quelle", "est", "la", "date", "la", "plus", "ancienne", "d'", "une", "version", "de", "transcription", "et", "quels", "détails", "pouvez", "-vous", "me", "dire", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ], [ 0, [ 0, [ 0, 54, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 53, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) FROM Transcripts", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Transcripts" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "transcripts" ], "question": "Combien de transcriptions sont libérées?", "question_toks": [ "Combien", "de", "transcriptions", "sont", "libérées", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) FROM Transcripts", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Transcripts" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "transcripts" ], "question": "Combien de transcriptions sont énumérées?", "question_toks": [ "Combien", "de", "transcriptions", "sont", "énumérées", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", "query_toks": [ "SELECT", "transcript_date", "FROM", "Transcripts", "ORDER", "BY", "transcript_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "transcript_date", "from", "transcripts", "order", "by", "transcript_date", "desc", "limit", "value" ], "question": "Quelle est la dernière date de sortie de la transcription?", "question_toks": [ "Quelle", "est", "la", "dernière", "date", "de", "sortie", "de", "la", "transcription", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 53, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", "query_toks": [ "SELECT", "transcript_date", "FROM", "Transcripts", "ORDER", "BY", "transcript_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "transcript_date", "from", "transcripts", "order", "by", "transcript_date", "desc", "limit", "value" ], "question": "Quand a été publié la dernière transcription?", "question_toks": [ "Quand", "a", "été", "publié", "la", "dernière", "transcription", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 53, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "student_course_id", "FROM", "Transcript_Contents", "GROUP", "BY", "student_course_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "student_course_id", "from", "transcript_contents", "group", "by", "student_course_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Combien de fois au plus un résultat de la scolarisation de cours montrent-il dans différentes transcriptions? Montrez également l'ID d'inscription du cours.", "question_toks": [ "Combien", "de", "fois", "au", "plus", "un", "résultat", "de", "la", "scolarisation", "de", "cours", "montrent", "-il", "dans", "différentes", "transcriptions", "?", "Montrez", "également", "l'", "ID", "d'", "inscription", "du", "cours", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 55, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "student_course_id", "FROM", "Transcript_Contents", "GROUP", "BY", "student_course_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "student_course_id", "from", "transcript_contents", "group", "by", "student_course_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nombre maximum de fois qu'un cours apparaît dans des transcriptions différentes et qu'est-ce que l'identifiant d'inscription du cours?", "question_toks": [ "Quel", "est", "le", "nombre", "maximum", "de", "fois", "qu'", "un", "cours", "apparaît", "dans", "des", "transcriptions", "différentes", "et", "qu'", "est", "-ce", "que", "l'", "identifiant", "d'", "inscription", "du", "cours", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 55, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T2.transcript_date", ",", "T1.transcript_id", "FROM", "Transcript_Contents", "AS", "T1", "JOIN", "Transcripts", "AS", "T2", "ON", "T1.transcript_id", "=", "T2.transcript_id", "GROUP", "BY", "T1.transcript_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "transcript_date", ",", "t1", ".", "transcript_id", "from", "transcript_contents", "as", "t1", "join", "transcripts", "as", "t2", "on", "t1", ".", "transcript_id", "=", "t2", ".", "transcript_id", "group", "by", "t1", ".", "transcript_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Montrez la date de la transcription qui indique le moins de résultats, répertoriez également l'ID.", "question_toks": [ "Montrez", "la", "date", "de", "la", "transcription", "qui", "indique", "le", "moins", "de", "résultats", ",", "répertoriez", "également", "l'", "ID", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 10 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 52, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ], [ 0, [ 0, [ 0, 56, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 56, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T2.transcript_date", ",", "T1.transcript_id", "FROM", "Transcript_Contents", "AS", "T1", "JOIN", "Transcripts", "AS", "T2", "ON", "T1.transcript_id", "=", "T2.transcript_id", "GROUP", "BY", "T1.transcript_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "transcript_date", ",", "t1", ".", "transcript_id", "from", "transcript_contents", "as", "t1", "join", "transcripts", "as", "t2", "on", "t1", ".", "transcript_id", "=", "t2", ".", "transcript_id", "group", "by", "t1", ".", "transcript_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Quelle est la date et l'identifiant de la transcription avec le moins de résultats?", "question_toks": [ "Quelle", "est", "la", "date", "et", "l'", "identifiant", "de", "la", "transcription", "avec", "le", "moins", "de", "résultats", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 10 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 52, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ], [ 0, [ 0, [ 0, 56, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 56, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'", "query_toks": [ "SELECT", "DISTINCT", "T2.semester_id", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "WHERE", "degree_summary_name", "=", "'Master", "'", "INTERSECT", "SELECT", "DISTINCT", "T2.semester_id", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "WHERE", "degree_summary_name", "=", "'Bachelor", "'" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "semester_id", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "where", "degree_summary_name", "=", "value", "intersect", "select", "distinct", "t2", ".", "semester_id", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "where", "degree_summary_name", "=", "value" ], "question": "Trouvez le semestre lorsque les étudiants maîtres et les étudiants de Bachelor se sont inscrits.", "question_toks": [ "Trouvez", "le", "semestre", "lorsque", "les", "étudiants", "maîtres", "et", "les", "étudiants", "de", "Bachelor", "se", "sont", "inscrits", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Master\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Bachelor\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'", "query_toks": [ "SELECT", "DISTINCT", "T2.semester_id", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "WHERE", "degree_summary_name", "=", "'Master", "'", "INTERSECT", "SELECT", "DISTINCT", "T2.semester_id", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "WHERE", "degree_summary_name", "=", "'Bachelor", "'" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "semester_id", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "where", "degree_summary_name", "=", "value", "intersect", "select", "distinct", "t2", ".", "semester_id", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "where", "degree_summary_name", "=", "value" ], "question": "Quel est l'identifiant du semestre qui avait des étudiants à la fois maîtres et bachelors inscrits?", "question_toks": [ "Quel", "est", "l'", "identifiant", "du", "semestre", "qui", "avait", "des", "étudiants", "à", "la", "fois", "maîtres", "et", "bachelors", "inscrits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Master\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Bachelor\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(DISTINCT current_address_id) FROM Students", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "current_address_id", ")", "FROM", "Students" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "current_address_id", ")", "from", "students" ], "question": "Combien d'adresses différentes vivent les étudiants?", "question_toks": [ "Combien", "d'", "adresses", "différentes", "vivent", "les", "étudiants", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 33, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(DISTINCT current_address_id) FROM Students", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "current_address_id", ")", "FROM", "Students" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "current_address_id", ")", "from", "students" ], "question": "Quelles sont les différentes adresses que les élèves vivent là-bas?", "question_toks": [ "Quelles", "sont", "les", "différentes", "adresses", "que", "les", "élèves", "vivent", "là", "-", "bas", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 33, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", "query_toks": [ "SELECT", "other_student_details", "FROM", "Students", "ORDER", "BY", "other_student_details", "DESC" ], "query_toks_no_value": [ "select", "other_student_details", "from", "students", "order", "by", "other_student_details", "desc" ], "question": "Énumérez tous les détails de l'étudiant dans l'ordre lexicographique inversé.", "question_toks": [ "Énumérez", "tous", "les", "détails", "de", "l'", "étudiant", "dans", "l'", "ordre", "lexicographique", "inversé", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 43, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", "query_toks": [ "SELECT", "other_student_details", "FROM", "Students", "ORDER", "BY", "other_student_details", "DESC" ], "query_toks_no_value": [ "select", "other_student_details", "from", "students", "order", "by", "other_student_details", "desc" ], "question": "Quels autres détails pouvez-vous me dire des étudiants en ordre alphabétique inversé?", "question_toks": [ "Quels", "autres", "détails", "pouvez", "-vous", "me", "dire", "des", "étudiants", "en", "ordre", "alphabétique", "inversé", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 43, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT section_description FROM Sections WHERE section_name = 'h'", "query_toks": [ "SELECT", "section_description", "FROM", "Sections", "WHERE", "section_name", "=", "'h", "'" ], "query_toks_no_value": [ "select", "section_description", "from", "sections", "where", "section_name", "=", "value" ], "question": "Décrivez la section H.", "question_toks": [ "Décrivez", "la", "section", "H." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"h\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "SELECT section_description FROM Sections WHERE section_name = 'h'", "query_toks": [ "SELECT", "section_description", "FROM", "Sections", "WHERE", "section_name", "=", "'h", "'" ], "query_toks_no_value": [ "select", "section_description", "from", "sections", "where", "section_name", "=", "value" ], "question": "Quelle est la description de la section nommée H?", "question_toks": [ "Quelle", "est", "la", "description", "de", "la", "section", "nommée", "H", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"h\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'", "query_toks": [ "select", "t1.first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1.permanent_address_id", "=", "t2.address_id", "where", "t2.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\"" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "value", "or", "t1", ".", "cell_mobile_number", "=", "value" ], "question": "Trouvez le prénom des étudiants qui vivent en permanence dans le pays Haïti ou du numéro de téléphone cellulaire 09700166582.", "question_toks": [ "Trouvez", "le", "prénom", "des", "étudiants", "qui", "vivent", "en", "permanence", "dans", "le", "pays", "Haïti", "ou", "du", "numéro", "de", "téléphone", "cellulaire", "09700166582", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"haiti\"", null ], "or", [ false, 2, [ 0, [ 0, 38, false ], null ], "\"09700166582\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "student_transcripts_tracking", "query": "select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'", "query_toks": [ "select", "t1.first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1.permanent_address_id", "=", "t2.address_id", "where", "t2.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\"" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "value", "or", "t1", ".", "cell_mobile_number", "=", "value" ], "question": "Quels sont les prénoms des étudiants qui vivent en Haïti de manière permanente ou ont le numéro de téléphone portable 09700166582?", "question_toks": [ "Quels", "sont", "les", "prénoms", "des", "étudiants", "qui", "vivent", "en", "Haïti", "de", "manière", "permanente", "ou", "ont", "le", "numéro", "de", "téléphone", "portable", "09700166582", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"haiti\"", null ], "or", [ false, 2, [ 0, [ 0, 38, false ], null ], "\"09700166582\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Title FROM Cartoon ORDER BY title", "query_toks": [ "SELECT", "Title", "FROM", "Cartoon", "ORDER", "BY", "title" ], "query_toks_no_value": [ "select", "title", "from", "cartoon", "order", "by", "title" ], "question": "Énumérez le titre de toutes les dessins animés dans l'ordre alphabétique.", "question_toks": [ "Énumérez", "le", "titre", "de", "toutes", "les", "dessins", "animés", "dans", "l'", "ordre", "alphabétique", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Title FROM Cartoon ORDER BY title", "query_toks": [ "SELECT", "Title", "FROM", "Cartoon", "ORDER", "BY", "title" ], "query_toks_no_value": [ "select", "title", "from", "cartoon", "order", "by", "title" ], "question": "Quels sont les titres des dessins animés triés alphabétiquement?", "question_toks": [ "Quels", "sont", "les", "titres", "des", "dessins", "animés", "triés", "alphabétiquement", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 20, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";", "query_toks": [ "SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", ";" ], "query_toks_no_value": [ "select", "title", "from", "cartoon", "where", "directed_by", "=", "value" ], "question": "Énumérez toute la bande dessinée dirigée par \"Ben Jones\".", "question_toks": [ "Énumérez", "toute", "la", "bande", "dessinée", "dirigée", "par", "\"", "Ben", "Jones", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Ben Jones\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";", "query_toks": [ "SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", ";" ], "query_toks_no_value": [ "select", "title", "from", "cartoon", "where", "directed_by", "=", "value" ], "question": "Quels sont les noms de tous les dessins animés dirigés par Ben Jones?", "question_toks": [ "Quels", "sont", "les", "noms", "de", "tous", "les", "dessins", "animés", "dirigés", "par", "Ben", "Jones", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Ben Jones\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Cartoon", "WHERE", "Written_by", "=", "``", "Joseph", "Kuhr", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cartoon", "where", "written_by", "=", "value" ], "question": "Combien de dessins animés ont été écrits par \"Joseph Kuhr\"?", "question_toks": [ "Combien", "de", "dessins", "animés", "ont", "été", "écrits", "par", "\"", "Joseph", "Kuhr", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"Joseph Kuhr\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Cartoon", "WHERE", "Written_by", "=", "``", "Joseph", "Kuhr", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cartoon", "where", "written_by", "=", "value" ], "question": "Quel est le nombre de caricatures écrites par Joseph Kuhr?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "caricatures", "écrites", "par", "Joseph", "Kuhr", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"Joseph Kuhr\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date", "query_toks": [ "SELECT", "title", ",", "Directed_by", "FROM", "Cartoon", "ORDER", "BY", "Original_air_date" ], "query_toks_no_value": [ "select", "title", ",", "directed_by", "from", "cartoon", "order", "by", "original_air_date" ], "question": "Énumérez tous les titres de dessin animé et leurs administrateurs commandés par leur date de l'air", "question_toks": [ "Énumérez", "tous", "les", "titres", "de", "dessin", "animé", "et", "leurs", "administrateurs", "commandés", "par", "leur", "date", "de", "l'", "air" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date", "query_toks": [ "SELECT", "title", ",", "Directed_by", "FROM", "Cartoon", "ORDER", "BY", "Original_air_date" ], "query_toks_no_value": [ "select", "title", ",", "directed_by", "from", "cartoon", "order", "by", "original_air_date" ], "question": "Quel est le nom et les directeurs de tous les dessins animés commandés par la date de l'air?", "question_toks": [ "Quel", "est", "le", "nom", "et", "les", "directeurs", "de", "tous", "les", "dessins", "animés", "commandés", "par", "la", "date", "de", "l'", "air", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";", "query_toks": [ "SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", "OR", "Directed_by", "=", "``", "Brandon", "Vietti", "''", ";" ], "query_toks_no_value": [ "select", "title", "from", "cartoon", "where", "directed_by", "=", "value", "or", "directed_by", "=", "value" ], "question": "Énumérez le titre de tout dessin animé dirigé par \"Ben Jones\" ou \"Brandon Vietti\".", "question_toks": [ "Énumérez", "le", "titre", "de", "tout", "dessin", "animé", "dirigé", "par", "\"", "Ben", "Jones", "\"", "ou", "\"", "Brandon", "Vietti", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Ben Jones\"", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Brandon Vietti\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";", "query_toks": [ "SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", "OR", "Directed_by", "=", "``", "Brandon", "Vietti", "''", ";" ], "query_toks_no_value": [ "select", "title", "from", "cartoon", "where", "directed_by", "=", "value", "or", "directed_by", "=", "value" ], "question": "Quels sont les titres de tous les dessins animés dirigés par Ben Jones ou Brandon Vietti?", "question_toks": [ "Quels", "sont", "les", "titres", "de", "tous", "les", "dessins", "animés", "dirigés", "par", "Ben", "Jones", "ou", "Brandon", "Vietti", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Ben Jones\"", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Brandon Vietti\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "Country", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "Country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel pays a le plus de chaînes de télévision? Énumérez le pays et le nombre de chaînes de télévision.", "question_toks": [ "Quel", "pays", "a", "le", "plus", "de", "chaînes", "de", "télévision", "?", "Énumérez", "le", "pays", "et", "le", "nombre", "de", "chaînes", "de", "télévision", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, 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": "tvshow", "query": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "Country", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "Country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le pays avec le plus grand nombre de chaînes de télévision et combien cela a-t-il?", "question_toks": [ "Quel", "est", "le", "pays", "avec", "le", "plus", "grand", "nombre", "de", "chaînes", "de", "télévision", "et", "combien", "cela", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, 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": "tvshow", "query": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "series_name", ")", ",", "count", "(", "DISTINCT", "content", ")", "FROM", "TV_Channel", ";" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "series_name", ")", ",", "count", "(", "distinct", "content", ")", "from", "tv_channel" ], "question": "Énumérez le nombre de noms et de contenus de la chaîne de télévision différentes.", "question_toks": [ "Énumérez", "le", "nombre", "de", "noms", "et", "de", "contenus", "de", "la", "chaîne", "de", "télévision", "différentes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ], [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "series_name", ")", ",", "count", "(", "DISTINCT", "content", ")", "FROM", "TV_Channel", ";" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "series_name", ")", ",", "count", "(", "distinct", "content", ")", "from", "tv_channel" ], "question": "Combien de séries et de contenus différentes sont répertoriés dans la table de chaînes de télévision?", "question_toks": [ "Combien", "de", "séries", "et", "de", "contenus", "différentes", "sont", "répertoriés", "dans", "la", "table", "de", "chaînes", "de", "télévision", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ], [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";", "query_toks": [ "SELECT", "Content", "FROM", "TV_Channel", "WHERE", "series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "content", "from", "tv_channel", "where", "series_name", "=", "value" ], "question": "Quel est le contenu de la chaîne de télévision avec le nom de série \"Sky Radio\"?", "question_toks": [ "Quel", "est", "le", "contenu", "de", "la", "chaîne", "de", "télévision", "avec", "le", "nom", "de", "série", "\"", "Sky", "Radio", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sky Radio\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";", "query_toks": [ "SELECT", "Content", "FROM", "TV_Channel", "WHERE", "series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "content", "from", "tv_channel", "where", "series_name", "=", "value" ], "question": "Quel est le contenu de la radio Sky Radio?", "question_toks": [ "Quel", "est", "le", "contenu", "de", "la", "radio", "Sky", "Radio", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sky Radio\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";", "query_toks": [ "SELECT", "Package_Option", "FROM", "TV_Channel", "WHERE", "series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "package_option", "from", "tv_channel", "where", "series_name", "=", "value" ], "question": "Quelle est l'option d'emballage de la chaîne de télévision avec le nom de série \"Sky Radio\"?", "question_toks": [ "Quelle", "est", "l'", "option", "d'", "emballage", "de", "la", "chaîne", "de", "télévision", "avec", "le", "nom", "de", "série", "\"", "Sky", "Radio", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sky Radio\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";", "query_toks": [ "SELECT", "Package_Option", "FROM", "TV_Channel", "WHERE", "series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "package_option", "from", "tv_channel", "where", "series_name", "=", "value" ], "question": "Quelles sont les options d'emballage des chaînes de télévision dont les noms de la série sont la radio Sky?", "question_toks": [ "Quelles", "sont", "les", "options", "d'", "emballage", "des", "chaînes", "de", "télévision", "dont", "les", "noms", "de", "la", "série", "sont", "la", "radio", "Sky", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sky Radio\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "TV_Channel", "WHERE", "LANGUAGE", "=", "``", "English", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "tv_channel", "where", "language", "=", "value" ], "question": "Combien de canaux de télévision utilisant la langue anglais?", "question_toks": [ "Combien", "de", "canaux", "de", "télévision", "utilisant", "la", "langue", "anglais", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "TV_Channel", "WHERE", "LANGUAGE", "=", "``", "English", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "tv_channel", "where", "language", "=", "value" ], "question": "Combien de chaînes de télévision utilisent la langue anglaise?", "question_toks": [ "Combien", "de", "chaînes", "de", "télévision", "utilisent", "la", "langue", "anglaise", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "LANGUAGE", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "LANGUAGE", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "language", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "language", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Lister la langue utilisée au moins le nombre de chaînes de télévision. Liste de la langue et du nombre de chaînes de télévision.", "question_toks": [ "Lister", "la", "langue", "utilisée", "au", "moins", "le", "nombre", "de", "chaînes", "de", "télévision", ".", "Liste", "de", "la", "langue", "et", "du", "nombre", "de", "chaînes", "de", "télévision", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "LANGUAGE", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "LANGUAGE", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "language", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "language", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Quelles sont les langues utilisées par le moins de chaînes de télévision et combien de canaux l'utilisent?", "question_toks": [ "Quelles", "sont", "les", "langues", "utilisées", "par", "le", "moins", "de", "chaînes", "de", "télévision", "et", "combien", "de", "canaux", "l'", "utilisent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE", "query_toks": [ "SELECT", "LANGUAGE", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "LANGUAGE" ], "query_toks_no_value": [ "select", "language", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "language" ], "question": "Énumérez chaque langue et le nombre de chaînes de télévision en l'utilisant.", "question_toks": [ "Énumérez", "chaque", "langue", "et", "le", "nombre", "de", "chaînes", "de", "télévision", "en", "l'", "utilisant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE", "query_toks": [ "SELECT", "LANGUAGE", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "LANGUAGE" ], "query_toks_no_value": [ "select", "language", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "language" ], "question": "Pour chaque langue, énumérez le nombre de chaînes de télévision qui l'utilisent.", "question_toks": [ "Pour", "chaque", "langue", ",", "énumérez", "le", "nombre", "de", "chaînes", "de", "télévision", "qui", "l'", "utilisent", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\";", "query_toks": [ "SELECT", "T1.series_name", "FROM", "TV_Channel", "AS", "T1", "JOIN", "Cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.Title", "=", "``", "The", "Rise", "of", "the", "Blue", "Beetle", "!", "``", ";" ], "query_toks_no_value": [ "select", "t1", ".", "series_name", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "title", "=", "value" ], "question": "Quelle est la chaîne de télévision qui montre la bande dessinée \"la montée du coléoptère bleue!\"? Répertoriez le nom de la série de la chaîne de télévision.", "question_toks": [ "Quelle", "est", "la", "chaîne", "de", "télévision", "qui", "montre", "la", "bande", "dessinée", "\"", "la", "montée", "du", "coléoptère", "bleue", "!", "\"", "?", "Répertoriez", "le", "nom", "de", "la", "série", "de", "la", "chaîne", "de", "télévision", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"The Rise of the Blue Beetle!\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\";", "query_toks": [ "SELECT", "T1.series_name", "FROM", "TV_Channel", "AS", "T1", "JOIN", "Cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.Title", "=", "``", "The", "Rise", "of", "the", "Blue", "Beetle", "!", "``", ";" ], "query_toks_no_value": [ "select", "t1", ".", "series_name", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "title", "=", "value" ], "question": "Quel est le nom de la série de la chaîne de télévision qui montre la dessin animé \"la montée de la coléoptère bleue\"?", "question_toks": [ "Quel", "est", "le", "nom", "de", "la", "série", "de", "la", "chaîne", "de", "télévision", "qui", "montre", "la", "dessin", "animé", "\"", "la", "montée", "de", "la", "coléoptère", "bleue", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"The Rise of the Blue Beetle!\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", "query_toks": [ "SELECT", "T2.Title", "FROM", "TV_Channel", "AS", "T1", "JOIN", "Cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T1.series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t1", ".", "series_name", "=", "value" ], "question": "Listez le titre de tous les dessins animés montrés sur la chaîne de télévision avec nom de série \"Sky Radio\".", "question_toks": [ "Listez", "le", "titre", "de", "tous", "les", "dessins", "animés", "montrés", "sur", "la", "chaîne", "de", "télévision", "avec", "nom", "de", "série", "\"", "Sky", "Radio", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sky Radio\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", "query_toks": [ "SELECT", "T2.Title", "FROM", "TV_Channel", "AS", "T1", "JOIN", "Cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T1.series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t1", ".", "series_name", "=", "value" ], "question": "Quel est le titre de tous les cartoures qui figurent sur la chaîne de télévision avec le nom de la série \"Sky Radio\"?", "question_toks": [ "Quel", "est", "le", "titre", "de", "tous", "les", "cartoures", "qui", "figurent", "sur", "la", "chaîne", "de", "télévision", "avec", "le", "nom", "de", "la", "série", "\"", "Sky", "Radio", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sky Radio\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Episode FROM TV_series ORDER BY rating", "query_toks": [ "SELECT", "Episode", "FROM", "TV_series", "ORDER", "BY", "rating" ], "query_toks_no_value": [ "select", "episode", "from", "tv_series", "order", "by", "rating" ], "question": "Répertoriez l'épisode de toutes les séries télévisées triés par évaluation.", "question_toks": [ "Répertoriez", "l'", "épisode", "de", "toutes", "les", "séries", "télévisées", "triés", "par", "évaluation", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Episode FROM TV_series ORDER BY rating", "query_toks": [ "SELECT", "Episode", "FROM", "TV_series", "ORDER", "BY", "rating" ], "query_toks_no_value": [ "select", "episode", "from", "tv_series", "order", "by", "rating" ], "question": "Quels sont tous les épisodes ordonnés par des cotes?", "question_toks": [ "Quels", "sont", "tous", "les", "épisodes", "ordonnés", "par", "des", "cotes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", "query_toks": [ "SELECT", "Episode", ",", "Rating", "FROM", "TV_series", "ORDER", "BY", "Rating", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "episode", ",", "rating", "from", "tv_series", "order", "by", "rating", "desc", "limit", "value" ], "question": "Liste Top 3 la série de chaînes de télévision de notation les plus élevées. Énumérez l'épisode et la note de la série télévisée.", "question_toks": [ "Liste", "Top", "3", "la", "série", "de", "chaînes", "de", "télévision", "de", "notation", "les", "plus", "élevées", ".", "Énumérez", "l'", "épisode", "et", "la", "note", "de", "la", "série", "télévisée", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", "query_toks": [ "SELECT", "Episode", ",", "Rating", "FROM", "TV_series", "ORDER", "BY", "Rating", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "episode", ",", "rating", "from", "tv_series", "order", "by", "rating", "desc", "limit", "value" ], "question": "Quels sont 3 épisodes les plus classés dans la table de la série télévisée et quelles étaient ces évaluations?", "question_toks": [ "Quels", "sont", "3", "épisodes", "les", "plus", "classés", "dans", "la", "table", "de", "la", "série", "télévisée", "et", "quelles", "étaient", "ces", "évaluations", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT max(SHARE) , min(SHARE) FROM TV_series;", "query_toks": [ "SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series", ";" ], "query_toks_no_value": [ "select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series" ], "question": "Quelle est la part minimale et maximale des séries télévisées?", "question_toks": [ "Quelle", "est", "la", "part", "minimale", "et", "maximale", "des", "séries", "télévisées", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ], [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT max(SHARE) , min(SHARE) FROM TV_series;", "query_toks": [ "SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series", ";" ], "query_toks_no_value": [ "select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series" ], "question": "Quelle est la part maximale et minimale pour la série télévisée?", "question_toks": [ "Quelle", "est", "la", "part", "maximale", "et", "minimale", "pour", "la", "série", "télévisée", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ], [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", "query_toks": [ "SELECT", "Air_Date", "FROM", "TV_series", "WHERE", "Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";" ], "query_toks_no_value": [ "select", "air_date", "from", "tv_series", "where", "episode", "=", "value" ], "question": "Quelle est la date de l'air des séries télévisées avec l'épisode \"un amour de toute une vie\"?", "question_toks": [ "Quelle", "est", "la", "date", "de", "l'", "air", "des", "séries", "télévisées", "avec", "l'", "épisode", "\"", "un", "amour", "de", "toute", "une", "vie", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"A Love of a Lifetime\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", "query_toks": [ "SELECT", "Air_Date", "FROM", "TV_series", "WHERE", "Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";" ], "query_toks_no_value": [ "select", "air_date", "from", "tv_series", "where", "episode", "=", "value" ], "question": "Quand l'épisode est-il \"un amour d'une vie\" de l'air?", "question_toks": [ "Quand", "l'", "épisode", "est", "-il", "\"", "un", "amour", "d'", "une", "vie", "\"", "de", "l'", "air", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"A Love of a Lifetime\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", "query_toks": [ "SELECT", "Weekly_Rank", "FROM", "TV_series", "WHERE", "Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";" ], "query_toks_no_value": [ "select", "weekly_rank", "from", "tv_series", "where", "episode", "=", "value" ], "question": "Quel est le rang hebdomadaire de la série télévisée avec épisode \"un amour d'une vie\"?", "question_toks": [ "Quel", "est", "le", "rang", "hebdomadaire", "de", "la", "série", "télévisée", "avec", "épisode", "\"", "un", "amour", "d'", "une", "vie", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"A Love of a Lifetime\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", "query_toks": [ "SELECT", "Weekly_Rank", "FROM", "TV_series", "WHERE", "Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";" ], "query_toks_no_value": [ "select", "weekly_rank", "from", "tv_series", "where", "episode", "=", "value" ], "question": "Quel est le rang hebdomadaire pour l'épisode \"un amour d'une vie\"?", "question_toks": [ "Quel", "est", "le", "rang", "hebdomadaire", "pour", "l'", "épisode", "\"", "un", "amour", "d'", "une", "vie", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"A Love of a Lifetime\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";", "query_toks": [ "SELECT", "T1.series_name", "FROM", "TV_Channel", "AS", "T1", "JOIN", "TV_series", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "series_name", "from", "tv_channel", "as", "t1", "join", "tv_series", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "episode", "=", "value" ], "question": "Quelle est la chaîne de télévision de la série télévisée avec épisode \"un amour d'une vie\"? Répertoriez le nom de la série de la chaîne de télévision.", "question_toks": [ "Quelle", "est", "la", "chaîne", "de", "télévision", "de", "la", "série", "télévisée", "avec", "épisode", "\"", "un", "amour", "d'", "une", "vie", "\"", "?", "Répertoriez", "le", "nom", "de", "la", "série", "de", "la", "chaîne", "de", "télévision", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 18, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"A Love of a Lifetime\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";", "query_toks": [ "SELECT", "T1.series_name", "FROM", "TV_Channel", "AS", "T1", "JOIN", "TV_series", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "series_name", "from", "tv_channel", "as", "t1", "join", "tv_series", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "episode", "=", "value" ], "question": "Quel est le nom de la série qui a l'épisode \"un amour d'une vie\"?", "question_toks": [ "Quel", "est", "le", "nom", "de", "la", "série", "qui", "a", "l'", "épisode", "\"", "un", "amour", "d'", "une", "vie", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 18, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"A Love of a Lifetime\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", "query_toks": [ "SELECT", "T2.Episode", "FROM", "TV_Channel", "AS", "T1", "JOIN", "TV_series", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T1.series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "episode", "from", "tv_channel", "as", "t1", "join", "tv_series", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t1", ".", "series_name", "=", "value" ], "question": "Liste de l'épisode de toutes les séries télévisées montrées sur la chaîne de télévision avec nom de série \"Sky Radio\".", "question_toks": [ "Liste", "de", "l'", "épisode", "de", "toutes", "les", "séries", "télévisées", "montrées", "sur", "la", "chaîne", "de", "télévision", "avec", "nom", "de", "série", "\"", "Sky", "Radio", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 18, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sky Radio\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", "query_toks": [ "SELECT", "T2.Episode", "FROM", "TV_Channel", "AS", "T1", "JOIN", "TV_series", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T1.series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "episode", "from", "tv_channel", "as", "t1", "join", "tv_series", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t1", ".", "series_name", "=", "value" ], "question": "Quel est l'épisode de la série télévisée nommée \"Sky Radio\"?", "question_toks": [ "Quel", "est", "l'", "épisode", "de", "la", "série", "télévisée", "nommée", "\"", "Sky", "Radio", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 18, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Sky Radio\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "Directed_by", "FROM", "cartoon", "GROUP", "BY", "Directed_by" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "directed_by", "from", "cartoon", "group", "by", "directed_by" ], "question": "Trouvez le nombre de dessins animés dirigés par chacun des directeurs répertoriés.", "question_toks": [ "Trouvez", "le", "nombre", "de", "dessins", "animés", "dirigés", "par", "chacun", "des", "directeurs", "répertoriés", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 21, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "Directed_by", "FROM", "cartoon", "GROUP", "BY", "Directed_by" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "directed_by", "from", "cartoon", "group", "by", "directed_by" ], "question": "Combien de dessins animés chaque directeur a-t-il créé?", "question_toks": [ "Combien", "de", "dessins", "animés", "chaque", "directeur", "a", "-t", "-il", "créé", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 21, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "select production_code , channel from cartoon order by original_air_date desc limit 1", "query_toks": [ "select", "production_code", ",", "channel", "from", "cartoon", "order", "by", "original_air_date", "desc", "limit", "1" ], "query_toks_no_value": [ "select", "production_code", ",", "channel", "from", "cartoon", "order", "by", "original_air_date", "desc", "limit", "value" ], "question": "Trouvez le code de production et le canal du dessin animé le plus récemment diffusé.", "question_toks": [ "Trouvez", "le", "code", "de", "production", "et", "le", "canal", "du", "dessin", "animé", "le", "plus", "récemment", "diffusé", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 23, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "select production_code , channel from cartoon order by original_air_date desc limit 1", "query_toks": [ "select", "production_code", ",", "channel", "from", "cartoon", "order", "by", "original_air_date", "desc", "limit", "1" ], "query_toks_no_value": [ "select", "production_code", ",", "channel", "from", "cartoon", "order", "by", "original_air_date", "desc", "limit", "value" ], "question": "Quel est le code de produdaction et le canal du dessin animé le plus récent?", "question_toks": [ "Quel", "est", "le", "code", "de", "produdaction", "et", "le", "canal", "du", "dessin", "animé", "le", "plus", "récent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 23, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"", "query_toks": [ "SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "yes", "''" ], "query_toks_no_value": [ "select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value" ], "question": "Trouvez le choix du package et le nom de la série de la chaîne de télévision disposant de la télévision haute définition.", "question_toks": [ "Trouvez", "le", "choix", "du", "package", "et", "le", "nom", "de", "la", "série", "de", "la", "chaîne", "de", "télévision", "disposant", "de", "la", "télévision", "haute", "définition", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"yes\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"", "query_toks": [ "SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "yes", "''" ], "query_toks_no_value": [ "select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value" ], "question": "Quelles sont les options de colis et le nom de la série pour la chaîne de télévision qui prend en charge la télévision haute définition?", "question_toks": [ "Quelles", "sont", "les", "options", "de", "colis", "et", "le", "nom", "de", "la", "série", "pour", "la", "chaîne", "de", "télévision", "qui", "prend", "en", "charge", "la", "télévision", "haute", "définition", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"yes\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "query_toks": [ "SELECT", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.written_by", "=", "'Todd", "Casey", "'" ], "query_toks_no_value": [ "select", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "written_by", "=", "value" ], "question": "Les chaînes de télévision des pays jouent-elles de la bande dessinée écrite par Todd Casey?", "question_toks": [ "Les", "chaînes", "de", "télévision", "des", "pays", "jouent", "-", "elles", "de", "la", "bande", "dessinée", "écrite", "par", "Todd", "Casey", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"Todd Casey\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "query_toks": [ "SELECT", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.written_by", "=", "'Todd", "Casey", "'" ], "query_toks_no_value": [ "select", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "written_by", "=", "value" ], "question": "Quels sont les pays qui ont des dessins animés à la télévision qui ont été écrits par Todd Casey?", "question_toks": [ "Quels", "sont", "les", "pays", "qui", "ont", "des", "dessins", "animés", "à", "la", "télévision", "qui", "ont", "été", "écrits", "par", "Todd", "Casey", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"Todd Casey\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "query_toks": [ "SELECT", "country", "FROM", "TV_Channel", "EXCEPT", "SELECT", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.written_by", "=", "'Todd", "Casey", "'" ], "query_toks_no_value": [ "select", "country", "from", "tv_channel", "except", "select", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "written_by", "=", "value" ], "question": "Les chaînes de télévision des pays ne jouent-elles pas de dessin animé écrit par Todd Casey?", "question_toks": [ "Les", "chaînes", "de", "télévision", "des", "pays", "ne", "jouent", "-", "elles", "pas", "de", "dessin", "animé", "écrit", "par", "Todd", "Casey", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"Todd Casey\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "tvshow", "query": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "query_toks": [ "SELECT", "country", "FROM", "TV_Channel", "EXCEPT", "SELECT", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.written_by", "=", "'Todd", "Casey", "'" ], "query_toks_no_value": [ "select", "country", "from", "tv_channel", "except", "select", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "written_by", "=", "value" ], "question": "Quels sont les pays qui ne jouent pas des dessins animés écrites par Todd Casey?", "question_toks": [ "Quels", "sont", "les", "pays", "qui", "ne", "jouent", "pas", "des", "dessins", "animés", "écrites", "par", "Todd", "Casey", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "\"Todd Casey\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "tvshow", "query": "SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'", "query_toks": [ "SELECT", "T1.series_name", ",", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.directed_by", "=", "'Michael", "Chang", "'", "INTERSECT", "SELECT", "T1.series_name", ",", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.directed_by", "=", "'Ben", "Jones", "'" ], "query_toks_no_value": [ "select", "t1", ".", "series_name", ",", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value", "intersect", "select", "t1", ".", "series_name", ",", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value" ], "question": "Trouvez le nom de la série et le pays de la chaîne de télévision qui joue des dessins animés dirigés par Ben Jones et Michael Chang?", "question_toks": [ "Trouvez", "le", "nom", "de", "la", "série", "et", "le", "pays", "de", "la", "chaîne", "de", "télévision", "qui", "joue", "des", "dessins", "animés", "dirigés", "par", "Ben", "Jones", "et", "Michael", "Chang", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Michael Chang\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Ben Jones\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'", "query_toks": [ "SELECT", "T1.series_name", ",", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.directed_by", "=", "'Michael", "Chang", "'", "INTERSECT", "SELECT", "T1.series_name", ",", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.directed_by", "=", "'Ben", "Jones", "'" ], "query_toks_no_value": [ "select", "t1", ".", "series_name", ",", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value", "intersect", "select", "t1", ".", "series_name", ",", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value" ], "question": "Quel est le nom de la série et le pays de toutes les chaînes de télévision qui jouent des dessins animés dirigés par Ben Jones et des dessins animés dirigés par Michael Chang?", "question_toks": [ "Quel", "est", "le", "nom", "de", "la", "série", "et", "le", "pays", "de", "toutes", "les", "chaînes", "de", "télévision", "qui", "jouent", "des", "dessins", "animés", "dirigés", "par", "Ben", "Jones", "et", "des", "dessins", "animés", "dirigés", "par", "Michael", "Chang", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Michael Chang\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Ben Jones\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", "query_toks": [ "SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel", "WHERE", "LANGUAGE", "!", "=", "'English", "'" ], "query_toks_no_value": [ "select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel", "where", "language", "!", "=", "value" ], "question": "Trouvez le rapport de format Pixel et la nation des chaînes de télévision qui n'utilisent pas l'anglais.", "question_toks": [ "Trouvez", "le", "rapport", "de", "format", "Pixel", "et", "la", "nation", "des", "chaînes", "de", "télévision", "qui", "n'", "utilisent", "pas", "l'", "anglais", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", "query_toks": [ "SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel", "WHERE", "LANGUAGE", "!", "=", "'English", "'" ], "query_toks_no_value": [ "select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel", "where", "language", "!", "=", "value" ], "question": "Quel est le rapport d'aspect pixel et le pays d'origine pour toutes les chaînes de télévision qui n'utilisent pas l'anglais?", "question_toks": [ "Quel", "est", "le", "rapport", "d'", "aspect", "pixel", "et", "le", "pays", "d'", "origine", "pour", "toutes", "les", "chaînes", "de", "télévision", "qui", "n'", "utilisent", "pas", "l'", "anglais", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2", "query_toks": [ "SELECT", "id", "FROM", "tv_channel", "GROUP", "BY", "country", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "id", "from", "tv_channel", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value" ], "question": "Trouvez une pièce d'identité des chaînes de télévision que des pays où possèdent plus de deux chaînes de télévision.", "question_toks": [ "Trouvez", "une", "pièce", "d'", "identité", "des", "chaînes", "de", "télévision", "que", "des", "pays", "où", "possèdent", "plus", "de", "deux", "chaînes", "de", "télévision", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2", "query_toks": [ "SELECT", "id", "FROM", "tv_channel", "GROUP", "BY", "country", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "id", "from", "tv_channel", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels sont les identifiants de toutes les chaînes de télévision ayant plus de 2 chaînes de télévision?", "question_toks": [ "Quels", "sont", "les", "identifiants", "de", "toutes", "les", "chaînes", "de", "télévision", "ayant", "plus", "de", "2", "chaînes", "de", "télévision", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "tvshow", "query": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", "query_toks": [ "SELECT", "id", "FROM", "TV_Channel", "EXCEPT", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'" ], "query_toks_no_value": [ "select", "id", "from", "tv_channel", "except", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value" ], "question": "Trouvez l'identifiant des chaînes de télévision qui ne jouent pas de dessin animé dirigé par Ben Jones.", "question_toks": [ "Trouvez", "l'", "identifiant", "des", "chaînes", "de", "télévision", "qui", "ne", "jouent", "pas", "de", "dessin", "animé", "dirigé", "par", "Ben", "Jones", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Ben Jones\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "tvshow", "query": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", "query_toks": [ "SELECT", "id", "FROM", "TV_Channel", "EXCEPT", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'" ], "query_toks_no_value": [ "select", "id", "from", "tv_channel", "except", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value" ], "question": "Quels sont les identifiants des chaînes de télévision qui n'ont pas de dessins animés dirigés par Ben Jones?", "question_toks": [ "Quels", "sont", "les", "identifiants", "des", "chaînes", "de", "télévision", "qui", "n'", "ont", "pas", "de", "dessins", "animés", "dirigés", "par", "Ben", "Jones", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Ben Jones\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "tvshow", "query": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", "query_toks": [ "SELECT", "package_option", "FROM", "TV_Channel", "WHERE", "id", "NOT", "IN", "(", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'", ")" ], "query_toks_no_value": [ "select", "package_option", "from", "tv_channel", "where", "id", "not", "in", "(", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value", ")" ], "question": "Trouvez l'option Package de la chaîne de télévision qui n'a pas de dessin animé dirigé par Ben Jones.", "question_toks": [ "Trouvez", "l'", "option", "Package", "de", "la", "chaîne", "de", "télévision", "qui", "n'", "a", "pas", "de", "dessin", "animé", "dirigé", "par", "Ben", "Jones", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Ben Jones\"", null ] ], "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": "tvshow", "query": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", "query_toks": [ "SELECT", "package_option", "FROM", "TV_Channel", "WHERE", "id", "NOT", "IN", "(", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'", ")" ], "query_toks_no_value": [ "select", "package_option", "from", "tv_channel", "where", "id", "not", "in", "(", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value", ")" ], "question": "Quelles sont les options de paquet de toutes les chaînes de télévision qui ne jouent pas de dessins animés dirigés par Ben Jones?", "question_toks": [ "Quelles", "sont", "les", "options", "de", "paquet", "de", "toutes", "les", "chaînes", "de", "télévision", "qui", "ne", "jouent", "pas", "de", "dessins", "animés", "dirigés", "par", "Ben", "Jones", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Ben Jones\"", null ] ], "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": "poker_player", "query": "SELECT count(*) FROM poker_player", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "poker_player" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "poker_player" ], "question": "Combien de joueurs de poker y a-t-il?", "question_toks": [ "Combien", "de", "joueurs", "de", "poker", "y", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT count(*) FROM poker_player", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "poker_player" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "poker_player" ], "question": "Comptez le nombre de joueurs de poker.", "question_toks": [ "Comptez", "le", "nombre", "de", "joueurs", "de", "poker", "." ], "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": "poker_player", "query": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", "query_toks": [ "SELECT", "Earnings", "FROM", "poker_player", "ORDER", "BY", "Earnings", "DESC" ], "query_toks_no_value": [ "select", "earnings", "from", "poker_player", "order", "by", "earnings", "desc" ], "question": "Énumérez les gains des joueurs de poker dans l'ordre décroissant.", "question_toks": [ "Énumérez", "les", "gains", "des", "joueurs", "de", "poker", "dans", "l'", "ordre", "décroissant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", "query_toks": [ "SELECT", "Earnings", "FROM", "poker_player", "ORDER", "BY", "Earnings", "DESC" ], "query_toks_no_value": [ "select", "earnings", "from", "poker_player", "order", "by", "earnings", "desc" ], "question": "Quels sont les gains des joueurs de poker, ordonnés de descendre par la valeur?", "question_toks": [ "Quels", "sont", "les", "gains", "des", "joueurs", "de", "poker", ",", "ordonnés", "de", "descendre", "par", "la", "valeur", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Final_Table_Made , Best_Finish FROM poker_player", "query_toks": [ "SELECT", "Final_Table_Made", ",", "Best_Finish", "FROM", "poker_player" ], "query_toks_no_value": [ "select", "final_table_made", ",", "best_finish", "from", "poker_player" ], "question": "Énumérez les tables finales faites et les meilleures finitions des joueurs de poker.", "question_toks": [ "Énumérez", "les", "tables", "finales", "faites", "et", "les", "meilleures", "finitions", "des", "joueurs", "de", "poker", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Final_Table_Made , Best_Finish FROM poker_player", "query_toks": [ "SELECT", "Final_Table_Made", ",", "Best_Finish", "FROM", "poker_player" ], "query_toks_no_value": [ "select", "final_table_made", ",", "best_finish", "from", "poker_player" ], "question": "Quelles sont les tables finales faites et les meilleures finitions pour tous les joueurs de poker?", "question_toks": [ "Quelles", "sont", "les", "tables", "finales", "faites", "et", "les", "meilleures", "finitions", "pour", "tous", "les", "joueurs", "de", "poker", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT avg(Earnings) FROM poker_player", "query_toks": [ "SELECT", "avg", "(", "Earnings", ")", "FROM", "poker_player" ], "query_toks_no_value": [ "select", "avg", "(", "earnings", ")", "from", "poker_player" ], "question": "Quel est le gain moyen des joueurs de poker?", "question_toks": [ "Quel", "est", "le", "gain", "moyen", "des", "joueurs", "de", "poker", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT avg(Earnings) FROM poker_player", "query_toks": [ "SELECT", "avg", "(", "Earnings", ")", "FROM", "poker_player" ], "query_toks_no_value": [ "select", "avg", "(", "earnings", ")", "from", "poker_player" ], "question": "Renvoyez les gains moyens sur tous les joueurs de poker.", "question_toks": [ "Renvoyez", "les", "gains", "moyens", "sur", "tous", "les", "joueurs", "de", "poker", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", "query_toks": [ "SELECT", "Money_Rank", "FROM", "poker_player", "ORDER", "BY", "Earnings", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "money_rank", "from", "poker_player", "order", "by", "earnings", "desc", "limit", "value" ], "question": "Quel est le rang d'argent du joueur de poker avec le bénéfice le plus élevé?", "question_toks": [ "Quel", "est", "le", "rang", "d'", "argent", "du", "joueur", "de", "poker", "avec", "le", "bénéfice", "le", "plus", "élevé", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", "query_toks": [ "SELECT", "Money_Rank", "FROM", "poker_player", "ORDER", "BY", "Earnings", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "money_rank", "from", "poker_player", "order", "by", "earnings", "desc", "limit", "value" ], "question": "Renvoyez le rang d'argent du joueur avec les plus grands bénéfices.", "question_toks": [ "Renvoyez", "le", "rang", "d'", "argent", "du", "joueur", "avec", "les", "plus", "grands", "bénéfices", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", "query_toks": [ "SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player", "WHERE", "Earnings", "<", "200000" ], "query_toks_no_value": [ "select", "max", "(", "final_table_made", ")", "from", "poker_player", "where", "earnings", "<", "value" ], "question": "Quel est le nombre maximum de tables finales faites parmi les joueurs de poker avec des gains inférieurs à 200000?", "question_toks": [ "Quel", "est", "le", "nombre", "maximum", "de", "tables", "finales", "faites", "parmi", "les", "joueurs", "de", "poker", "avec", "des", "gains", "inférieurs", "à", "200000", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 6, false ], null ], 200000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", "query_toks": [ "SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player", "WHERE", "Earnings", "<", "200000" ], "query_toks_no_value": [ "select", "max", "(", "final_table_made", ")", "from", "poker_player", "where", "earnings", "<", "value" ], "question": "Renvoyez les tables finales maximales effectuées sur tous les joueurs de poker ayant des gains inférieurs à 200000.", "question_toks": [ "Renvoyez", "les", "tables", "finales", "maximales", "effectuées", "sur", "tous", "les", "joueurs", "de", "poker", "ayant", "des", "gains", "inférieurs", "à", "200000", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 6, false ], null ], 200000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id" ], "question": "Quels sont les noms des joueurs de poker?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "joueurs", "de", "poker", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id" ], "question": "Renvoyez les noms de tous les joueurs de poker.", "question_toks": [ "Renvoyez", "les", "noms", "de", "tous", "les", "joueurs", "de", "poker", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Earnings", ">", "300000" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "earnings", ">", "value" ], "question": "Quels sont les noms des joueurs de poker dont le bénéfice est supérieur à 300 000?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "joueurs", "de", "poker", "dont", "le", "bénéfice", "est", "supérieur", "à", "300", "000", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], 300000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Earnings", ">", "300000" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "earnings", ">", "value" ], "question": "Donnez aux noms des joueurs de poker qui ont des gains supérieurs à 300 000.", "question_toks": [ "Donnez", "aux", "noms", "des", "joueurs", "de", "poker", "qui", "ont", "des", "gains", "supérieurs", "à", "300", "000", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], 300000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Final_Table_Made" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "final_table_made" ], "question": "Énumérez les noms des joueurs de poker commandés par les dernières tables effectuées en ordre croissant.", "question_toks": [ "Énumérez", "les", "noms", "des", "joueurs", "de", "poker", "commandés", "par", "les", "dernières", "tables", "effectuées", "en", "ordre", "croissant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Final_Table_Made" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "final_table_made" ], "question": "Quels sont les noms des joueurs de poker, commandé ascendant par le nombre de tables finales qu'ils ont apportées?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "joueurs", "de", "poker", ",", "commandé", "ascendant", "par", "le", "nombre", "de", "tables", "finales", "qu'", "ils", "ont", "apportées", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1", "query_toks": [ "SELECT", "T1.Birth_Date", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "birth_date", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "asc", "limit", "value" ], "question": "Quelle est la date de naissance du joueur de poker avec le bénéfice le plus bas?", "question_toks": [ "Quelle", "est", "la", "date", "de", "naissance", "du", "joueur", "de", "poker", "avec", "le", "bénéfice", "le", "plus", "bas", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1", "query_toks": [ "SELECT", "T1.Birth_Date", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "birth_date", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "asc", "limit", "value" ], "question": "Renvoyez la date de naissance du joueur de poker avec le bénéfice le plus bas.", "question_toks": [ "Renvoyez", "la", "date", "de", "naissance", "du", "joueur", "de", "poker", "avec", "le", "bénéfice", "le", "plus", "bas", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Money_Rank", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "money_rank", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "height", "desc", "limit", "value" ], "question": "Quel est le rang d'argent du plus haut joueur de poker?", "question_toks": [ "Quel", "est", "le", "rang", "d'", "argent", "du", "plus", "haut", "joueur", "de", "poker", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Money_Rank", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "money_rank", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "height", "desc", "limit", "value" ], "question": "Renvoyez le rang d'argent du joueur de poker avec la plus grande hauteur.", "question_toks": [ "Renvoyez", "le", "rang", "d'", "argent", "du", "joueur", "de", "poker", "avec", "la", "plus", "grande", "hauteur", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", "query_toks": [ "SELECT", "avg", "(", "T2.Earnings", ")", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Height", ">", "200" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "earnings", ")", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "height", ">", "value" ], "question": "Quel est le gain moyen des joueurs de poker de hauteur supérieure à 200?", "question_toks": [ "Quel", "est", "le", "gain", "moyen", "des", "joueurs", "de", "poker", "de", "hauteur", "supérieure", "à", "200", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 200.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", "query_toks": [ "SELECT", "avg", "(", "T2.Earnings", ")", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Height", ">", "200" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "earnings", ")", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "height", ">", "value" ], "question": "Donner des gains moyens des joueurs de poker plus hauts que 200.", "question_toks": [ "Donner", "des", "gains", "moyens", "des", "joueurs", "de", "poker", "plus", "hauts", "que", "200", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 200.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "desc" ], "question": "Quels sont les noms des joueurs de poker en ordre décroissant des gains?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "joueurs", "de", "poker", "en", "ordre", "décroissant", "des", "gains", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "desc" ], "question": "Renvoyez les noms des joueurs de poker triés par leurs revenus descendant.", "question_toks": [ "Renvoyez", "les", "noms", "des", "joueurs", "de", "poker", "triés", "par", "leurs", "revenus", "descendant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality", "query_toks": [ "SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Nationality" ], "query_toks_no_value": [ "select", "nationality", ",", "count", "(", "*", ")", "from", "people", "group", "by", "nationality" ], "question": "Quelles sont les nationalités différentes des personnes et le nombre correspondant de personnes de chaque nation?", "question_toks": [ "Quelles", "sont", "les", "nationalités", "différentes", "des", "personnes", "et", "le", "nombre", "correspondant", "de", "personnes", "de", "chaque", "nation", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality", "query_toks": [ "SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Nationality" ], "query_toks_no_value": [ "select", "nationality", ",", "count", "(", "*", ")", "from", "people", "group", "by", "nationality" ], "question": "Combien de personnes y a-t-il de chaque nationalité?", "question_toks": [ "Combien", "de", "personnes", "y", "a", "-t", "-il", "de", "chaque", "nationalité", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Nationality", "FROM", "people", "GROUP", "BY", "Nationality", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "nationality", "from", "people", "group", "by", "nationality", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle est la nationalité la plus courante des gens?", "question_toks": [ "Quelle", "est", "la", "nationalité", "la", "plus", "courante", "des", "gens", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Nationality", "FROM", "people", "GROUP", "BY", "Nationality", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "nationality", "from", "people", "group", "by", "nationality", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Donner à la nationalité la plus courante de tous les peuples.", "question_toks": [ "Donner", "à", "la", "nationalité", "la", "plus", "courante", "de", "tous", "les", "peuples", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Nationality", "FROM", "people", "GROUP", "BY", "Nationality", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "nationality", "from", "people", "group", "by", "nationality", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quelles sont les nationalités qui sont partagées par au moins deux personnes?", "question_toks": [ "Quelles", "sont", "les", "nationalités", "qui", "sont", "partagées", "par", "au", "moins", "deux", "personnes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Nationality", "FROM", "people", "GROUP", "BY", "Nationality", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "nationality", "from", "people", "group", "by", "nationality", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Renvoyer les nationalités pour lesquelles il y a deux personnes ou plus.", "question_toks": [ "Renvoyer", "les", "nationalités", "pour", "lesquelles", "il", "y", "a", "deux", "personnes", "ou", "plus", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", ",", "Birth_Date", "FROM", "people", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", ",", "birth_date", "from", "people", "order", "by", "name", "asc" ], "question": "Énumérez les noms et dates de naissance des personnes à l'ordre alphabétique croissant.", "question_toks": [ "Énumérez", "les", "noms", "et", "dates", "de", "naissance", "des", "personnes", "à", "l'", "ordre", "alphabétique", "croissant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 9, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", ",", "Birth_Date", "FROM", "people", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", ",", "birth_date", "from", "people", "order", "by", "name", "asc" ], "question": "Quels sont les noms et dates de naissance des personnes, commandées par leurs noms dans l'ordre alphabétique?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "dates", "de", "naissance", "des", "personnes", ",", "commandées", "par", "leurs", "noms", "dans", "l'", "ordre", "alphabétique", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 9, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Name FROM people WHERE Nationality != \"Russia\"", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "Nationality", "!", "=", "``", "Russia", "''" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "nationality", "!", "=", "value" ], "question": "Montrer des noms de personnes dont la nationalité n'est pas \"la Russie\".", "question_toks": [ "Montrer", "des", "noms", "de", "personnes", "dont", "la", "nationalité", "n'", "est", "pas", "\"", "la", "Russie", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 8, false ], null ], "\"Russia\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Name FROM people WHERE Nationality != \"Russia\"", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "Nationality", "!", "=", "``", "Russia", "''" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "nationality", "!", "=", "value" ], "question": "Quels sont les noms des personnes qui ne sont pas de la Russie?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "personnes", "qui", "ne", "sont", "pas", "de", "la", "Russie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 8, false ], null ], "\"Russia\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "poker_player", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "poker_player", ")" ], "question": "Énumérez les noms des personnes qui ne sont pas des joueurs de poker.", "question_toks": [ "Énumérez", "les", "noms", "des", "personnes", "qui", "ne", "sont", "pas", "des", "joueurs", "de", "poker", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 7, 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": "poker_player", "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "poker_player", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "poker_player", ")" ], "question": "Quels sont les noms des personnes qui ne jouent pas de poker?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "personnes", "qui", "ne", "jouent", "pas", "de", "poker", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 7, 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": "poker_player", "query": "SELECT count(DISTINCT Nationality) FROM people", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "people" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "nationality", ")", "from", "people" ], "question": "Combien de nationalités distinctes sont là?", "question_toks": [ "Combien", "de", "nationalités", "distinctes", "sont", "là", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "poker_player", "query": "SELECT count(DISTINCT Nationality) FROM people", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "people" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "nationality", ")", "from", "people" ], "question": "Compter le nombre de nationalités différentes.", "question_toks": [ "Compter", "le", "nombre", "de", "nationalités", "différentes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT count(*) FROM area_code_state", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "area_code_state" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "area_code_state" ], "question": "Combien d'états y a-t-il?", "question_toks": [ "Combien", "d'", "états", "y", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC", "query_toks": [ "SELECT", "contestant_number", ",", "contestant_name", "FROM", "contestants", "ORDER", "BY", "contestant_name", "DESC" ], "query_toks_no_value": [ "select", "contestant_number", ",", "contestant_name", "from", "contestants", "order", "by", "contestant_name", "desc" ], "question": "Énumérez les numéros de concurrents et les noms, commandés par nom du candidat décroissant.", "question_toks": [ "Énumérez", "les", "numéros", "de", "concurrents", "et", "les", "noms", ",", "commandés", "par", "nom", "du", "candidat", "décroissant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT vote_id , phone_number , state FROM votes", "query_toks": [ "SELECT", "vote_id", ",", "phone_number", ",", "state", "FROM", "votes" ], "query_toks_no_value": [ "select", "vote_id", ",", "phone_number", ",", "state", "from", "votes" ], "question": "Énumérez les identifiants de vote, les numéros de téléphone et les États de tous les votes.", "question_toks": [ "Énumérez", "les", "identifiants", "de", "vote", ",", "les", "numéros", "de", "téléphone", "et", "les", "États", "de", "tous", "les", "votes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "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": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT max(area_code) , min(area_code) FROM area_code_state", "query_toks": [ "SELECT", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "FROM", "area_code_state" ], "query_toks_no_value": [ "select", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "from", "area_code_state" ], "question": "Quelles sont les valeurs maximales et minimales des codes de surface?", "question_toks": [ "Quelles", "sont", "les", "valeurs", "maximales", "et", "minimales", "des", "codes", "de", "surface", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 1, false ], null ] ], [ 2, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT max(created) FROM votes WHERE state = 'CA'", "query_toks": [ "SELECT", "max", "(", "created", ")", "FROM", "votes", "WHERE", "state", "=", "'CA", "'" ], "query_toks_no_value": [ "select", "max", "(", "created", ")", "from", "votes", "where", "state", "=", "value" ], "question": "Quelle est la date de dernière date créée par les votes de l'État \"CA\"?", "question_toks": [ "Quelle", "est", "la", "date", "de", "dernière", "date", "créée", "par", "les", "votes", "de", "l'", "État", "\"", "CA", "\"", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"CA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway'", "query_toks": [ "SELECT", "contestant_name", "FROM", "contestants", "WHERE", "contestant_name", "!", "=", "'Jessie", "Alloway", "'" ], "query_toks_no_value": [ "select", "contestant_name", "from", "contestants", "where", "contestant_name", "!", "=", "value" ], "question": "Quels sont les noms des candidats dont les noms ne sont pas «Jessie Alloway»", "question_toks": [ "Quels", "sont", "les", "noms", "des", "candidats", "dont", "les", "noms", "ne", "sont", "pas", "«", "Jessie", "Alloway", "»" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"Jessie Alloway\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT DISTINCT state , created FROM votes", "query_toks": [ "SELECT", "DISTINCT", "state", ",", "created", "FROM", "votes" ], "query_toks_no_value": [ "select", "distinct", "state", ",", "created", "from", "votes" ], "question": "Quels sont les états distincts et créer du temps de tous les votes?", "question_toks": [ "Quels", "sont", "les", "états", "distincts", "et", "créer", "du", "temps", "de", "tous", "les", "votes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.contestant_number", ",", "T1.contestant_name", "FROM", "contestants", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.contestant_number", "=", "T2.contestant_number", "GROUP", "BY", "T1.contestant_number", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "contestant_number", ",", "t1", ".", "contestant_name", "from", "contestants", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "contestant_number", "=", "t2", ".", "contestant_number", "group", "by", "t1", ".", "contestant_number", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les numéros de concurrents et les noms des candidats qui avaient au moins deux voix?", "question_toks": [ "Quels", "sont", "les", "numéros", "de", "concurrents", "et", "les", "noms", "des", "candidats", "qui", "avaient", "au", "moins", "deux", "voix", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.contestant_number", ",", "T1.contestant_name", "FROM", "contestants", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.contestant_number", "=", "T2.contestant_number", "GROUP", "BY", "T1.contestant_number", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "contestant_number", ",", "t1", ".", "contestant_name", "from", "contestants", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "contestant_number", "=", "t2", ".", "contestant_number", "group", "by", "t1", ".", "contestant_number", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "De tous les candidats qui ont voté, quel est le numéro de candidat et le nom du concurrent qui a obtenu le moindre vote?", "question_toks": [ "De", "tous", "les", "candidats", "qui", "ont", "voté", ",", "quel", "est", "le", "numéro", "de", "candidat", "et", "le", "nom", "du", "concurrent", "qui", "a", "obtenu", "le", "moindre", "vote", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "votes", "WHERE", "state", "=", "'NY", "'", "OR", "state", "=", "'CA", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "votes", "where", "state", "=", "value", "or", "state", "=", "value" ], "question": "Quel est le nombre de votes de l'État 'NY' ou «CA»?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "votes", "de", "l'", "État", "'", "NY", "'", "ou", "«", "CA", "»", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"NY\"", null ], "or", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"CA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "contestants", "WHERE", "contestant_number", "NOT", "IN", "(", "SELECT", "contestant_number", "FROM", "votes", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "contestants", "where", "contestant_number", "not", "in", "(", "select", "contestant_number", "from", "votes", ")" ], "question": "Combien de concurrents n'avaient pas voté?", "question_toks": [ "Combien", "de", "concurrents", "n'", "avaient", "pas", "voté", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 3, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, 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": "voter_1", "query": "SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state = T2.state GROUP BY T1.area_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.area_code", "FROM", "area_code_state", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.state", "=", "T2.state", "GROUP", "BY", "T1.area_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "area_code", "from", "area_code_state", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "state", "=", "t2", ".", "state", "group", "by", "t1", ".", "area_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est l'indicatif régional dans lequel le plus vote a voté?", "question_toks": [ "Quel", "est", "l'", "indicatif", "régional", "dans", "lequel", "le", "plus", "vote", "a", "voté", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT T2.created , T2.state , T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'", "query_toks": [ "SELECT", "T2.created", ",", "T2.state", ",", "T2.phone_number", "FROM", "contestants", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.contestant_number", "=", "T2.contestant_number", "WHERE", "T1.contestant_name", "=", "'Tabatha", "Gehling", "'" ], "query_toks_no_value": [ "select", "t2", ".", "created", ",", "t2", ".", "state", ",", "t2", ".", "phone_number", "from", "contestants", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "contestant_number", "=", "t2", ".", "contestant_number", "where", "t1", ".", "contestant_name", "=", "value" ], "question": "Quelles sont les dates de création, les états et les numéros de téléphone des votes destinés au concurrent nommé «tabatha gehling»?", "question_toks": [ "Quelles", "sont", "les", "dates", "de", "création", ",", "les", "états", "et", "les", "numéros", "de", "téléphone", "des", "votes", "destinés", "au", "concurrent", "nommé", "«", "tabatha", "gehling", "»", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Tabatha Gehling\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "voter_1", "query": "SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss'", "query_toks": [ "SELECT", "T3.area_code", "FROM", "contestants", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.contestant_number", "=", "T2.contestant_number", "JOIN", "area_code_state", "AS", "T3", "ON", "T2.state", "=", "T3.state", "WHERE", "T1.contestant_name", "=", "'Tabatha", "Gehling", "'", "INTERSECT", "SELECT", "T3.area_code", "FROM", "contestants", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.contestant_number", "=", "T2.contestant_number", "JOIN", "area_code_state", "AS", "T3", "ON", "T2.state", "=", "T3.state", "WHERE", "T1.contestant_name", "=", "'Kelly", "Clauss", "'" ], "query_toks_no_value": [ "select", "t3", ".", "area_code", "from", "contestants", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "contestant_number", "=", "t2", ".", "contestant_number", "join", "area_code_state", "as", "t3", "on", "t2", ".", "state", "=", "t3", ".", "state", "where", "t1", ".", "contestant_name", "=", "value", "intersect", "select", "t3", ".", "area_code", "from", "contestants", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "contestant_number", "=", "t2", ".", "contestant_number", "join", "area_code_state", "as", "t3", "on", "t2", ".", "state", "=", "t3", ".", "state", "where", "t1", ".", "contestant_name", "=", "value" ], "question": "Énumérez les codes de zone dans lesquels les électeurs ont voté à la fois pour le concurrent 'Tabatha Gehling' et le concurrent 'Kelly Clauss'.", "question_toks": [ "Énumérez", "les", "codes", "de", "zone", "dans", "lesquels", "les", "électeurs", "ont", "voté", "à", "la", "fois", "pour", "le", "concurrent", "'", "Tabatha", "Gehling", "'", "et", "le", "concurrent", "'", "Kelly", "Clauss", "'", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Tabatha Gehling\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Kelly Clauss\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "voter_1", "query": "select contestant_name from contestants where contestant_name like \"%al%\"", "query_toks": [ "select", "contestant_name", "from", "contestants", "where", "contestant_name", "like", "\"%al%\"" ], "query_toks_no_value": [ "select", "contestant_name", "from", "contestants", "where", "contestant_name", "like", "value" ], "question": "Renvoyez les noms des candidats dont les noms contiennent la sous-chaîne 'al'.", "question_toks": [ "Renvoyez", "les", "noms", "des", "candidats", "dont", "les", "noms", "contiennent", "la", "sous-chaîne", "'", "al", "'", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 4, false ], null ], "\"%al%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE IndepYear > 1950", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "IndepYear", ">", "1950" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "indepyear", ">", "value" ], "question": "Quels sont les noms de tous les pays devenus indépendants après 1950?", "question_toks": [ "Quels", "sont", "les", "noms", "de", "tous", "les", "pays", "devenus", "indépendants", "après", "1950", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 1950.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE IndepYear > 1950", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "IndepYear", ">", "1950" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "indepyear", ">", "value" ], "question": "Donnez les noms des nations qui ont été fondées après 1950.", "question_toks": [ "Donnez", "les", "noms", "des", "nations", "qui", "ont", "été", "fondées", "après", "1950", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 1950.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "Republic", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "where", "governmentform", "=", "value" ], "question": "Combien de pays ont une république comme forme de gouvernement?", "question_toks": [ "Combien", "de", "pays", "ont", "une", "république", "comme", "forme", "de", "gouvernement", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Republic\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "Republic", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "where", "governmentform", "=", "value" ], "question": "Combien de pays ont des gouvernements qui sont des républiques?", "question_toks": [ "Combien", "de", "pays", "ont", "des", "gouvernements", "qui", "sont", "des", "républiques", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Republic\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", "query_toks": [ "SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Region", "=", "``", "Caribbean", "''" ], "query_toks_no_value": [ "select", "sum", "(", "surfacearea", ")", "from", "country", "where", "region", "=", "value" ], "question": "Quelle est la superficie totale des pays de la région des Caraïbes?", "question_toks": [ "Quelle", "est", "la", "superficie", "totale", "des", "pays", "de", "la", "région", "des", "Caraïbes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Caribbean\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", "query_toks": [ "SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Region", "=", "``", "Caribbean", "''" ], "query_toks_no_value": [ "select", "sum", "(", "surfacearea", ")", "from", "country", "where", "region", "=", "value" ], "question": "Quelle est la surface de la surface des comtestiers dans la couverture des Caraïbes?", "question_toks": [ "Quelle", "est", "la", "surface", "de", "la", "surface", "des", "comtestiers", "dans", "la", "couverture", "des", "Caraïbes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Caribbean\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Continent FROM country WHERE Name = \"Anguilla\"", "query_toks": [ "SELECT", "Continent", "FROM", "country", "WHERE", "Name", "=", "``", "Anguilla", "''" ], "query_toks_no_value": [ "select", "continent", "from", "country", "where", "name", "=", "value" ], "question": "Dans quel continent est Anguilla?", "question_toks": [ "Dans", "quel", "continent", "est", "Anguilla", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Anguilla\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Continent FROM country WHERE Name = \"Anguilla\"", "query_toks": [ "SELECT", "Continent", "FROM", "country", "WHERE", "Name", "=", "``", "Anguilla", "''" ], "query_toks_no_value": [ "select", "continent", "from", "country", "where", "name", "=", "value" ], "question": "Quel est le nom du continent qui appartient à Anguilla?", "question_toks": [ "Quel", "est", "le", "nom", "du", "continent", "qui", "appartient", "à", "Anguilla", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Anguilla\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"", "query_toks": [ "SELECT", "Region", "FROM", "country", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Name", "=", "``", "Kabul", "''" ], "query_toks_no_value": [ "select", "region", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "name", "=", "value" ], "question": "Dans quelle région la ville de Kaboul est-elle située?", "question_toks": [ "Dans", "quelle", "région", "la", "ville", "de", "Kaboul", "est-elle", "située", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kabul\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"", "query_toks": [ "SELECT", "Region", "FROM", "country", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Name", "=", "``", "Kabul", "''" ], "query_toks_no_value": [ "select", "region", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "name", "=", "value" ], "question": "Dans quelle région est Kaboul?", "question_toks": [ "Dans", "quelle", "région", "est", "Kaboul", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kabul\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Aruba", "''", "ORDER", "BY", "Percentage", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "order", "by", "percentage", "desc", "limit", "value" ], "question": "Quelle langue est la plus populaire à Aruba?", "question_toks": [ "Quelle", "langue", "est", "la", "plus", "populaire", "à", "Aruba", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Aruba\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 26, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Aruba", "''", "ORDER", "BY", "Percentage", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "order", "by", "percentage", "desc", "limit", "value" ], "question": "Quelle langue est essentiellement parlée à Aruba?", "question_toks": [ "Quelle", "langue", "est", "essentiellement", "parlée", "à", "Aruba", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Aruba\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 26, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\"", "query_toks": [ "SELECT", "Population", ",", "LifeExpectancy", "FROM", "country", "WHERE", "Name", "=", "``", "Brazil", "''" ], "query_toks_no_value": [ "select", "population", ",", "lifeexpectancy", "from", "country", "where", "name", "=", "value" ], "question": "Quelles sont les attentes de la population et de la vie au Brésil?", "question_toks": [ "Quelles", "sont", "les", "attentes", "de", "la", "population", "et", "de", "la", "vie", "au", "Brésil", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Brazil\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\"", "query_toks": [ "SELECT", "Population", ",", "LifeExpectancy", "FROM", "country", "WHERE", "Name", "=", "``", "Brazil", "''" ], "query_toks_no_value": [ "select", "population", ",", "lifeexpectancy", "from", "country", "where", "name", "=", "value" ], "question": "Donnez-moi la population du Brésil et les attentes de la vie.", "question_toks": [ "Donnez", "-moi", "la", "population", "du", "Brésil", "et", "les", "attentes", "de", "la", "vie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Brazil\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Population , Region FROM country WHERE Name = \"Angola\"", "query_toks": [ "SELECT", "Population", ",", "Region", "FROM", "country", "WHERE", "Name", "=", "``", "Angola", "''" ], "query_toks_no_value": [ "select", "population", ",", "region", "from", "country", "where", "name", "=", "value" ], "question": "Quelles sont la région et la population de l'Angola?", "question_toks": [ "Quelles", "sont", "la", "région", "et", "la", "population", "de", "l'", "Angola", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Angola\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Population , Region FROM country WHERE Name = \"Angola\"", "query_toks": [ "SELECT", "Population", ",", "Region", "FROM", "country", "WHERE", "Name", "=", "``", "Angola", "''" ], "query_toks_no_value": [ "select", "population", ",", "region", "from", "country", "where", "name", "=", "value" ], "question": "Quelle région appartient à l'Angola et quelle est sa population?", "question_toks": [ "Quelle", "région", "appartient", "à", "l'", "Angola", "et", "quelle", "est", "sa", "population", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Angola\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", "query_toks": [ "SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Region", "=", "``", "Central", "Africa", "''" ], "query_toks_no_value": [ "select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "region", "=", "value" ], "question": "Quelle est l'espérance de vie moyenne attendue pour les pays de la région d'Afrique centrale?", "question_toks": [ "Quelle", "est", "l'", "espérance", "de", "vie", "moyenne", "attendue", "pour", "les", "pays", "de", "la", "région", "d'", "Afrique", "centrale", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Central Africa\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", "query_toks": [ "SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Region", "=", "``", "Central", "Africa", "''" ], "query_toks_no_value": [ "select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "region", "=", "value" ], "question": "Quelle est la durée de l'espérance de vie moyenne du peuple en Afrique centrale?", "question_toks": [ "Quelle", "est", "la", "durée", "de", "l'", "espérance", "de", "vie", "moyenne", "du", "peuple", "en", "Afrique", "centrale", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Central Africa\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "order", "by", "lifeexpectancy", "limit", "value" ], "question": "Quel est le nom du pays qui a l'espérance de vie la plus courte en Asie?", "question_toks": [ "Quel", "est", "le", "nom", "du", "pays", "qui", "a", "l'", "espérance", "de", "vie", "la", "plus", "courte", "en", "Asie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "order", "by", "lifeexpectancy", "limit", "value" ], "question": "Donnez le nom du pays en Asie avec l'espérance de vie la plus basse.", "question_toks": [ "Donnez", "le", "nom", "du", "pays", "en", "Asie", "avec", "l'", "espérance", "de", "vie", "la", "plus", "basse", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\"", "query_toks": [ "SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value" ], "question": "Quelle est la population totale et le PNB maximum en Asie?", "question_toks": [ "Quelle", "est", "la", "population", "totale", "et", "le", "PNB", "maximum", "en", "Asie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 1, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\"", "query_toks": [ "SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value" ], "question": "Combien de personnes vivent en Asie et quel est le plus grand PNB parmi eux?", "question_toks": [ "Combien", "de", "personnes", "vivent", "en", "Asie", "et", "quel", "est", "le", "plus", "grand", "PNB", "parmi", "eux", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 1, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", "query_toks": [ "SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "GovernmentForm", "=", "``", "Republic", "''" ], "query_toks_no_value": [ "select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "value", "and", "governmentform", "=", "value" ], "question": "Quelle est l'espérance de vie moyenne dans les pays africains qui sont des républiques?", "question_toks": [ "Quelle", "est", "l'", "espérance", "de", "vie", "moyenne", "dans", "les", "pays", "africains", "qui", "sont", "des", "républiques", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Africa\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Republic\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", "query_toks": [ "SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "GovernmentForm", "=", "``", "Republic", "''" ], "query_toks_no_value": [ "select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "value", "and", "governmentform", "=", "value" ], "question": "Donner l'espérance de vie moyenne des pays d'Afrique qui sont des républiques?", "question_toks": [ "Donner", "l'", "espérance", "de", "vie", "moyenne", "des", "pays", "d'", "Afrique", "qui", "sont", "des", "républiques", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Africa\"", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Republic\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", "query_toks": [ "SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "OR", "Continent", "=", "``", "Europe", "''" ], "query_toks_no_value": [ "select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "or", "continent", "=", "value" ], "question": "Quelle est la superficie totale des continents Asie et Europe?", "question_toks": [ "Quelle", "est", "la", "superficie", "totale", "des", "continents", "Asie", "et", "Europe", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Europe\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", "query_toks": [ "SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "OR", "Continent", "=", "``", "Europe", "''" ], "query_toks_no_value": [ "select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "or", "continent", "=", "value" ], "question": "Donner la surface totale couverte par des pays en Asie ou en Europe.", "question_toks": [ "Donner", "la", "surface", "totale", "couverte", "par", "des", "pays", "en", "Asie", "ou", "en", "Europe", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Europe\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", "query_toks": [ "SELECT", "sum", "(", "Population", ")", "FROM", "city", "WHERE", "District", "=", "``", "Gelderland", "''" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", "from", "city", "where", "district", "=", "value" ], "question": "Combien de personnes vivent dans le district de Gueldre?", "question_toks": [ "Combien", "de", "personnes", "vivent", "dans", "le", "district", "de", "Gueldre", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Gelderland\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", "query_toks": [ "SELECT", "sum", "(", "Population", ")", "FROM", "city", "WHERE", "District", "=", "``", "Gelderland", "''" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", "from", "city", "where", "district", "=", "value" ], "question": "Quelle est la population totale du district de Gelderland?", "question_toks": [ "Quelle", "est", "la", "population", "totale", "du", "district", "de", "Gelderland", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Gelderland\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", "query_toks": [ "SELECT", "avg", "(", "GNP", ")", ",", "sum", "(", "population", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "US", "Territory", "''" ], "query_toks_no_value": [ "select", "avg", "(", "gnp", ")", ",", "sum", "(", "population", ")", "from", "country", "where", "governmentform", "=", "value" ], "question": "Quel est le PNB moyen et la population totale de toutes les nations dont le gouvernement est le territoire américain?", "question_toks": [ "Quel", "est", "le", "PNB", "moyen", "et", "la", "population", "totale", "de", "toutes", "les", "nations", "dont", "le", "gouvernement", "est", "le", "territoire", "américain", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 16, false ], null ] ], [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"US Territory\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", "query_toks": [ "SELECT", "avg", "(", "GNP", ")", ",", "sum", "(", "population", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "US", "Territory", "''" ], "query_toks_no_value": [ "select", "avg", "(", "gnp", ")", ",", "sum", "(", "population", ")", "from", "country", "where", "governmentform", "=", "value" ], "question": "Donnez au PNB moyen et à la population totale des Nations qui sont considérés comme territoire américain.", "question_toks": [ "Donnez", "au", "PNB", "moyen", "et", "à", "la", "population", "totale", "des", "Nations", "qui", "sont", "considérés", "comme", "territoire", "américain", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 16, false ], null ] ], [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"US Territory\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "LANGUAGE", ")", "FROM", "countrylanguage" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "language", ")", "from", "countrylanguage" ], "question": "Combien de langues uniques sont parlées dans le monde?", "question_toks": [ "Combien", "de", "langues", "uniques", "sont", "parlées", "dans", "le", "monde", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 24, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "LANGUAGE", ")", "FROM", "countrylanguage" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "language", ")", "from", "countrylanguage" ], "question": "Quel est le nombre de langues distinctes utilisées dans le monde?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "langues", "distinctes", "utilisées", "dans", "le", "monde", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 24, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "GovernmentForm", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "governmentform", ")", "from", "country", "where", "continent", "=", "value" ], "question": "Combien de types de gouvernements sont en Afrique?", "question_toks": [ "Combien", "de", "types", "de", "gouvernements", "sont", "en", "Afrique", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 19, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Africa\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "GovernmentForm", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "governmentform", ")", "from", "country", "where", "continent", "=", "value" ], "question": "Combien de formes différentes de gouvernements y a-t-il en Afrique?", "question_toks": [ "Combien", "de", "formes", "différentes", "de", "gouvernements", "y", "a", "-t", "-il", "en", "Afrique", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 19, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Africa\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", "query_toks": [ "SELECT", "COUNT", "(", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Aruba", "''" ], "query_toks_no_value": [ "select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value" ], "question": "Quel est le nombre total de langues utilisées dans Aruba?", "question_toks": [ "Quel", "est", "le", "nombre", "total", "de", "langues", "utilisées", "dans", "Aruba", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Aruba\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", "query_toks": [ "SELECT", "COUNT", "(", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Aruba", "''" ], "query_toks_no_value": [ "select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value" ], "question": "Combien de langues sont parlées à Aruba?", "question_toks": [ "Combien", "de", "langues", "sont", "parlées", "à", "Aruba", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Aruba\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Afghanistan", "''", "AND", "IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value" ], "question": "Combien de langues officielles a l'Afghanistan?", "question_toks": [ "Combien", "de", "langues", "officielles", "a", "l'", "Afghanistan", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Afghanistan\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Afghanistan", "''", "AND", "IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value" ], "question": "Combien de langues officielles sont prononcées en Afghanistan?", "question_toks": [ "Combien", "de", "langues", "officielles", "sont", "prononcées", "en", "Afghanistan", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Afghanistan\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "GROUP", "BY", "T1.Name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom du pays qui parle le plus grand nombre de langues?", "question_toks": [ "Quel", "est", "le", "nom", "du", "pays", "qui", "parle", "le", "plus", "grand", "nombre", "de", "langues", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "GROUP", "BY", "T1.Name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Donnez le nom de la nation qui utilise la plus grande quantité de langues.", "question_toks": [ "Donnez", "le", "nom", "de", "la", "nation", "qui", "utilise", "la", "plus", "grande", "quantité", "de", "langues", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Continent", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "GROUP", "BY", "T1.Continent", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "continent", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "group", "by", "t1", ".", "continent", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel continent a les langues les plus diverses?", "question_toks": [ "Quel", "continent", "a", "les", "langues", "les", "plus", "diverses", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Continent", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "GROUP", "BY", "T1.Continent", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "continent", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "group", "by", "t1", ".", "continent", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel continent parle la plupart des langues?", "question_toks": [ "Quel", "continent", "parle", "la", "plupart", "des", "langues", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "(", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Dutch", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", ")" ], "question": "Combien de pays parlent anglais et néerlandais?", "question_toks": [ "Combien", "de", "pays", "parlent", "anglais", "et", "néerlandais", "?" ], "sql": { "from": { "table_units": [ [ "sql", { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Dutch\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "(", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Dutch", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", ")" ], "question": "Quel est le nombre de nations qui utilisent l'anglais et le néerlandais?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "nations", "qui", "utilisent", "l'", "anglais", "et", "le", "néerlandais", "?" ], "sql": { "from": { "table_units": [ [ "sql", { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Dutch\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "French", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value" ], "question": "Quels sont les noms des nations parlent l'anglais et le français?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "nations", "parlent", "l'", "anglais", "et", "le", "français", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"French\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "French", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value" ], "question": "Donnez aux noms des nations qui parlent l'anglais et le français.", "question_toks": [ "Donnez", "aux", "noms", "des", "nations", "qui", "parlent", "l'", "anglais", "et", "le", "français", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"French\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "French", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value" ], "question": "Quels sont les noms des nations où l'anglais et le français sont des langues officielles?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "nations", "où", "l'", "anglais", "et", "le", "français", "sont", "des", "langues", "officielles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"French\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "French", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value" ], "question": "Donnez aux noms des pays en anglais et en français comme langues officielles.", "question_toks": [ "Donnez", "aux", "noms", "des", "pays", "en", "anglais", "et", "en", "français", "comme", "langues", "officielles", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"French\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Continent", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Chinese", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "continent", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value" ], "question": "Quel est le nombre de continents distincts où les Chinois sont parlés?", "question_toks": [ "Quel", "est", "le", "nombre", "de", "continents", "distincts", "où", "les", "Chinois", "sont", "parlés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Chinese\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Continent", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Chinese", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "continent", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value" ], "question": "Combien de continents parlent chinois?", "question_toks": [ "Combien", "de", "continents", "parlent", "chinois", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Chinese\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" OR T2.Language = \"Dutch\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Region", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "OR", "T2.Language", "=", "``", "Dutch", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "or", "t2", ".", "language", "=", "value" ], "question": "Quelles sont les régions qui utilisent l'anglais ou le néerlandais?", "question_toks": [ "Quelles", "sont", "les", "régions", "qui", "utilisent", "l'", "anglais", "ou", "le", "néerlandais", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ], "or", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Dutch\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" OR T2.Language = \"Dutch\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Region", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "OR", "T2.Language", "=", "``", "Dutch", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "or", "t2", ".", "language", "=", "value" ], "question": "Quelles régions parlent néerlandais ou anglais?", "question_toks": [ "Quelles", "régions", "parlent", "néerlandais", "ou", "anglais", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ], "or", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Dutch\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", "query_toks": [ "select", "t1.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "where", "t2.language", "=", "\"english\"", "and", "isofficial", "=", "\"t\"", "union", "select", "t1.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "where", "t2.language", "=", "\"dutch\"", "and", "isofficial", "=", "\"t\"" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value" ], "question": "Quels sont les pays où l'anglais ou le néerlandais est la langue officielle?", "question_toks": [ "Quels", "sont", "les", "pays", "où", "l'", "anglais", "ou", "le", "néerlandais", "est", "la", "langue", "officielle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"english\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"t\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"dutch\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"t\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "world_1", "query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\" AND IsOfficial = \"T\"", "query_toks": [ "SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "IsOfficial", "=", "``", "T", "''", "UNION", "SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Dutch", "''", "AND", "IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value" ], "question": "Quels pays ont l'anglais ou le néerlandais comme langue officielle?", "question_toks": [ "Quels", "pays", "ont", "l'", "anglais", "ou", "le", "néerlandais", "comme", "langue", "officielle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Dutch\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Continent", "=", "``", "Asia", "''", "GROUP", "BY", "T2.Language", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "continent", "=", "value", "group", "by", "t2", ".", "language", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle langue est la plus populaire sur le continent asiatique?", "question_toks": [ "Quelle", "langue", "est", "la", "plus", "populaire", "sur", "le", "continent", "asiatique", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [ [ 0, 24, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Continent", "=", "``", "Asia", "''", "GROUP", "BY", "T2.Language", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "continent", "=", "value", "group", "by", "t2", ".", "language", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle est la langue utilisée par le plus grand nombre de nations asiatiques?", "question_toks": [ "Quelle", "est", "la", "langue", "utilisée", "par", "le", "plus", "grand", "nombre", "de", "nations", "asiatiques", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [ [ 0, 24, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.GovernmentForm", "=", "``", "Republic", "''", "GROUP", "BY", "T2.Language", "HAVING", "COUNT", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "governmentform", "=", "value", "group", "by", "t2", ".", "language", "having", "count", "(", "*", ")", "=", "value" ], "question": "Quelles langues sont parlées par un seul pays en République gouvernements?", "question_toks": [ "Quelles", "langues", "sont", "parlées", "par", "un", "seul", "pays", "en", "République", "gouvernements", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Republic\"", null ] ], "groupBy": [ [ 0, 24, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.GovernmentForm", "=", "``", "Republic", "''", "GROUP", "BY", "T2.Language", "HAVING", "COUNT", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "governmentform", "=", "value", "group", "by", "t2", ".", "language", "having", "count", "(", "*", ")", "=", "value" ], "question": "Quelles langues ne sont utilisées que par un seul pays avec un gouvernement de la République?", "question_toks": [ "Quelles", "langues", "ne", "sont", "utilisées", "que", "par", "un", "seul", "pays", "avec", "un", "gouvernement", "de", "la", "République", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Republic\"", null ] ], "groupBy": [ [ 0, 24, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", ",", "T1.Population", "FROM", "city", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.CountryCode", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "ORDER", "BY", "T1.Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "population", "from", "city", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "countrycode", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "order", "by", "t1", ".", "population", "desc", "limit", "value" ], "question": "Trouvez la ville avec la plus grande population qui utilise l'anglais.", "question_toks": [ "Trouvez", "la", "ville", "avec", "la", "plus", "grande", "population", "qui", "utilise", "l'", "anglais", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", ",", "T1.Population", "FROM", "city", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.CountryCode", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "ORDER", "BY", "T1.Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "population", "from", "city", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "countrycode", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "order", "by", "t1", ".", "population", "desc", "limit", "value" ], "question": "Quelle est la ville la plus populace qui parle anglais?", "question_toks": [ "Quelle", "est", "la", "ville", "la", "plus", "populace", "qui", "parle", "anglais", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "Population", ",", "LifeExpectancy", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "population", ",", "lifeexpectancy", "from", "country", "where", "continent", "=", "value", "order", "by", "surfacearea", "desc", "limit", "value" ], "question": "Trouvez le nom, la population et la durée de vie attendue du pays asiatique avec la plus grande région?", "question_toks": [ "Trouvez", "le", "nom", ",", "la", "population", "et", "la", "durée", "de", "vie", "attendue", "du", "pays", "asiatique", "avec", "la", "plus", "grande", "région", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "Population", ",", "LifeExpectancy", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "population", ",", "lifeexpectancy", "from", "country", "where", "continent", "=", "value", "order", "by", "surfacearea", "desc", "limit", "value" ], "question": "Quel est le nom, la population et l'espérance de vie du plus grand pays asiatique par terre?", "question_toks": [ "Quel", "est", "le", "nom", ",", "la", "population", "et", "l'", "espérance", "de", "vie", "du", "plus", "grand", "pays", "asiatique", "par", "terre", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")", "query_toks": [ "SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Name", "NOT", "IN", "(", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''", ")" ], "query_toks_no_value": [ "select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "name", "not", "in", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", ")" ], "question": "Quelle est l'espérance de vie moyenne dans les pays où l'anglais n'est pas la langue officielle?", "question_toks": [ "Quelle", "est", "l'", "espérance", "de", "vie", "moyenne", "dans", "les", "pays", "où", "l'", "anglais", "n'", "est", "pas", "la", "langue", "officielle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 9, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "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": "world_1", "query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")", "query_toks": [ "SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Name", "NOT", "IN", "(", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''", ")" ], "query_toks_no_value": [ "select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "name", "not", "in", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", ")" ], "question": "Donner à l'espérance de vie moyenne des pays dans laquelle l'anglais n'est pas la langue officielle.", "question_toks": [ "Donner", "à", "l'", "espérance", "de", "vie", "moyenne", "des", "pays", "dans", "laquelle", "l'", "anglais", "n'", "est", "pas", "la", "langue", "officielle", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 9, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "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": "world_1", "query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")", "query_toks": [ "SELECT", "sum", "(", "Population", ")", "FROM", "country", "WHERE", "Name", "NOT", "IN", "(", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", ")" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", "from", "country", "where", "name", "not", "in", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", ")" ], "question": "Quel est le nombre total de personnes vivant dans les nations qui n'utilisent pas l'anglais?", "question_toks": [ "Quel", "est", "le", "nombre", "total", "de", "personnes", "vivant", "dans", "les", "nations", "qui", "n'", "utilisent", "pas", "l'", "anglais", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 9, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "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": "world_1", "query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")", "query_toks": [ "SELECT", "sum", "(", "Population", ")", "FROM", "country", "WHERE", "Name", "NOT", "IN", "(", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", ")" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", "from", "country", "where", "name", "not", "in", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", ")" ], "question": "Combien de personnes vivent dans des pays qui ne parlent pas anglais?", "question_toks": [ "Combien", "de", "personnes", "vivent", "dans", "des", "pays", "qui", "ne", "parlent", "pas", "anglais", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 9, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "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": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.HeadOfState", "=", "``", "Beatrix", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value" ], "question": "Quelle est la langue officielle parlée dans le pays dont le chef de l'Etat est Beatrix?", "question_toks": [ "Quelle", "est", "la", "langue", "officielle", "parlée", "dans", "le", "pays", "dont", "le", "chef", "de", "l'", "Etat", "est", "Beatrix", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Beatrix\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.HeadOfState", "=", "``", "Beatrix", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value" ], "question": "Quelle est la langue officielle utilisée dans le pays le nom de la tête de l'Etat Beatrix.", "question_toks": [ "Quelle", "est", "la", "langue", "officielle", "utilisée", "dans", "le", "pays", "le", "nom", "de", "la", "tête", "de", "l'", "Etat", "Beatrix", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Beatrix\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = \"T\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "IndepYear", "<", "1930", "AND", "T2.IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value" ], "question": "Quel est le nombre total de langues officielles uniques parlées dans les pays fondés avant 1930?", "question_toks": [ "Quel", "est", "le", "nombre", "total", "de", "langues", "officielles", "uniques", "parlées", "dans", "les", "pays", "fondés", "avant", "1930", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 24, true ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 1930.0, null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = \"T\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "IndepYear", "<", "1930", "AND", "T2.IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value" ], "question": "Pour les pays fondés avant 1930, quel est le nombre total de langues officielles distinctes?", "question_toks": [ "Pour", "les", "pays", "fondés", "avant", "1930", ",", "quel", "est", "le", "nombre", "total", "de", "langues", "officielles", "distinctes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 24, true ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 1930.0, null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "(", "SELECT", "min", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Europe", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "surfacearea", ">", "(", "select", "min", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "Quels sont les pays qui ont une plus grande surface que n'importe quel pays d'Europe?", "question_toks": [ "Quels", "sont", "les", "pays", "qui", "ont", "une", "plus", "grande", "surface", "que", "n'", "importe", "quel", "pays", "d'", "Europe", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Europe\"", null ] ], "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": "world_1", "query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "(", "SELECT", "min", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Europe", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "surfacearea", ">", "(", "select", "min", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "Quels pays ont une plus grande région que celle de tout pays d'Europe?", "question_toks": [ "Quels", "pays", "ont", "une", "plus", "grande", "région", "que", "celle", "de", "tout", "pays", "d'", "Europe", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Europe\"", null ] ], "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": "world_1", "query": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT max(population) FROM country WHERE Continent = \"Asia\")", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "population", "<", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "Quels sont les pays africains qui ont une population de moins que n'importe quel pays d'Asie?", "question_toks": [ "Quels", "sont", "les", "pays", "africains", "qui", "ont", "une", "population", "de", "moins", "que", "n'", "importe", "quel", "pays", "d'", "Asie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Africa\"", null ], "and", [ false, 4, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "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": "world_1", "query": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT min(population) FROM country WHERE Continent = \"Asia\")", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "population", "<", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "Quels pays africains ont une population plus petite que celle de tout pays d'Asie?", "question_toks": [ "Quels", "pays", "africains", "ont", "une", "population", "plus", "petite", "que", "celle", "de", "tout", "pays", "d'", "Asie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Africa\"", null ], "and", [ false, 4, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "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": "world_1", "query": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT max(population) FROM country WHERE Continent = \"Africa\")", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "AND", "population", ">", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "Quels pays asiatiques ont une population plus grande que n'importe quel pays d'Afrique?", "question_toks": [ "Quels", "pays", "asiatiques", "ont", "une", "population", "plus", "grande", "que", "n'", "importe", "quel", "pays", "d'", "Afrique", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Africa\"", null ] ], "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": "world_1", "query": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT min(population) FROM country WHERE Continent = \"Africa\")", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "AND", "population", ">", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "Quels sont les pays asiatiques qui ont une population plus grande que celle de tout pays d'Afrique?", "question_toks": [ "Quels", "sont", "les", "pays", "asiatiques", "qui", "ont", "une", "population", "plus", "grande", "que", "celle", "de", "tout", "pays", "d'", "Afrique", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Africa\"", null ] ], "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": "world_1", "query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "query_toks": [ "SELECT", "CountryCode", "FROM", "countrylanguage", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "countrycode", "from", "countrylanguage", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value" ], "question": "Quels sont les codes de pays pour les pays qui ne parlent pas anglais?", "question_toks": [ "Quels", "sont", "les", "codes", "de", "pays", "pour", "les", "pays", "qui", "ne", "parlent", "pas", "anglais", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "world_1", "query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "query_toks": [ "SELECT", "CountryCode", "FROM", "countrylanguage", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "countrycode", "from", "countrylanguage", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value" ], "question": "Renvoyer les codes de pays pour les pays qui ne parlent pas anglais.", "question_toks": [ "Renvoyer", "les", "codes", "de", "pays", "pour", "les", "pays", "qui", "ne", "parlent", "pas", "anglais", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "world_1", "query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", "query_toks": [ "SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "!", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "distinct", "countrycode", "from", "countrylanguage", "where", "language", "!", "=", "value" ], "question": "Quels sont les codes de pays des pays où les gens utilisent des langues autres que l'anglais?", "question_toks": [ "Quels", "sont", "les", "codes", "de", "pays", "des", "pays", "où", "les", "gens", "utilisent", "des", "langues", "autres", "que", "l'", "anglais", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", "query_toks": [ "SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "!", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "distinct", "countrycode", "from", "countrylanguage", "where", "language", "!", "=", "value" ], "question": "Donnez aux codes de pays pour les pays dans lesquels les gens parlent des Langauges qui ne sont pas l'anglais.", "question_toks": [ "Donnez", "aux", "codes", "de", "pays", "pour", "les", "pays", "dans", "lesquels", "les", "gens", "parlent", "des", "Langauges", "qui", "ne", "sont", "pas", "l'", "anglais", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "query_toks": [ "SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "!", "=", "``", "Republic", "''", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "code", "from", "country", "where", "governmentform", "!", "=", "value", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value" ], "question": "Quels sont les codes des pays qui ne parlent pas anglais et dont les formes gouvernementales ne sont pas une république?", "question_toks": [ "Quels", "sont", "les", "codes", "des", "pays", "qui", "ne", "parlent", "pas", "anglais", "et", "dont", "les", "formes", "gouvernementales", "ne", "sont", "pas", "une", "république", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 19, false ], null ], "\"Republic\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "world_1", "query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "query_toks": [ "SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "!", "=", "``", "Republic", "''", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "code", "from", "country", "where", "governmentform", "!", "=", "value", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value" ], "question": "Renvoyez les codes des pays qui ne parlent pas anglais et n'ont pas de républiques pour les gouvernements.", "question_toks": [ "Renvoyez", "les", "codes", "des", "pays", "qui", "ne", "parlent", "pas", "anglais", "et", "n'", "ont", "pas", "de", "républiques", "pour", "les", "gouvernements", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 19, false ], null ], "\"Republic\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "world_1", "query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", "query_toks": [ "SELECT", "DISTINCT", "T2.Name", "FROM", "country", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T2.CountryCode", "=", "T1.Code", "WHERE", "T1.Continent", "=", "'Europe", "'", "AND", "T1.Name", "NOT", "IN", "(", "SELECT", "T3.Name", "FROM", "country", "AS", "T3", "JOIN", "countrylanguage", "AS", "T4", "ON", "T3.Code", "=", "T4.CountryCode", "WHERE", "T4.IsOfficial", "=", "'T", "'", "AND", "T4.Language", "=", "'English", "'", ")" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "value", "and", "t1", ".", "name", "not", "in", "(", "select", "t3", ".", "name", "from", "country", "as", "t3", "join", "countrylanguage", "as", "t4", "on", "t3", ".", "code", "=", "t4", ".", "countrycode", "where", "t4", ".", "isofficial", "=", "value", "and", "t4", ".", "language", "=", "value", ")" ], "question": "Quelles villes sont dans des pays européens où l'anglais n'est pas la langue officielle?", "question_toks": [ "Quelles", "villes", "sont", "dans", "des", "pays", "européens", "où", "l'", "anglais", "n'", "est", "pas", "la", "langue", "officielle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Europe\"", null ], "and", [ true, 8, [ 0, [ 0, 9, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "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": "world_1", "query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", "query_toks": [ "SELECT", "DISTINCT", "T2.Name", "FROM", "country", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T2.CountryCode", "=", "T1.Code", "WHERE", "T1.Continent", "=", "'Europe", "'", "AND", "T1.Name", "NOT", "IN", "(", "SELECT", "T3.Name", "FROM", "country", "AS", "T3", "JOIN", "countrylanguage", "AS", "T4", "ON", "T3.Code", "=", "T4.CountryCode", "WHERE", "T4.IsOfficial", "=", "'T", "'", "AND", "T4.Language", "=", "'English", "'", ")" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "value", "and", "t1", ".", "name", "not", "in", "(", "select", "t3", ".", "name", "from", "country", "as", "t3", "join", "countrylanguage", "as", "t4", "on", "t3", ".", "code", "=", "t4", ".", "countrycode", "where", "t4", ".", "isofficial", "=", "value", "and", "t4", ".", "language", "=", "value", ")" ], "question": "Quels sont les noms des villes en Europe pour quel anglais n'est pas la langue officielle?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "villes", "en", "Europe", "pour", "quel", "anglais", "n'", "est", "pas", "la", "langue", "officielle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Europe\"", null ], "and", [ true, 8, [ 0, [ 0, 9, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"English\"", null ] ], "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": "world_1", "query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 't' and t2.language = 'chinese' and t1.continent = \"asia\"", "query_toks": [ "select", "distinct", "t3.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "join", "city", "as", "t3", "on", "t1.code", "=", "t3.countrycode", "where", "t2.isofficial", "=", "\"t\"", "and", "t2.language", "=", "\"chinese\"", "and", "t1.continent", "=", "\"asia\"" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "join", "city", "as", "t3", "on", "t1", ".", "code", "=", "t3", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value" ], "question": "Quelles villes uniques sont dans les pays asiatiques où chinois est la langue officielle?", "question_toks": [ "Quelles", "villes", "uniques", "sont", "dans", "les", "pays", "asiatiques", "où", "chinois", "est", "la", "langue", "officielle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"t\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"chinese\"", null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"asia\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = \"Asia\"", "query_toks": [ "SELECT", "DISTINCT", "T3.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "JOIN", "city", "AS", "T3", "ON", "T1.Code", "=", "T3.CountryCode", "WHERE", "T2.IsOfficial", "=", "'T", "'", "AND", "T2.Language", "=", "'Chinese", "'", "AND", "T1.Continent", "=", "``", "Asia", "''" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "join", "city", "as", "t3", "on", "t1", ".", "code", "=", "t3", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value" ], "question": "Renvoyez les différents noms des villes qui sont en Asie et pour lesquelles le chinois est la langue officielle.", "question_toks": [ "Renvoyez", "les", "différents", "noms", "des", "villes", "qui", "sont", "en", "Asie", "et", "pour", "lesquelles", "le", "chinois", "est", "la", "langue", "officielle", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"T\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Chinese\"", null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "SurfaceArea", ",", "IndepYear", "FROM", "country", "ORDER", "BY", "Population", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "surfacearea", ",", "indepyear", "from", "country", "order", "by", "population", "limit", "value" ], "question": "Quel est le nom, l'année de l'indépendance et la surface du pays avec la plus petite population?", "question_toks": [ "Quel", "est", "le", "nom", ",", "l'", "année", "de", "l'", "indépendance", "et", "la", "surface", "du", "pays", "avec", "la", "plus", "petite", "population", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "SurfaceArea", ",", "IndepYear", "FROM", "country", "ORDER", "BY", "Population", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "surfacearea", ",", "indepyear", "from", "country", "order", "by", "population", "limit", "value" ], "question": "Donnez le nom, l'année de l'indépendance et la surface du pays qui possède la population la plus basse.", "question_toks": [ "Donnez", "le", "nom", ",", "l'", "année", "de", "l'", "indépendance", "et", "la", "surface", "du", "pays", "qui", "possède", "la", "population", "la", "plus", "basse", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "population", ",", "HeadOfState", "FROM", "country", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "population", ",", "headofstate", "from", "country", "order", "by", "surfacearea", "desc", "limit", "value" ], "question": "Quelles sont la population, le nom et le chef du pays avec la plus grande région?", "question_toks": [ "Quelles", "sont", "la", "population", ",", "le", "nom", "et", "le", "chef", "du", "pays", "avec", "la", "plus", "grande", "région", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "population", ",", "HeadOfState", "FROM", "country", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "population", ",", "headofstate", "from", "country", "order", "by", "surfacearea", "desc", "limit", "value" ], "question": "Donnez le nom, la population et le chef d'État pour le pays qui a la plus grande région.", "question_toks": [ "Donnez", "le", "nom", ",", "la", "population", "et", "le", "chef", "d'", "État", "pour", "le", "pays", "qui", "a", "la", "plus", "grande", "région", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "COUNT", "(", "T2.Language", ")", ",", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "count", "(", "t2", ".", "language", ")", ",", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Renvoyez le nom du pays et le nombre de langues parlées pour chaque pays qui parle au moins 3 langues.", "question_toks": [ "Renvoyez", "le", "nom", "du", "pays", "et", "le", "nombre", "de", "langues", "parlées", "pour", "chaque", "pays", "qui", "parle", "au", "moins", "3", "langues", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "COUNT", "(", "T2.Language", ")", ",", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "count", "(", "t2", ".", "language", ")", ",", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels sont les noms des pays qui parlent plus de 2 langues, ainsi que du nombre de langues qu'ils parlent?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "pays", "qui", "parlent", "plus", "de", "2", "langues", ",", "ainsi", "que", "du", "nombre", "de", "langues", "qu'", "ils", "parlent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "District", "FROM", "city", "WHERE", "Population", ">", "(", "SELECT", "avg", "(", "Population", ")", "FROM", "city", ")", "GROUP", "BY", "District" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "district", "from", "city", "where", "population", ">", "(", "select", "avg", "(", "population", ")", "from", "city", ")", "group", "by", "district" ], "question": "Trouvez le nombre de villes dans chaque district dont la population est supérieure à la population moyenne de villes?", "question_toks": [ "Trouvez", "le", "nombre", "de", "villes", "dans", "chaque", "district", "dont", "la", "population", "est", "supérieure", "à", "la", "population", "moyenne", "de", "villes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "District", "FROM", "city", "WHERE", "Population", ">", "(", "SELECT", "avg", "(", "Population", ")", "FROM", "city", ")", "GROUP", "BY", "District" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "district", "from", "city", "where", "population", ">", "(", "select", "avg", "(", "population", ")", "from", "city", ")", "group", "by", "district" ], "question": "Combien de villes de chaque district ont-ils une population supérieure à la population moyenne dans toutes les villes?", "question_toks": [ "Combien", "de", "villes", "de", "chaque", "district", "ont", "-ils", "une", "population", "supérieure", "à", "la", "population", "moyenne", "dans", "toutes", "les", "villes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", "query_toks": [ "SELECT", "sum", "(", "Population", ")", ",", "GovernmentForm", "FROM", "country", "GROUP", "BY", "GovernmentForm", "HAVING", "avg", "(", "LifeExpectancy", ")", ">", "72" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "governmentform", "from", "country", "group", "by", "governmentform", "having", "avg", "(", "lifeexpectancy", ")", ">", "value" ], "question": "Trouvez le nom du gouvernement et la population totale de chaque formulaire gouvernemental dont l'espérance de vie moyenne est supérieure à 72.", "question_toks": [ "Trouvez", "le", "nom", "du", "gouvernement", "et", "la", "population", "totale", "de", "chaque", "formulaire", "gouvernemental", "dont", "l'", "espérance", "de", "vie", "moyenne", "est", "supérieure", "à", "72", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 3, [ 0, [ 5, 15, false ], null ], 72.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", "query_toks": [ "SELECT", "sum", "(", "Population", ")", ",", "GovernmentForm", "FROM", "country", "GROUP", "BY", "GovernmentForm", "HAVING", "avg", "(", "LifeExpectancy", ")", ">", "72" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "governmentform", "from", "country", "group", "by", "governmentform", "having", "avg", "(", "lifeexpectancy", ")", ">", "value" ], "question": "Quelles sont les différentes formes gouvernementales et quelle est la population totale de chacune des formes gouvernementales qui ont une espérance de vie moyenne supérieure à 72?", "question_toks": [ "Quelles", "sont", "les", "différentes", "formes", "gouvernementales", "et", "quelle", "est", "la", "population", "totale", "de", "chacune", "des", "formes", "gouvernementales", "qui", "ont", "une", "espérance", "de", "vie", "moyenne", "supérieure", "à", "72", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 3, [ 0, [ 5, 15, false ], null ], 72.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", "query_toks": [ "SELECT", "sum", "(", "Population", ")", ",", "avg", "(", "LifeExpectancy", ")", ",", "Continent", "FROM", "country", "GROUP", "BY", "Continent", "HAVING", "avg", "(", "LifeExpectancy", ")", "<", "72" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "avg", "(", "lifeexpectancy", ")", ",", "continent", "from", "country", "group", "by", "continent", "having", "avg", "(", "lifeexpectancy", ")", "<", "value" ], "question": "Trouver l'espérance de vie moyenne et la population totale de chaque continent où l'espérance de vie moyenne est-elle plus courte de 72 ans?", "question_toks": [ "Trouver", "l'", "espérance", "de", "vie", "moyenne", "et", "la", "population", "totale", "de", "chaque", "continent", "où", "l'", "espérance", "de", "vie", "moyenne", "est-elle", "plus", "courte", "de", "72", "ans", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 5, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 4, [ 0, [ 5, 15, false ], null ], 72.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", "query_toks": [ "SELECT", "sum", "(", "Population", ")", ",", "avg", "(", "LifeExpectancy", ")", ",", "Continent", "FROM", "country", "GROUP", "BY", "Continent", "HAVING", "avg", "(", "LifeExpectancy", ")", "<", "72" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "avg", "(", "lifeexpectancy", ")", ",", "continent", "from", "country", "group", "by", "continent", "having", "avg", "(", "lifeexpectancy", ")", "<", "value" ], "question": "Quels sont les différents continents et la population totale et l'espérance de vie moyenne correspondant à chacun, pour les continents ayant une espérance de vie moyenne inférieure à 72 ans?", "question_toks": [ "Quels", "sont", "les", "différents", "continents", "et", "la", "population", "totale", "et", "l'", "espérance", "de", "vie", "moyenne", "correspondant", "à", "chacun", ",", "pour", "les", "continents", "ayant", "une", "espérance", "de", "vie", "moyenne", "inférieure", "à", "72", "ans", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 5, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 4, [ 0, [ 5, 15, false ], null ], 72.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", "query_toks": [ "SELECT", "Name", ",", "SurfaceArea", "FROM", "country", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "name", ",", "surfacearea", "from", "country", "order", "by", "surfacearea", "desc", "limit", "value" ], "question": "Quels sont les noms et les zones des pays avec la plus grande superficie?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "les", "zones", "des", "pays", "avec", "la", "plus", "grande", "superficie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "limit": 5, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", "query_toks": [ "SELECT", "Name", ",", "SurfaceArea", "FROM", "country", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "name", ",", "surfacearea", "from", "country", "order", "by", "surfacearea", "desc", "limit", "value" ], "question": "Renvoyez les noms et les surfaces des 5 plus grands pays.", "question_toks": [ "Renvoyez", "les", "noms", "et", "les", "surfaces", "des", "5", "plus", "grands", "pays", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "limit": 5, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", "query_toks": [ "SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "country", "order", "by", "population", "desc", "limit", "value" ], "question": "Quels sont les noms des pays avec la plus grande population en importance?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "pays", "avec", "la", "plus", "grande", "population", "en", "importance", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", "query_toks": [ "SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "country", "order", "by", "population", "desc", "limit", "value" ], "question": "Renvoyer les noms des 3 pays les plus peuplés.", "question_toks": [ "Renvoyer", "les", "noms", "des", "3", "pays", "les", "plus", "peuplés", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", "query_toks": [ "SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "country", "order", "by", "population", "asc", "limit", "value" ], "question": "Quels sont les noms des nations avec les 3 populations les plus basses?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "nations", "avec", "les", "3", "populations", "les", "plus", "basses", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", "query_toks": [ "SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "country", "order", "by", "population", "asc", "limit", "value" ], "question": "Renvoyez les noms des 3 pays avec le moins de personnes.", "question_toks": [ "Renvoyez", "les", "noms", "des", "3", "pays", "avec", "le", "moins", "de", "personnes", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(*) FROM country WHERE continent = \"Asia\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "continent", "=", "``", "Asia", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "where", "continent", "=", "value" ], "question": "Combien de pays sont en Asie?", "question_toks": [ "Combien", "de", "pays", "sont", "en", "Asie", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(*) FROM country WHERE continent = \"Asia\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "continent", "=", "``", "Asia", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "where", "continent", "=", "value" ], "question": "Comptez le nombre de pays en Asie.", "question_toks": [ "Comptez", "le", "nombre", "de", "pays", "en", "Asie", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Asia\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "``", "Europe", "''", "AND", "Population", "=", "``", "80000", "''" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "=", "value" ], "question": "Quels sont les noms des pays qui sont sur le continent de l'Europe et ont une population de 80000?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "pays", "qui", "sont", "sur", "le", "continent", "de", "l'", "Europe", "et", "ont", "une", "population", "de", "80000", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Europe\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"80000\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "``", "Europe", "''", "AND", "Population", "=", "``", "80000", "''" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "=", "value" ], "question": "Donnez aux noms des pays en Europe et d'une population égale à 80000.", "question_toks": [ "Donnez", "aux", "noms", "des", "pays", "en", "Europe", "et", "d'", "une", "population", "égale", "à", "80000", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Europe\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"80000\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", "query_toks": [ "select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "\"north america\"", "and", "surfacearea", ">", "3000" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "and", "surfacearea", ">", "value" ], "question": "Quelle est la population totale et la zone moyenne des pays du continent de l'Amérique du Nord dont la superficie est supérieure à 3000?", "question_toks": [ "Quelle", "est", "la", "population", "totale", "et", "la", "zone", "moyenne", "des", "pays", "du", "continent", "de", "l'", "Amérique", "du", "Nord", "dont", "la", "superficie", "est", "supérieure", "à", "3000", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"north america\"", null ], "and", [ false, 3, [ 0, [ 0, 12, false ], null ], 3000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", "query_toks": [ "select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "\"north america\"", "and", "surfacearea", ">", "3000" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "and", "surfacearea", ">", "value" ], "question": "Donnez à la population totale et la surface moyenne correspondant aux pays d'Amérique du Nord ayant une superficie supérieure à 3000.", "question_toks": [ "Donnez", "à", "la", "population", "totale", "et", "la", "surface", "moyenne", "correspondant", "aux", "pays", "d'", "Amérique", "du", "Nord", "ayant", "une", "superficie", "supérieure", "à", "3000", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"north america\"", null ], "and", [ false, 3, [ 0, [ 0, 12, false ], null ], 3000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000", "query_toks": [ "SELECT", "name", "FROM", "city", "WHERE", "Population", "BETWEEN", "160000", "AND", "900000" ], "query_toks_no_value": [ "select", "name", "from", "city", "where", "population", "between", "value", "and", "value" ], "question": "Quelles sont les villes dont la population est comprise entre 160000 et 900000?", "question_toks": [ "Quelles", "sont", "les", "villes", "dont", "la", "population", "est", "comprise", "entre", "160000", "et", "900000", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 1, [ 0, [ 0, 5, false ], null ], 160000.0, 900000.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "select name from city where population between 160000 and 900000", "query_toks": [ "select", "name", "from", "city", "where", "population", "between", "160000", "and", "900000" ], "query_toks_no_value": [ "select", "name", "from", "city", "where", "population", "between", "value", "and", "value" ], "question": "Renvoyez les noms des villes ayant une population entre 160000 et 900000.", "question_toks": [ "Renvoyez", "les", "noms", "des", "villes", "ayant", "une", "population", "entre", "160000", "et", "900000", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 1, [ 0, [ 0, 5, false ], null ], 160000.0, 900000.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "LANGUAGE", "FROM", "countrylanguage", "GROUP", "BY", "LANGUAGE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "language", "from", "countrylanguage", "group", "by", "language", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle langue est parlée par le plus grand nombre de pays?", "question_toks": [ "Quelle", "langue", "est", "parlée", "par", "le", "plus", "grand", "nombre", "de", "pays", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 24, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "LANGUAGE", "FROM", "countrylanguage", "GROUP", "BY", "LANGUAGE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "language", "from", "countrylanguage", "group", "by", "language", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Donner la langue qui est parlée dans la plupart des pays.", "question_toks": [ "Donner", "la", "langue", "qui", "est", "parlée", "dans", "la", "plupart", "des", "pays", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 24, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode", "query_toks": [ "SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode" ], "query_toks_no_value": [ "select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode" ], "question": "Quelle est la langue parlée par le plus grand pourcentage de personnes dans chaque pays?", "question_toks": [ "Quelle", "est", "la", "langue", "parlée", "par", "le", "plus", "grand", "pourcentage", "de", "personnes", "dans", "chaque", "pays", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 23, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode", "query_toks": [ "SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode" ], "query_toks_no_value": [ "select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode" ], "question": "Quels sont les codes de pays des différents pays et quelles sont les langues parlées par le plus grand pourcentage de personnes pour chacun?", "question_toks": [ "Quels", "sont", "les", "codes", "de", "pays", "des", "différents", "pays", "et", "quelles", "sont", "les", "langues", "parlées", "par", "le", "plus", "grand", "pourcentage", "de", "personnes", "pour", "chacun", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 23, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode" ], "question": "Quel est le nombre total de pays où l'espagnol est parlé par le plus grand pourcentage de personnes?", "question_toks": [ "Quel", "est", "le", "nombre", "total", "de", "pays", "où", "l'", "espagnol", "est", "parlé", "par", "le", "plus", "grand", "pourcentage", "de", "personnes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Spanish\"", null ] ], "groupBy": [ [ 0, 23, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode" ], "question": "Comptez le nombre de pays pour lesquels l'espagnol est la langue prédominante parlée.", "question_toks": [ "Comptez", "le", "nombre", "de", "pays", "pour", "lesquels", "l'", "espagnol", "est", "la", "langue", "prédominante", "parlée", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Spanish\"", null ] ], "groupBy": [ [ 0, 23, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", "query_toks": [ "SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode" ], "query_toks_no_value": [ "select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode" ], "question": "Quels sont les codes des pays où l'espagnol est parlé par le plus grand pourcentage de personnes?", "question_toks": [ "Quels", "sont", "les", "codes", "des", "pays", "où", "l'", "espagnol", "est", "parlé", "par", "le", "plus", "grand", "pourcentage", "de", "personnes", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Spanish\"", null ] ], "groupBy": [ [ 0, 23, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "world_1", "query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", "query_toks": [ "SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode" ], "query_toks_no_value": [ "select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode" ], "question": "Renvoyer les codes des pays pour lesquels l'espagnol est la langue prédominamment parlée.", "question_toks": [ "Renvoyer", "les", "codes", "des", "pays", "pour", "lesquels", "l'", "espagnol", "est", "la", "langue", "prédominamment", "parlée", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Spanish\"", null ] ], "groupBy": [ [ 0, 23, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT count(*) FROM conductor", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "conductor" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "conductor" ], "question": "Combien de conducteurs y a-t-il?", "question_toks": [ "Combien", "de", "conducteurs", "y", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT count(*) FROM conductor", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "conductor" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "conductor" ], "question": "Compter le nombre de conducteurs.", "question_toks": [ "Compter", "le", "nombre", "de", "conducteurs", "." ], "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": "orchestra", "query": "SELECT Name FROM conductor ORDER BY Age ASC", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Age", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "order", "by", "age", "asc" ], "question": "Énumérez les noms des conducteurs à l'ordre croissant de l'âge.", "question_toks": [ "Énumérez", "les", "noms", "des", "conducteurs", "à", "l'", "ordre", "croissant", "de", "l'", "âge", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor ORDER BY Age ASC", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Age", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "order", "by", "age", "asc" ], "question": "Quels sont les noms des conducteurs, commandés par âge?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "conducteurs", ",", "commandés", "par", "âge", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor WHERE Nationality != 'USA'", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "WHERE", "Nationality", "!", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "where", "nationality", "!", "=", "value" ], "question": "Quels sont les noms des conducteurs dont les nationalités ne sont pas «USA»?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "conducteurs", "dont", "les", "nationalités", "ne", "sont", "pas", "«", "USA", "»", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"USA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor WHERE Nationality != 'USA'", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "WHERE", "Nationality", "!", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "where", "nationality", "!", "=", "value" ], "question": "Renvoyez les noms des conducteurs qui n'ont pas la nationalité «USA».", "question_toks": [ "Renvoyez", "les", "noms", "des", "conducteurs", "qui", "n'", "ont", "pas", "la", "nationalité", "«", "USA", "»", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"USA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", "query_toks": [ "SELECT", "Record_Company", "FROM", "orchestra", "ORDER", "BY", "Year_of_Founded", "DESC" ], "query_toks_no_value": [ "select", "record_company", "from", "orchestra", "order", "by", "year_of_founded", "desc" ], "question": "Quelles sont les entreprises de record d'orchestres dans l'ordre décroissant des années dans lequel ils ont été fondés?", "question_toks": [ "Quelles", "sont", "les", "entreprises", "de", "record", "d'", "orchestres", "dans", "l'", "ordre", "décroissant", "des", "années", "dans", "lequel", "ils", "ont", "été", "fondés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", "query_toks": [ "SELECT", "Record_Company", "FROM", "orchestra", "ORDER", "BY", "Year_of_Founded", "DESC" ], "query_toks_no_value": [ "select", "record_company", "from", "orchestra", "order", "by", "year_of_founded", "desc" ], "question": "Renvoyer les sociétés de record d'orchestres, triés descendant au cours des années dans lesquelles ils ont été fondés.", "question_toks": [ "Renvoyer", "les", "sociétés", "de", "record", "d'", "orchestres", ",", "triés", "descendant", "au", "cours", "des", "années", "dans", "lesquelles", "ils", "ont", "été", "fondés", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT avg(Attendance) FROM SHOW", "query_toks": [ "SELECT", "avg", "(", "Attendance", ")", "FROM", "SHOW" ], "query_toks_no_value": [ "select", "avg", "(", "attendance", ")", "from", "show" ], "question": "Quelle est la fréquentation moyenne des spectacles?", "question_toks": [ "Quelle", "est", "la", "fréquentation", "moyenne", "des", "spectacles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT avg(Attendance) FROM SHOW", "query_toks": [ "SELECT", "avg", "(", "Attendance", ")", "FROM", "SHOW" ], "query_toks_no_value": [ "select", "avg", "(", "attendance", ")", "from", "show" ], "question": "Renvoyer la présence moyenne dans tous les spectacles.", "question_toks": [ "Renvoyer", "la", "présence", "moyenne", "dans", "tous", "les", "spectacles", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"", "query_toks": [ "SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''" ], "query_toks_no_value": [ "select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value" ], "question": "Quelles sont la part maximale et minimale des performances dont le type n'est pas \"final en direct\".", "question_toks": [ "Quelles", "sont", "la", "part", "maximale", "et", "minimale", "des", "performances", "dont", "le", "type", "n'", "est", "pas", "\"", "final", "en", "direct", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 18, false ], null ] ], [ 2, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 14, false ], null ], "\"Live final\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"", "query_toks": [ "SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''" ], "query_toks_no_value": [ "select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value" ], "question": "Renvoie les actions maximales et minimales pour les performances qui n'ont pas le type \"Final Final\".", "question_toks": [ "Renvoie", "les", "actions", "maximales", "et", "minimales", "pour", "les", "performances", "qui", "n'", "ont", "pas", "le", "type", "\"", "Final", "Final", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 18, false ], null ] ], [ 2, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 14, false ], null ], "\"Live final\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT count(DISTINCT Nationality) FROM conductor", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "conductor" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "nationality", ")", "from", "conductor" ], "question": "Combien de nationalités différentes les conducteurs ont-ils?", "question_toks": [ "Combien", "de", "nationalités", "différentes", "les", "conducteurs", "ont", "-ils", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 4, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT count(DISTINCT Nationality) FROM conductor", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "conductor" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "nationality", ")", "from", "conductor" ], "question": "Comptez le nombre de nationalités différentes des conducteurs.", "question_toks": [ "Comptez", "le", "nombre", "de", "nationalités", "différentes", "des", "conducteurs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 4, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "order", "by", "year_of_work", "desc" ], "question": "Liste des noms des conducteurs dans l'ordre décroissant des années de travail.", "question_toks": [ "Liste", "des", "noms", "des", "conducteurs", "dans", "l'", "ordre", "décroissant", "des", "années", "de", "travail", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "order", "by", "year_of_work", "desc" ], "question": "Quels sont les noms des conducteurs, triés descendant au nombre d'années qu'ils ont travaillé?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "conducteurs", ",", "triés", "descendant", "au", "nombre", "d'", "années", "qu'", "ils", "ont", "travaillé", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "order", "by", "year_of_work", "desc", "limit", "value" ], "question": "Énumérez le nom du conducteur avec la plupart des années de travail.", "question_toks": [ "Énumérez", "le", "nom", "du", "conducteur", "avec", "la", "plupart", "des", "années", "de", "travail", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "order", "by", "year_of_work", "desc", "limit", "value" ], "question": "Quel est le nom du conducteur qui a travaillé le plus grand nombre d'années?", "question_toks": [ "Quel", "est", "le", "nom", "du", "conducteur", "qui", "a", "travaillé", "le", "plus", "grand", "nombre", "d'", "années", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Orchestra", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "orchestra", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id" ], "question": "Montrez les noms des conducteurs et des orchestres qu'ils ont menés.", "question_toks": [ "Montrez", "les", "noms", "des", "conducteurs", "et", "des", "orchestres", "qu'", "ils", "ont", "menés", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Orchestra", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "orchestra", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id" ], "question": "Quels sont les noms des conducteurs ainsi que les orchestres correctionnels qu'ils ont conduits?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "conducteurs", "ainsi", "que", "les", "orchestres", "correctionnels", "qu'", "ils", "ont", "conduits", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "GROUP", "BY", "T2.Conductor_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "group", "by", "t2", ".", "conductor_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Montrez les noms des conducteurs qui ont mené plus d'un orchestres.", "question_toks": [ "Montrez", "les", "noms", "des", "conducteurs", "qui", "ont", "mené", "plus", "d'", "un", "orchestres", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "GROUP", "BY", "T2.Conductor_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "group", "by", "t2", ".", "conductor_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels sont les noms des conducteurs qui ont conduit à plus d'un orchestre?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "conducteurs", "qui", "ont", "conduit", "à", "plus", "d'", "un", "orchestre", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "GROUP", "BY", "T2.Conductor_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "group", "by", "t2", ".", "conductor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Montrez le nom du conducteur qui a mené le plus grand nombre d'orchestres.", "question_toks": [ "Montrez", "le", "nom", "du", "conducteur", "qui", "a", "mené", "le", "plus", "grand", "nombre", "d'", "orchestres", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "GROUP", "BY", "T2.Conductor_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "group", "by", "t2", ".", "conductor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom du conducteur qui a mené le plus d'orchestres?", "question_toks": [ "Quel", "est", "le", "nom", "du", "conducteur", "qui", "a", "mené", "le", "plus", "d'", "orchestres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", "query_toks": [ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "WHERE", "Year_of_Founded", ">", "2008" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "where", "year_of_founded", ">", "value" ], "question": "Veuillez indiquer le nom du conducteur qui a mené des orchestres fondées après 2008.", "question_toks": [ "Veuillez", "indiquer", "le", "nom", "du", "conducteur", "qui", "a", "mené", "des", "orchestres", "fondées", "après", "2008", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 2008.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", "query_toks": [ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "WHERE", "Year_of_Founded", ">", "2008" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "where", "year_of_founded", ">", "value" ], "question": "Quels sont les noms des conducteurs qui ont mené des orchestres fondées après l'année 2008?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "conducteurs", "qui", "ont", "mené", "des", "orchestres", "fondées", "après", "l'", "année", "2008", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 2008.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company", "query_toks": [ "SELECT", "Record_Company", ",", "COUNT", "(", "*", ")", "FROM", "orchestra", "GROUP", "BY", "Record_Company" ], "query_toks_no_value": [ "select", "record_company", ",", "count", "(", "*", ")", "from", "orchestra", "group", "by", "record_company" ], "question": "Veuillez afficher les différentes sociétés de disques et le nombre correspondant d'orchestres.", "question_toks": [ "Veuillez", "afficher", "les", "différentes", "sociétés", "de", "disques", "et", "le", "nombre", "correspondant", "d'", "orchestres", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company", "query_toks": [ "SELECT", "Record_Company", ",", "COUNT", "(", "*", ")", "FROM", "orchestra", "GROUP", "BY", "Record_Company" ], "query_toks_no_value": [ "select", "record_company", ",", "count", "(", "*", ")", "from", "orchestra", "group", "by", "record_company" ], "question": "Combien d'orchestres chaque entreprise d'enregistrement gère-t-elle?", "question_toks": [ "Combien", "d'", "orchestres", "chaque", "entreprise", "d'", "enregistrement", "gère", "-t", "-elle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", "query_toks": [ "SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(", "*", ")", "asc" ], "question": "Veuillez afficher les formats d'enregistrement d'orchestres dans l'ordre croissant de compte.", "question_toks": [ "Veuillez", "afficher", "les", "formats", "d'", "enregistrement", "d'", "orchestres", "dans", "l'", "ordre", "croissant", "de", "compte", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 11, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", "query_toks": [ "SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(", "*", ")", "asc" ], "question": "Quels sont les principaux formats d'enregistrement d'orchestres, triés par leur fréquence?", "question_toks": [ "Quels", "sont", "les", "principaux", "formats", "d'", "enregistrement", "d'", "orchestres", ",", "triés", "par", "leur", "fréquence", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 11, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Record_Company", "FROM", "orchestra", "GROUP", "BY", "Record_Company", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "record_company", "from", "orchestra", "group", "by", "record_company", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Énumérez la société d'enregistrement partagée par le plus grand nombre d'orchestres.", "question_toks": [ "Énumérez", "la", "société", "d'", "enregistrement", "partagée", "par", "le", "plus", "grand", "nombre", "d'", "orchestres", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Record_Company", "FROM", "orchestra", "GROUP", "BY", "Record_Company", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "record_company", "from", "orchestra", "group", "by", "record_company", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle est la société d'enregistrement utilisée par le plus grand nombre d'orchestres?", "question_toks": [ "Quelle", "est", "la", "société", "d'", "enregistrement", "utilisée", "par", "le", "plus", "grand", "nombre", "d'", "orchestres", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", "query_toks": [ "SELECT", "Orchestra", "FROM", "orchestra", "WHERE", "Orchestra_ID", "NOT", "IN", "(", "SELECT", "Orchestra_ID", "FROM", "performance", ")" ], "query_toks_no_value": [ "select", "orchestra", "from", "orchestra", "where", "orchestra_id", "not", "in", "(", "select", "orchestra_id", "from", "performance", ")" ], "question": "Énumérez les noms des orchestres qui n'ont aucune performance.", "question_toks": [ "Énumérez", "les", "noms", "des", "orchestres", "qui", "n'", "ont", "aucune", "performance", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 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": "orchestra", "query": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", "query_toks": [ "SELECT", "Orchestra", "FROM", "orchestra", "WHERE", "Orchestra_ID", "NOT", "IN", "(", "SELECT", "Orchestra_ID", "FROM", "performance", ")" ], "query_toks_no_value": [ "select", "orchestra", "from", "orchestra", "where", "orchestra_id", "not", "in", "(", "select", "orchestra_id", "from", "performance", ")" ], "question": "Quels sont les orchestres qui n'ont aucune performance?", "question_toks": [ "Quels", "sont", "les", "orchestres", "qui", "n'", "ont", "aucune", "performance", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 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": "orchestra", "query": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", "query_toks": [ "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003", "INTERSECT", "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", ">", "2003" ], "query_toks_no_value": [ "select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value", "intersect", "select", "record_company", "from", "orchestra", "where", "year_of_founded", ">", "value" ], "question": "Montrez les sociétés de disques partagées par les orchestres fondées avant 2003 et après 2003.", "question_toks": [ "Montrez", "les", "sociétés", "de", "disques", "partagées", "par", "les", "orchestres", "fondées", "avant", "2003", "et", "après", "2003", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 2003.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 2003.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", "query_toks": [ "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003", "INTERSECT", "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", ">", "2003" ], "query_toks_no_value": [ "select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value", "intersect", "select", "record_company", "from", "orchestra", "where", "year_of_founded", ">", "value" ], "question": "Quelles sont les entreprises de disques utilisées par les deux orchestres fondées avant 2003 et celles fondées après 2003?", "question_toks": [ "Quelles", "sont", "les", "entreprises", "de", "disques", "utilisées", "par", "les", "deux", "orchestres", "fondées", "avant", "2003", "et", "celles", "fondées", "après", "2003", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 2003.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 2003.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "CD", "''", "OR", "Major_Record_Format", "=", "``", "DVD", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "orchestra", "where", "major_record_format", "=", "value", "or", "major_record_format", "=", "value" ], "question": "Trouvez le nombre d'orchestres dont le format d'enregistrement est \"CD\" ou \"DVD\".", "question_toks": [ "Trouvez", "le", "nombre", "d'", "orchestres", "dont", "le", "format", "d'", "enregistrement", "est", "\"", "CD", "\"", "ou", "\"", "DVD", "\"", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"CD\"", null ], "or", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"DVD\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "CD", "''", "OR", "Major_Record_Format", "=", "``", "DVD", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "orchestra", "where", "major_record_format", "=", "value", "or", "major_record_format", "=", "value" ], "question": "Comptez le nombre d'orchestres qui ont un CD ou un DVD comme format d'enregistrement.", "question_toks": [ "Comptez", "le", "nombre", "d'", "orchestres", "qui", "ont", "un", "CD", "ou", "un", "DVD", "comme", "format", "d'", "enregistrement", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"CD\"", null ], "or", [ false, 2, [ 0, [ 0, 11, false ], null ], "\"DVD\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Year_of_Founded", "FROM", "orchestra", "AS", "T1", "JOIN", "performance", "AS", "T2", "ON", "T1.Orchestra_ID", "=", "T2.Orchestra_ID", "GROUP", "BY", "T2.Orchestra_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "year_of_founded", "from", "orchestra", "as", "t1", "join", "performance", "as", "t2", "on", "t1", ".", "orchestra_id", "=", "t2", ".", "orchestra_id", "group", "by", "t2", ".", "orchestra_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Montrer les années dans lesquelles les orchestres ont donné plus d'une performance sont fondées.", "question_toks": [ "Montrer", "les", "années", "dans", "lesquelles", "les", "orchestres", "ont", "donné", "plus", "d'", "une", "performance", "sont", "fondées", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "orchestra", "query": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Year_of_Founded", "FROM", "orchestra", "AS", "T1", "JOIN", "performance", "AS", "T2", "ON", "T1.Orchestra_ID", "=", "T2.Orchestra_ID", "GROUP", "BY", "T2.Orchestra_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "year_of_founded", "from", "orchestra", "as", "t1", "join", "performance", "as", "t2", "on", "t1", ".", "orchestra_id", "=", "t2", ".", "orchestra_id", "group", "by", "t2", ".", "orchestra_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quelles sont les années de fondation pour les orchestres qui ont eu plus d'une seule performance?", "question_toks": [ "Quelles", "sont", "les", "années", "de", "fondation", "pour", "les", "orchestres", "qui", "ont", "eu", "plus", "d'", "une", "seule", "performance", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT count(*) FROM Highschooler", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Highschooler" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "highschooler" ], "question": "Combien y a-t-il de lycéens?", "question_toks": [ "Combien", "y", "a", "-t", "-il", "de", "lycéens", "?" ], "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": "network_1", "query": "SELECT count(*) FROM Highschooler", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Highschooler" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "highschooler" ], "question": "Compter le nombre de lycéens.", "question_toks": [ "Compter", "le", "nombre", "de", "lycéens", "." ], "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": "network_1", "query": "SELECT name , grade FROM Highschooler", "query_toks": [ "SELECT", "name", ",", "grade", "FROM", "Highschooler" ], "query_toks_no_value": [ "select", "name", ",", "grade", "from", "highschooler" ], "question": "Montrer les noms et les notes de chaque école secondaire.", "question_toks": [ "Montrer", "les", "noms", "et", "les", "notes", "de", "chaque", "école", "secondaire", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT name , grade FROM Highschooler", "query_toks": [ "SELECT", "name", ",", "grade", "FROM", "Highschooler" ], "query_toks_no_value": [ "select", "name", ",", "grade", "from", "highschooler" ], "question": "Quels sont les noms et les notes pour chaque lycéen?", "question_toks": [ "Quels", "sont", "les", "noms", "et", "les", "notes", "pour", "chaque", "lycéen", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT grade FROM Highschooler", "query_toks": [ "SELECT", "grade", "FROM", "Highschooler" ], "query_toks_no_value": [ "select", "grade", "from", "highschooler" ], "question": "Montrer toutes les notes des lycéens.", "question_toks": [ "Montrer", "toutes", "les", "notes", "des", "lycéens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT grade FROM Highschooler", "query_toks": [ "SELECT", "grade", "FROM", "Highschooler" ], "query_toks_no_value": [ "select", "grade", "from", "highschooler" ], "question": "Quelle est la note de chaque école secondaire?", "question_toks": [ "Quelle", "est", "la", "note", "de", "chaque", "école", "secondaire", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", "query_toks": [ "SELECT", "grade", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "grade", "from", "highschooler", "where", "name", "=", "value" ], "question": "Dans quelle année est Kyle?", "question_toks": [ "Dans", "quelle", "année", "est", "Kyle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kyle\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", "query_toks": [ "SELECT", "grade", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "grade", "from", "highschooler", "where", "name", "=", "value" ], "question": "Renvoie la note du lycéen que Kyle.", "question_toks": [ "Renvoie", "la", "note", "du", "lycéen", "que", "Kyle", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kyle\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT name FROM Highschooler WHERE grade = 10", "query_toks": [ "SELECT", "name", "FROM", "Highschooler", "WHERE", "grade", "=", "10" ], "query_toks_no_value": [ "select", "name", "from", "highschooler", "where", "grade", "=", "value" ], "question": "Montrez les noms de tous les lycéens en 10e année.", "question_toks": [ "Montrez", "les", "noms", "de", "tous", "les", "lycéens", "en", "10e", "année", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 10.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT name FROM Highschooler WHERE grade = 10", "query_toks": [ "SELECT", "name", "FROM", "Highschooler", "WHERE", "grade", "=", "10" ], "query_toks_no_value": [ "select", "name", "from", "highschooler", "where", "grade", "=", "value" ], "question": "Quels sont les noms de tous les lycéens en 10e année?", "question_toks": [ "Quels", "sont", "les", "noms", "de", "tous", "les", "lycéens", "en", "10e", "année", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 10.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"", "query_toks": [ "SELECT", "ID", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "id", "from", "highschooler", "where", "name", "=", "value" ], "question": "Montrez l'identifiant du lycée nommé Kyle.", "question_toks": [ "Montrez", "l'", "identifiant", "du", "lycée", "nommé", "Kyle", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kyle\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"", "query_toks": [ "SELECT", "ID", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "id", "from", "highschooler", "where", "name", "=", "value" ], "question": "Quel est l'identifiant de Kyle?", "question_toks": [ "Quel", "est", "l'", "identifiant", "de", "Kyle", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kyle\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Highschooler", "WHERE", "grade", "=", "9", "OR", "grade", "=", "10" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "highschooler", "where", "grade", "=", "value", "or", "grade", "=", "value" ], "question": "Combien de lycéens y a-t-il en 9e année ou 10?", "question_toks": [ "Combien", "de", "lycéens", "y", "a", "-t", "-il", "en", "9e", "année", "ou", "10", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 9.0, null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], 10.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Highschooler", "WHERE", "grade", "=", "9", "OR", "grade", "=", "10" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "highschooler", "where", "grade", "=", "value", "or", "grade", "=", "value" ], "question": "Comptez le nombre de lycéens dans les années 9 ou 10.", "question_toks": [ "Comptez", "le", "nombre", "de", "lycéens", "dans", "les", "années", "9", "ou", "10", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 9.0, null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], 10.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT grade , count(*) FROM Highschooler GROUP BY grade", "query_toks": [ "SELECT", "grade", ",", "count", "(", "*", ")", "FROM", "Highschooler", "GROUP", "BY", "grade" ], "query_toks_no_value": [ "select", "grade", ",", "count", "(", "*", ")", "from", "highschooler", "group", "by", "grade" ], "question": "Montrer le nombre de lycéens pour chaque année.", "question_toks": [ "Montrer", "le", "nombre", "de", "lycéens", "pour", "chaque", "année", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT grade , count(*) FROM Highschooler GROUP BY grade", "query_toks": [ "SELECT", "grade", ",", "count", "(", "*", ")", "FROM", "Highschooler", "GROUP", "BY", "grade" ], "query_toks_no_value": [ "select", "grade", ",", "count", "(", "*", ")", "from", "highschooler", "group", "by", "grade" ], "question": "Combien de lycéens sont dans chaque année?", "question_toks": [ "Combien", "de", "lycéens", "sont", "dans", "chaque", "année", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "grade", "FROM", "Highschooler", "GROUP", "BY", "grade", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "grade", "from", "highschooler", "group", "by", "grade", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle classe a les plus élevés des écoliers?", "question_toks": [ "Quelle", "classe", "a", "les", "plus", "élevés", "des", "écoliers", "?" ], "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": "network_1", "query": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "grade", "FROM", "Highschooler", "GROUP", "BY", "grade", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "grade", "from", "highschooler", "group", "by", "grade", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Retourner la note qui a le plus grand nombre de lycéens.", "question_toks": [ "Retourner", "la", "note", "qui", "a", "le", "plus", "grand", "nombre", "de", "lycéens", "." ], "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": "network_1", "query": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", "query_toks": [ "SELECT", "grade", "FROM", "Highschooler", "GROUP", "BY", "grade", "HAVING", "count", "(", "*", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "grade", "from", "highschooler", "group", "by", "grade", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Montrez-moi toutes les notes qui ont au moins 4 étudiants.", "question_toks": [ "Montrez", "-moi", "toutes", "les", "notes", "qui", "ont", "au", "moins", "4", "étudiants", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", "query_toks": [ "SELECT", "grade", "FROM", "Highschooler", "GROUP", "BY", "grade", "HAVING", "count", "(", "*", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "grade", "from", "highschooler", "group", "by", "grade", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quelles notes ont 4 schènes ou plus?", "question_toks": [ "Quelles", "notes", "ont", "4", "schènes", "ou", "plus", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT student_id , count(*) FROM Friend GROUP BY student_id", "query_toks": [ "SELECT", "student_id", ",", "count", "(", "*", ")", "FROM", "Friend", "GROUP", "BY", "student_id" ], "query_toks_no_value": [ "select", "student_id", ",", "count", "(", "*", ")", "from", "friend", "group", "by", "student_id" ], "question": "Afficher les ID des étudiants et les numéros d'amis correspondant à chacun.", "question_toks": [ "Afficher", "les", "ID", "des", "étudiants", "et", "les", "numéros", "d'", "amis", "correspondant", "à", "chacun", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT student_id , count(*) FROM Friend GROUP BY student_id", "query_toks": [ "SELECT", "student_id", ",", "count", "(", "*", ")", "FROM", "Friend", "GROUP", "BY", "student_id" ], "query_toks_no_value": [ "select", "student_id", ",", "count", "(", "*", ")", "from", "friend", "group", "by", "student_id" ], "question": "Combien d'amis chaque étudiant a-t-il?", "question_toks": [ "Combien", "d'", "amis", "chaque", "étudiant", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id" ], "question": "Montrer les noms des lycéens et leur nombre correspondant d'amis.", "question_toks": [ "Montrer", "les", "noms", "des", "lycéens", "et", "leur", "nombre", "correspondant", "d'", "amis", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id" ], "question": "Quels sont les noms des lycéens et combien d'entre amis ont chacun des amis?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "lycéens", "et", "combien", "d'", "entre", "amis", "ont", "chacun", "des", "amis", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom du lycéen qui a le plus grand nombre d'amis?", "question_toks": [ "Quel", "est", "le", "nom", "du", "lycéen", "qui", "a", "le", "plus", "grand", "nombre", "d'", "amis", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Renvoie le nom du lycée avec le plus d'amis.", "question_toks": [ "Renvoie", "le", "nom", "du", "lycée", "avec", "le", "plus", "d'", "amis", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Montrez les noms des lycéens qui ont au moins 3 amis.", "question_toks": [ "Montrez", "les", "noms", "des", "lycéens", "qui", "ont", "au", "moins", "3", "amis", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les noms des lycéens qui ont 3 amis ou plus?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "lycéens", "qui", "ont", "3", "amis", "ou", "plus", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\"", "query_toks": [ "SELECT", "T3.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "JOIN", "Highschooler", "AS", "T3", "ON", "T1.friend_id", "=", "T3.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "join", "highschooler", "as", "t3", "on", "t1", ".", "friend_id", "=", "t3", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "Montrez les noms de tous les amis du lycée Kyle Kyle.", "question_toks": [ "Montrez", "les", "noms", "de", "tous", "les", "amis", "du", "lycée", "Kyle", "Kyle", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kyle\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\"", "query_toks": [ "SELECT", "T3.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "JOIN", "Highschooler", "AS", "T3", "ON", "T1.friend_id", "=", "T3.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "join", "highschooler", "as", "t3", "on", "t1", ".", "friend_id", "=", "t3", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "Retournez les noms des amis du lycée Kyle Kyle.", "question_toks": [ "Retournez", "les", "noms", "des", "amis", "du", "lycée", "Kyle", "Kyle", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kyle\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "Combien d'amis l'étudiant du lycée Kyle a-t-il?", "question_toks": [ "Combien", "d'", "amis", "l'", "étudiant", "du", "lycée", "Kyle", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kyle\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "Comptez le nombre d'amis Kyle a.", "question_toks": [ "Comptez", "le", "nombre", "d'", "amis", "Kyle", "a." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kyle\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", "query_toks": [ "SELECT", "id", "FROM", "Highschooler", "EXCEPT", "SELECT", "student_id", "FROM", "Friend" ], "query_toks_no_value": [ "select", "id", "from", "highschooler", "except", "select", "student_id", "from", "friend" ], "question": "Afficher les identifiants de tous les étudiants qui n'ont aucun ami.", "question_toks": [ "Afficher", "les", "identifiants", "de", "tous", "les", "étudiants", "qui", "n'", "ont", "aucun", "ami", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "network_1", "query": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", "query_toks": [ "SELECT", "id", "FROM", "Highschooler", "EXCEPT", "SELECT", "student_id", "FROM", "Friend" ], "query_toks_no_value": [ "select", "id", "from", "highschooler", "except", "select", "student_id", "from", "friend" ], "question": "Quels sont les identifiants des lycéens qui n'ont pas d'amis?", "question_toks": [ "Quels", "sont", "les", "identifiants", "des", "lycéens", "qui", "n'", "ont", "pas", "d'", "amis", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "network_1", "query": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", "query_toks": [ "SELECT", "name", "FROM", "Highschooler", "EXCEPT", "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id" ], "query_toks_no_value": [ "select", "name", "from", "highschooler", "except", "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id" ], "question": "Montrer des noms de tous les lycéens qui n'ont aucun ami.", "question_toks": [ "Montrer", "des", "noms", "de", "tous", "les", "lycéens", "qui", "n'", "ont", "aucun", "ami", "." ], "sql": { "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": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "network_1", "query": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", "query_toks": [ "SELECT", "name", "FROM", "Highschooler", "EXCEPT", "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id" ], "query_toks_no_value": [ "select", "name", "from", "highschooler", "except", "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id" ], "question": "Quels sont les noms des étudiants qui n'ont pas d'amis?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "étudiants", "qui", "n'", "ont", "pas", "d'", "amis", "?" ], "sql": { "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": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "network_1", "query": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", "query_toks": [ "SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes" ], "query_toks_no_value": [ "select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes" ], "question": "Montrez les ID des lycéens qui ont des amis et sont également aimés par quelqu'un d'autre.", "question_toks": [ "Montrez", "les", "ID", "des", "lycéens", "qui", "ont", "des", "amis", "et", "sont", "également", "aimés", "par", "quelqu'", "un", "d'", "autre", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", "query_toks": [ "SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes" ], "query_toks_no_value": [ "select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes" ], "question": "Quels sont les ID des étudiants qui ont à la fois des amis et sont aimés?", "question_toks": [ "Quels", "sont", "les", "ID", "des", "étudiants", "qui", "ont", "à", "la", "fois", "des", "amis", "et", "sont", "aimés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "INTERSECT", "SELECT", "T2.name", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.liked_id", "=", "T2.id" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "intersect", "select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "liked_id", "=", "t2", ".", "id" ], "question": "Montrer Nom de tous les étudiants qui ont des amis et sont également aimés par quelqu'un d'autre.", "question_toks": [ "Montrer", "Nom", "de", "tous", "les", "étudiants", "qui", "ont", "des", "amis", "et", "sont", "également", "aimés", "par", "quelqu'", "un", "d'", "autre", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "INTERSECT", "SELECT", "T2.name", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.liked_id", "=", "T2.id" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "intersect", "select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "liked_id", "=", "t2", ".", "id" ], "question": "Quels sont les noms des lycéens qui ont à la fois des amis et sont aimés?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "lycéens", "qui", "ont", "à", "la", "fois", "des", "amis", "et", "sont", "aimés", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT student_id , count(*) FROM Likes GROUP BY student_id", "query_toks": [ "SELECT", "student_id", ",", "count", "(", "*", ")", "FROM", "Likes", "GROUP", "BY", "student_id" ], "query_toks_no_value": [ "select", "student_id", ",", "count", "(", "*", ")", "from", "likes", "group", "by", "student_id" ], "question": "Comptez le nombre de goûts pour chaque identifiant d'étudiant.", "question_toks": [ "Comptez", "le", "nombre", "de", "goûts", "pour", "chaque", "identifiant", "d'", "étudiant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT student_id , count(*) FROM Likes GROUP BY student_id", "query_toks": [ "SELECT", "student_id", ",", "count", "(", "*", ")", "FROM", "Likes", "GROUP", "BY", "student_id" ], "query_toks_no_value": [ "select", "student_id", ",", "count", "(", "*", ")", "from", "likes", "group", "by", "student_id" ], "question": "Combien de goûts correspondent à chaque identifiant d'étudiant?", "question_toks": [ "Combien", "de", "goûts", "correspondent", "à", "chaque", "identifiant", "d'", "étudiant", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id" ], "question": "Montrez les noms des lycéens qui ont des goûts et des numéros de goûts pour chacun.", "question_toks": [ "Montrez", "les", "noms", "des", "lycéens", "qui", "ont", "des", "goûts", "et", "des", "numéros", "de", "goûts", "pour", "chacun", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id" ], "question": "Quels sont les noms des lycéens qui ont goûts et combien de goûts ont chacun?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "lycéens", "qui", "ont", "goûts", "et", "combien", "de", "goûts", "ont", "chacun", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom du lycéen qui a le plus grand nombre de goûts?", "question_toks": [ "Quel", "est", "le", "nom", "du", "lycéen", "qui", "a", "le", "plus", "grand", "nombre", "de", "goûts", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Donnez le nom de l'étudiant avec le plus de goûts.", "question_toks": [ "Donnez", "le", "nom", "de", "l'", "étudiant", "avec", "le", "plus", "de", "goûts", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.name", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Montrer les noms des étudiants qui ont au moins 2 goûts.", "question_toks": [ "Montrer", "les", "noms", "des", "étudiants", "qui", "ont", "au", "moins", "2", "goûts", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.name", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les noms des étudiants qui ont 2 aiment ou plus?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "étudiants", "qui", "ont", "2", "aiment", "ou", "plus", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.grade", ">", "5", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "grade", ">", "value", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Montrez les noms des étudiants qui ont une note supérieure à 5 et ont au moins 2 amis.", "question_toks": [ "Montrez", "les", "noms", "des", "étudiants", "qui", "ont", "une", "note", "supérieure", "à", "5", "et", "ont", "au", "moins", "2", "amis", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 5.0, null ] ], "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.grade", ">", "5", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "grade", ">", "value", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les noms des lycéens qui ont une note de plus de 5 ans et ont 2 amis ou plus?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "lycéens", "qui", "ont", "une", "note", "de", "plus", "de", "5", "ans", "et", "ont", "2", "amis", "ou", "plus", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 5.0, null ] ], "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "Combien de goûts Kyle a-t-il?", "question_toks": [ "Combien", "de", "goûts", "Kyle", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kyle\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "Renvoyez le nombre de goûts que le lycée a nommé Kyle.", "question_toks": [ "Renvoyez", "le", "nombre", "de", "goûts", "que", "le", "lycée", "a", "nommé", "Kyle", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Kyle\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "network_1", "query": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", "query_toks": [ "SELECT", "avg", "(", "grade", ")", "FROM", "Highschooler", "WHERE", "id", "IN", "(", "SELECT", "T1.student_id", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", ")" ], "query_toks_no_value": [ "select", "avg", "(", "grade", ")", "from", "highschooler", "where", "id", "in", "(", "select", "t1", ".", "student_id", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", ")" ], "question": "Trouvez la qualité moyenne de tous les étudiants qui ont des amis.", "question_toks": [ "Trouvez", "la", "qualité", "moyenne", "de", "tous", "les", "étudiants", "qui", "ont", "des", "amis", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, 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": "network_1", "query": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", "query_toks": [ "SELECT", "avg", "(", "grade", ")", "FROM", "Highschooler", "WHERE", "id", "IN", "(", "SELECT", "T1.student_id", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", ")" ], "query_toks_no_value": [ "select", "avg", "(", "grade", ")", "from", "highschooler", "where", "id", "in", "(", "select", "t1", ".", "student_id", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", ")" ], "question": "Quelle est la qualité moyenne des étudiants qui ont des amis?", "question_toks": [ "Quelle", "est", "la", "qualité", "moyenne", "des", "étudiants", "qui", "ont", "des", "amis", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, 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": "network_1", "query": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", "query_toks": [ "SELECT", "min", "(", "grade", ")", "FROM", "Highschooler", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.student_id", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", ")" ], "query_toks_no_value": [ "select", "min", "(", "grade", ")", "from", "highschooler", "where", "id", "not", "in", "(", "select", "t1", ".", "student_id", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", ")" ], "question": "Trouvez la qualité minimale des étudiants qui n'ont pas d'amis.", "question_toks": [ "Trouvez", "la", "qualité", "minimale", "des", "étudiants", "qui", "n'", "ont", "pas", "d'", "amis", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, 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": "network_1", "query": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", "query_toks": [ "SELECT", "min", "(", "grade", ")", "FROM", "Highschooler", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.student_id", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", ")" ], "query_toks_no_value": [ "select", "min", "(", "grade", ")", "from", "highschooler", "where", "id", "not", "in", "(", "select", "t1", ".", "student_id", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", ")" ], "question": "Quelle est la note la plus basse des étudiants qui n'ont pas d'amis?", "question_toks": [ "Quelle", "est", "la", "note", "la", "plus", "basse", "des", "étudiants", "qui", "n'", "ont", "pas", "d'", "amis", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, 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": "dog_kennels", "query": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", "query_toks": [ "SELECT", "state", "FROM", "Owners", "INTERSECT", "SELECT", "state", "FROM", "Professionals" ], "query_toks_no_value": [ "select", "state", "from", "owners", "intersect", "select", "state", "from", "professionals" ], "question": "Quels États ont des propriétaires et des professionnels qui y vivent?", "question_toks": [ "Quels", "États", "ont", "des", "propriétaires", "et", "des", "professionnels", "qui", "y", "vivent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", "query_toks": [ "SELECT", "state", "FROM", "Owners", "INTERSECT", "SELECT", "state", "FROM", "Professionals" ], "query_toks_no_value": [ "select", "state", "from", "owners", "intersect", "select", "state", "from", "professionals" ], "question": "Trouvez les États où vivent les propriétaires et les professionnels.", "question_toks": [ "Trouvez", "les", "États", "où", "vivent", "les", "propriétaires", "et", "les", "professionnels", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Dogs", "WHERE", "dog_id", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "dogs", "where", "dog_id", "in", "(", "select", "dog_id", "from", "treatments", ")" ], "question": "Quel est l'âge moyen des chiens qui ont traversé des traitements?", "question_toks": [ "Quel", "est", "l'", "âge", "moyen", "des", "chiens", "qui", "ont", "traversé", "des", "traitements", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, 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": "dog_kennels", "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Dogs", "WHERE", "dog_id", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "dogs", "where", "dog_id", "in", "(", "select", "dog_id", "from", "treatments", ")" ], "question": "Trouvez l'âge moyen des chiens qui ont suivi des traitements.", "question_toks": [ "Trouvez", "l'", "âge", "moyen", "des", "chiens", "qui", "ont", "suivi", "des", "traitements", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, 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": "dog_kennels", "query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", "query_toks": [ "SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "'Indiana", "'", "UNION", "SELECT", "T1.professional_id", ",", "T1.last_name", ",", "T1.cell_number", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "GROUP", "BY", "T1.professional_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value", "union", "select", "t1", ".", "professional_id", ",", "t1", ".", "last_name", ",", "t1", ".", "cell_number", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels professionnels vivent dans l'état d'Indiana ou ont fait un traitement sur plus de 2 traitements? Listez son identifiant, son nom et son téléphone portable.", "question_toks": [ "Quels", "professionnels", "vivent", "dans", "l'", "état", "d'", "Indiana", "ou", "ont", "fait", "un", "traitement", "sur", "plus", "de", "2", "traitements", "?", "Listez", "son", "identifiant", ",", "son", "nom", "et", "son", "téléphone", "portable", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], "\"Indiana\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 33, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", "query_toks": [ "SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "'Indiana", "'", "UNION", "SELECT", "T1.professional_id", ",", "T1.last_name", ",", "T1.cell_number", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "GROUP", "BY", "T1.professional_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value", "union", "select", "t1", ".", "professional_id", ",", "t1", ".", "last_name", ",", "t1", ".", "cell_number", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Trouvez l'identifiant, le nom de famille et le téléphone portable des professionnels qui vivent dans l'état d'Indiana ou ont effectué plus de deux traitements.", "question_toks": [ "Trouvez", "l'", "identifiant", ",", "le", "nom", "de", "famille", "et", "le", "téléphone", "portable", "des", "professionnels", "qui", "vivent", "dans", "l'", "état", "d'", "Indiana", "ou", "ont", "effectué", "plus", "de", "deux", "traitements", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], "\"Indiana\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 33, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "dog_kennels", "query": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )", "query_toks": [ "select", "name", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", "group", "by", "dog_id", "having", "sum", "(", "cost_of_treatment", ")", ">", "1000", ")" ], "query_toks_no_value": [ "select", "name", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", "group", "by", "dog_id", "having", "sum", "(", "cost_of_treatment", ")", ">", "value", ")" ], "question": "Quels chiens n'ont pas coûté leur propriétaire plus de 1000 pour le traitement? Énumérez les noms de chiens.", "question_toks": [ "Quels", "chiens", "n'", "ont", "pas", "coûté", "leur", "propriétaire", "plus", "de", "1000", "pour", "le", "traitement", "?", "Énumérez", "les", "noms", "de", "chiens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 20, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 4, 49, false ], null ], 1000.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )", "query_toks": [ "select", "name", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", "group", "by", "dog_id", "having", "sum", "(", "cost_of_treatment", ")", ">", "1000", ")" ], "query_toks_no_value": [ "select", "name", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", "group", "by", "dog_id", "having", "sum", "(", "cost_of_treatment", ")", ">", "value", ")" ], "question": "Quels sont les noms des chiens pour lesquels le propriétaire n'a pas dépensé plus de 1000 pour le traitement?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "chiens", "pour", "lesquels", "le", "propriétaire", "n'", "a", "pas", "dépensé", "plus", "de", "1000", "pour", "le", "traitement", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 20, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 4, 49, false ], null ], 1000.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", "query_toks": [ "SELECT", "first_name", "FROM", "Professionals", "UNION", "SELECT", "first_name", "FROM", "Owners", "EXCEPT", "SELECT", "name", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "first_name", "from", "professionals", "union", "select", "first_name", "from", "owners", "except", "select", "name", "from", "dogs" ], "question": "Quels prénoms sont utilisés pour les professionnels ou les propriétaires mais qui ne sont pas utilisés comme noms de chien?", "question_toks": [ "Quels", "prénoms", "sont", "utilisés", "pour", "les", "professionnels", "ou", "les", "propriétaires", "mais", "qui", "ne", "sont", "pas", "utilisés", "comme", "noms", "de", "chien", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", "query_toks": [ "SELECT", "first_name", "FROM", "Professionals", "UNION", "SELECT", "first_name", "FROM", "Owners", "EXCEPT", "SELECT", "name", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "first_name", "from", "professionals", "union", "select", "first_name", "from", "owners", "except", "select", "name", "from", "dogs" ], "question": "Trouvez les prénoms utilisés pour les professionnels ou les propriétaires mais qui ne sont pas utilisés comme noms de chien.", "question_toks": [ "Trouvez", "les", "prénoms", "utilisés", "pour", "les", "professionnels", "ou", "les", "propriétaires", "mais", "qui", "ne", "sont", "pas", "utilisés", "comme", "noms", "de", "chien", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", "query_toks": [ "SELECT", "professional_id", ",", "role_code", ",", "email_address", "FROM", "Professionals", "EXCEPT", "SELECT", "T1.professional_id", ",", "T1.role_code", ",", "T1.email_address", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id" ], "query_toks_no_value": [ "select", "professional_id", ",", "role_code", ",", "email_address", "from", "professionals", "except", "select", "t1", ".", "professional_id", ",", "t1", ".", "role_code", ",", "t1", ".", "email_address", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id" ], "question": "Quel professionnel ne fonctionnait pas de traitement sur les chiens? Énumérez l'ID, le rôle et le courrier électronique du professionnel.", "question_toks": [ "Quel", "professionnel", "ne", "fonctionnait", "pas", "de", "traitement", "sur", "les", "chiens", "?", "Énumérez", "l'", "ID", ",", "le", "rôle", "et", "le", "courrier", "électronique", "du", "professionnel", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "dog_kennels", "query": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", "query_toks": [ "SELECT", "professional_id", ",", "role_code", ",", "email_address", "FROM", "Professionals", "EXCEPT", "SELECT", "T1.professional_id", ",", "T1.role_code", ",", "T1.email_address", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id" ], "query_toks_no_value": [ "select", "professional_id", ",", "role_code", ",", "email_address", "from", "professionals", "except", "select", "t1", ".", "professional_id", ",", "t1", ".", "role_code", ",", "t1", ".", "email_address", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id" ], "question": "Donnez-moi l'ID, le rôle et le courrier électronique des professionnels qui n'ont effectué aucun traitement sur les chiens.", "question_toks": [ "Donnez", "-moi", "l'", "ID", ",", "le", "rôle", "et", "le", "courrier", "électronique", "des", "professionnels", "qui", "n'", "ont", "effectué", "aucun", "traitement", "sur", "les", "chiens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "dog_kennels", "query": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.owner_id", ",", "T2.first_name", ",", "T2.last_name", "FROM", "Dogs", "AS", "T1", "JOIN", "Owners", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "owner_id", ",", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "dogs", "as", "t1", "join", "owners", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "group", "by", "t1", ".", "owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel propriétaire possède la plupart des chiens? Énumérez l'ID du propriétaire, le prénom et le nom de famille.", "question_toks": [ "Quel", "propriétaire", "possède", "la", "plupart", "des", "chiens", "?", "Énumérez", "l'", "ID", "du", "propriétaire", ",", "le", "prénom", "et", "le", "nom", "de", "famille", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 21, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.owner_id", ",", "T2.first_name", ",", "T2.last_name", "FROM", "Dogs", "AS", "T1", "JOIN", "Owners", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "owner_id", ",", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "dogs", "as", "t1", "join", "owners", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "group", "by", "t1", ".", "owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Renvoie l'ID du propriétaire, le prénom et le nom de famille du propriétaire qui a le plus de chiens.", "question_toks": [ "Renvoie", "l'", "ID", "du", "propriétaire", ",", "le", "prénom", "et", "le", "nom", "de", "famille", "du", "propriétaire", "qui", "a", "le", "plus", "de", "chiens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 10, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 21, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.professional_id", ",", "T1.role_code", ",", "T1.first_name", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "GROUP", "BY", "T1.professional_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "professional_id", ",", "t1", ".", "role_code", ",", "t1", ".", "first_name", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels professionnels ont fait au moins deux traitements? Énumérez l'ID, le rôle et le prénom du professionnel.", "question_toks": [ "Quels", "professionnels", "ont", "fait", "au", "moins", "deux", "traitements", "?", "Énumérez", "l'", "ID", ",", "le", "rôle", "et", "le", "prénom", "du", "professionnel", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 33, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.professional_id", ",", "T1.role_code", ",", "T1.first_name", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "GROUP", "BY", "T1.professional_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "professional_id", ",", "t1", ".", "role_code", ",", "t1", ".", "first_name", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les identités, le rôle et le prénom des professionnels qui ont effectué deux traitements ou plus?", "question_toks": [ "Quels", "sont", "les", "identités", ",", "le", "rôle", "et", "le", "prénom", "des", "professionnels", "qui", "ont", "effectué", "deux", "traitements", "ou", "plus", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 33, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.breed_name", "FROM", "Breeds", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.breed_code", "=", "T2.breed_code", "GROUP", "BY", "T1.breed_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "breed_name", "from", "breeds", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "breed_code", "=", "t2", ".", "breed_code", "group", "by", "t1", ".", "breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le nom de la race avec la plupart des chiens?", "question_toks": [ "Quel", "est", "le", "nom", "de", "la", "race", "avec", "la", "plupart", "des", "chiens", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.breed_name", "FROM", "Breeds", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.breed_code", "=", "T2.breed_code", "GROUP", "BY", "T1.breed_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "breed_name", "from", "breeds", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "breed_code", "=", "t2", ".", "breed_code", "group", "by", "t1", ".", "breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle race faire le plus de chiens? Donnez-moi le nom de la race.", "question_toks": [ "Quelle", "race", "faire", "le", "plus", "de", "chiens", "?", "Donnez", "-moi", "le", "nom", "de", "la", "race", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 23, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.owner_id", ",", "T1.last_name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "JOIN", "Treatments", "AS", "T3", "ON", "T2.dog_id", "=", "T3.dog_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "owner_id", ",", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "join", "treatments", "as", "t3", "on", "t2", ".", "dog_id", "=", "t3", ".", "dog_id", "group", "by", "t1", ".", "owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel propriétaire a payé le plus de traitements sur ses chiens? Énumérez l'ID du propriétaire et le nom de famille.", "question_toks": [ "Quel", "propriétaire", "a", "payé", "le", "plus", "de", "traitements", "sur", "ses", "chiens", "?", "Énumérez", "l'", "ID", "du", "propriétaire", "et", "le", "nom", "de", "famille", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.owner_id", ",", "T1.last_name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "JOIN", "Treatments", "AS", "T3", "ON", "T2.dog_id", "=", "T3.dog_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "owner_id", ",", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "join", "treatments", "as", "t3", "on", "t2", ".", "dog_id", "=", "t3", ".", "dog_id", "group", "by", "t1", ".", "owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Dites-moi l'ID du propriétaire et le nom de famille du propriétaire qui a passé le plus de traitements de ses chiens.", "question_toks": [ "Dites", "-moi", "l'", "ID", "du", "propriétaire", "et", "le", "nom", "de", "famille", "du", "propriétaire", "qui", "a", "passé", "le", "plus", "de", "traitements", "de", "ses", "chiens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.treatment_type_description", "FROM", "Treatment_types", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.treatment_type_code", "=", "T2.treatment_type_code", "GROUP", "BY", "T1.treatment_type_code", "ORDER", "BY", "sum", "(", "cost_of_treatment", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "treatment_type_description", "from", "treatment_types", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "treatment_type_code", "=", "t2", ".", "treatment_type_code", "group", "by", "t1", ".", "treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "value" ], "question": "Quelle est la description du type de traitement qui coûte le moins d'argent au total?", "question_toks": [ "Quelle", "est", "la", "description", "du", "type", "de", "traitement", "qui", "coûte", "le", "moins", "d'", "argent", "au", "total", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 47, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 4, 49, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.treatment_type_description", "FROM", "Treatment_types", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.treatment_type_code", "=", "T2.treatment_type_code", "GROUP", "BY", "T1.treatment_type_code", "ORDER", "BY", "sum", "(", "cost_of_treatment", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "treatment_type_description", "from", "treatment_types", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "treatment_type_code", "=", "t2", ".", "treatment_type_code", "group", "by", "t1", ".", "treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "value" ], "question": "Donnez-moi la description du type de traitement dont le coût total est le plus bas.", "question_toks": [ "Donnez", "-moi", "la", "description", "du", "type", "de", "traitement", "dont", "le", "coût", "total", "est", "le", "plus", "bas", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 47, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 4, 49, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.owner_id", ",", "T1.zip_code", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "JOIN", "Treatments", "AS", "T3", "ON", "T2.dog_id", "=", "T3.dog_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "sum", "(", "T3.cost_of_treatment", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "owner_id", ",", "t1", ".", "zip_code", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "join", "treatments", "as", "t3", "on", "t2", ".", "dog_id", "=", "t3", ".", "dog_id", "group", "by", "t1", ".", "owner_id", "order", "by", "sum", "(", "t3", ".", "cost_of_treatment", ")", "desc", "limit", "value" ], "question": "Quel propriétaire a payé la plus grande somme d'argent au total pour leurs chiens? Afficher l'ID du propriétaire et le code postal.", "question_toks": [ "Quel", "propriétaire", "a", "payé", "la", "plus", "grande", "somme", "d'", "argent", "au", "total", "pour", "leurs", "chiens", "?", "Afficher", "l'", "ID", "du", "propriétaire", "et", "le", "code", "postal", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 4, 49, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.owner_id", ",", "T1.zip_code", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "JOIN", "Treatments", "AS", "T3", "ON", "T2.dog_id", "=", "T3.dog_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "sum", "(", "T3.cost_of_treatment", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "owner_id", ",", "t1", ".", "zip_code", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "join", "treatments", "as", "t3", "on", "t2", ".", "dog_id", "=", "t3", ".", "dog_id", "group", "by", "t1", ".", "owner_id", "order", "by", "sum", "(", "t3", ".", "cost_of_treatment", ")", "desc", "limit", "value" ], "question": "Trouvez l'ID du propriétaire et le code postal du propriétaire qui a passé le plus d'argent au total pour ses chiens.", "question_toks": [ "Trouvez", "l'", "ID", "du", "propriétaire", "et", "le", "code", "postal", "du", "propriétaire", "qui", "a", "passé", "le", "plus", "d'", "argent", "au", "total", "pour", "ses", "chiens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 4, 49, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.professional_id", ",", "T1.cell_number", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "GROUP", "BY", "T1.professional_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "professional_id", ",", "t1", ".", "cell_number", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels professionnels ont fait au moins deux types de traitements? Répertoriez l'ID professionnel et le téléphone portable.", "question_toks": [ "Quels", "professionnels", "ont", "fait", "au", "moins", "deux", "types", "de", "traitements", "?", "Répertoriez", "l'", "ID", "professionnel", "et", "le", "téléphone", "portable", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 33, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.professional_id", ",", "T1.cell_number", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "GROUP", "BY", "T1.professional_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "professional_id", ",", "t1", ".", "cell_number", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Trouvez l'ID et le téléphone portable des professionnels qui exploitent deux types de traitements ou plus.", "question_toks": [ "Trouvez", "l'", "ID", "et", "le", "téléphone", "portable", "des", "professionnels", "qui", "exploitent", "deux", "types", "de", "traitements", "ou", "plus", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 33, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T1.last_name", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "WHERE", "cost_of_treatment", "<", "(", "SELECT", "avg", "(", "cost_of_treatment", ")", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "where", "cost_of_treatment", "<", "(", "select", "avg", "(", "cost_of_treatment", ")", "from", "treatments", ")" ], "question": "Quel est le prénom et le nom de famille des professionnels qui ont fait un traitement avec le coût inférieur à la moyenne?", "question_toks": [ "Quel", "est", "le", "prénom", "et", "le", "nom", "de", "famille", "des", "professionnels", "qui", "ont", "fait", "un", "traitement", "avec", "le", "coût", "inférieur", "à", "la", "moyenne", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 49, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 49, 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": "dog_kennels", "query": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T1.last_name", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "WHERE", "cost_of_treatment", "<", "(", "SELECT", "avg", "(", "cost_of_treatment", ")", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "where", "cost_of_treatment", "<", "(", "select", "avg", "(", "cost_of_treatment", ")", "from", "treatments", ")" ], "question": "Quels professionnels ont exploité un traitement qui coûte moins que la moyenne? Donnez-moi des noms de famille et des noms de famille.", "question_toks": [ "Quels", "professionnels", "ont", "exploité", "un", "traitement", "qui", "coûte", "moins", "que", "la", "moyenne", "?", "Donnez", "-moi", "des", "noms", "de", "famille", "et", "des", "noms", "de", "famille", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 49, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 49, 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": "dog_kennels", "query": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", "query_toks": [ "SELECT", "T1.date_of_treatment", ",", "T2.first_name", "FROM", "Treatments", "AS", "T1", "JOIN", "Professionals", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_treatment", ",", "t2", ".", "first_name", "from", "treatments", "as", "t1", "join", "professionals", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id" ], "question": "Énumérez la date de chaque traitement, ainsi que le prénom du professionnel qui l'a exploité.", "question_toks": [ "Énumérez", "la", "date", "de", "chaque", "traitement", ",", "ainsi", "que", "le", "prénom", "du", "professionnel", "qui", "l'", "a", "exploité", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 33, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 48, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", "query_toks": [ "SELECT", "T1.date_of_treatment", ",", "T2.first_name", "FROM", "Treatments", "AS", "T1", "JOIN", "Professionals", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_treatment", ",", "t2", ".", "first_name", "from", "treatments", "as", "t1", "join", "professionals", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id" ], "question": "Quelle est la date et le prénom du professionnel de l'exploitation de chaque traitement?", "question_toks": [ "Quelle", "est", "la", "date", "et", "le", "prénom", "du", "professionnel", "de", "l'", "exploitation", "de", "chaque", "traitement", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 33, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 48, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", "query_toks": [ "SELECT", "T1.cost_of_treatment", ",", "T2.treatment_type_description", "FROM", "Treatments", "AS", "T1", "JOIN", "treatment_types", "AS", "T2", "ON", "T1.treatment_type_code", "=", "T2.treatment_type_code" ], "query_toks_no_value": [ "select", "t1", ".", "cost_of_treatment", ",", "t2", ".", "treatment_type_description", "from", "treatments", "as", "t1", "join", "treatment_types", "as", "t2", "on", "t1", ".", "treatment_type_code", "=", "t2", ".", "treatment_type_code" ], "question": "Énumérez le coût de chaque traitement et la description du type de traitement correspondant.", "question_toks": [ "Énumérez", "le", "coût", "de", "chaque", "traitement", "et", "la", "description", "du", "type", "de", "traitement", "correspondant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 47, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", "query_toks": [ "SELECT", "T1.cost_of_treatment", ",", "T2.treatment_type_description", "FROM", "Treatments", "AS", "T1", "JOIN", "treatment_types", "AS", "T2", "ON", "T1.treatment_type_code", "=", "T2.treatment_type_code" ], "query_toks_no_value": [ "select", "t1", ".", "cost_of_treatment", ",", "t2", ".", "treatment_type_description", "from", "treatments", "as", "t1", "join", "treatment_types", "as", "t2", "on", "t1", ".", "treatment_type_code", "=", "t2", ".", "treatment_type_code" ], "question": "Quels sont les descriptions de coût et de traitement de chaque traitement?", "question_toks": [ "Quels", "sont", "les", "descriptions", "de", "coût", "et", "de", "traitement", "de", "chaque", "traitement", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 47, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T2.size_code", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t2", ".", "size_code", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id" ], "question": "Répertoriez le prénom de chaque propriétaire, le nom de famille et la taille de son chien.", "question_toks": [ "Répertoriez", "le", "prénom", "de", "chaque", "propriétaire", ",", "le", "nom", "de", "famille", "et", "la", "taille", "de", "son", "chien", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T2.size_code", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t2", ".", "size_code", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id" ], "question": "Quel est le prénom, le nom de famille et la taille de leur chien?", "question_toks": [ "Quel", "est", "le", "prénom", ",", "le", "nom", "de", "famille", "et", "la", "taille", "de", "leur", "chien", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T2.name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t2", ".", "name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id" ], "question": "Liste des paires du prénom du propriétaire et du nom du chien.", "question_toks": [ "Liste", "des", "paires", "du", "prénom", "du", "propriétaire", "et", "du", "nom", "du", "chien", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T2.name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t2", ".", "name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id" ], "question": "Quel est le prénom de chaque propriétaire et le nom de leur chien?", "question_toks": [ "Quel", "est", "le", "prénom", "de", "chaque", "propriétaire", "et", "le", "nom", "de", "leur", "chien", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )", "query_toks": [ "SELECT", "T1.name", ",", "T2.date_of_treatment", "FROM", "Dogs", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.dog_id", "=", "T2.dog_id", "WHERE", "T1.breed_code", "=", "(", "SELECT", "breed_code", "FROM", "Dogs", "GROUP", "BY", "breed_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "date_of_treatment", "from", "dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "dog_id", "=", "t2", ".", "dog_id", "where", "t1", ".", "breed_code", "=", "(", "select", "breed_code", "from", "dogs", "group", "by", "breed_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value", ")" ], "question": "Énumérez les noms des chiens de la race la plus rare et des dates de traitement.", "question_toks": [ "Énumérez", "les", "noms", "des", "chiens", "de", "la", "race", "la", "plus", "rare", "et", "des", "dates", "de", "traitement", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 48, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 23, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )", "query_toks": [ "SELECT", "T1.name", ",", "T2.date_of_treatment", "FROM", "Dogs", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.dog_id", "=", "T2.dog_id", "WHERE", "T1.breed_code", "=", "(", "SELECT", "breed_code", "FROM", "Dogs", "GROUP", "BY", "breed_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "date_of_treatment", "from", "dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "dog_id", "=", "t2", ".", "dog_id", "where", "t1", ".", "breed_code", "=", "(", "select", "breed_code", "from", "dogs", "group", "by", "breed_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value", ")" ], "question": "Quels chiens sont de la race la plus rare? Montrer leurs noms et leurs dates de traitement.", "question_toks": [ "Quels", "chiens", "sont", "de", "la", "race", "la", "plus", "rare", "?", "Montrer", "leurs", "noms", "et", "leurs", "dates", "de", "traitement", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 48, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 23, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", "query_toks": [ "SELECT", "T1.first_name", ",", "T2.name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "WHERE", "T1.state", "=", "'Virginia", "'" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t2", ".", "name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t1", ".", "state", "=", "value" ], "question": "Quels chiens appartiennent à quelqu'un qui vit en Virginie? Énumérez le prénom du propriétaire et le nom du chien.", "question_toks": [ "Quels", "chiens", "appartiennent", "à", "quelqu'", "un", "qui", "vit", "en", "Virginie", "?", "Énumérez", "le", "prénom", "du", "propriétaire", "et", "le", "nom", "du", "chien", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Virginia\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", "query_toks": [ "SELECT", "T1.first_name", ",", "T2.name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "WHERE", "T1.state", "=", "'Virginia", "'" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t2", ".", "name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t1", ".", "state", "=", "value" ], "question": "Trouvez les prénoms des propriétaires vivant en Virginie et les noms des chiens qu'ils possèdent.", "question_toks": [ "Trouvez", "les", "prénoms", "des", "propriétaires", "vivant", "en", "Virginie", "et", "les", "noms", "des", "chiens", "qu'", "ils", "possèdent", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Virginia\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", "query_toks": [ "SELECT", "DISTINCT", "T1.date_arrived", ",", "T1.date_departed", "FROM", "Dogs", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.dog_id", "=", "T2.dog_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "date_arrived", ",", "t1", ".", "date_departed", "from", "dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "dog_id", "=", "t2", ".", "dog_id" ], "question": "Quelles sont la date d'arrivée et la date de départ des chiens qui ont traversé un traitement?", "question_toks": [ "Quelles", "sont", "la", "date", "d'", "arrivée", "et", "la", "date", "de", "départ", "des", "chiens", "qui", "ont", "traversé", "un", "traitement", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", "query_toks": [ "SELECT", "DISTINCT", "T1.date_arrived", ",", "T1.date_departed", "FROM", "Dogs", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.dog_id", "=", "T2.dog_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "date_arrived", ",", "t1", ".", "date_departed", "from", "dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "dog_id", "=", "t2", ".", "dog_id" ], "question": "Trouvez la date d'arrivée et la date de départ des chiens qui ont reçu un traitement.", "question_toks": [ "Trouvez", "la", "date", "d'", "arrivée", "et", "la", "date", "de", "départ", "des", "chiens", "qui", "ont", "reçu", "un", "traitement", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )", "query_toks": [ "SELECT", "T1.last_name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "WHERE", "T2.age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Dogs", ")" ], "query_toks_no_value": [ "select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "(", "select", "max", "(", "age", ")", "from", "dogs", ")" ], "question": "Énumérez le nom de famille du propriétaire qui possède le chien le plus jeune.", "question_toks": [ "Énumérez", "le", "nom", "de", "famille", "du", "propriétaire", "qui", "possède", "le", "chien", "le", "plus", "jeune", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 26, 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": "dog_kennels", "query": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )", "query_toks": [ "SELECT", "T1.last_name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "WHERE", "T2.age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Dogs", ")" ], "query_toks_no_value": [ "select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "(", "select", "max", "(", "age", ")", "from", "dogs", ")" ], "question": "Qui possède le plus jeune chien? Donnez-moi son nom de famille.", "question_toks": [ "Qui", "possède", "le", "plus", "jeune", "chien", "?", "Donnez", "-moi", "son", "nom", "de", "famille", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 26, 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": "dog_kennels", "query": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", "query_toks": [ "SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "'Hawaii", "'", "OR", "state", "=", "'Wisconsin", "'" ], "query_toks_no_value": [ "select", "email_address", "from", "professionals", "where", "state", "=", "value", "or", "state", "=", "value" ], "question": "Énumérez les courriels des professionnels qui vivent dans l'État d'Hawaii ou de l'État du Wisconsin.", "question_toks": [ "Énumérez", "les", "courriels", "des", "professionnels", "qui", "vivent", "dans", "l'", "État", "d'", "Hawaii", "ou", "de", "l'", "État", "du", "Wisconsin", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], "\"Hawaii\"", null ], "or", [ false, 2, [ 0, [ 0, 38, false ], null ], "\"Wisconsin\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", "query_toks": [ "SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "'Hawaii", "'", "OR", "state", "=", "'Wisconsin", "'" ], "query_toks_no_value": [ "select", "email_address", "from", "professionals", "where", "state", "=", "value", "or", "state", "=", "value" ], "question": "Quels sont les emails des professionnels vivant dans l'état d'Hawaii ou de l'état du Wisconsin?", "question_toks": [ "Quels", "sont", "les", "emails", "des", "professionnels", "vivant", "dans", "l'", "état", "d'", "Hawaii", "ou", "de", "l'", "état", "du", "Wisconsin", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], "\"Hawaii\"", null ], "or", [ false, 2, [ 0, [ 0, 38, false ], null ], "\"Wisconsin\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT date_arrived , date_departed FROM Dogs", "query_toks": [ "SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "date_arrived", ",", "date_departed", "from", "dogs" ], "question": "Quelles sont la date d'arrivée et la date de départ de tous les chiens?", "question_toks": [ "Quelles", "sont", "la", "date", "d'", "arrivée", "et", "la", "date", "de", "départ", "de", "tous", "les", "chiens", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT date_arrived , date_departed FROM Dogs", "query_toks": [ "SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "date_arrived", ",", "date_departed", "from", "dogs" ], "question": "Énumérez la date d'arrivée et la date de départ de tous les chiens.", "question_toks": [ "Énumérez", "la", "date", "d'", "arrivée", "et", "la", "date", "de", "départ", "de", "tous", "les", "chiens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT count(DISTINCT dog_id) FROM Treatments", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dog_id", ")", "FROM", "Treatments" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dog_id", ")", "from", "treatments" ], "question": "Combien de chiens ont traversé tous les traitements?", "question_toks": [ "Combien", "de", "chiens", "ont", "traversé", "tous", "les", "traitements", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 45, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT count(DISTINCT dog_id) FROM Treatments", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dog_id", ")", "FROM", "Treatments" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dog_id", ")", "from", "treatments" ], "question": "Comptez le nombre de chiens qui ont traversé un traitement.", "question_toks": [ "Comptez", "le", "nombre", "de", "chiens", "qui", "ont", "traversé", "un", "traitement", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 45, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT count(DISTINCT professional_id) FROM Treatments", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "professional_id", ")", "FROM", "Treatments" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "professional_id", ")", "from", "treatments" ], "question": "Combien de professionnels ont effectué un traitement aux chiens?", "question_toks": [ "Combien", "de", "professionnels", "ont", "effectué", "un", "traitement", "aux", "chiens", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 46, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT count(DISTINCT professional_id) FROM Treatments", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "professional_id", ")", "FROM", "Treatments" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "professional_id", ")", "from", "treatments" ], "question": "Trouvez le nombre de professionnels ayant déjà traité des chiens.", "question_toks": [ "Trouvez", "le", "nombre", "de", "professionnels", "ayant", "déjà", "traité", "des", "chiens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 46, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", "query_toks": [ "SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "'", "%", "West", "%", "'" ], "query_toks_no_value": [ "select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "value" ], "question": "Quels professionnels vivent dans une ville contenant la sous-chaîne 'West'? Énumérez son rôle, la rue, la ville et l'état.", "question_toks": [ "Quels", "professionnels", "vivent", "dans", "une", "ville", "contenant", "la", "sous-chaîne", "'", "West", "'", "?", "Énumérez", "son", "rôle", ",", "la", "rue", ",", "la", "ville", "et", "l'", "état", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 37, false ], null ], "\"%West%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", "query_toks": [ "SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "'", "%", "West", "%", "'" ], "query_toks_no_value": [ "select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "value" ], "question": "Trouvez le rôle, la rue, la ville et l'état des professionnels vivant dans une ville qui contient la sous-chaîne 'West'.", "question_toks": [ "Trouvez", "le", "rôle", ",", "la", "rue", ",", "la", "ville", "et", "l'", "état", "des", "professionnels", "vivant", "dans", "une", "ville", "qui", "contient", "la", "sous-chaîne", "'", "West", "'", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 37, false ], null ], "\"%West%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners", "WHERE", "state", "LIKE", "'", "%", "North", "%", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "email_address", "from", "owners", "where", "state", "like", "value" ], "question": "Quels propriétaires vivent dans l'état dont le nom contient la sous-chaîne 'Nord'? Énumérez son prénom, son nom et son courrier électronique.", "question_toks": [ "Quels", "propriétaires", "vivent", "dans", "l'", "état", "dont", "le", "nom", "contient", "la", "sous-chaîne", "'", "Nord", "'", "?", "Énumérez", "son", "prénom", ",", "son", "nom", "et", "son", "courrier", "électronique", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%North%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners", "WHERE", "state", "LIKE", "'", "%", "North", "%", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "email_address", "from", "owners", "where", "state", "like", "value" ], "question": "Renvoyez le prénom, le nom de famille et le courrier électronique des propriétaires vivant dans un état dont le nom contient la sous-chaîne 'Nord'.", "question_toks": [ "Renvoyez", "le", "prénom", ",", "le", "nom", "de", "famille", "et", "le", "courrier", "électronique", "des", "propriétaires", "vivant", "dans", "un", "état", "dont", "le", "nom", "contient", "la", "sous-chaîne", "'", "Nord", "'", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "\"%North%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Dogs", "WHERE", "age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "Dogs", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dogs", "where", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "dogs", ")" ], "question": "Combien de chiens ont un âge inférieur à la moyenne?", "question_toks": [ "Combien", "de", "chiens", "ont", "un", "âge", "inférieur", "à", "la", "moyenne", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 26, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 26, 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": "dog_kennels", "query": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Dogs", "WHERE", "age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "Dogs", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dogs", "where", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "dogs", ")" ], "question": "Compter le nombre de chiens d'âge inférieur à la moyenne.", "question_toks": [ "Compter", "le", "nombre", "de", "chiens", "d'", "âge", "inférieur", "à", "la", "moyenne", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 26, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 26, 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": "dog_kennels", "query": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", "query_toks": [ "SELECT", "cost_of_treatment", "FROM", "Treatments", "ORDER", "BY", "date_of_treatment", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "cost_of_treatment", "from", "treatments", "order", "by", "date_of_treatment", "desc", "limit", "value" ], "question": "Combien coûte le traitement le plus récent?", "question_toks": [ "Combien", "coûte", "le", "traitement", "le", "plus", "récent", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 48, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", "query_toks": [ "SELECT", "cost_of_treatment", "FROM", "Treatments", "ORDER", "BY", "date_of_treatment", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "cost_of_treatment", "from", "treatments", "order", "by", "date_of_treatment", "desc", "limit", "value" ], "question": "Montrez-moi le coût du dernier traitement effectué.", "question_toks": [ "Montrez", "-moi", "le", "coût", "du", "dernier", "traitement", "effectué", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 48, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Dogs", "WHERE", "dog_id", "NOT", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")" ], "question": "Combien de chiens n'ont pas traversé de traitement?", "question_toks": [ "Combien", "de", "chiens", "n'", "ont", "pas", "traversé", "de", "traitement", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 20, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, 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": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": [ "select", "count", "(", "*", ")", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")" ], "question": "Dis-moi le nombre de chiens qui n'ont reçu aucun traitement.", "question_toks": [ "Dis", "-moi", "le", "nombre", "de", "chiens", "qui", "n'", "ont", "reçu", "aucun", "traitement", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 20, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, 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": "dog_kennels", "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")" ], "question": "Combien de propriétaires n'ont temporairement aucun chien?", "question_toks": [ "Combien", "de", "propriétaires", "n'", "ont", "temporairement", "aucun", "chien", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 10, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, 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": "dog_kennels", "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")" ], "question": "Trouvez le nombre de propriétaires qui ne possèdent aucun chien en ce moment.", "question_toks": [ "Trouvez", "le", "nombre", "de", "propriétaires", "qui", "ne", "possèdent", "aucun", "chien", "en", "ce", "moment", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 10, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, 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": "dog_kennels", "query": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")" ], "question": "Combien de professionnels n'exécutèrent aucun traitement sur les chiens?", "question_toks": [ "Combien", "de", "professionnels", "n'", "exécutèrent", "aucun", "traitement", "sur", "les", "chiens", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 33, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 46, 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": "dog_kennels", "query": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")" ], "question": "Trouvez le nombre de professionnels qui n'ont pas traité des chiens.", "question_toks": [ "Trouvez", "le", "nombre", "de", "professionnels", "qui", "n'", "ont", "pas", "traité", "des", "chiens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 33, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 46, 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": "dog_kennels", "query": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1", "query_toks": [ "SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1" ], "query_toks_no_value": [ "select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value" ], "question": "Énumérez le nom du chien, l'âge et le poids des chiens qui ont été abandonnés? 1 représente oui, et 0 signifie non.", "question_toks": [ "Énumérez", "le", "nom", "du", "chien", ",", "l'", "âge", "et", "le", "poids", "des", "chiens", "qui", "ont", "été", "abandonnés", "?", "1", "représente", "oui", ",", "et", "0", "signifie", "non", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 1.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1", "query_toks": [ "SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1" ], "query_toks_no_value": [ "select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value" ], "question": "Quel est le nom de chien, l'âge et le poids des chiens abandonnés? Notez que 1 signifie YES, et 0 ne signifie pas non dans les tables.", "question_toks": [ "Quel", "est", "le", "nom", "de", "chien", ",", "l'", "âge", "et", "le", "poids", "des", "chiens", "abandonnés", "?", "Notez", "que", "1", "signifie", "YES", ",", "et", "0", "ne", "signifie", "pas", "non", "dans", "les", "tables", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 1.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT avg(age) FROM Dogs", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "dogs" ], "question": "Quel est l'âge moyen de tous les chiens?", "question_toks": [ "Quel", "est", "l'", "âge", "moyen", "de", "tous", "les", "chiens", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT avg(age) FROM Dogs", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "dogs" ], "question": "Calculer l'âge moyen de tous les chiens.", "question_toks": [ "Calculer", "l'", "âge", "moyen", "de", "tous", "les", "chiens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT max(age) FROM Dogs", "query_toks": [ "SELECT", "max", "(", "age", ")", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "max", "(", "age", ")", "from", "dogs" ], "question": "Quel est l'âge du chien le plus âgé?", "question_toks": [ "Quel", "est", "l'", "âge", "du", "chien", "le", "plus", "âgé", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT max(age) FROM Dogs", "query_toks": [ "SELECT", "max", "(", "age", ")", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "max", "(", "age", ")", "from", "dogs" ], "question": "Dis-moi l'âge du chien le plus âgé.", "question_toks": [ "Dis", "-moi", "l'", "âge", "du", "chien", "le", "plus", "âgé", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT charge_type , charge_amount FROM Charges", "query_toks": [ "SELECT", "charge_type", ",", "charge_amount", "FROM", "Charges" ], "query_toks_no_value": [ "select", "charge_type", ",", "charge_amount", "from", "charges" ], "question": "Combien coûte chaque type de charge? Énumérez le type de charge et le montant.", "question_toks": [ "Combien", "coûte", "chaque", "type", "de", "charge", "?", "Énumérez", "le", "type", "de", "charge", "et", "le", "montant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT charge_type , charge_amount FROM Charges", "query_toks": [ "SELECT", "charge_type", ",", "charge_amount", "FROM", "Charges" ], "query_toks_no_value": [ "select", "charge_type", ",", "charge_amount", "from", "charges" ], "question": "Énumérez chaque type de charge et son montant.", "question_toks": [ "Énumérez", "chaque", "type", "de", "charge", "et", "son", "montant", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT max(charge_amount) FROM Charges", "query_toks": [ "SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges" ], "query_toks_no_value": [ "select", "max", "(", "charge_amount", ")", "from", "charges" ], "question": "Combien coûte le type de charge le plus coûteux?", "question_toks": [ "Combien", "coûte", "le", "type", "de", "charge", "le", "plus", "coûteux", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT max(charge_amount) FROM Charges", "query_toks": [ "SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges" ], "query_toks_no_value": [ "select", "max", "(", "charge_amount", ")", "from", "charges" ], "question": "Quel est le montant de charge du type de charge le plus coûteux?", "question_toks": [ "Quel", "est", "le", "montant", "de", "charge", "du", "type", "de", "charge", "le", "plus", "coûteux", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT email_address , cell_number , home_phone FROM professionals", "query_toks": [ "SELECT", "email_address", ",", "cell_number", ",", "home_phone", "FROM", "professionals" ], "query_toks_no_value": [ "select", "email_address", ",", "cell_number", ",", "home_phone", "from", "professionals" ], "question": "Énumérez le courrier électronique, le téléphone portable et le téléphone à la maison de tous les professionnels.", "question_toks": [ "Énumérez", "le", "courrier", "électronique", ",", "le", "téléphone", "portable", "et", "le", "téléphone", "à", "la", "maison", "de", "tous", "les", "professionnels", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ], [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT email_address , cell_number , home_phone FROM professionals", "query_toks": [ "SELECT", "email_address", ",", "cell_number", ",", "home_phone", "FROM", "professionals" ], "query_toks_no_value": [ "select", "email_address", ",", "cell_number", ",", "home_phone", "from", "professionals" ], "question": "Quels sont les courriels, le téléphone portable et le téléphone à la maison de chaque professionnel?", "question_toks": [ "Quels", "sont", "les", "courriels", ",", "le", "téléphone", "portable", "et", "le", "téléphone", "à", "la", "maison", "de", "chaque", "professionnel", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ], [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT breed_code , size_code FROM dogs", "query_toks": [ "SELECT", "DISTINCT", "breed_code", ",", "size_code", "FROM", "dogs" ], "query_toks_no_value": [ "select", "distinct", "breed_code", ",", "size_code", "from", "dogs" ], "question": "Quels sont tous les combinaisons de type de race et de taille de taille possibles?", "question_toks": [ "Quels", "sont", "tous", "les", "combinaisons", "de", "type", "de", "race", "et", "de", "taille", "de", "taille", "possibles", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT breed_code , size_code FROM dogs", "query_toks": [ "SELECT", "DISTINCT", "breed_code", ",", "size_code", "FROM", "dogs" ], "query_toks_no_value": [ "select", "distinct", "breed_code", ",", "size_code", "from", "dogs" ], "question": "Trouvez les combinaisons de type de type de race et de taille distinctes pour les chiens.", "question_toks": [ "Trouvez", "les", "combinaisons", "de", "type", "de", "type", "de", "race", "et", "de", "taille", "distinctes", "pour", "les", "chiens", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T3.treatment_type_description", "FROM", "professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "JOIN", "Treatment_types", "AS", "T3", "ON", "T2.treatment_type_code", "=", "T3.treatment_type_code" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t3", ".", "treatment_type_description", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "join", "treatment_types", "as", "t3", "on", "t2", ".", "treatment_type_code", "=", "t3", ".", "treatment_type_code" ], "question": "Énumérez le prénom de tous les professionnels avec la description du traitement qu'ils ont fait.", "question_toks": [ "Énumérez", "le", "prénom", "de", "tous", "les", "professionnels", "avec", "la", "description", "du", "traitement", "qu'", "ils", "ont", "fait", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ], "and", [ false, 2, [ 0, [ 0, 47, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T3.treatment_type_description", "FROM", "professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "JOIN", "Treatment_types", "AS", "T3", "ON", "T2.treatment_type_code", "=", "T3.treatment_type_code" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t3", ".", "treatment_type_description", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "join", "treatment_types", "as", "t3", "on", "t2", ".", "treatment_type_code", "=", "t3", ".", "treatment_type_code" ], "question": "Quel est le prénom et la description de chaque professionnel du traitement qu'ils ont effectués?", "question_toks": [ "Quel", "est", "le", "prénom", "et", "la", "description", "de", "chaque", "professionnel", "du", "traitement", "qu'", "ils", "ont", "effectués", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ], "and", [ false, 2, [ 0, [ 0, 47, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT count(*) FROM singer", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "singer" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "singer" ], "question": "Combien de chanteurs y a-t-il?", "question_toks": [ "Combien", "de", "chanteurs", "y", "a", "-t", "-il", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT count(*) FROM singer", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "singer" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "singer" ], "question": "Quel est le comte des chanteurs?", "question_toks": [ "Quel", "est", "le", "comte", "des", "chanteurs", "?" ], "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": "singer", "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", "query_toks": [ "SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "singer", "order", "by", "net_worth_millions", "asc" ], "question": "Énumérez le nom des chanteurs à l'ordre croissant de la valeur nette.", "question_toks": [ "Énumérez", "le", "nom", "des", "chanteurs", "à", "l'", "ordre", "croissant", "de", "la", "valeur", "nette", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", "query_toks": [ "SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "singer", "order", "by", "net_worth_millions", "asc" ], "question": "Quels sont les noms des chanteurs commandés par la valeur nette croissante?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "chanteurs", "commandés", "par", "la", "valeur", "nette", "croissante", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Birth_Year , Citizenship FROM singer", "query_toks": [ "SELECT", "Birth_Year", ",", "Citizenship", "FROM", "singer" ], "query_toks_no_value": [ "select", "birth_year", ",", "citizenship", "from", "singer" ], "question": "Quelles sont l'année de naissance et la citoyenneté des chanteurs?", "question_toks": [ "Quelles", "sont", "l'", "année", "de", "naissance", "et", "la", "citoyenneté", "des", "chanteurs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Birth_Year , Citizenship FROM singer", "query_toks": [ "SELECT", "Birth_Year", ",", "Citizenship", "FROM", "singer" ], "query_toks_no_value": [ "select", "birth_year", ",", "citizenship", "from", "singer" ], "question": "Quelles sont les années de naissance et les citoyens des chanteurs?", "question_toks": [ "Quelles", "sont", "les", "années", "de", "naissance", "et", "les", "citoyens", "des", "chanteurs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Name FROM singer WHERE Citizenship != \"France\"", "query_toks": [ "SELECT", "Name", "FROM", "singer", "WHERE", "Citizenship", "!", "=", "``", "France", "''" ], "query_toks_no_value": [ "select", "name", "from", "singer", "where", "citizenship", "!", "=", "value" ], "question": "Énumérez le nom des chanteurs dont la citoyenneté n'est pas «France».", "question_toks": [ "Énumérez", "le", "nom", "des", "chanteurs", "dont", "la", "citoyenneté", "n'", "est", "pas", "«", "France", "»", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 5, false ], null ], "\"France\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Name FROM singer WHERE Citizenship != \"France\"", "query_toks": [ "SELECT", "Name", "FROM", "singer", "WHERE", "Citizenship", "!", "=", "``", "France", "''" ], "query_toks_no_value": [ "select", "name", "from", "singer", "where", "citizenship", "!", "=", "value" ], "question": "Quels sont les noms des chanteurs qui ne sont pas des citoyens français?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "chanteurs", "qui", "ne", "sont", "pas", "des", "citoyens", "français", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 5, false ], null ], "\"France\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", "query_toks": [ "SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948", "OR", "Birth_Year", "=", "1949" ], "query_toks_no_value": [ "select", "name", "from", "singer", "where", "birth_year", "=", "value", "or", "birth_year", "=", "value" ], "question": "Montrer le nom des chanteurs dont l'année de naissance est 1948 ou 1949?", "question_toks": [ "Montrer", "le", "nom", "des", "chanteurs", "dont", "l'", "année", "de", "naissance", "est", "1948", "ou", "1949", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 1948.0, null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], 1949.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", "query_toks": [ "SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948", "OR", "Birth_Year", "=", "1949" ], "query_toks_no_value": [ "select", "name", "from", "singer", "where", "birth_year", "=", "value", "or", "birth_year", "=", "value" ], "question": "Quels sont les noms des chanteurs dont les années de naissance sont soit 1948, soit 1949?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "chanteurs", "dont", "les", "années", "de", "naissance", "sont", "soit", "1948", ",", "soit", "1949", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 1948.0, null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], 1949.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "singer", "order", "by", "net_worth_millions", "desc", "limit", "value" ], "question": "Quel est le nom de la chanteuse avec la plus grande valeur nette?", "question_toks": [ "Quel", "est", "le", "nom", "de", "la", "chanteuse", "avec", "la", "plus", "grande", "valeur", "nette", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "singer", "order", "by", "net_worth_millions", "desc", "limit", "value" ], "question": "Quel est le nom de la chanteuse qui vaut le plus?", "question_toks": [ "Quel", "est", "le", "nom", "de", "la", "chanteuse", "qui", "vaut", "le", "plus", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship", "query_toks": [ "SELECT", "Citizenship", ",", "COUNT", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "Citizenship" ], "query_toks_no_value": [ "select", "citizenship", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "citizenship" ], "question": "Montrer une citoyenneté différente de chanteurs et le nombre de chanteurs de chaque citoyenneté.", "question_toks": [ "Montrer", "une", "citoyenneté", "différente", "de", "chanteurs", "et", "le", "nombre", "de", "chanteurs", "de", "chaque", "citoyenneté", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship", "query_toks": [ "SELECT", "Citizenship", ",", "COUNT", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "Citizenship" ], "query_toks_no_value": [ "select", "citizenship", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "citizenship" ], "question": "Pour chaque citoyenneté, combien de chanteurs proviennent de ce pays?", "question_toks": [ "Pour", "chaque", "citoyenneté", ",", "combien", "de", "chanteurs", "proviennent", "de", "ce", "pays", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Citizenship", "FROM", "singer", "GROUP", "BY", "Citizenship", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "citizenship", "from", "singer", "group", "by", "citizenship", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "S'il vous plaît montrer la citoyenneté la plus commune des chanteurs.", "question_toks": [ "S'", "il", "vous", "plaît", "montrer", "la", "citoyenneté", "la", "plus", "commune", "des", "chanteurs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "select citizenship from singer group by citizenship order by count(*) desc limit 1", "query_toks": [ "select", "citizenship", "from", "singer", "group", "by", "citizenship", "order", "by", "count", "(", "*", ")", "desc", "limit", "1" ], "query_toks_no_value": [ "select", "citizenship", "from", "singer", "group", "by", "citizenship", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quelle est la citoyenneté la plus courante du chanteur?", "question_toks": [ "Quelle", "est", "la", "citoyenneté", "la", "plus", "courante", "du", "chanteur", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", "query_toks": [ "SELECT", "Citizenship", ",", "max", "(", "Net_Worth_Millions", ")", "FROM", "singer", "GROUP", "BY", "Citizenship" ], "query_toks_no_value": [ "select", "citizenship", ",", "max", "(", "net_worth_millions", ")", "from", "singer", "group", "by", "citizenship" ], "question": "Montrer différentes citoyens et la valeur nette maximale de chanteurs de chaque citoyenneté.", "question_toks": [ "Montrer", "différentes", "citoyens", "et", "la", "valeur", "nette", "maximale", "de", "chanteurs", "de", "chaque", "citoyenneté", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 1, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", "query_toks": [ "SELECT", "Citizenship", ",", "max", "(", "Net_Worth_Millions", ")", "FROM", "singer", "GROUP", "BY", "Citizenship" ], "query_toks_no_value": [ "select", "citizenship", ",", "max", "(", "net_worth_millions", ")", "from", "singer", "group", "by", "citizenship" ], "question": "Pour chaque citoyenneté, quelle est la valeur nette maximale?", "question_toks": [ "Pour", "chaque", "citoyenneté", ",", "quelle", "est", "la", "valeur", "nette", "maximale", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 1, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", "query_toks": [ "SELECT", "T2.Title", ",", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id" ], "question": "Afficher les titres de chansons et noms des chanteurs.", "question_toks": [ "Afficher", "les", "titres", "de", "chansons", "et", "noms", "des", "chanteurs", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", "query_toks": [ "SELECT", "T2.Title", ",", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id" ], "question": "Quels sont les noms de chansons et les noms chanteurs?", "question_toks": [ "Quels", "sont", "les", "noms", "de", "chansons", "et", "les", "noms", "chanteurs", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", "query_toks": [ "SELECT", "DISTINCT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "WHERE", "T2.Sales", ">", "300000" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "where", "t2", ".", "sales", ">", "value" ], "question": "Montrez des noms distincts des chanteurs qui ont des chansons avec des ventes plus de 300 000.", "question_toks": [ "Montrez", "des", "noms", "distincts", "des", "chanteurs", "qui", "ont", "des", "chansons", "avec", "des", "ventes", "plus", "de", "300", "000", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 300000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", "query_toks": [ "SELECT", "DISTINCT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "WHERE", "T2.Sales", ">", "300000" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "where", "t2", ".", "sales", ">", "value" ], "question": "Quels sont les noms différents des chanteurs qui ont des ventes plus de 300 000?", "question_toks": [ "Quels", "sont", "les", "noms", "différents", "des", "chanteurs", "qui", "ont", "des", "ventes", "plus", "de", "300", "000", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 300000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Montrer les noms des chanteurs qui ont plus d'une chanson.", "question_toks": [ "Montrer", "les", "noms", "des", "chanteurs", "qui", "ont", "plus", "d'", "une", "chanson", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Quels sont les noms des chanteurs qui ont plus d'une chansons?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "chanteurs", "qui", "ont", "plus", "d'", "une", "chansons", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name", "query_toks": [ "SELECT", "T1.Name", ",", "sum", "(", "T2.Sales", ")", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "GROUP", "BY", "T1.Name" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "sum", "(", "t2", ".", "sales", ")", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t1", ".", "name" ], "question": "Montrez les noms des chanteurs et des ventes totales de leurs chansons.", "question_toks": [ "Montrez", "les", "noms", "des", "chanteurs", "et", "des", "ventes", "totales", "de", "leurs", "chansons", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 4, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name", "query_toks": [ "SELECT", "T1.Name", ",", "sum", "(", "T2.Sales", ")", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "GROUP", "BY", "T1.Name" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "sum", "(", "t2", ".", "sales", ")", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t1", ".", "name" ], "question": "Pour chaque nom de chanteur, quelle est la vente totale de leurs chansons?", "question_toks": [ "Pour", "chaque", "nom", "de", "chanteur", ",", "quelle", "est", "la", "vente", "totale", "de", "leurs", "chansons", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 4, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", "query_toks": [ "SELECT", "Name", "FROM", "singer", "WHERE", "Singer_ID", "NOT", "IN", "(", "SELECT", "Singer_ID", "FROM", "song", ")" ], "query_toks_no_value": [ "select", "name", "from", "singer", "where", "singer_id", "not", "in", "(", "select", "singer_id", "from", "song", ")" ], "question": "Énumérez le nom des chanteurs qui n'ont aucune chanson.", "question_toks": [ "Énumérez", "le", "nom", "des", "chanteurs", "qui", "n'", "ont", "aucune", "chanson", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, 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": "singer", "query": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", "query_toks": [ "SELECT", "Name", "FROM", "singer", "WHERE", "Singer_ID", "NOT", "IN", "(", "SELECT", "Singer_ID", "FROM", "song", ")" ], "query_toks_no_value": [ "select", "name", "from", "singer", "where", "singer_id", "not", "in", "(", "select", "singer_id", "from", "song", ")" ], "question": "Quel est le renonciation de chaque chant qui n'a pas de chanson?", "question_toks": [ "Quel", "est", "le", "renonciation", "de", "chaque", "chant", "qui", "n'", "a", "pas", "de", "chanson", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, 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": "singer", "query": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", "query_toks": [ "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "1945", "INTERSECT", "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "1955" ], "query_toks_no_value": [ "select", "citizenship", "from", "singer", "where", "birth_year", "<", "value", "intersect", "select", "citizenship", "from", "singer", "where", "birth_year", ">", "value" ], "question": "Montrez à la citoyenneté partagée par des chanteurs avec une année de naissance avant 1945 et après 1955.", "question_toks": [ "Montrez", "à", "la", "citoyenneté", "partagée", "par", "des", "chanteurs", "avec", "une", "année", "de", "naissance", "avant", "1945", "et", "après", "1955", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 1945.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 1955.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "singer", "query": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", "query_toks": [ "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "1945", "INTERSECT", "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "1955" ], "query_toks_no_value": [ "select", "citizenship", "from", "singer", "where", "birth_year", "<", "value", "intersect", "select", "citizenship", "from", "singer", "where", "birth_year", ">", "value" ], "question": "Quelles sont les citoyens qui sont partagés par des chanteurs avec une année de naissance avant 1945 et après 1955?", "question_toks": [ "Quelles", "sont", "les", "citoyens", "qui", "sont", "partagés", "par", "des", "chanteurs", "avec", "une", "année", "de", "naissance", "avant", "1945", "et", "après", "1955", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 1945.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 1955.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "real_estate_properties", "query": "SELECT count(*) FROM Other_Available_Features", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Other_Available_Features" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "other_available_features" ], "question": "Combien de fonctionnalités disponibles y a-t-il au total?", "question_toks": [ "Combien", "de", "fonctionnalités", "disponibles", "y", "a", "-t", "-il", "au", "total", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "real_estate_properties", "query": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = \"AirCon\"", "query_toks": [ "SELECT", "T2.feature_type_name", "FROM", "Other_Available_Features", "AS", "T1", "JOIN", "Ref_Feature_Types", "AS", "T2", "ON", "T1.feature_type_code", "=", "T2.feature_type_code", "WHERE", "T1.feature_name", "=", "``", "AirCon", "''" ], "query_toks_no_value": [ "select", "t2", ".", "feature_type_name", "from", "other_available_features", "as", "t1", "join", "ref_feature_types", "as", "t2", "on", "t1", ".", "feature_type_code", "=", "t2", ".", "feature_type_code", "where", "t1", ".", "feature_name", "=", "value" ], "question": "Quel est le type de fonctionnalité Nom de la fonctionnalité Aircon?", "question_toks": [ "Quel", "est", "le", "type", "de", "fonctionnalité", "Nom", "de", "la", "fonctionnalité", "Aircon", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"AirCon\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "real_estate_properties", "query": "SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code", "query_toks": [ "SELECT", "T2.property_type_description", "FROM", "Properties", "AS", "T1", "JOIN", "Ref_Property_Types", "AS", "T2", "ON", "T1.property_type_code", "=", "T2.property_type_code", "GROUP", "BY", "T1.property_type_code" ], "query_toks_no_value": [ "select", "t2", ".", "property_type_description", "from", "properties", "as", "t1", "join", "ref_property_types", "as", "t2", "on", "t1", ".", "property_type_code", "=", "t2", ".", "property_type_code", "group", "by", "t1", ".", "property_type_code" ], "question": "Afficher les descriptions de type de propriété des propriétés appartenant à ce code.", "question_toks": [ "Afficher", "les", "descriptions", "de", "type", "de", "propriété", "des", "propriétés", "appartenant", "à", "ce", "code", "." ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "real_estate_properties", "query": "SELECT property_name FROM Properties WHERE property_type_code = \"House\" UNION SELECT property_name FROM Properties WHERE property_type_code = \"Apartment\" AND room_count > 1", "query_toks": [ "SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "``", "House", "''", "UNION", "SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "``", "Apartment", "''", "AND", "room_count", ">", "1" ], "query_toks_no_value": [ "select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "union", "select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "and", "room_count", ">", "value" ], "question": "Quels sont les noms des propriétés qui sont des maisons ou des appartements avec plus d'une pièce?", "question_toks": [ "Quels", "sont", "les", "noms", "des", "propriétés", "qui", "sont", "des", "maisons", "ou", "des", "appartements", "avec", "plus", "d'", "une", "pièce", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"House\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Apartment\"", null ], "and", [ false, 3, [ 0, [ 0, 15, false ], null ], 1.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } } ]