[ { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_calendar", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_calendar" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_calendar" ], "question": "Combien d'éléments de calendrier avons-nous?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_calendar", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_calendar" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_calendar" ], "question": "Comptez le nombre de tous les éléments du calendrier.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT calendar_date , day_Number FROM Ref_calendar", "query_toks": [ "SELECT", "calendar_date", ",", "day_Number", "FROM", "Ref_calendar" ], "query_toks_no_value": [ "select", "calendar_date", ",", "day_number", "from", "ref_calendar" ], "question": "Affichez toutes les dates du calendrier et les numéros de jour.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT calendar_date , day_Number FROM Ref_calendar", "query_toks": [ "SELECT", "calendar_date", ",", "day_Number", "FROM", "Ref_calendar" ], "query_toks_no_value": [ "select", "calendar_date", ",", "day_number", "from", "ref_calendar" ], "question": "Quelles sont toutes les dates du calendrier et les numéros de jour?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_document_types", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_document_types" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_document_types" ], "question": "Affichez le nombre de types de documents.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_document_types", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_document_types" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_document_types" ], "question": "Combien de types de documents existe-t-il?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT document_type_code , document_type_name FROM Ref_document_types", "query_toks": [ "SELECT", "document_type_code", ",", "document_type_name", "FROM", "Ref_document_types" ], "query_toks_no_value": [ "select", "document_type_code", ",", "document_type_name", "from", "ref_document_types" ], "question": "Répertoriez tous les codes de type de document et les noms de type de document.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT document_type_code , document_type_name FROM Ref_document_types", "query_toks": [ "SELECT", "document_type_code", ",", "document_type_name", "FROM", "Ref_document_types" ], "query_toks_no_value": [ "select", "document_type_code", ",", "document_type_name", "from", "ref_document_types" ], "question": "Quels sont tous les codes de type de document et les noms de type de document?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = \"RV\"", "query_toks": [ "SELECT", "document_type_name", ",", "document_type_description", "FROM", "Ref_document_types", "WHERE", "document_type_code", "=", "``", "RV", "''" ], "query_toks_no_value": [ "select", "document_type_name", ",", "document_type_description", "from", "ref_document_types", "where", "document_type_code", "=", "value" ], "question": "Quel est le nom et la description du code de type de document \"RV\"?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"RV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = \"RV\"", "query_toks": [ "SELECT", "document_type_name", ",", "document_type_description", "FROM", "Ref_document_types", "WHERE", "document_type_code", "=", "``", "RV", "''" ], "query_toks_no_value": [ "select", "document_type_name", ",", "document_type_description", "from", "ref_document_types", "where", "document_type_code", "=", "value" ], "question": "Donnez-moi le nom et la description du code de type de document \"RV\".", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"RV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\"", "query_toks": [ "SELECT", "document_type_code", "FROM", "Ref_document_types", "WHERE", "document_type_name", "=", "``", "Paper", "''" ], "query_toks_no_value": [ "select", "document_type_code", "from", "ref_document_types", "where", "document_type_name", "=", "value" ], "question": "Quel est le code de type de document pour le type de document \"Paper\"?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Paper\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\"", "query_toks": [ "SELECT", "document_type_code", "FROM", "Ref_document_types", "WHERE", "document_type_name", "=", "``", "Paper", "''" ], "query_toks_no_value": [ "select", "document_type_code", "from", "ref_document_types", "where", "document_type_name", "=", "value" ], "question": "Recherchez le code du type de document \"Paper\".", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Paper\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM All_documents WHERE document_type_code = \"CV\" OR document_type_code = \"BK\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "All_documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "OR", "document_type_code", "=", "``", "BK", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "all_documents", "where", "document_type_code", "=", "value", "or", "document_type_code", "=", "value" ], "question": "Affichez le nombre de documents avec le code de type de document \"CV\" ou \"BK\".", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"CV\"", null ], "or", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"BK\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM All_documents WHERE document_type_code = \"CV\" OR document_type_code = \"BK\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "All_documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "OR", "document_type_code", "=", "``", "BK", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "all_documents", "where", "document_type_code", "=", "value", "or", "document_type_code", "=", "value" ], "question": "Combien de documents ont le code de type de document \"CV\" ou \"BK\"?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"CV\"", null ], "or", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"BK\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT date_stored FROM All_documents WHERE Document_name = \"Marry CV\"", "query_toks": [ "SELECT", "date_stored", "FROM", "All_documents", "WHERE", "Document_name", "=", "``", "Marry", "CV", "''" ], "query_toks_no_value": [ "select", "date_stored", "from", "all_documents", "where", "document_name", "=", "value" ], "question": "Quelle est la date de stockage du document \"Marry CV\"?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Marry CV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT date_stored FROM All_documents WHERE Document_name = \"Marry CV\"", "query_toks": [ "SELECT", "date_stored", "FROM", "All_documents", "WHERE", "Document_name", "=", "``", "Marry", "CV", "''" ], "query_toks_no_value": [ "select", "date_stored", "from", "all_documents", "where", "document_name", "=", "value" ], "question": "Quand le document intitulé \"Marry CV\" a-t-il été conservé? Donnez-moi la date.", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Marry CV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date", "query_toks": [ "SELECT", "T2.day_Number", ",", "T1.Date_Stored", "FROM", "All_documents", "AS", "T1", "JOIN", "Ref_calendar", "AS", "T2", "ON", "T1.date_stored", "=", "T2.calendar_date" ], "query_toks_no_value": [ "select", "t2", ".", "day_number", ",", "t1", ".", "date_stored", "from", "all_documents", "as", "t1", "join", "ref_calendar", "as", "t2", "on", "t1", ".", "date_stored", "=", "t2", ".", "calendar_date" ], "question": "Quel est le nombre du jour et la date de tous les documents?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date", "query_toks": [ "SELECT", "T2.day_Number", ",", "T1.Date_Stored", "FROM", "All_documents", "AS", "T1", "JOIN", "Ref_calendar", "AS", "T2", "ON", "T1.date_stored", "=", "T2.calendar_date" ], "query_toks_no_value": [ "select", "t2", ".", "day_number", ",", "t1", ".", "date_stored", "from", "all_documents", "as", "t1", "join", "ref_calendar", "as", "t2", "on", "t1", ".", "date_stored", "=", "t2", ".", "calendar_date" ], "question": "Renvoyez le nombre du jour et la date mémorisée pour tous les documents.", "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"", "query_toks": [ "SELECT", "T2.document_type_name", "FROM", "All_documents", "AS", "T1", "JOIN", "Ref_document_types", "AS", "T2", "ON", "T1.document_type_code", "=", "T2.document_type_code", "WHERE", "T1.document_name", "=", "``", "How", "to", "read", "a", "book", "''" ], "query_toks_no_value": [ "select", "t2", ".", "document_type_name", "from", "all_documents", "as", "t1", "join", "ref_document_types", "as", "t2", "on", "t1", ".", "document_type_code", "=", "t2", ".", "document_type_code", "where", "t1", ".", "document_name", "=", "value" ], "question": "Quel est le nom du type de document du document avec le nom \"How to read a book\"\"?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"How to read a book\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"", "query_toks": [ "SELECT", "T2.document_type_name", "FROM", "All_documents", "AS", "T1", "JOIN", "Ref_document_types", "AS", "T2", "ON", "T1.document_type_code", "=", "T2.document_type_code", "WHERE", "T1.document_name", "=", "``", "How", "to", "read", "a", "book", "''" ], "query_toks_no_value": [ "select", "t2", ".", "document_type_name", "from", "all_documents", "as", "t1", "join", "ref_document_types", "as", "t2", "on", "t1", ".", "document_type_code", "=", "t2", ".", "document_type_code", "where", "t1", ".", "document_name", "=", "value" ], "question": "Recherchez le nom du type de document du document intitulé \"How to read a book\".", "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"How to read a book\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_locations", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_locations" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_locations" ], "question": "Affichez le nombre d'emplacements.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Ref_locations", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_locations" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_locations" ], "question": "Combien d'emplacements sont répertoriés dans la base de données?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , location_name FROM Ref_locations", "query_toks": [ "SELECT", "location_code", ",", "location_name", "FROM", "Ref_locations" ], "query_toks_no_value": [ "select", "location_code", ",", "location_name", "from", "ref_locations" ], "question": "Répertoriez tous les codes d'emplacement et les noms d'emplacement.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , location_name FROM Ref_locations", "query_toks": [ "SELECT", "location_code", ",", "location_name", "FROM", "Ref_locations" ], "query_toks_no_value": [ "select", "location_code", ",", "location_name", "from", "ref_locations" ], "question": "Quels sont tous les codes d'emplacement et les noms d'emplacement?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_name , location_description FROM Ref_locations WHERE location_code = \"x\"", "query_toks": [ "SELECT", "location_name", ",", "location_description", "FROM", "Ref_locations", "WHERE", "location_code", "=", "``", "x", "''" ], "query_toks_no_value": [ "select", "location_name", ",", "location_description", "from", "ref_locations", "where", "location_code", "=", "value" ], "question": "Quels sont le nom et la description du code d'emplacement \"x\"?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"x\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_name , location_description FROM Ref_locations WHERE location_code = \"x\"", "query_toks": [ "SELECT", "location_name", ",", "location_description", "FROM", "Ref_locations", "WHERE", "location_code", "=", "``", "x", "''" ], "query_toks_no_value": [ "select", "location_name", ",", "location_description", "from", "ref_locations", "where", "location_code", "=", "value" ], "question": "Donnez-moi le nom et la description de l'emplacement avec le code \"x\".", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"x\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Ref_locations WHERE location_name = \"Canada\"", "query_toks": [ "SELECT", "location_code", "FROM", "Ref_locations", "WHERE", "location_name", "=", "``", "Canada", "''" ], "query_toks_no_value": [ "select", "location_code", "from", "ref_locations", "where", "location_name", "=", "value" ], "question": "Quel est le code de localisation du pays \"Canada\"?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Canada\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Ref_locations WHERE location_name = \"Canada\"", "query_toks": [ "SELECT", "location_code", "FROM", "Ref_locations", "WHERE", "location_name", "=", "``", "Canada", "''" ], "query_toks_no_value": [ "select", "location_code", "from", "ref_locations", "where", "location_name", "=", "value" ], "question": "Affichez le code de localisation du pays \"Canada\".", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Canada\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM ROLES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ROLES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "roles" ], "question": "Combien de rôles y a-t-il?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM ROLES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ROLES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "roles" ], "question": "Comptez le nombre total de rôles répertoriés.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code , role_name , role_description FROM ROLES", "query_toks": [ "SELECT", "role_code", ",", "role_name", ",", "role_description", "FROM", "ROLES" ], "query_toks_no_value": [ "select", "role_code", ",", "role_name", ",", "role_description", "from", "roles" ], "question": "Répertoriez tous les codes de rôle, noms de rôle et descriptions de rôle.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code , role_name , role_description FROM ROLES", "query_toks": [ "SELECT", "role_code", ",", "role_name", ",", "role_description", "FROM", "ROLES" ], "query_toks_no_value": [ "select", "role_code", ",", "role_name", ",", "role_description", "from", "roles" ], "question": "Quels sont tous les codes de rôle, noms de rôle et descriptions de rôle?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_name , role_description FROM ROLES WHERE role_code = \"MG\"", "query_toks": [ "SELECT", "role_name", ",", "role_description", "FROM", "ROLES", "WHERE", "role_code", "=", "``", "MG", "''" ], "query_toks_no_value": [ "select", "role_name", ",", "role_description", "from", "roles", "where", "role_code", "=", "value" ], "question": "Quels sont le nom et la description du code de rôle \"MG\"?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"MG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_name , role_description FROM ROLES WHERE role_code = \"MG\"", "query_toks": [ "SELECT", "role_name", ",", "role_description", "FROM", "ROLES", "WHERE", "role_code", "=", "``", "MG", "''" ], "query_toks_no_value": [ "select", "role_name", ",", "role_description", "from", "roles", "where", "role_code", "=", "value" ], "question": "Trouvez le nom et la description du rôle avec le code \"MG\".", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"MG\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_description FROM ROLES WHERE role_name = \"Proof Reader\"", "query_toks": [ "SELECT", "role_description", "FROM", "ROLES", "WHERE", "role_name", "=", "``", "Proof", "Reader", "''" ], "query_toks_no_value": [ "select", "role_description", "from", "roles", "where", "role_name", "=", "value" ], "question": "Affichez la description du nom de rôle \"Proof Reader\".", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Proof Reader\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_description FROM ROLES WHERE role_name = \"Proof Reader\"", "query_toks": [ "SELECT", "role_description", "FROM", "ROLES", "WHERE", "role_name", "=", "``", "Proof", "Reader", "''" ], "query_toks_no_value": [ "select", "role_description", "from", "roles", "where", "role_name", "=", "value" ], "question": "Quelle est la description du rôle nommé \"Proof Reader\"?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Proof Reader\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Employees", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Employees" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employees" ], "question": "Combien d'employés avons-nous?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT count(*) FROM Employees", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Employees" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employees" ], "question": "Trouvez le nombre d'employés que nous avons.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'", "query_toks": [ "SELECT", "employee_name", ",", "role_code", ",", "date_of_birth", "FROM", "Employees", "WHERE", "employee_Name", "=", "'Armani", "'" ], "query_toks_no_value": [ "select", "employee_name", ",", "role_code", ",", "date_of_birth", "from", "employees", "where", "employee_name", "=", "value" ], "question": "Affichez le nom, le code de rôle et la date de naissance de l'employé nommé \"Armani\".", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Armani\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'", "query_toks": [ "SELECT", "employee_name", ",", "role_code", ",", "date_of_birth", "FROM", "Employees", "WHERE", "employee_Name", "=", "'Armani", "'" ], "query_toks_no_value": [ "select", "employee_name", ",", "role_code", ",", "date_of_birth", "from", "employees", "where", "employee_name", "=", "value" ], "question": "Quels sont le nom, le code de rôle et la date de naissance de l'employé nommé \"Armani\"?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Armani\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_ID FROM Employees WHERE employee_name = \"Ebba\"", "query_toks": [ "SELECT", "employee_ID", "FROM", "Employees", "WHERE", "employee_name", "=", "``", "Ebba", "''" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "where", "employee_name", "=", "value" ], "question": "Quel est l'identifiant de l'employé appelé \"Ebba\"?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_ID FROM Employees WHERE employee_name = \"Ebba\"", "query_toks": [ "SELECT", "employee_ID", "FROM", "Employees", "WHERE", "employee_name", "=", "``", "Ebba", "''" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "where", "employee_name", "=", "value" ], "question": "Montrez l'identifiant de l'employé nommé \"Ebba\".", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_name FROM Employees WHERE role_code = \"HR\"", "query_toks": [ "SELECT", "employee_name", "FROM", "Employees", "WHERE", "role_code", "=", "``", "HR", "''" ], "query_toks_no_value": [ "select", "employee_name", "from", "employees", "where", "role_code", "=", "value" ], "question": "Affichez les noms de tous les employés avec le rôle \"HR\".", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"HR\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_name FROM Employees WHERE role_code = \"HR\"", "query_toks": [ "SELECT", "employee_name", "FROM", "Employees", "WHERE", "role_code", "=", "``", "HR", "''" ], "query_toks_no_value": [ "select", "employee_name", "from", "employees", "where", "role_code", "=", "value" ], "question": "Quels employés ont le rôle avec le code \"HR\"? Trouvez leurs noms.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"HR\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code , count(*) FROM Employees GROUP BY role_code", "query_toks": [ "SELECT", "role_code", ",", "count", "(", "*", ")", "FROM", "Employees", "GROUP", "BY", "role_code" ], "query_toks_no_value": [ "select", "role_code", ",", "count", "(", "*", ")", "from", "employees", "group", "by", "role_code" ], "question": "Affichez tous les codes de rôle et le nombre d'employés dans chaque rôle.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code , count(*) FROM Employees GROUP BY role_code", "query_toks": [ "SELECT", "role_code", ",", "count", "(", "*", ")", "FROM", "Employees", "GROUP", "BY", "role_code" ], "query_toks_no_value": [ "select", "role_code", ",", "count", "(", "*", ")", "from", "employees", "group", "by", "role_code" ], "question": "Quel est le code de chaque rôle et le nombre d'employés dans chaque rôle?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le code de rôle avec le plus grand nombre d'employés?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Trouvez le code du rôle qui compte le plus d'employés.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Afficherz tous les codes de rôle avec au moins 3 employés.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les rôles avec trois employés ou plus? Donnez-moi les codes de rôle.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Affichez le code de rôle avec le moins d'employés.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "role_code", "FROM", "Employees", "GROUP", "BY", "role_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "role_code", "from", "employees", "group", "by", "role_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Quel est le rôle avec le plus petit nombre d'employés? Trouvez les codes de rôle.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 19, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = \"Ebba\"", "query_toks": [ "SELECT", "T2.role_name", ",", "T2.role_description", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T1.employee_name", "=", "``", "Ebba", "''" ], "query_toks_no_value": [ "select", "t2", ".", "role_name", ",", "t2", ".", "role_description", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t1", ".", "employee_name", "=", "value" ], "question": "Quel est le nom et la description du rôle d'un employé appelé \"Ebba\"?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = \"Ebba\"", "query_toks": [ "SELECT", "T2.role_name", ",", "T2.role_description", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T1.employee_name", "=", "``", "Ebba", "''" ], "query_toks_no_value": [ "select", "t2", ".", "role_name", ",", "t2", ".", "role_description", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t1", ".", "employee_name", "=", "value" ], "question": "Montrez le nom et la description du rôle joué par l'employé nommé \"Ebba\".", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\"", "query_toks": [ "SELECT", "T1.employee_name", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T2.role_name", "=", "``", "Editor", "''" ], "query_toks_no_value": [ "select", "t1", ".", "employee_name", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t2", ".", "role_name", "=", "value" ], "question": "Affichez les noms des employés avec le nom de rôle \"Editor\".", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Editor\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\"", "query_toks": [ "SELECT", "T1.employee_name", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T2.role_name", "=", "``", "Editor", "''" ], "query_toks_no_value": [ "select", "t1", ".", "employee_name", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t2", ".", "role_name", "=", "value" ], "question": "Trouvez les noms de tous les employés dont le nom de rôle est \"Editor\".", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Editor\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\"", "query_toks": [ "SELECT", "T1.employee_id", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T2.role_name", "=", "``", "Human", "Resource", "''", "OR", "T2.role_name", "=", "``", "Manager", "''" ], "query_toks_no_value": [ "select", "t1", ".", "employee_id", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t2", ".", "role_name", "=", "value", "or", "t2", ".", "role_name", "=", "value" ], "question": "Affichez les identifiants de tous les employés avec le nom de rôle \"Human Resource\" ou \"Manager\".", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Human Resource\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Manager\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\"", "query_toks": [ "SELECT", "T1.employee_id", "FROM", "Employees", "AS", "T1", "JOIN", "ROLES", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T2.role_name", "=", "``", "Human", "Resource", "''", "OR", "T2.role_name", "=", "``", "Manager", "''" ], "query_toks_no_value": [ "select", "t1", ".", "employee_id", "from", "employees", "as", "t1", "join", "roles", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t2", ".", "role_name", "=", "value", "or", "t2", ".", "role_name", "=", "value" ], "question": "Quels sont les identifiants des employés dont le nom de rôle est \"Human Resource\" ou \"Manager\"?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Human Resource\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Manager\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT location_code FROM Document_locations", "query_toks": [ "SELECT", "DISTINCT", "location_code", "FROM", "Document_locations" ], "query_toks_no_value": [ "select", "distinct", "location_code", "from", "document_locations" ], "question": "Quels sont les différents codes d'emplacement pour les documents?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT location_code FROM Document_locations", "query_toks": [ "SELECT", "DISTINCT", "location_code", "FROM", "Document_locations" ], "query_toks_no_value": [ "select", "distinct", "location_code", "from", "document_locations" ], "question": "Donnez-moi tous les codes d'emplacement distincts pour les documents.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"", "query_toks": [ "SELECT", "T3.location_name", "FROM", "All_documents", "AS", "T1", "JOIN", "Document_locations", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "JOIN", "Ref_locations", "AS", "T3", "ON", "T2.location_code", "=", "T3.location_code", "WHERE", "T1.document_name", "=", "``", "Robin", "CV", "''" ], "query_toks_no_value": [ "select", "t3", ".", "location_name", "from", "all_documents", "as", "t1", "join", "document_locations", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "join", "ref_locations", "as", "t3", "on", "t2", ".", "location_code", "=", "t3", ".", "location_code", "where", "t1", ".", "document_name", "=", "value" ], "question": "Affichez le nom de l'emplacement du document \"Robin CV\".", "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 24, false ], null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"", "query_toks": [ "SELECT", "T3.location_name", "FROM", "All_documents", "AS", "T1", "JOIN", "Document_locations", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "JOIN", "Ref_locations", "AS", "T3", "ON", "T2.location_code", "=", "T3.location_code", "WHERE", "T1.document_name", "=", "``", "Robin", "CV", "''" ], "query_toks_no_value": [ "select", "t3", ".", "location_name", "from", "all_documents", "as", "t1", "join", "document_locations", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "join", "ref_locations", "as", "t3", "on", "t2", ".", "location_code", "=", "t3", ".", "location_code", "where", "t1", ".", "document_name", "=", "value" ], "question": "Quel est le nom d'emplacement du document \"Robin CV\"?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 24, false ], null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations", "query_toks": [ "SELECT", "location_code", ",", "date_in_location_from", ",", "date_in_locaton_to", "FROM", "Document_locations" ], "query_toks_no_value": [ "select", "location_code", ",", "date_in_location_from", ",", "date_in_locaton_to", "from", "document_locations" ], "question": "Affichez le code d'emplacement, la date de début et les données de fin à cet emplacement pour tous les documents.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations", "query_toks": [ "SELECT", "location_code", ",", "date_in_location_from", ",", "date_in_locaton_to", "FROM", "Document_locations" ], "query_toks_no_value": [ "select", "location_code", ",", "date_in_location_from", ",", "date_in_locaton_to", "from", "document_locations" ], "question": "Quels sont le code d'emplacement de chaque document, la date de début et les données de fin à cet emplacement?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"", "query_toks": [ "SELECT", "T1.date_in_location_from", ",", "T1.date_in_locaton_to", "FROM", "Document_locations", "AS", "T1", "JOIN", "All_documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.document_name", "=", "``", "Robin", "CV", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_in_location_from", ",", "t1", ".", "date_in_locaton_to", "from", "document_locations", "as", "t1", "join", "all_documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Quelle est \"the date in location from\" et \"the date in location to\" pour le document portant le nom \"Robin CV\"?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 12, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"", "query_toks": [ "SELECT", "T1.date_in_location_from", ",", "T1.date_in_locaton_to", "FROM", "Document_locations", "AS", "T1", "JOIN", "All_documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.document_name", "=", "``", "Robin", "CV", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_in_location_from", ",", "t1", ".", "date_in_locaton_to", "from", "document_locations", "as", "t1", "join", "all_documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Trouvez la date de début et les données de fin à l'emplacement du document nommé \"Robin CV\".", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 12, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , count(*) FROM Document_locations GROUP BY location_code", "query_toks": [ "SELECT", "location_code", ",", "count", "(", "*", ")", "FROM", "Document_locations", "GROUP", "BY", "location_code" ], "query_toks_no_value": [ "select", "location_code", ",", "count", "(", "*", ")", "from", "document_locations", "group", "by", "location_code" ], "question": "Affichez les codes d'emplacement et le nombre de documents dans chaque emplacement.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 25, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code , count(*) FROM Document_locations GROUP BY location_code", "query_toks": [ "SELECT", "location_code", ",", "count", "(", "*", ")", "FROM", "Document_locations", "GROUP", "BY", "location_code" ], "query_toks_no_value": [ "select", "location_code", ",", "count", "(", "*", ")", "from", "document_locations", "group", "by", "location_code" ], "question": "Quel est le code de chaque emplacement et le nombre de documents à cet endroit?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 25, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "location_code", "FROM", "Document_locations", "GROUP", "BY", "location_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location_code", "from", "document_locations", "group", "by", "location_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Quel est le code de localisation avec le plus de documents?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 25, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "location_code", "FROM", "Document_locations", "GROUP", "BY", "location_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location_code", "from", "document_locations", "group", "by", "location_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Trouvez le code de l'emplacement avec le plus grand nombre de documents.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 25, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3", "query_toks": [ "SELECT", "location_code", "FROM", "Document_locations", "GROUP", "BY", "location_code", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "location_code", "from", "document_locations", "group", "by", "location_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Affichez les codes d'emplacement avec au moins 3 documents.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3", "query_toks": [ "SELECT", "location_code", "FROM", "Document_locations", "GROUP", "BY", "location_code", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "location_code", "from", "document_locations", "group", "by", "location_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Quels sont les codes des emplacements avec au moins trois documents?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T2.location_name", ",", "T1.location_code", "FROM", "Document_locations", "AS", "T1", "JOIN", "Ref_locations", "AS", "T2", "ON", "T1.location_code", "=", "T2.location_code", "GROUP", "BY", "T1.location_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "location_name", ",", "t1", ".", "location_code", "from", "document_locations", "as", "t1", "join", "ref_locations", "as", "t2", "on", "t1", ".", "location_code", "=", "t2", ".", "location_code", "group", "by", "t1", ".", "location_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Affichez le nom et le code de l'emplacement avec le moins de documents.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 25, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T2.location_name", ",", "T1.location_code", "FROM", "Document_locations", "AS", "T1", "JOIN", "Ref_locations", "AS", "T2", "ON", "T1.location_code", "=", "T2.location_code", "GROUP", "BY", "T1.location_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "location_name", ",", "t1", ".", "location_code", "from", "document_locations", "as", "t1", "join", "ref_locations", "as", "t2", "on", "t1", ".", "location_code", "=", "t2", ".", "location_code", "group", "by", "t1", ".", "location_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Quels sont le nom et le code de l'emplacement avec le plus petit nombre de documents?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 25, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;", "query_toks": [ "SELECT", "T2.employee_name", ",", "T3.employee_name", "FROM", "Documents_to_be_destroyed", "AS", "T1", "JOIN", "Employees", "AS", "T2", "ON", "T1.Destruction_Authorised_by_Employee_ID", "=", "T2.employee_id", "JOIN", "Employees", "AS", "T3", "ON", "T1.Destroyed_by_Employee_ID", "=", "T3.employee_id", ";" ], "query_toks_no_value": [ "select", "t2", ".", "employee_name", ",", "t3", ".", "employee_name", "from", "documents_to_be_destroyed", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "destruction_authorised_by_employee_id", "=", "t2", ".", "employee_id", "join", "employees", "as", "t3", "on", "t1", ".", "destroyed_by_employee_id", "=", "t3", ".", "employee_id" ], "question": "Quels sont les noms des employés qui ont autorisé la destruction et des employés qui ont détruit les documents correspondants?", "sql": { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 18, false ], null ], "and", [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 18, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;", "query_toks": [ "SELECT", "T2.employee_name", ",", "T3.employee_name", "FROM", "Documents_to_be_destroyed", "AS", "T1", "JOIN", "Employees", "AS", "T2", "ON", "T1.Destruction_Authorised_by_Employee_ID", "=", "T2.employee_id", "JOIN", "Employees", "AS", "T3", "ON", "T1.Destroyed_by_Employee_ID", "=", "T3.employee_id", ";" ], "query_toks_no_value": [ "select", "t2", ".", "employee_name", ",", "t3", ".", "employee_name", "from", "documents_to_be_destroyed", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "destruction_authorised_by_employee_id", "=", "t2", ".", "employee_id", "join", "employees", "as", "t3", "on", "t1", ".", "destroyed_by_employee_id", "=", "t3", ".", "employee_id" ], "question": "Dressez la liste des noms des employés qui ont autorisé la destruction des documents et des employés qui ont détruit les documents correspondants.", "sql": { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 18, false ], null ], "and", [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 18, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID", "query_toks": [ "SELECT", "Destruction_Authorised_by_Employee_ID", ",", "count", "(", "*", ")", "FROM", "Documents_to_be_destroyed", "GROUP", "BY", "Destruction_Authorised_by_Employee_ID" ], "query_toks_no_value": [ "select", "destruction_authorised_by_employee_id", ",", "count", "(", "*", ")", "from", "documents_to_be_destroyed", "group", "by", "destruction_authorised_by_employee_id" ], "question": "Montrez l'identifiant de chaque employé et le nombre de destructions de documents autorisées par cet employé.", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 29, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID", "query_toks": [ "SELECT", "Destruction_Authorised_by_Employee_ID", ",", "count", "(", "*", ")", "FROM", "Documents_to_be_destroyed", "GROUP", "BY", "Destruction_Authorised_by_Employee_ID" ], "query_toks_no_value": [ "select", "destruction_authorised_by_employee_id", ",", "count", "(", "*", ")", "from", "documents_to_be_destroyed", "group", "by", "destruction_authorised_by_employee_id" ], "question": "Quels sont les identifiants de chaque employé et le nombre de destructions de documents autorisées par cet employé?", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 29, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID", "query_toks": [ "SELECT", "Destroyed_by_Employee_ID", ",", "count", "(", "*", ")", "FROM", "Documents_to_be_destroyed", "GROUP", "BY", "Destroyed_by_Employee_ID" ], "query_toks_no_value": [ "select", "destroyed_by_employee_id", ",", "count", "(", "*", ")", "from", "documents_to_be_destroyed", "group", "by", "destroyed_by_employee_id" ], "question": "Montrez les identifiants des employés et le nombre de documents détruits par chaque employé.", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 30, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID", "query_toks": [ "SELECT", "Destroyed_by_Employee_ID", ",", "count", "(", "*", ")", "FROM", "Documents_to_be_destroyed", "GROUP", "BY", "Destroyed_by_Employee_ID" ], "query_toks_no_value": [ "select", "destroyed_by_employee_id", ",", "count", "(", "*", ")", "from", "documents_to_be_destroyed", "group", "by", "destroyed_by_employee_id" ], "question": "Quels sont les identifiants de chaque employé et le nombre de documents détruits par cet employé?", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 30, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "except", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Affichez les identifiants des employés qui n'autorisent la destruction d'aucun document.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "except", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Quels employés n'autorisent la destruction d'aucun document? Donnez-moi leurs identifiants d'employés.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "DISTINCT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "distinct", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Montrez les identifiants de tous les employés qui ont autorisé la destruction.", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "DISTINCT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "distinct", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Quels sont les identifiants de tous les employés qui autorisent la destruction de documents?", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "DISTINCT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "distinct", "destroyed_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Affichez les identifiants de tous les employés qui ont détruit un document.", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "DISTINCT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "distinct", "destroyed_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Quels sont les identifiants de tous les employés qui ont détruit des documents?", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "except", "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Affichez les identifiants de tous les employés qui ne détruisent aucun document.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "employee_id", "from", "employees", "except", "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Quels employés ne détruisent aucun document? Trouvez les identifiants des employés.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed", "UNION", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed", "union", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Affichez les identifiants de tous les employés qui ont soit détruit un document, soit autorisé à le faire.", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "cre_Doc_Tracking_DB", "query": "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "query_toks": [ "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed", "UNION", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed" ], "query_toks_no_value": [ "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed", "union", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed" ], "question": "Quels employés ont soit détruit un document, soit donné l'autorisation de le faire? Renvoyez les identifiants des employés.", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } } ]