| [ |
| { |
| "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": [ |
| "How", |
| "many", |
| "singers", |
| "do", |
| "we", |
| "have", |
| "?" |
| ], |
| "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": [ |
| "What", |
| "is", |
| "the", |
| "total", |
| "number", |
| "of", |
| "singers", |
| "?" |
| ], |
| "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": "Montrez le nom, le pays, l'âge de tous les chanteurs classés par âge du plus âgé au plus jeune.", |
| "question_toks": [ |
| "Show", |
| "name", |
| ",", |
| "country", |
| ",", |
| "age", |
| "for", |
| "all", |
| "singers", |
| "ordered", |
| "by", |
| "age", |
| "from", |
| "the", |
| "oldest", |
| "to", |
| "the", |
| "youngest", |
| "." |
| ], |
| "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, pays et âges de chaque chanteur par ordre décroissant d'âge?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| ",", |
| "countries", |
| ",", |
| "and", |
| "ages", |
| "for", |
| "every", |
| "singer", |
| "in", |
| "descending", |
| "order", |
| "of", |
| "age", |
| "?" |
| ], |
| "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": "Quel est l'âge moyen, minimum et maximum de tous les chanteurs venant de «France» ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| ",", |
| "minimum", |
| ",", |
| "and", |
| "maximum", |
| "age", |
| "of", |
| "all", |
| "singers", |
| "from", |
| "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 de tous les chanteurs de «France» ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| ",", |
| "minimum", |
| ",", |
| "and", |
| "maximum", |
| "age", |
| "for", |
| "all", |
| "French", |
| "singers", |
| "?" |
| ], |
| "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 sortie de la chanson du plus jeune chanteur.", |
| "question_toks": [ |
| "Show", |
| "the", |
| "name", |
| "and", |
| "the", |
| "release", |
| "year", |
| "of", |
| "the", |
| "song", |
| "by", |
| "the", |
| "youngest", |
| "singer", |
| "." |
| ], |
| "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 sortie de toutes les chansons du plus jeune chanteur?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "and", |
| "release", |
| "years", |
| "for", |
| "all", |
| "the", |
| "songs", |
| "of", |
| "the", |
| "youngest", |
| "singer", |
| "?" |
| ], |
| "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 les pays d'origine des chanteurs de plus de 20 ans?", |
| "question_toks": [ |
| "What", |
| "are", |
| "all", |
| "distinct", |
| "countries", |
| "where", |
| "singers", |
| "above", |
| "age", |
| "20", |
| "are", |
| "from", |
| "?" |
| ], |
| "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, |
| 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 pays ont des chanteurs de plus de 20 ans ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "different", |
| "countries", |
| "with", |
| "singers", |
| "above", |
| "age", |
| "20", |
| "?" |
| ], |
| "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, |
| 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": "Montrez tous les pays et le nombre de chanteurs dans chaque pays.", |
| "question_toks": [ |
| "Show", |
| "all", |
| "countries", |
| "and", |
| "the", |
| "number", |
| "of", |
| "singers", |
| "in", |
| "each", |
| "country", |
| "." |
| ], |
| "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 chaque pays ont ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "singers", |
| "are", |
| "from", |
| "each", |
| "country", |
| "?" |
| ], |
| "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": "Listez tous les noms de chansons des chanteurs au-dessus de l'âge moyen.", |
| "question_toks": [ |
| "List", |
| "all", |
| "song", |
| "names", |
| "by", |
| "singers", |
| "above", |
| "the", |
| "average", |
| "age", |
| "." |
| ], |
| "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 les noms de chansons des chanteurs plus âgés que la moyenne?", |
| "question_toks": [ |
| "What", |
| "are", |
| "all", |
| "the", |
| "song", |
| "names", |
| "by", |
| "singers", |
| "who", |
| "are", |
| "older", |
| "than", |
| "average", |
| "?" |
| ], |
| "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": "Affichez l'emplacement et le nom de tous les stades d'une capacité comprise entre 5 000 et 10 000.", |
| "question_toks": [ |
| "Show", |
| "location", |
| "and", |
| "name", |
| "for", |
| "all", |
| "stadiums", |
| "with", |
| "a", |
| "capacity", |
| "between", |
| "5000", |
| "and", |
| "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, |
| 10000 |
| ] |
| ], |
| "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 tous les stades d'une capacité comprise entre 5 000 et 10 000?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "locations", |
| "and", |
| "names", |
| "of", |
| "all", |
| "stations", |
| "with", |
| "capacity", |
| "between", |
| "5000", |
| "and", |
| "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, |
| 10000 |
| ] |
| ], |
| "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": [ |
| "What", |
| "is", |
| "the", |
| "maximum", |
| "capacity", |
| "and", |
| "the", |
| "average", |
| "of", |
| "all", |
| "stadiums", |
| "?" |
| ], |
| "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": "Quelle est la capacité moyenne et maximale de tous les stades?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| "and", |
| "maximum", |
| "capacities", |
| "for", |
| "all", |
| "stadiums", |
| "?" |
| ], |
| "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 fréquentation moyenne la plus élevée?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "capacity", |
| "for", |
| "the", |
| "stadium", |
| "with", |
| "highest", |
| "average", |
| "attendance", |
| "?" |
| ], |
| "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 du stade avec la fréquentation moyenne la plus élevée, et quelle est sa capacité ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "capacity", |
| "for", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "highest", |
| "average", |
| "attendance", |
| "?" |
| ], |
| "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 en 2014 ou 2015?", |
| "question_toks": [ |
| "How", |
| "many", |
| "concerts", |
| "are", |
| "there", |
| "in", |
| "year", |
| "2014", |
| "or", |
| "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, |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2015, |
| 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": [ |
| "How", |
| "many", |
| "concerts", |
| "occurred", |
| "in", |
| "2014", |
| "or", |
| "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, |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2015, |
| 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": "Affichez le nom du stade et le nombre de concerts dans chaque stade.", |
| "question_toks": [ |
| "Show", |
| "the", |
| "stadium", |
| "name", |
| "and", |
| "the", |
| "number", |
| "of", |
| "concerts", |
| "in", |
| "each", |
| "stadium", |
| "." |
| ], |
| "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 ont-ils?", |
| "question_toks": [ |
| "For", |
| "each", |
| "stadium", |
| ",", |
| "how", |
| "many", |
| "concerts", |
| "play", |
| "there", |
| "?" |
| ], |
| "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": "Affichez le nom et la capacité du stade où ont eu lieu le plus de concerts en 2014 ou après.", |
| "question_toks": [ |
| "Show", |
| "the", |
| "stadium", |
| "name", |
| "and", |
| "capacity", |
| "with", |
| "most", |
| "number", |
| "of", |
| "concerts", |
| "in", |
| "year", |
| "2014", |
| "or", |
| "after", |
| "." |
| ], |
| "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, |
| 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 où ont eu lieu le plus de concerts après 2013 ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "capacity", |
| "of", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "most", |
| "concerts", |
| "after", |
| "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, |
| 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 le plus de concerts?", |
| "question_toks": [ |
| "Which", |
| "year", |
| "has", |
| "most", |
| "number", |
| "of", |
| "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": [ |
| "What", |
| "is", |
| "the", |
| "year", |
| "that", |
| "had", |
| "the", |
| "most", |
| "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": "Affichez les noms des stades sans concert.", |
| "question_toks": [ |
| "Show", |
| "the", |
| "stadium", |
| "names", |
| "without", |
| "any", |
| "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 concert?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "the", |
| "stadiums", |
| "without", |
| "any", |
| "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": "Montrez les pays d'où viennent un chanteur de plus de 40 ans et un chanteur de moins de 30 ans.", |
| "question_toks": [ |
| "Show", |
| "countries", |
| "where", |
| "a", |
| "singer", |
| "above", |
| "age", |
| "40", |
| "and", |
| "a", |
| "singer", |
| "below", |
| "30", |
| "are", |
| "from", |
| "." |
| ], |
| "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, |
| 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, |
| 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": "Affichez les noms de tous les stades à l'exception des stades ayant un concert en 2014.", |
| "question_toks": [ |
| "Show", |
| "names", |
| "for", |
| "all", |
| "stadiums", |
| "except", |
| "for", |
| "stadiums", |
| "having", |
| "a", |
| "concert", |
| "in", |
| "year", |
| "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, |
| 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": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "all", |
| "stadiums", |
| "that", |
| "did", |
| "not", |
| "have", |
| "a", |
| "concert", |
| "in", |
| "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, |
| 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": [ |
| "Show", |
| "the", |
| "name", |
| "and", |
| "theme", |
| "for", |
| "all", |
| "concerts", |
| "and", |
| "the", |
| "number", |
| "of", |
| "singers", |
| "in", |
| "each", |
| "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 le nom, le thème et le nombre de chanteurs de chaque concert?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| ",", |
| "themes", |
| ",", |
| "and", |
| "number", |
| "of", |
| "singers", |
| "for", |
| "every", |
| "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": "Listez les noms des chanteurs et le nombre de concerts de chaque chanteur.", |
| "question_toks": [ |
| "List", |
| "singer", |
| "names", |
| "and", |
| "number", |
| "of", |
| "concerts", |
| "for", |
| "each", |
| "singer", |
| "." |
| ], |
| "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 le nombre de concerts de chaque personne?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "the", |
| "singers", |
| "and", |
| "number", |
| "of", |
| "concerts", |
| "for", |
| "each", |
| "person", |
| "?" |
| ], |
| "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": "Listez tous les noms de chanteurs dans les concerts de l'année 2014.", |
| "question_toks": [ |
| "List", |
| "all", |
| "singer", |
| "names", |
| "in", |
| "concerts", |
| "in", |
| "year", |
| "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, |
| 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 int chanté dans un concert en 2014?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "the", |
| "singers", |
| "who", |
| "performed", |
| "in", |
| "a", |
| "concert", |
| "in", |
| "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, |
| 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 du chanteur qui a une chanson avec le mot «Hey» dans son titre ?", |
| "question_toks": [ |
| "what", |
| "is", |
| "the", |
| "name", |
| "and", |
| "nation", |
| "of", |
| "the", |
| "singer", |
| "who", |
| "have", |
| "a", |
| "song", |
| "having", |
| "'Hey", |
| "'", |
| "in", |
| "its", |
| "name", |
| "?" |
| ], |
| "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": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "country", |
| "of", |
| "origin", |
| "of", |
| "every", |
| "singer", |
| "who", |
| "has", |
| "a", |
| "song", |
| "with", |
| "the", |
| "word", |
| "'Hey", |
| "'", |
| "in", |
| "its", |
| "title", |
| "?" |
| ], |
| "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 qui ont eu les concerts en 2014 et en 2015.", |
| "question_toks": [ |
| "Find", |
| "the", |
| "name", |
| "and", |
| "location", |
| "of", |
| "the", |
| "stadiums", |
| "which", |
| "some", |
| "concerts", |
| "happened", |
| "in", |
| "the", |
| "years", |
| "of", |
| "both", |
| "2014", |
| "and", |
| "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, |
| 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, |
| 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 ont eu des concerts en 2014 et 2015?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "and", |
| "locations", |
| "of", |
| "the", |
| "stadiums", |
| "that", |
| "had", |
| "concerts", |
| "that", |
| "occurred", |
| "in", |
| "both", |
| "2014", |
| "and", |
| "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, |
| 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, |
| 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 qui ont eu lieu dans le stade avec la plus grande capacité.", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "concerts", |
| "happened", |
| "in", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "highest", |
| "capacity", |
| "." |
| ], |
| "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 qui ont eu lieu dans le stade avec la plus grande capacité?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "number", |
| "of", |
| "concerts", |
| "that", |
| "occurred", |
| "in", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "largest", |
| "capacity", |
| "?" |
| ], |
| "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 |
| } |
| } |
| ] |