[ { "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": "Wie viele Kalendereinträge haben wir?", "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": "Zählen Sie die Anzahl aller Kalenderelemente.", "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": "Alle Kalenderdaten und Tagesnummern anzeigen.", "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": "Was sind alle Kalenderdaten und Tagesnummern?", "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": "Zeigen Sie die Anzahl der Dokumenttypen an.", "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": "Wie viele Dokumenttypen gibt es?", "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": "Listen Sie alle Dokumenttypcodes und Dokumenttypnamen auf.", "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": "Was sind alle Dokumenttypcodes und Dokumenttypnamen?", "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": "Wie lautet der Name und die Beschreibung für den Dokumenttypcode \"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": "Geben Sie mir den Namen und die Beschreibung des Dokumenttypcodes \"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": "Wie lautet der Dokumenttypcode für den Dokumenttyp \"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": "Suchen Sie den Code des Dokumenttyps \"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": "Zeigen Sie die Anzahl der Dokumente mit dem Dokumenttypcode \"CV\" oder \"BK\" an.", "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": "Wie viele Dokumente haben den Dokumenttypcode \"CV\" oder \"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": "Wann wurde das Dokument \"Marry CV\" gespeichert?", "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": "Wann wurde das Dokument mit dem Namen \"Marry CV\" gespeichert? Gib mir das Datum.", "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": "Wie lautet die Tagesnummer und das Datum aller Dokumente?", "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": "Geben Sie die Tagesnummer und das gespeicherte Datum für alle Dokumente zurück.", "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": "Wie lautet der Dokumenttypname für das Dokument mit dem Namen \"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": "Suchen Sie den Dokumenttypnamen des Dokuments mit dem Namen \"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": "Zeigen Sie die Anzahl der Standorte an.", "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": "Wie viele Standorte sind in der Datenbank aufgeführt?", "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": "Listen Sie alle Standortcodes und Standortnamen auf.", "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": "Wie lauten alle Standortcodes und Standortnamen?", "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": "Wie lautet der Name und die Beschreibung für den Standortcode \"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": "Geben Sie mir den Namen und die Beschreibung des Ortes mit dem 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": "Wie lautet der Standortcode für das Land \"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": "Zeigen Sie den Standortcode des Landes \"Canada\" an.", "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": "Wie viele Rollen gibt es?", "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": "Zählen Sie die Gesamtzahl der aufgelisteten Rollen.", "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": "Listen Sie alle Rollencodes, Rollennamen und Rollenbeschreibungen auf.", "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": "Was sind alle Rollencodes, Rollennamen und Rollenbeschreibungen?", "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": "Wie lautet der Name und die Beschreibung für den Rollencode \"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": "Suchen Sie den Namen und die Beschreibung der Rolle mit dem 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": "Zeigen Sie die Beschreibung für den Rollennamen \"Proof Reader\" an.", "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": "Wie beschreibt die Rolle \"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": "Wie viele Mitarbeiter haben wir?", "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": "Finden Sie die Anzahl der Mitarbeiter, die wir haben.", "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": "Zeigen Sie den Namen, den Rollencode und das Geburtsdatum des Mitarbeiters mit dem Namen \"Armani\" an.", "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": "Wie lauten der Name, der Rollencode und das Geburtsdatum des Mitarbeiters mit dem Namen \"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": "Wie lautet die ID für die Mitarbeiterin namens \"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": "Zeigen Sie die ID der Mitarbeiterin namens \"Ebba\" an.", "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": "Zeigen Sie die Namen aller Mitarbeiter mit der Rolle \"HR\" an.", "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": "Welche Mitarbeiter haben die Rolle mit dem Code \"HR\"? Finde ihre Namen.", "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": "Zeigen Sie alle Rollencodes und die Anzahl der Mitarbeiter in jeder Rolle an.", "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": "Wie lautet der Code jeder Rolle und die Anzahl der Mitarbeiter in jeder Rolle?", "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": "Was ist der Rollencode mit der größten Anzahl von Mitarbeitern?", "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": "Suchen Sie den Code der Rolle mit den meisten Mitarbeitern.", "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": "Zeigen Sie alle Rollencodes mit mindestens 3 Mitarbeitern an.", "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": "Welche Rollen haben drei oder mehr Mitarbeiter? Gib mir die Rollencodes.", "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": "Zeigen Sie den Rollencode mit den wenigsten Mitarbeitern an.", "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": "Welche Rolle spielt die geringste Anzahl von Mitarbeitern? Suchen Sie die Rollencodes.", "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": "Wie lautet der Rollenname und die Rollenbeschreibung für die Mitarbeiterin \"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": "Zeigen Sie den Namen und die Beschreibung der Rolle der Mitarbeiterin \"Ebba\" an.", "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": "Zeigen Sie die Namen der Mitarbeiter mit dem Rollennamen-\"Editor\" an.", "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": "Suchen Sie die Namen aller Mitarbeiter, deren Rollenname \"Editor\" lautet.", "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": "Zeigen Sie die Mitarbeiter-IDs für alle Mitarbeiter mit dem Rollennamen \"Human Resource\" oder \"Manager\" an.", "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": "Wie lauten die Mitarbeiter-IDs der Mitarbeiter, deren Rollenname \"Human Resource\" oder \"Manager\" lautet?", "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": "Was sind die verschiedenen Standortcodes für Dokumente?", "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": "Geben Sie mir alle eindeutigen Standortcodes für Dokumente.", "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": "Zeigen Sie den Standortnamen für das Dokument \"Robin CV\" an.", "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": "Wie lautet der Standortname des Dokuments \"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": "Zeigen Sie für alle Dokumente den Standortcode, das Startdatum und die Enddaten an diesem Standort an.", "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": "Wie lautet der Standortcode jedes Dokuments sowie das Startdatum und die Enddaten an diesem Speicherort?", "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": "Was ist \"das Datum vor Ort von\" und \"das Datum vor Ort bis\" für das Dokument mit dem Namen \"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": "Suchen Sie das Startdatum und die Enddaten vor Ort für das Dokument mit dem Namen \"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": "Zeigen Sie die Standortcodes und die Anzahl der Dokumente an jedem Standort an.", "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": "Wie lautet der Code für jeden Standort und die Anzahl der Dokumente an diesem Standort?", "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": "Wie lautet der Standortcode mit den meisten Dokumenten?", "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": "Suchen Sie den Code des Speicherorts mit der größten Anzahl von Dokumenten.", "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": "Zeigen Sie die Standortcodes mit mindestens 3 Dokumenten an.", "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": "Wie lauten die Codes der Standorte mit mindestens drei Dokumenten?", "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": "Zeigen Sie den Standortnamen und den Code mit den wenigsten Dokumenten an.", "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": "Wie lautet der Name und Code des Standorts mit der geringsten Anzahl von Dokumenten?", "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": "Wie heißen die Mitarbeiter, die die Zerstörung genehmigt haben, und die Mitarbeiter, die die entsprechenden Dokumente vernichtet haben?", "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": "Listen Sie die Namen der Mitarbeiter auf, die die Vernichtung von Dokumenten autorisiert haben, und der Mitarbeiter, die die entsprechenden Dokumente vernichtet haben.", "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": "Zeigen Sie die ID jedes Mitarbeiters und die Anzahl der von diesem Mitarbeiter autorisierten Dokumentenvernichtungen an.", "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": "Wie lauten die ID jedes Mitarbeiters und die Anzahl der von diesem Mitarbeiter genehmigten Dokumentenvernichtungen?", "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": "Zeigen Sie die Mitarbeiter-IDs und die Anzahl der von jedem Mitarbeiter zerstörten Dokumente an.", "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": "Wie lautet die ID jedes Mitarbeiters und die Anzahl der von diesem Mitarbeiter zerstörten Dokumente?", "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": "Zeigen Sie die IDs der Mitarbeiter an, die keine Zerstörung für ein Dokument autorisieren.", "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": "Welche Mitarbeiter genehmigen keine Vernichtung für ein Dokument? Geben Sie mir ihre Mitarbeiter-IDs.", "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": "Zeigen Sie die IDs aller Mitarbeiter an, die die Zerstörung autorisiert haben.", "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": "Was sind die IDs aller Mitarbeiter, die die Vernichtung von Dokumenten genehmigen?", "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": "Zeigen Sie die IDs aller Mitarbeiter an, die ein Dokument zerstört haben.", "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": "Was sind die IDs aller Mitarbeiter, die Dokumente vernichtet haben?", "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": "Zeigen Sie die IDs aller Mitarbeiter an, die kein Dokument zerstören.", "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": "Welche Mitarbeiter zerstören kein Dokument? Finden Sie ihre Mitarbeiter-IDs.", "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": "Zeigen Sie die IDs aller Mitarbeiter an, die entweder ein Dokument zerstört oder eine Berechtigung dazu erteilt haben.", "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": "Welche Mitarbeiter haben entweder ein Dokument vernichtet oder eine Genehmigung dazu erteilt? Geben Sie ihre Mitarbeiter-IDs zurück.", "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 } } ]