[ { "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": "Có bao nhiêu mục tất cả trong danh sách lịch ?", "question_toks": [ "How", "many", "calendar", "items", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Đếm số lượng tất cả các mục trong danh sách lịch .", "question_toks": [ "Count", "the", "number", "of", "all", "the", "calendar", "items", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị các ngày dương lịch được ghi lại trong danh sách và giá trị số của từng ngày .", "question_toks": [ "Show", "all", "calendar", "dates", "and", "day", "Numbers", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết tất cả các ngày dương lịch có trong danh sách và giá trị số của từng ngày .", "question_toks": [ "What", "are", "all", "the", "calendar", "dates", "and", "day", "Numbers", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị số lượng các loại tài liệu .", "question_toks": [ "Show", "the", "number", "of", "document", "types", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Có bao nhiêu loại tài liệu tất cả ?", "question_toks": [ "How", "many", "document", "types", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Liệt kê mã và tên của tất cả các loại tài liệu .", "question_toks": [ "List", "all", "document", "type", "codes", "and", "document", "type", "names", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết tên và mã của từng loại tài liệu .", "question_toks": [ "What", "are", "all", "the", "document", "type", "codes", "and", "document", "type", "names", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Đối với loại tài liệu có mã là RV , cho biết tên và mô tả của loại tài liệu này .", "question_toks": [ "What", "is", "the", "name", "and", "description", "for", "document", "type", "code", "RV", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"RV\"", 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": "Cho biết tên và mô tả của loại tài liệu có mã là RV .", "question_toks": [ "Give", "me", "the", "name", "and", "description", "of", "the", "document", "type", "code", "RV", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"RV\"", 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": "Cho biết mã loại tài liệu của những tài liệu có loại là ' Giấy ' .", "question_toks": [ "What", "is", "the", "document", "type", "code", "for", "document", "type", "``", "Paper", "''", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Paper\"", 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": "Đối với những tài liệu có loại là ' Giấy ' , cho biết mã loại tài liệu của những tài liệu này .", "question_toks": [ "Find", "the", "code", "of", "the", "document", "type", "``", "Paper", "''", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Paper\"", 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": "Hiển thị số lượng các tài liệu có mã loại tài liệu là CV hoặc BK .", "question_toks": [ "Show", "the", "number", "of", "documents", "with", "document", "type", "code", "CV", "or", "BK", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"CV\"", null ], "or", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"BK\"", 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": "Có bao nhiêu tài liệu có mã loại tài liệu là CV hoặc BK ?", "question_toks": [ "How", "many", "documents", "have", "document", "type", "code", "CV", "or", "BK", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"CV\"", null ], "or", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"BK\"", 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": "Ngày mà tài liệu có tên là ' Marry CV ' được lưu trữ là ngày nào ?", "question_toks": [ "What", "is", "the", "date", "when", "the", "document", "``", "Marry", "CV", "''", "was", "stored", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Marry CV\"", 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": "Tài liệu có tên ' Marry CV ' được lưu trữ vào ngày nào ?", "question_toks": [ "When", "was", "the", "document", "named", "``", "Marry", "CV", "''", "stored", "?", "Give", "me", "the", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Marry CV\"", 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": "Cho biết ngày mà các tài liệu đã được lưu trữ cùng với đó là giá trị số của những ngày này .", "question_toks": [ "What", "is", "the", "day", "Number", "and", "date", "of", "all", "the", "documents", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Các tài liệu đã được lưu trữ vào những ngày nào ? Cho biết giá trị số của những ngày này .", "question_toks": [ "Return", "the", "day", "Number", "and", "stored", "date", "for", "all", "the", "documents", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết loại của tài liệu có tên là ' Cách đọc một cuốn sách ' .", "question_toks": [ "What", "is", "the", "document", "type", "name", "for", "the", "document", "with", "name", "``", "How", "to", "read", "a", "book", "''", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"How to read a book\"", 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": "Tài liệu có tiêu đề là ' Cách đọc một cuốn sách ' thuộc vào loại tài liệu nào ?", "question_toks": [ "Find", "the", "document", "type", "name", "of", "the", "document", "named", "``", "How", "to", "read", "a", "book", "''", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"How to read a book\"", 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": "Hiển thị số lượng các địa điểm khác nhau .", "question_toks": [ "Show", "the", "number", "of", "locations", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Có tất cả bao nhiêu địa điểm đã được liệt kê ?", "question_toks": [ "How", "many", "locations", "are", "listed", "in", "the", "database", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Liệt kê mã và tên của tất cả các địa điểm .", "question_toks": [ "List", "all", "location", "codes", "and", "location", "names", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết tên và mã của từng địa điểm .", "question_toks": [ "What", "are", "all", "the", "location", "codes", "and", "location", "names", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "hiển thị tên của địa điểm có mã x cũng như là mô tả về địa điểm này .", "question_toks": [ "What", "are", "the", "name", "and", "description", "for", "location", "code", "x", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"x\"", 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": "Hãy cho biết tên của địa điểm có mã x và đồng thời cho biết mô tả về địa điểm này .", "question_toks": [ "Give", "me", "the", "name", "and", "description", "of", "the", "location", "with", "code", "x", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"x\"", 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": "Cho biết mã địa điểm của quốc gia Canada .", "question_toks": [ "What", "is", "the", "location", "code", "for", "the", "country", "``", "Canada", "''", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Canada\"", 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": "Hiển thị mã địa điểm của đất nước Canada .", "question_toks": [ "Show", "the", "location", "code", "of", "the", "country", "``", "Canada", "''", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Canada\"", 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": "Có bao nhiêu vai trò tất cả ?", "question_toks": [ "How", "many", "roles", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Đếm số lượng các vai trò đã được liệt kê .", "question_toks": [ "Count", "the", "total", "number", "of", "roles", "listed", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Liệt kê mã , tên và mô tả về từng vai trò công việc .", "question_toks": [ "List", "all", "role", "codes", ",", "role", "names", ",", "and", "role", "descriptions", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Đối với từng vai trò công việc , hãy cho biết mã , tên và mô tả về vai trò công việc tương ứng", "question_toks": [ "What", "are", "all", "the", "role", "codes", ",", "role", "names", ",", "and", "role", "descriptions", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết tên của vai trò công việc với mã MG cũng như là mô tả về vai trò công việc này .", "question_toks": [ "What", "are", "the", "name", "and", "description", "for", "role", "code", "``", "MG", "''", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"MG\"", 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": "Cho biết tên và mô tả về vai trò công việc có mã là MG .", "question_toks": [ "Find", "the", "name", "and", "description", "of", "the", "role", "with", "code", "``", "MG", "''", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"MG\"", 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": "Hiển thị mô tả về vai trò công việc ' Người đọc sửa văn bản ' .", "question_toks": [ "Show", "the", "description", "for", "role", "name", "``", "Proof", "Reader", "''", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Proof Reader\"", 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": "Cho biết mô tả về vai trò công việc ' Người đọc sửa văn bản ' .", "question_toks": [ "What", "is", "the", "description", "of", "the", "role", "named", "``", "Proof", "Reader", "''", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Proof Reader\"", 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": "Có bao nhiêu nhân viên tất cả ?", "question_toks": [ "How", "many", "employees", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "cho biết số lượng nhân viên chúng ta có .", "question_toks": [ "Find", "the", "number", "of", "employees", "we", "have", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị tên , mã vai trò và ngày sinh của nhân viên có tên là ' Armani ' .", "question_toks": [ "Show", "the", "name", ",", "role", "code", ",", "and", "date", "of", "birth", "for", "the", "employee", "with", "name", "'Armani", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Armani\"", 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": "Tên , mã vai trò và ngày sinh của nhân viên có tên Armani ?", "question_toks": [ "What", "are", "the", "name", ",", "role", "code", ",", "and", "date", "of", "birth", "of", "the", "employee", "named", "'Armani", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Armani\"", 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": "Nhân viên tên là Ebba có id là gì ?", "question_toks": [ "What", "is", "the", "id", "for", "the", "employee", "called", "Ebba", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", 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": "Hiển thị id của nhân viên có tên là Ebba .", "question_toks": [ "Show", "the", "id", "of", "the", "employee", "named", "Ebba", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", 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": "Hiển thị tên của tất cả các nhân viên có vai trò công việc là ' HR ' .", "question_toks": [ "Show", "the", "names", "of", "all", "the", "employees", "with", "role", "``", "HR", "''", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"HR\"", 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": "Nhân viên nào có vai trò công việc là ' HR ' ? Hãy tìm tên của những nhân viên này .", "question_toks": [ "Which", "employees", "have", "the", "role", "with", "code", "``", "HR", "''", "?", "Find", "their", "names", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"HR\"", 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": "Hiển thị mã vai trò của tất cả các nhân viên và số lượng nhân viên thuộc vào mỗi loại mã .", "question_toks": [ "Show", "all", "role", "codes", "and", "the", "number", "of", "employees", "in", "each", "role", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết mã vai trò của tất cả các nhân viên cũng như là có bao nhiêu nhân viên thuộc vào từng loại mã ?", "question_toks": [ "What", "is", "the", "code", "of", "each", "role", "and", "the", "number", "of", "employees", "in", "each", "role", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết mã của vai trò công việc với số lượng nhân viên nhiều nhất .", "question_toks": [ "What", "is", "the", "role", "code", "with", "the", "largest", "number", "of", "employees", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Vai trò công việc nào có nhiều nhân viên nhất ? Cho biết mã của vai trò công việc này .", "question_toks": [ "Find", "the", "code", "of", "the", "role", "that", "have", "the", "most", "employees", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị mã của các vai trò công việc có ít nhất 3 nhân viên .", "question_toks": [ "Show", "all", "role", "codes", "with", "at", "least", "3", "employees", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Những vai trò công việc nào có từ 3 nhân viên trở lên ? Hãy cho biết mã của những vai trò công việc này .", "question_toks": [ "What", "are", "the", "roles", "with", "three", "or", "more", "employees", "?", "Give", "me", "the", "role", "codes", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị mã của vai trò công việc có ít nhân viên nhất đảm nhận nhất .", "question_toks": [ "Show", "the", "role", "code", "with", "the", "least", "employees", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Vai trò công việc nào có ít nhân viên đảm nhận nhất ? Cho biết mã của vai trò công việc này .", "question_toks": [ "What", "is", "the", "role", "with", "the", "smallest", "number", "of", "employees", "?", "Find", "the", "role", "codes", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Nhân viên Ebba có tên là gì ? Đồng thời cho biết mô tả về vai trò công việc của nhân viên này .", "question_toks": [ "What", "is", "the", "role", "name", "and", "role", "description", "for", "employee", "called", "Ebba", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", 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": "Cho biết mô tả về vai trò công việc của nhân viên có tên là Ebba ? Đồng thời hiển thị tên của nhân viên này .", "question_toks": [ "Show", "the", "name", "and", "description", "of", "the", "role", "played", "by", "the", "employee", "named", "Ebba", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Ebba\"", 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": "Hiển thị tên của các nhân viên với vai trò công việc là ' Người biên tập ' .", "question_toks": [ "Show", "the", "names", "of", "employees", "with", "role", "name", "Editor", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Editor\"", 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": "Tìm tên của tất cả các nhân viên có vai trò công việc là ' Người biên tập ' .", "question_toks": [ "Find", "the", "names", "of", "all", "the", "employees", "whose", "the", "role", "name", "is", "``", "Editor", "''", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Editor\"", 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": "Cho biết id của tất cả các nhân viên có vai trò công việc là ' Phụ trách nhân sự ' hoặc ' Người quản lý ' .", "question_toks": [ "Show", "the", "employee", "ids", "for", "all", "employees", "with", "role", "name", "``", "Human", "Resource", "''", "or", "``", "Manager", "''", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Human Resource\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Manager\"", 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": "Những nhân viên nào có vai trò công việc là ' Phụ trách nhân sự ' hoặc ' Người quản lý ' ? Cho biết id của những nhân viên này .", "question_toks": [ "What", "are", "the", "employee", "ids", "of", "the", "employees", "whose", "role", "name", "is", "``", "Human", "Resource", "''", "or", "``", "Manager", "''", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Human Resource\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Manager\"", 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": "Cho biết mã của tất cả các địa điểm khác nhau hiện đang là nơi lưu trữ các tài liệu .", "question_toks": [ "What", "are", "the", "different", "location", "codes", "for", "documents", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Các tài liệu hiện đang được lưu trữ ở những địa điểm khác nhau nào ? Cho biết mã của những địa điểm đó .", "question_toks": [ "Give", "me", "all", "the", "distinct", "location", "codes", "for", "documents", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị địa điểm nơi tài liệu có tên là ' Robin CV ' đang được lưu trữ .", "question_toks": [ "Show", "the", "location", "name", "for", "document", "``", "Robin", "CV", "''", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 24, false ], null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", 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": "Tài liệu có tên là ' Robin CV ' đang được lưu trữ ở địa điểm nào ? Cho biết tên địa điểm này .", "question_toks": [ "What", "is", "the", "location", "name", "of", "the", "document", "``", "Robin", "CV", "''", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 24, false ], null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", 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": "Hiển thị mã của các địa điểm lưu trữ tài liệu cũng như là ngày bắt đầu và ngày kết thúc của việc lưu trữ ở các địa điểm đó .", "question_toks": [ "Show", "the", "location", "code", ",", "the", "starting", "date", "and", "ending", "data", "in", "that", "location", "for", "all", "the", "documents", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết mã của từng địa điểm lưu trữ tài liệu , cùng với đó là ngày bắt đầu và ngày kết thúc lưu trữ tương ứng ở địa điểm đó .", "question_toks": [ "What", "are", "each", "document", "'s", "location", "code", ",", "and", "starting", "date", "and", "ending", "data", "in", "that", "location", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết ngày bắt đầu và ngày kết thúc lưu trữ của tài liệu có tên là ' Robin CV ' .", "question_toks": [ "What", "is", "``", "the", "date", "in", "location", "from", "''", "and", "``", "the", "date", "in", "location", "to", "''", "for", "the", "document", "with", "name", "``", "Robin", "CV", "''", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", 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": "Tài liệu có tên là ' Robin CV ' bắt đầu và kết thúc lưu trữ vào những ngày nào ?", "question_toks": [ "Find", "the", "starting", "date", "and", "ending", "data", "in", "location", "for", "the", "document", "named", "``", "Robin", "CV", "''", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Robin CV\"", 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": "Hiển thị mã của tất cả các địa điểm và số lượng tài liệu được lưu trữ ở từng địa điểm .", "question_toks": [ "Show", "the", "location", "codes", "and", "the", "number", "of", "documents", "in", "each", "location", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết số lượng tài liệu được lưu trữ ở từng địa điểm cũng như là mã của các địa điểm đó .", "question_toks": [ "What", "is", "the", "code", "of", "each", "location", "and", "the", "number", "of", "documents", "in", "that", "location", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Địa điểm nào đang lưu trữ nhiều tài liệu nhất ? Cho biết mã của những địa điểm này .", "question_toks": [ "What", "is", "the", "location", "code", "with", "the", "most", "documents", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết mã của địa điểm đang lưu trữ số lượng tài liệu nhiều nhất .", "question_toks": [ "Find", "the", "code", "of", "the", "location", "with", "the", "largest", "number", "of", "documents", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị mã của các địa điểm đang lưu trữ ít nhất 3 tài liệu .", "question_toks": [ "Show", "the", "location", "codes", "with", "at", "least", "3", "documents", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Những địa điểm nào hiện đang lưu trữ ít nhất 3 tài liệu ? Cho biết mã của những địa điểm này .", "question_toks": [ "What", "are", "the", "codes", "of", "the", "locations", "with", "at", "least", "three", "documents", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị tên và mã của địa điểm hiện đang lưu trữ ít tài liệu nhất .", "question_toks": [ "Show", "the", "location", "name", "and", "code", "with", "the", "least", "documents", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Địa điểm nào là địa điểm có số lượng tài liệu ít nhất ? Cho biết tên và mã của địa điểm này .", "question_toks": [ "What", "are", "the", "name", "and", "code", "of", "the", "location", "with", "the", "smallest", "number", "of", "documents", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Các nhân viên đã uỷ quyền tiêu huỷ các tài liệu và các nhân viên đã trực tiếp tiêu huỷ các tài liệu tương ứng có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "the", "employees", "who", "authorised", "the", "destruction", "and", "the", "employees", "who", "destroyed", "the", "corresponding", "documents", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 18, false ], null ], "and", [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Liệt kê tên của các nhân viên đã uỷ quyền tiêu huỷ các tài liệu và tên của các nhân viên đã trực tiếp tiêu huỷ các tài liệu tương ứng .", "question_toks": [ "List", "the", "names", "of", "the", "employees", "who", "authorized", "the", "destruction", "of", "documents", "and", "the", "employees", "who", "destroyed", "the", "corresponding", "documents", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 18, false ], null ], "and", [ false, 2, [ 0, [ 0, 30, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị id của từng nhân viên và số lần tiêu huỷ tài liệu được uỷ quyền bởi nhân viên đó .", "question_toks": [ "Show", "the", "id", "of", "each", "employee", "and", "the", "number", "of", "document", "destruction", "authorised", "by", "that", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết số lượng tài liệu được uỷ quyền tiêu huỷ bởi từng nhân viên và id của các nhân viên đó .", "question_toks": [ "What", "are", "the", "id", "of", "each", "employee", "and", "the", "number", "of", "document", "destruction", "authorised", "by", "that", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị id của các nhân viên và số lượng tài liệu bị trực tiếp tiêu huỷ bởi từng nhân viên .", "question_toks": [ "Show", "the", "employee", "ids", "and", "the", "number", "of", "documents", "destroyed", "by", "each", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết id của từng nhân viên và số lượng tài liệu nhân viên đó đã trực tiếp tiêu huỷ .", "question_toks": [ "What", "are", "the", "id", "of", "each", "employee", "and", "the", "number", "of", "document", "destroyed", "by", "that", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 30, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị id của những nhân viên chưa bao giờ ban hành bất kỳ lệnh tiêu huỷ tài liệu nào .", "question_toks": [ "Show", "the", "ids", "of", "the", "employees", "who", "do", "n't", "authorize", "destruction", "for", "any", "document", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Những nhân viên nào chưa ban bất kỳ hành lệnh tiêu huỷ tài liệu nào ? Hãy cho biết id của những nhân viên này .", "question_toks": [ "Which", "employees", "do", "not", "authorize", "destruction", "for", "any", "document", "?", "Give", "me", "their", "employee", "ids", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị id của tất cả cac nhân viên đã được uỷ quyền tiêu huỷ các tài liệu .", "question_toks": [ "Show", "the", "ids", "of", "all", "employees", "who", "have", "authorized", "destruction", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết tất cả các nhân viên đã được uỷ quyền tiêu huỷ các tài liệu , hiển thị id của những nhân viên này .", "question_toks": [ "What", "are", "the", "ids", "of", "all", "the", "employees", "who", "authorize", "document", "destruction", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị id của tất cả các nhân viên đã trực tiếp tiêu huỷ các tài liệu .", "question_toks": [ "Show", "the", "ids", "of", "all", "employees", "who", "have", "destroyed", "a", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Liệt kê danh sách bao gồm id của tất cả các nhân viên đã trực tiếp tiêu huỷ các tài liệu .", "question_toks": [ "What", "are", "the", "ids", "of", "all", "the", "employees", "who", "have", "destroyed", "documents", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị id của tất cả những nhân viên chưa tiêu huỷ bất kỳ tài liệu nào .", "question_toks": [ "Show", "the", "ids", "of", "all", "employees", "who", "do", "n't", "destroy", "any", "document", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Nhân viên nào chưa tiêu huỷ bất kỳ tài liệu nào ? Tìm id của những nhân viên này .", "question_toks": [ "Which", "employees", "do", "not", "destroy", "any", "document", "?", "Find", "their", "employee", "ids", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Hiển thị id của tất cả những nhân viên đã trực tiếp tiêu huỷ các tài liệu hoặc đã uỷ quyền để thực hiện việc này .", "question_toks": [ "Show", "the", "ids", "of", "all", "employees", "who", "have", "either", "destroyed", "a", "document", "or", "made", "an", "authorization", "to", "do", "this", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] } }, { "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": "Nhân viên nào đã trực tiếp tiêu huỷ các tài liệu hoặc đã uỷ quyền để làm như vậy ? Trả lại id của những nhân viên này .", "question_toks": [ "Which", "employees", "have", "either", "destroyed", "a", "document", "or", "made", "an", "authorization", "to", "do", "so", "?", "Return", "their", "employee", "ids", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] } } ]