| [ | |
| { | |
| "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": "How many calendar items do we have?", | |
| "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": "Count the number of all the calendar items.", | |
| "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": "Show all calendar dates and day Numbers.", | |
| "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": "What are all the calendar dates and day Numbers?", | |
| "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": "Show the number of document types.", | |
| "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": "How many document types are there?", | |
| "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": "List all document type codes and document type names.", | |
| "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": "What are all the document type codes and document type names?", | |
| "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": "What is the name and description for document type code RV?", | |
| "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": "Give me the name and description of the document type code 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": "What is the document type code for document type \"Paper\"?", | |
| "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": "Find the code of the document type \"Paper\".", | |
| "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": "Show the number of documents with document type code CV or 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": "How many documents have document type code CV or 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": "What is the date when the document \"Marry CV\" was stored?", | |
| "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": "When was the document named \"Marry CV\" stored? Give me the date.", | |
| "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": "What is the day Number and date of all the documents?", | |
| "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": "Return the day Number and stored date for all the documents.", | |
| "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": "What is the document type name for the document with name \"How to read a book\"?", | |
| "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": "Find the document type name of the document named \"How to read a book\".", | |
| "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": "Show the number of locations.", | |
| "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": "How many locations are listed in the database?", | |
| "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": "List all location codes and location names.", | |
| "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": "What are all the location codes and location names?", | |
| "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": "What are the name and description for location code x?", | |
| "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": "Give me the name and description of the location with code x.", | |
| "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": "What is the location code for the country \"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": "Show the location code of the country \"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": "How many roles are there?", | |
| "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": "Count the total number of roles listed.", | |
| "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": "List all role codes, role names, and role descriptions.", | |
| "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": "What are all the role codes, role names, and role descriptions?", | |
| "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": "What are the name and description for role code \"MG\"?", | |
| "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": "Find the name and description of the role with code \"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": "Show the description for role name \"Proof Reader\".", | |
| "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": "What is the description of the role named \"Proof Reader\"?", | |
| "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": "How many employees do we have?", | |
| "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": "Find the number of employees we have.", | |
| "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": "Show the name, role code, and date of birth for the employee with name '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": "What are the name, role code, and date of birth of the employee named '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": "What is the id for the employee called Ebba?", | |
| "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": "Show the id of the employee named 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": "Show the names of all the employees with role \"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": "Which employees have the role with code \"HR\"? Find their names.", | |
| "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": "Show all role codes and the number of employees in each role.", | |
| "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": "What is the code of each role and the number of employees in each role?", | |
| "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": "What is the role code with the largest number of employees?", | |
| "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": "Find the code of the role that have the most employees.", | |
| "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": "Show all role codes with at least 3 employees.", | |
| "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": "What are the roles with three or more employees? Give me the role codes.", | |
| "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": "Show the role code with the least employees.", | |
| "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": "What is the role with the smallest number of employees? Find the role codes.", | |
| "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": "What is the role name and role description for employee called Ebba?", | |
| "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": "Show the name and description of the role played by the employee named Ebba.", | |
| "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": "Show the names of employees with role name Editor.", | |
| "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": "Find the names of all the employees whose the role name is \"Editor\".", | |
| "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": "Show the employee ids for all employees with role name \"Human Resource\" or \"Manager\".", | |
| "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": "What are the employee ids of the employees whose role name is \"Human Resource\" or \"Manager\"?", | |
| "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": "What are the different location codes for documents?", | |
| "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": "Give me all the distinct location codes for documents.", | |
| "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": "Show the location name for document \"Robin CV\".", | |
| "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": "What is the location name of the document \"Robin CV\"?", | |
| "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": "Show the location code, the starting date and ending data in that location for all the documents.", | |
| "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": "What are each document's location code, and starting date and ending data in that location?", | |
| "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": "What is \"the date in location from\" and \"the date in location to\" for the document with name \"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": "Find the starting date and ending data in location for the document named \"Robin CV\".", | |
| "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": "Show the location codes and the number of documents in each location.", | |
| "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": "What is the code of each location and the number of documents in that location?", | |
| "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": "What is the location code with the most documents?", | |
| "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": "Find the code of the location with the largest number of documents.", | |
| "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": "Show the location codes with at least 3 documents.", | |
| "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": "What are the codes of the locations with at least three documents?", | |
| "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": "Show the location name and code with the least documents.", | |
| "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": "What are the name and code of the location with the smallest number of documents?", | |
| "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": "What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?", | |
| "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": "List the names of the employees who authorized the destruction of documents and the employees who destroyed the corresponding documents.", | |
| "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": "Show the id of each employee and the number of document destruction authorised by that employee.", | |
| "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": "What are the id of each employee and the number of document destruction authorised by that employee?", | |
| "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": "Show the employee ids and the number of documents destroyed by each employee.", | |
| "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": "What are the id of each employee and the number of document destroyed by that employee?", | |
| "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": "Show the ids of the employees who don't authorize destruction for any document.", | |
| "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": "Which employees do not authorize destruction for any document? Give me their employee ids.", | |
| "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": "Show the ids of all employees who have authorized destruction.", | |
| "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": "What are the ids of all the employees who authorize document destruction?", | |
| "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": "Show the ids of all employees who have destroyed a document.", | |
| "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": "What are the ids of all the employees who have destroyed documents?", | |
| "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": "Show the ids of all employees who don't destroy any document.", | |
| "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": "Which employees do not destroy any document? Find their employee ids.", | |
| "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": "Show the ids of all employees who have either destroyed a document or made an authorization to do this.", | |
| "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": "Which employees have either destroyed a document or made an authorization to do so? Return their employee ids.", | |
| "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": [] | |
| } | |
| } | |
| ] |