| [ |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(DISTINCT allergy) FROM Allergy_type", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "allergy", |
| ")", |
| "FROM", |
| "Allergy_type" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "allergy", |
| ")", |
| "from", |
| "allergy_type" |
| ], |
| "question": "Combien d'allergies y a-t-il?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(DISTINCT allergy) FROM Allergy_type", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "allergy", |
| ")", |
| "FROM", |
| "Allergy_type" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "allergy", |
| ")", |
| "from", |
| "allergy_type" |
| ], |
| "question": "Combien d'entrées d'allergie y a-t-il?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(DISTINCT allergytype) FROM Allergy_type", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "allergytype", |
| ")", |
| "FROM", |
| "Allergy_type" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "allergytype", |
| ")", |
| "from", |
| "allergy_type" |
| ], |
| "question": "Combien de types d'allergies différents existe-t-il?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(DISTINCT allergytype) FROM Allergy_type", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "allergytype", |
| ")", |
| "FROM", |
| "Allergy_type" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "allergytype", |
| ")", |
| "from", |
| "allergy_type" |
| ], |
| "question": "Combien d'allergies distinctes y a-t-il?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT DISTINCT allergytype FROM Allergy_type", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "allergytype", |
| "FROM", |
| "Allergy_type" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "allergytype", |
| "from", |
| "allergy_type" |
| ], |
| "question": "Affichez tous les types d'allergies.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT DISTINCT allergytype FROM Allergy_type", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "allergytype", |
| "FROM", |
| "Allergy_type" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "allergytype", |
| "from", |
| "allergy_type" |
| ], |
| "question": "Quels sont les différents types d'allergies?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT allergy , allergytype FROM Allergy_type", |
| "query_toks": [ |
| "SELECT", |
| "allergy", |
| ",", |
| "allergytype", |
| "FROM", |
| "Allergy_type" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergy", |
| ",", |
| "allergytype", |
| "from", |
| "allergy_type" |
| ], |
| "question": "Montrez toutes les allergies et leurs types.", |
| "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": "allergy_1", |
| "query": "SELECT allergy , allergytype FROM Allergy_type", |
| "query_toks": [ |
| "SELECT", |
| "allergy", |
| ",", |
| "allergytype", |
| "FROM", |
| "Allergy_type" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergy", |
| ",", |
| "allergytype", |
| "from", |
| "allergy_type" |
| ], |
| "question": "Quelles sont les allergies et leurs types?", |
| "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": "allergy_1", |
| "query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = \"food\"", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "allergy", |
| "FROM", |
| "Allergy_type", |
| "WHERE", |
| "allergytype", |
| "=", |
| "``", |
| "food", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "allergy", |
| "from", |
| "allergy_type", |
| "where", |
| "allergytype", |
| "=", |
| "value" |
| ], |
| "question": "Montrez toutes les allergies avec des types de \"food\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"food\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = \"food\"", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "allergy", |
| "FROM", |
| "Allergy_type", |
| "WHERE", |
| "allergytype", |
| "=", |
| "``", |
| "food", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "allergy", |
| "from", |
| "allergy_type", |
| "where", |
| "allergytype", |
| "=", |
| "value" |
| ], |
| "question": "Quelles sont toutes les différentes \"food\" allergies?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"food\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"", |
| "query_toks": [ |
| "SELECT", |
| "allergytype", |
| "FROM", |
| "Allergy_type", |
| "WHERE", |
| "allergy", |
| "=", |
| "``", |
| "Cat", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergytype", |
| "from", |
| "allergy_type", |
| "where", |
| "allergy", |
| "=", |
| "value" |
| ], |
| "question": "Quel est le type d'allergie au \"Cat\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| "\"Cat\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"", |
| "query_toks": [ |
| "SELECT", |
| "allergytype", |
| "FROM", |
| "Allergy_type", |
| "WHERE", |
| "allergy", |
| "=", |
| "``", |
| "Cat", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergytype", |
| "from", |
| "allergy_type", |
| "where", |
| "allergy", |
| "=", |
| "value" |
| ], |
| "question": "Quel est le type d'allergie d'une allergie au \"cat\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| "\"Cat\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM Allergy_type WHERE allergytype = \"animal\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Allergy_type", |
| "WHERE", |
| "allergytype", |
| "=", |
| "``", |
| "animal", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "allergy_type", |
| "where", |
| "allergytype", |
| "=", |
| "value" |
| ], |
| "question": "Combien d'allergies ont le type \"animal\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"animal\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM Allergy_type WHERE allergytype = \"animal\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Allergy_type", |
| "WHERE", |
| "allergytype", |
| "=", |
| "``", |
| "animal", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "allergy_type", |
| "where", |
| "allergytype", |
| "=", |
| "value" |
| ], |
| "question": "Combien existe-t-il d'allergies de type \"animal\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"animal\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype", |
| "query_toks": [ |
| "SELECT", |
| "allergytype", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Allergy_type", |
| "GROUP", |
| "BY", |
| "allergytype" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergytype", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "allergy_type", |
| "group", |
| "by", |
| "allergytype" |
| ], |
| "question": "Affichez tous les types d'allergies et le nombre d'allergies dans chaque type.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "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": "allergy_1", |
| "query": "SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype", |
| "query_toks": [ |
| "SELECT", |
| "allergytype", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Allergy_type", |
| "GROUP", |
| "BY", |
| "allergytype" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergytype", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "allergy_type", |
| "group", |
| "by", |
| "allergytype" |
| ], |
| "question": "Quels sont les types d'allergies et combien d'allergies correspondent à chacun?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "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": "allergy_1", |
| "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "allergytype", |
| "FROM", |
| "Allergy_type", |
| "GROUP", |
| "BY", |
| "allergytype", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergytype", |
| "from", |
| "allergy_type", |
| "group", |
| "by", |
| "allergytype", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Quel type d'allergie a le plus grand nombre d'allergies?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "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": "allergy_1", |
| "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "allergytype", |
| "FROM", |
| "Allergy_type", |
| "GROUP", |
| "BY", |
| "allergytype", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergytype", |
| "from", |
| "allergy_type", |
| "group", |
| "by", |
| "allergytype", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Quel type d'allergie est le plus courant?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "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": "allergy_1", |
| "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "allergytype", |
| "FROM", |
| "Allergy_type", |
| "GROUP", |
| "BY", |
| "allergytype", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "ASC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergytype", |
| "from", |
| "allergy_type", |
| "group", |
| "by", |
| "allergytype", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "asc", |
| "limit", |
| "value" |
| ], |
| "question": "Quel type d'allergie a le moins d'allergies?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| 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": "allergy_1", |
| "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "allergytype", |
| "FROM", |
| "Allergy_type", |
| "GROUP", |
| "BY", |
| "allergytype", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "ASC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergytype", |
| "from", |
| "allergy_type", |
| "group", |
| "by", |
| "allergytype", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "asc", |
| "limit", |
| "value" |
| ], |
| "question": "Quel type d'allergie est le moins courant?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| 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": "allergy_1", |
| "query": "SELECT count(*) FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student" |
| ], |
| "question": "Combien d'étudiants sont là?", |
| "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": "allergy_1", |
| "query": "SELECT count(*) FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student" |
| ], |
| "question": "Quel est le nombre total d'étudiants?", |
| "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": "allergy_1", |
| "query": "SELECT Fname , Lname FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "Fname", |
| ",", |
| "Lname", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "fname", |
| ",", |
| "lname", |
| "from", |
| "student" |
| ], |
| "question": "Affichez le prénom et le nom de tous les élèves.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT Fname , Lname FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "Fname", |
| ",", |
| "Lname", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "fname", |
| ",", |
| "lname", |
| "from", |
| "student" |
| ], |
| "question": "Quels sont les noms complets de tous les élèves", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(DISTINCT advisor) FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "advisor", |
| ")", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "advisor", |
| ")", |
| "from", |
| "student" |
| ], |
| "question": "Combien de conseillers différents sont répertoriés?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(DISTINCT advisor) FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "advisor", |
| ")", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "advisor", |
| ")", |
| "from", |
| "student" |
| ], |
| "question": "Combien de conseillers y a-t-il?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT DISTINCT Major FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "Major", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "major", |
| "from", |
| "student" |
| ], |
| "question": "Affichez toutes les spécialités.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT DISTINCT Major FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "Major", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "major", |
| "from", |
| "student" |
| ], |
| "question": "Quelles sont les différentes spécialités?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT DISTINCT city_code FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "city_code", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "city_code", |
| "from", |
| "student" |
| ], |
| "question": "Affichez toutes les villes où vivent les étudiants.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT DISTINCT city_code FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "city_code", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "city_code", |
| "from", |
| "student" |
| ], |
| "question": "Dans quelles villes les étudiants vivent-ils?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'", |
| "query_toks": [ |
| "SELECT", |
| "Fname", |
| ",", |
| "Lname", |
| ",", |
| "Age", |
| "FROM", |
| "Student", |
| "WHERE", |
| "Sex", |
| "=", |
| "'F", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "fname", |
| ",", |
| "lname", |
| ",", |
| "age", |
| "from", |
| "student", |
| "where", |
| "sex", |
| "=", |
| "value" |
| ], |
| "question": "Affichez le prénom, le nom et l'âge de toutes les étudiantes. Leur sexe est \"F\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ], |
| "\"F\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'", |
| "query_toks": [ |
| "SELECT", |
| "Fname", |
| ",", |
| "Lname", |
| ",", |
| "Age", |
| "FROM", |
| "Student", |
| "WHERE", |
| "Sex", |
| "=", |
| "'F", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "fname", |
| ",", |
| "lname", |
| ",", |
| "age", |
| "from", |
| "student", |
| "where", |
| "sex", |
| "=", |
| "value" |
| ], |
| "question": "Quels sont les noms complets et âges de toutes les étudiantes dont le sexe est \"F\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ], |
| "\"F\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT StuID FROM Student WHERE Sex = 'M'", |
| "query_toks": [ |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Student", |
| "WHERE", |
| "Sex", |
| "=", |
| "'M", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stuid", |
| "from", |
| "student", |
| "where", |
| "sex", |
| "=", |
| "value" |
| ], |
| "question": "Affichez les identifiants pour tous les étudiants de sexe masculin.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ], |
| "\"M\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT StuID FROM Student WHERE Sex = 'M'", |
| "query_toks": [ |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Student", |
| "WHERE", |
| "Sex", |
| "=", |
| "'M", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stuid", |
| "from", |
| "student", |
| "where", |
| "sex", |
| "=", |
| "value" |
| ], |
| "question": "Quels sont les identifiants pour tous les étudiants de sexe masculin?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ], |
| "\"M\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM Student WHERE age = 18", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "WHERE", |
| "age", |
| "=", |
| "18" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "where", |
| "age", |
| "=", |
| "value" |
| ], |
| "question": "Combien d'élèves ont 18 ans?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| 18.0, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM Student WHERE age = 18", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "WHERE", |
| "age", |
| "=", |
| "18" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "where", |
| "age", |
| "=", |
| "value" |
| ], |
| "question": "Combien d'étudiants ont 18 ans?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| 18.0, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT StuID FROM Student WHERE age > 20", |
| "query_toks": [ |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Student", |
| "WHERE", |
| "age", |
| ">", |
| "20" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stuid", |
| "from", |
| "student", |
| "where", |
| "age", |
| ">", |
| "value" |
| ], |
| "question": "Affichez tous les identifiants des élèves âgés de plus de 20 ans.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| 20.0, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT StuID FROM Student WHERE age > 20", |
| "query_toks": [ |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Student", |
| "WHERE", |
| "age", |
| ">", |
| "20" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stuid", |
| "from", |
| "student", |
| "where", |
| "age", |
| ">", |
| "value" |
| ], |
| "question": "Quels sont les identifiants des étudiants de plus de 20 ans?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| 20.0, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT city_code FROM Student WHERE LName = \"Kim\"", |
| "query_toks": [ |
| "SELECT", |
| "city_code", |
| "FROM", |
| "Student", |
| "WHERE", |
| "LName", |
| "=", |
| "``", |
| "Kim", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "city_code", |
| "from", |
| "student", |
| "where", |
| "lname", |
| "=", |
| "value" |
| ], |
| "question": "Dans quelle ville l'étudiant dont le nom de famille est \"Kim\" habite-t-il?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| "\"Kim\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT city_code FROM Student WHERE LName = \"Kim\"", |
| "query_toks": [ |
| "SELECT", |
| "city_code", |
| "FROM", |
| "Student", |
| "WHERE", |
| "LName", |
| "=", |
| "``", |
| "Kim", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "city_code", |
| "from", |
| "student", |
| "where", |
| "lname", |
| "=", |
| "value" |
| ], |
| "question": "Donnez la ville dans laquelle vit l'élève dont le nom de famille est \"Kim\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| "\"Kim\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT Advisor FROM Student WHERE StuID = 1004", |
| "query_toks": [ |
| "SELECT", |
| "Advisor", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "=", |
| "1004" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "advisor", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "=", |
| "value" |
| ], |
| "question": "Qui est le conseiller de l'étudiant avec l'ID 1004?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| 1004.0, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT Advisor FROM Student WHERE StuID = 1004", |
| "query_toks": [ |
| "SELECT", |
| "Advisor", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "=", |
| "1004" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "advisor", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "=", |
| "value" |
| ], |
| "question": "Qui conseille l'étudiant 1004?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| 1004.0, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM Student WHERE city_code = \"HKG\" OR city_code = \"CHI\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "WHERE", |
| "city_code", |
| "=", |
| "``", |
| "HKG", |
| "''", |
| "OR", |
| "city_code", |
| "=", |
| "``", |
| "CHI", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "where", |
| "city_code", |
| "=", |
| "value", |
| "or", |
| "city_code", |
| "=", |
| "value" |
| ], |
| "question": "Combien d'étudiants vivent à \"HKG\" ou \"CHI\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"HKG\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"CHI\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM Student WHERE city_code = \"HKG\" OR city_code = \"CHI\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "WHERE", |
| "city_code", |
| "=", |
| "``", |
| "HKG", |
| "''", |
| "OR", |
| "city_code", |
| "=", |
| "``", |
| "CHI", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "where", |
| "city_code", |
| "=", |
| "value", |
| "or", |
| "city_code", |
| "=", |
| "value" |
| ], |
| "question": "Donnez le nombre d'étudiants vivant à \"HKG\" ou \"CHI\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"HKG\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"CHI\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT min(age) , avg(age) , max(age) FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "min", |
| "(", |
| "age", |
| ")", |
| ",", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "max", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "min", |
| "(", |
| "age", |
| ")", |
| ",", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "max", |
| "(", |
| "age", |
| ")", |
| "from", |
| "student" |
| ], |
| "question": "Affichez l'âge minimum, moyen et maximum de tous les élèves.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 1, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT min(age) , avg(age) , max(age) FROM Student", |
| "query_toks": [ |
| "SELECT", |
| "min", |
| "(", |
| "age", |
| ")", |
| ",", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "max", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "Student" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "min", |
| "(", |
| "age", |
| ")", |
| ",", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "max", |
| "(", |
| "age", |
| ")", |
| "from", |
| "student" |
| ], |
| "question": "Quel est l'âge minimum, moyen et maximum de tous les élèves?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 1, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student)", |
| "query_toks": [ |
| "SELECT", |
| "LName", |
| "FROM", |
| "Student", |
| "WHERE", |
| "age", |
| "=", |
| "(", |
| "SELECT", |
| "min", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "Student", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "lname", |
| "from", |
| "student", |
| "where", |
| "age", |
| "=", |
| "(", |
| "select", |
| "min", |
| "(", |
| "age", |
| ")", |
| "from", |
| "student", |
| ")" |
| ], |
| "question": "Quel est le nom de famille du plus jeune étudiant?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 2, |
| [ |
| 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": "allergy_1", |
| "query": "SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student)", |
| "query_toks": [ |
| "SELECT", |
| "LName", |
| "FROM", |
| "Student", |
| "WHERE", |
| "age", |
| "=", |
| "(", |
| "SELECT", |
| "min", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "Student", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "lname", |
| "from", |
| "student", |
| "where", |
| "age", |
| "=", |
| "(", |
| "select", |
| "min", |
| "(", |
| "age", |
| ")", |
| "from", |
| "student", |
| ")" |
| ], |
| "question": "Indiquez le nom de famille du plus jeune élève.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 2, |
| [ |
| 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": "allergy_1", |
| "query": "SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student)", |
| "query_toks": [ |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Student", |
| "WHERE", |
| "age", |
| "=", |
| "(", |
| "SELECT", |
| "max", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "Student", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stuid", |
| "from", |
| "student", |
| "where", |
| "age", |
| "=", |
| "(", |
| "select", |
| "max", |
| "(", |
| "age", |
| ")", |
| "from", |
| "student", |
| ")" |
| ], |
| "question": "Montrez l'identifiant de l'élève le plus âgé.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 1, |
| [ |
| 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": "allergy_1", |
| "query": "SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student)", |
| "query_toks": [ |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Student", |
| "WHERE", |
| "age", |
| "=", |
| "(", |
| "SELECT", |
| "max", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "Student", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stuid", |
| "from", |
| "student", |
| "where", |
| "age", |
| "=", |
| "(", |
| "select", |
| "max", |
| "(", |
| "age", |
| ")", |
| "from", |
| "student", |
| ")" |
| ], |
| "question": "Quel numéro d'étudiant correspond à l'élève le plus âgé?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 1, |
| [ |
| 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": "allergy_1", |
| "query": "SELECT major , count(*) FROM Student GROUP BY major", |
| "query_toks": [ |
| "SELECT", |
| "major", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "major" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "major", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "group", |
| "by", |
| "major" |
| ], |
| "question": "Affichez toutes les spécialités et le nombre d'étudiants correspondant.", |
| "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": "allergy_1", |
| "query": "SELECT major , count(*) FROM Student GROUP BY major", |
| "query_toks": [ |
| "SELECT", |
| "major", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "major" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "major", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "group", |
| "by", |
| "major" |
| ], |
| "question": "Combien d'étudiants y a-t-il pour chaque spécialité?", |
| "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": "allergy_1", |
| "query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "major", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "major", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "major", |
| "from", |
| "student", |
| "group", |
| "by", |
| "major", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Quelle spécialité a le plus grand nombre d'étudiants?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "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": "allergy_1", |
| "query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "major", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "major", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "major", |
| "from", |
| "student", |
| "group", |
| "by", |
| "major", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Quelle est la plus grande spécialité?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "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": "allergy_1", |
| "query": "SELECT age , count(*) FROM Student GROUP BY age", |
| "query_toks": [ |
| "SELECT", |
| "age", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "age" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "age", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "group", |
| "by", |
| "age" |
| ], |
| "question": "Affichez tous les âges et le nombre d'élèves correspondant.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "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": "allergy_1", |
| "query": "SELECT age , count(*) FROM Student GROUP BY age", |
| "query_toks": [ |
| "SELECT", |
| "age", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "age" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "age", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "group", |
| "by", |
| "age" |
| ], |
| "question": "Quel âge a chaque élève et combien d'élèves ont chaque âge?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "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": "allergy_1", |
| "query": "SELECT avg(age) , sex FROM Student GROUP BY sex", |
| "query_toks": [ |
| "SELECT", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "sex", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "sex" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "sex", |
| "from", |
| "student", |
| "group", |
| "by", |
| "sex" |
| ], |
| "question": "Montrez l'âge moyen des étudiants et des étudiantes.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 9, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT avg(age) , sex FROM Student GROUP BY sex", |
| "query_toks": [ |
| "SELECT", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "sex", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "sex" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "sex", |
| "from", |
| "student", |
| "group", |
| "by", |
| "sex" |
| ], |
| "question": "Quels sont les âges moyens des étudiants et des étudiantes?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 9, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT city_code , count(*) FROM Student GROUP BY city_code", |
| "query_toks": [ |
| "SELECT", |
| "city_code", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "city_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "city_code", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "group", |
| "by", |
| "city_code" |
| ], |
| "question": "Affichez toutes les villes et le nombre d'étudiants correspondant.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 12, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT city_code , count(*) FROM Student GROUP BY city_code", |
| "query_toks": [ |
| "SELECT", |
| "city_code", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "city_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "city_code", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "group", |
| "by", |
| "city_code" |
| ], |
| "question": "Combien d'étudiants vivent dans chaque ville?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 12, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT advisor , count(*) FROM Student GROUP BY advisor", |
| "query_toks": [ |
| "SELECT", |
| "advisor", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "advisor" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "advisor", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "group", |
| "by", |
| "advisor" |
| ], |
| "question": "Affichez tous les conseillers et le nombre d'étudiants correspondant.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 11, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT advisor , count(*) FROM Student GROUP BY advisor", |
| "query_toks": [ |
| "SELECT", |
| "advisor", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "advisor" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "advisor", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "group", |
| "by", |
| "advisor" |
| ], |
| "question": "Combien d'étudiants compte chaque conseiller?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 11, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "advisor", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "advisor", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "advisor", |
| "from", |
| "student", |
| "group", |
| "by", |
| "advisor", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Quel conseiller a le plus grand nombre d'étudiants?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "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": "allergy_1", |
| "query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "advisor", |
| "FROM", |
| "Student", |
| "GROUP", |
| "BY", |
| "advisor", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "advisor", |
| "from", |
| "student", |
| "group", |
| "by", |
| "advisor", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Donnez le conseiller avec le plus d'étudiants.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "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": "allergy_1", |
| "query": "SELECT count(*) FROM Has_allergy WHERE Allergy = \"Cat\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Cat", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value" |
| ], |
| "question": "Combien d'élèves ont des allergies aux \"cat\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Cat\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM Has_allergy WHERE Allergy = \"Cat\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Cat", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value" |
| ], |
| "question": "Combien d'élèves sont touchés par les allergies aux \"cat\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Cat\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2", |
| "query_toks": [ |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "GROUP", |
| "BY", |
| "StuID", |
| "HAVING", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "=", |
| "2" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "group", |
| "by", |
| "stuid", |
| "having", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "=", |
| "value" |
| ], |
| "question": "Montrez toutes les cartes d'étudiant qui ont au moins deux allergies.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| 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": "allergy_1", |
| "query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2", |
| "query_toks": [ |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "GROUP", |
| "BY", |
| "StuID", |
| "HAVING", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "=", |
| "2" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "group", |
| "by", |
| "stuid", |
| "having", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "=", |
| "value" |
| ], |
| "question": "Quels sont les identifiants des élèves qui ont plus d'une allergie?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| 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": "allergy_1", |
| "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy", |
| "query_toks": [ |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Student", |
| "EXCEPT", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stuid", |
| "from", |
| "student", |
| "except", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy" |
| ], |
| "question": "Quels sont les identifiants des étudiants qui n'ont pas d'allergies?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "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 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy", |
| "query_toks": [ |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Student", |
| "EXCEPT", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stuid", |
| "from", |
| "student", |
| "except", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy" |
| ], |
| "question": "Quels élèves ne sont pas affectés par les allergies?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "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 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Student", |
| "AS", |
| "T2", |
| "ON", |
| "T1.StuID", |
| "=", |
| "T2.StuID", |
| "WHERE", |
| "T2.sex", |
| "=", |
| "``", |
| "F", |
| "''", |
| "AND", |
| "T1.allergy", |
| "=", |
| "``", |
| "Milk", |
| "''", |
| "OR", |
| "T1.allergy", |
| "=", |
| "``", |
| "Eggs", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "student", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stuid", |
| "=", |
| "t2", |
| ".", |
| "stuid", |
| "where", |
| "t2", |
| ".", |
| "sex", |
| "=", |
| "value", |
| "and", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "value", |
| "or", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "value" |
| ], |
| "question": "Combien d'étudiantes ont des allergies au \"milk\" ou aux \"egg\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ], |
| "\"F\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Milk\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Eggs\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Student", |
| "AS", |
| "T2", |
| "ON", |
| "T1.StuID", |
| "=", |
| "T2.StuID", |
| "WHERE", |
| "T2.sex", |
| "=", |
| "``", |
| "F", |
| "''", |
| "AND", |
| "T1.allergy", |
| "=", |
| "``", |
| "Milk", |
| "''", |
| "OR", |
| "T1.allergy", |
| "=", |
| "``", |
| "Eggs", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "student", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stuid", |
| "=", |
| "t2", |
| ".", |
| "stuid", |
| "where", |
| "t2", |
| ".", |
| "sex", |
| "=", |
| "value", |
| "and", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "value", |
| "or", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "value" |
| ], |
| "question": "Combien d'étudiantes sont allergiques au \"milk\" ou aux \"eggs\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ], |
| "\"F\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Milk\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Eggs\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = \"food\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.allergy", |
| "=", |
| "T2.allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "food", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value" |
| ], |
| "question": "Combien d'élèves ont une \"food\" allergie?", |
| "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 |
| ], |
| "\"food\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = \"food\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.allergy", |
| "=", |
| "T2.allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "food", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value" |
| ], |
| "question": "Combien d'élèves sont touchés par des \"food\" allergies?", |
| "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 |
| ], |
| "\"food\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "Allergy", |
| "FROM", |
| "Has_allergy", |
| "GROUP", |
| "BY", |
| "Allergy", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergy", |
| "from", |
| "has_allergy", |
| "group", |
| "by", |
| "allergy", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Quelle allergie a touché le plus grand nombre d'élèves?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| 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": "allergy_1", |
| "query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "Allergy", |
| "FROM", |
| "Has_allergy", |
| "GROUP", |
| "BY", |
| "Allergy", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergy", |
| "from", |
| "has_allergy", |
| "group", |
| "by", |
| "allergy", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Quelle allergie est la plus courante?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| 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": "allergy_1", |
| "query": "SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy", |
| "query_toks": [ |
| "SELECT", |
| "Allergy", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Has_allergy", |
| "GROUP", |
| "BY", |
| "Allergy" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergy", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "has_allergy", |
| "group", |
| "by", |
| "allergy" |
| ], |
| "question": "Montrez toutes les allergies avec le nombre d'élèves touchés.", |
| "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": "allergy_1", |
| "query": "SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy", |
| "query_toks": [ |
| "SELECT", |
| "Allergy", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Has_allergy", |
| "GROUP", |
| "BY", |
| "Allergy" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "allergy", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "has_allergy", |
| "group", |
| "by", |
| "allergy" |
| ], |
| "question": "Combien d'élèves ont chaque allergie différente?", |
| "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": "allergy_1", |
| "query": "SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype", |
| "query_toks": [ |
| "SELECT", |
| "T2.allergytype", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.allergy", |
| "=", |
| "T2.allergy", |
| "GROUP", |
| "BY", |
| "T2.allergytype" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "allergytype", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "group", |
| "by", |
| "t2", |
| ".", |
| "allergytype" |
| ], |
| "question": "Affichez tous les types d'allergies avec le nombre d'élèves touchés.", |
| "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, |
| 2, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype", |
| "query_toks": [ |
| "SELECT", |
| "T2.allergytype", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.allergy", |
| "=", |
| "T2.allergy", |
| "GROUP", |
| "BY", |
| "T2.allergytype" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "allergytype", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "group", |
| "by", |
| "t2", |
| ".", |
| "allergytype" |
| ], |
| "question": "Combien d'élèves sont touchés par chaque type d'allergie?", |
| "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, |
| 2, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", |
| "query_toks": [ |
| "SELECT", |
| "lname", |
| ",", |
| "age", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "IN", |
| "(", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Milk", |
| "''", |
| "INTERSECT", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Cat", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "lname", |
| ",", |
| "age", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "in", |
| "(", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value", |
| "intersect", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Trouvez le nom et l'âge de l'élève allergique au \"milk\" et au \"cat\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Milk\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Cat\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", |
| "query_toks": [ |
| "SELECT", |
| "lname", |
| ",", |
| "age", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "IN", |
| "(", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Milk", |
| "''", |
| "INTERSECT", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Cat", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "lname", |
| ",", |
| "age", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "in", |
| "(", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value", |
| "intersect", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Quels sont les noms et âges des élèves allergiques au \"milk\" et au \"cat\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Milk\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Cat\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy", |
| "query_toks": [ |
| "SELECT", |
| "T1.Allergy", |
| ",", |
| "T1.AllergyType", |
| "FROM", |
| "Allergy_type", |
| "AS", |
| "T1", |
| "JOIN", |
| "Has_allergy", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "JOIN", |
| "Student", |
| "AS", |
| "T3", |
| "ON", |
| "T3.StuID", |
| "=", |
| "T2.StuID", |
| "WHERE", |
| "T3.Fname", |
| "=", |
| "``", |
| "Lisa", |
| "''", |
| "ORDER", |
| "BY", |
| "T1.Allergy" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "allergy", |
| ",", |
| "t1", |
| ".", |
| "allergytype", |
| "from", |
| "allergy_type", |
| "as", |
| "t1", |
| "join", |
| "has_allergy", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "join", |
| "student", |
| "as", |
| "t3", |
| "on", |
| "t3", |
| ".", |
| "stuid", |
| "=", |
| "t2", |
| ".", |
| "stuid", |
| "where", |
| "t3", |
| ".", |
| "fname", |
| "=", |
| "value", |
| "order", |
| "by", |
| "t1", |
| ".", |
| "allergy" |
| ], |
| "question": "Quelles sont les allergies et leurs types dont souffre l'élève du prénom \"Lisa\"? Et classez le résultat par nom d'allergies.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "\"Lisa\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy", |
| "query_toks": [ |
| "SELECT", |
| "T1.Allergy", |
| ",", |
| "T1.AllergyType", |
| "FROM", |
| "Allergy_type", |
| "AS", |
| "T1", |
| "JOIN", |
| "Has_allergy", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "JOIN", |
| "Student", |
| "AS", |
| "T3", |
| "ON", |
| "T3.StuID", |
| "=", |
| "T2.StuID", |
| "WHERE", |
| "T3.Fname", |
| "=", |
| "``", |
| "Lisa", |
| "''", |
| "ORDER", |
| "BY", |
| "T1.Allergy" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "allergy", |
| ",", |
| "t1", |
| ".", |
| "allergytype", |
| "from", |
| "allergy_type", |
| "as", |
| "t1", |
| "join", |
| "has_allergy", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "join", |
| "student", |
| "as", |
| "t3", |
| "on", |
| "t3", |
| ".", |
| "stuid", |
| "=", |
| "t2", |
| ".", |
| "stuid", |
| "where", |
| "t3", |
| ".", |
| "fname", |
| "=", |
| "value", |
| "order", |
| "by", |
| "t1", |
| ".", |
| "allergy" |
| ], |
| "question": "Quelles sont les allergies de la fille nommée \"Lisa\"? Et quels sont les types d'entre eux? Classez le résultat par nom d'allergie.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "\"Lisa\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", |
| "query_toks": [ |
| "SELECT", |
| "fname", |
| ",", |
| "sex", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "IN", |
| "(", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Milk", |
| "''", |
| "EXCEPT", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Cat", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "fname", |
| ",", |
| "sex", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "in", |
| "(", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value", |
| "except", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Trouvez le prénom et le sexe de l'élève allergique au \"milk\" mais pas au \"cat\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Milk\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| 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": "allergy_1", |
| "query": "SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", |
| "query_toks": [ |
| "SELECT", |
| "fname", |
| ",", |
| "sex", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "IN", |
| "(", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Milk", |
| "''", |
| "EXCEPT", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Cat", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "fname", |
| ",", |
| "sex", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "in", |
| "(", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value", |
| "except", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Quels sont le prénom et le sexe des élèves allergiques au \"milk\" mais pouvant supporter des \"cats\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Milk\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| 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": "allergy_1", |
| "query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")", |
| "query_toks": [ |
| "SELECT", |
| "avg", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "IN", |
| "(", |
| "SELECT", |
| "T1.StuID", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_Type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "food", |
| "''", |
| "INTERSECT", |
| "SELECT", |
| "T1.StuID", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_Type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "animal", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "avg", |
| "(", |
| "age", |
| ")", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "in", |
| "(", |
| "select", |
| "t1", |
| ".", |
| "stuid", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| "intersect", |
| "select", |
| "t1", |
| ".", |
| "stuid", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Trouvez l'âge moyen des élèves qui ont des allergies aux types de \"food\" et \"animal\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| 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, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"food\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": { |
| "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, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"animal\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")", |
| "query_toks": [ |
| "SELECT", |
| "avg", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "IN", |
| "(", |
| "SELECT", |
| "T1.StuID", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_Type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "food", |
| "''", |
| "INTERSECT", |
| "SELECT", |
| "T1.StuID", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_Type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "animal", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "avg", |
| "(", |
| "age", |
| ")", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "in", |
| "(", |
| "select", |
| "t1", |
| ".", |
| "stuid", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| "intersect", |
| "select", |
| "t1", |
| ".", |
| "stuid", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Quel âge ont les élèves allergiques aux types de \"food\" et \"animal\" en moyenne?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| 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, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"food\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": { |
| "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, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"animal\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", |
| "query_toks": [ |
| "SELECT", |
| "fname", |
| ",", |
| "lname", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "NOT", |
| "IN", |
| "(", |
| "SELECT", |
| "T1.StuID", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_Type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "food", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "fname", |
| ",", |
| "lname", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "not", |
| "in", |
| "(", |
| "select", |
| "t1", |
| ".", |
| "stuid", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Énumérez le prénom et le nom des élèves qui ne souffrent d'aucune \"food\" allergie.", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| true, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| 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, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"food\"", |
| 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": "allergy_1", |
| "query": "SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", |
| "query_toks": [ |
| "SELECT", |
| "fname", |
| ",", |
| "lname", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "NOT", |
| "IN", |
| "(", |
| "SELECT", |
| "T1.StuID", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_Type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "food", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "fname", |
| ",", |
| "lname", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "not", |
| "in", |
| "(", |
| "select", |
| "t1", |
| ".", |
| "stuid", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Quel est le nom complet de chaque élève qui n'est allergique à aucun type de \"food\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| true, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| 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, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"food\"", |
| 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": "allergy_1", |
| "query": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "WHERE", |
| "sex", |
| "=", |
| "``", |
| "M", |
| "''", |
| "AND", |
| "StuID", |
| "IN", |
| "(", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_Type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "food", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "where", |
| "sex", |
| "=", |
| "value", |
| "and", |
| "stuid", |
| "in", |
| "(", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Trouvez le nombre d'élèves de sexe masculin (le sexe est \"M\") qui ont une allergie de type \"food\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ], |
| "\"M\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| 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, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"food\"", |
| 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": "allergy_1", |
| "query": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "WHERE", |
| "sex", |
| "=", |
| "``", |
| "M", |
| "''", |
| "AND", |
| "StuID", |
| "IN", |
| "(", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_Type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "food", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "where", |
| "sex", |
| "=", |
| "value", |
| "and", |
| "stuid", |
| "in", |
| "(", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Combien d'étudiants de sexe masculin (le sexe est \"M\") sont allergiques à tout type de \"food\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ], |
| "\"M\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| 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, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"food\"", |
| 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": "allergy_1", |
| "query": "SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "T1.fname", |
| ",", |
| "T1.city_code", |
| "FROM", |
| "Student", |
| "AS", |
| "T1", |
| "JOIN", |
| "Has_Allergy", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stuid", |
| "=", |
| "T2.stuid", |
| "WHERE", |
| "T2.Allergy", |
| "=", |
| "``", |
| "Milk", |
| "''", |
| "OR", |
| "T2.Allergy", |
| "=", |
| "``", |
| "Cat", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "t1", |
| ".", |
| "fname", |
| ",", |
| "t1", |
| ".", |
| "city_code", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "has_allergy", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stuid", |
| "=", |
| "t2", |
| ".", |
| "stuid", |
| "where", |
| "t2", |
| ".", |
| "allergy", |
| "=", |
| "value", |
| "or", |
| "t2", |
| ".", |
| "allergy", |
| "=", |
| "value" |
| ], |
| "question": "Retrouvez les différents prénoms et villes des élèves allergiques au \"milk\" ou au \"cat\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Milk\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Cat\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "T1.fname", |
| ",", |
| "T1.city_code", |
| "FROM", |
| "Student", |
| "AS", |
| "T1", |
| "JOIN", |
| "Has_Allergy", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stuid", |
| "=", |
| "T2.stuid", |
| "WHERE", |
| "T2.Allergy", |
| "=", |
| "``", |
| "Milk", |
| "''", |
| "OR", |
| "T2.Allergy", |
| "=", |
| "``", |
| "Cat", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "t1", |
| ".", |
| "fname", |
| ",", |
| "t1", |
| ".", |
| "city_code", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "has_allergy", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stuid", |
| "=", |
| "t2", |
| ".", |
| "stuid", |
| "where", |
| "t2", |
| ".", |
| "allergy", |
| "=", |
| "value", |
| "or", |
| "t2", |
| ".", |
| "allergy", |
| "=", |
| "value" |
| ], |
| "question": "Quels sont les prénoms et les villes des élèves allergiques au \"milk\" ou au \"cat\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Milk\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Cat\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "allergy_1", |
| "query": "SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "WHERE", |
| "age", |
| ">", |
| "18", |
| "AND", |
| "StuID", |
| "NOT", |
| "IN", |
| "(", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_Type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "food", |
| "''", |
| "OR", |
| "T2.allergytype", |
| "=", |
| "``", |
| "animal", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "where", |
| "age", |
| ">", |
| "value", |
| "and", |
| "stuid", |
| "not", |
| "in", |
| "(", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| "or", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Trouvez le nombre d'élèves âgés de plus de 18 ans et qui ne sont allergiques ni aux \"food\" ni aux \"animal\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| 18.0, |
| null |
| ], |
| "and", |
| [ |
| true, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| 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, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"food\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"animal\"", |
| 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": "allergy_1", |
| "query": "SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "Student", |
| "WHERE", |
| "age", |
| ">", |
| "18", |
| "AND", |
| "StuID", |
| "NOT", |
| "IN", |
| "(", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "AS", |
| "T1", |
| "JOIN", |
| "Allergy_Type", |
| "AS", |
| "T2", |
| "ON", |
| "T1.Allergy", |
| "=", |
| "T2.Allergy", |
| "WHERE", |
| "T2.allergytype", |
| "=", |
| "``", |
| "food", |
| "''", |
| "OR", |
| "T2.allergytype", |
| "=", |
| "``", |
| "animal", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "where", |
| "age", |
| ">", |
| "value", |
| "and", |
| "stuid", |
| "not", |
| "in", |
| "(", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "as", |
| "t1", |
| "join", |
| "allergy_type", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "allergy", |
| "=", |
| "t2", |
| ".", |
| "allergy", |
| "where", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| "or", |
| "t2", |
| ".", |
| "allergytype", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Combien d'élèves ont plus de 18 ans et ne sont pas allergiques au type de \"food\" ou au type de \"animal\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| 18.0, |
| null |
| ], |
| "and", |
| [ |
| true, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| 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, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"food\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"animal\"", |
| 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": "allergy_1", |
| "query": "SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Soy\")", |
| "query_toks": [ |
| "SELECT", |
| "fname", |
| ",", |
| "major", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "NOT", |
| "IN", |
| "(", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Soy", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "fname", |
| ",", |
| "major", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "not", |
| "in", |
| "(", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Trouvez le prénom et la spécialité des élèves qui ne sont pas allergiques au \"soy\".", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| true, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Soy\"", |
| 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": "allergy_1", |
| "query": "SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Soy\")", |
| "query_toks": [ |
| "SELECT", |
| "fname", |
| ",", |
| "major", |
| "FROM", |
| "Student", |
| "WHERE", |
| "StuID", |
| "NOT", |
| "IN", |
| "(", |
| "SELECT", |
| "StuID", |
| "FROM", |
| "Has_allergy", |
| "WHERE", |
| "Allergy", |
| "=", |
| "``", |
| "Soy", |
| "''", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "fname", |
| ",", |
| "major", |
| "from", |
| "student", |
| "where", |
| "stuid", |
| "not", |
| "in", |
| "(", |
| "select", |
| "stuid", |
| "from", |
| "has_allergy", |
| "where", |
| "allergy", |
| "=", |
| "value", |
| ")" |
| ], |
| "question": "Quels sont le prénom et la spécialité des élèves capables de consommer du \"soy\"?", |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| true, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| "\"Soy\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| } |
| ] |