| [ | |
| { | |
| "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": "カレンダーアイテムはいくつありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM Ref_calendar", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Ref_calendar" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "ref_calendar" | |
| ], | |
| "question": "すべてのカレンダーアイテムの数を数えます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT calendar_date , day_Number FROM Ref_calendar", | |
| "query_toks": [ | |
| "SELECT", | |
| "calendar_date", | |
| ",", | |
| "day_Number", | |
| "FROM", | |
| "Ref_calendar" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "calendar_date", | |
| ",", | |
| "day_number", | |
| "from", | |
| "ref_calendar" | |
| ], | |
| "question": "すべてのカレンダーの日付と曜日番号を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT calendar_date , day_Number FROM Ref_calendar", | |
| "query_toks": [ | |
| "SELECT", | |
| "calendar_date", | |
| ",", | |
| "day_Number", | |
| "FROM", | |
| "Ref_calendar" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "calendar_date", | |
| ",", | |
| "day_number", | |
| "from", | |
| "ref_calendar" | |
| ], | |
| "question": "すべてのカレンダーの日付と日の番号は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM Ref_document_types", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Ref_document_types" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "ref_document_types" | |
| ], | |
| "question": "ドキュメントタイプの数を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM Ref_document_types", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Ref_document_types" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "ref_document_types" | |
| ], | |
| "question": "ドキュメントタイプはいくつありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT document_type_code , document_type_name FROM Ref_document_types", | |
| "query_toks": [ | |
| "SELECT", | |
| "document_type_code", | |
| ",", | |
| "document_type_name", | |
| "FROM", | |
| "Ref_document_types" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "document_type_code", | |
| ",", | |
| "document_type_name", | |
| "from", | |
| "ref_document_types" | |
| ], | |
| "question": "すべてのドキュメントタイプコードとドキュメントタイプ名を一覧表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT document_type_code , document_type_name FROM Ref_document_types", | |
| "query_toks": [ | |
| "SELECT", | |
| "document_type_code", | |
| ",", | |
| "document_type_name", | |
| "FROM", | |
| "Ref_document_types" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "document_type_code", | |
| ",", | |
| "document_type_name", | |
| "from", | |
| "ref_document_types" | |
| ], | |
| "question": "すべてのドキュメントタイプコードとドキュメントタイプ名は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = \"RV\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "document_type_name", | |
| ",", | |
| "document_type_description", | |
| "FROM", | |
| "Ref_document_types", | |
| "WHERE", | |
| "document_type_code", | |
| "=", | |
| "``", | |
| "RV", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "document_type_name", | |
| ",", | |
| "document_type_description", | |
| "from", | |
| "ref_document_types", | |
| "where", | |
| "document_type_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ドキュメントタイプコード「RV」の名前と説明は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"RV\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = \"RV\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "document_type_name", | |
| ",", | |
| "document_type_description", | |
| "FROM", | |
| "Ref_document_types", | |
| "WHERE", | |
| "document_type_code", | |
| "=", | |
| "``", | |
| "RV", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "document_type_name", | |
| ",", | |
| "document_type_description", | |
| "from", | |
| "ref_document_types", | |
| "where", | |
| "document_type_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ドキュメントタイプコード「RV」の名前と説明を教えてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"RV\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "document_type_code", | |
| "FROM", | |
| "Ref_document_types", | |
| "WHERE", | |
| "document_type_name", | |
| "=", | |
| "``", | |
| "Paper", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "document_type_code", | |
| "from", | |
| "ref_document_types", | |
| "where", | |
| "document_type_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "伝票タイプ「Paper」の伝票タイプコードは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Paper\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "document_type_code", | |
| "FROM", | |
| "Ref_document_types", | |
| "WHERE", | |
| "document_type_name", | |
| "=", | |
| "``", | |
| "Paper", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "document_type_code", | |
| "from", | |
| "ref_document_types", | |
| "where", | |
| "document_type_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ドキュメントタイプ「Paper」のコードを見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Paper\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM All_documents WHERE document_type_code = \"CV\" OR document_type_code = \"BK\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "All_documents", | |
| "WHERE", | |
| "document_type_code", | |
| "=", | |
| "``", | |
| "CV", | |
| "''", | |
| "OR", | |
| "document_type_code", | |
| "=", | |
| "``", | |
| "BK", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "all_documents", | |
| "where", | |
| "document_type_code", | |
| "=", | |
| "value", | |
| "or", | |
| "document_type_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ドキュメントタイプコード「CV」または「BK」のドキュメントの数を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"CV\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"BK\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM All_documents WHERE document_type_code = \"CV\" OR document_type_code = \"BK\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "All_documents", | |
| "WHERE", | |
| "document_type_code", | |
| "=", | |
| "``", | |
| "CV", | |
| "''", | |
| "OR", | |
| "document_type_code", | |
| "=", | |
| "``", | |
| "BK", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "all_documents", | |
| "where", | |
| "document_type_code", | |
| "=", | |
| "value", | |
| "or", | |
| "document_type_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ドキュメントタイプコード「CV」または「BK」のドキュメントはいくつありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"CV\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"BK\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT date_stored FROM All_documents WHERE Document_name = \"Marry CV\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "date_stored", | |
| "FROM", | |
| "All_documents", | |
| "WHERE", | |
| "Document_name", | |
| "=", | |
| "``", | |
| "Marry", | |
| "CV", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "date_stored", | |
| "from", | |
| "all_documents", | |
| "where", | |
| "document_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ドキュメント「MarryCV」が保存された日付は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Marry CV\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT date_stored FROM All_documents WHERE Document_name = \"Marry CV\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "date_stored", | |
| "FROM", | |
| "All_documents", | |
| "WHERE", | |
| "Document_name", | |
| "=", | |
| "``", | |
| "Marry", | |
| "CV", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "date_stored", | |
| "from", | |
| "all_documents", | |
| "where", | |
| "document_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「MarryCV」という名前のドキュメントはいつ保存されましたか?日付を教えてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Marry CV\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.day_Number", | |
| ",", | |
| "T1.Date_Stored", | |
| "FROM", | |
| "All_documents", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Ref_calendar", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.date_stored", | |
| "=", | |
| "T2.calendar_date" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "day_number", | |
| ",", | |
| "t1", | |
| ".", | |
| "date_stored", | |
| "from", | |
| "all_documents", | |
| "as", | |
| "t1", | |
| "join", | |
| "ref_calendar", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "date_stored", | |
| "=", | |
| "t2", | |
| ".", | |
| "calendar_date" | |
| ], | |
| "question": "すべての文書の日番号と日付は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.day_Number", | |
| ",", | |
| "T1.Date_Stored", | |
| "FROM", | |
| "All_documents", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Ref_calendar", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.date_stored", | |
| "=", | |
| "T2.calendar_date" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "day_number", | |
| ",", | |
| "t1", | |
| ".", | |
| "date_stored", | |
| "from", | |
| "all_documents", | |
| "as", | |
| "t1", | |
| "join", | |
| "ref_calendar", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "date_stored", | |
| "=", | |
| "t2", | |
| ".", | |
| "calendar_date" | |
| ], | |
| "question": "すべてのドキュメントの日番号と保存日を返します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.document_type_name", | |
| "FROM", | |
| "All_documents", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Ref_document_types", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.document_type_code", | |
| "=", | |
| "T2.document_type_code", | |
| "WHERE", | |
| "T1.document_name", | |
| "=", | |
| "``", | |
| "How", | |
| "to", | |
| "read", | |
| "a", | |
| "book", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "document_type_name", | |
| "from", | |
| "all_documents", | |
| "as", | |
| "t1", | |
| "join", | |
| "ref_document_types", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "document_type_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "document_type_code", | |
| "where", | |
| "t1", | |
| ".", | |
| "document_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「How to read a book」という名前のドキュメントのドキュメントタイプ名は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"How to read a book\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.document_type_name", | |
| "FROM", | |
| "All_documents", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Ref_document_types", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.document_type_code", | |
| "=", | |
| "T2.document_type_code", | |
| "WHERE", | |
| "T1.document_name", | |
| "=", | |
| "``", | |
| "How", | |
| "to", | |
| "read", | |
| "a", | |
| "book", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "document_type_name", | |
| "from", | |
| "all_documents", | |
| "as", | |
| "t1", | |
| "join", | |
| "ref_document_types", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "document_type_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "document_type_code", | |
| "where", | |
| "t1", | |
| ".", | |
| "document_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「How to read a book」という名前のドキュメントのドキュメントタイプ名を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"How to read a book\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM Ref_locations", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Ref_locations" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "ref_locations" | |
| ], | |
| "question": "場所の数を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM Ref_locations", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Ref_locations" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "ref_locations" | |
| ], | |
| "question": "データベースにはいくつの場所がリストされていますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code , location_name FROM Ref_locations", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| ",", | |
| "location_name", | |
| "FROM", | |
| "Ref_locations" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| ",", | |
| "location_name", | |
| "from", | |
| "ref_locations" | |
| ], | |
| "question": "すべてのロケーションコードとロケーション名を一覧表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code , location_name FROM Ref_locations", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| ",", | |
| "location_name", | |
| "FROM", | |
| "Ref_locations" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| ",", | |
| "location_name", | |
| "from", | |
| "ref_locations" | |
| ], | |
| "question": "すべてのロケーションコードとロケーション名は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_name , location_description FROM Ref_locations WHERE location_code = \"x\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_name", | |
| ",", | |
| "location_description", | |
| "FROM", | |
| "Ref_locations", | |
| "WHERE", | |
| "location_code", | |
| "=", | |
| "``", | |
| "x", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_name", | |
| ",", | |
| "location_description", | |
| "from", | |
| "ref_locations", | |
| "where", | |
| "location_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ロケーションコード「x」の名前と説明は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"x\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_name , location_description FROM Ref_locations WHERE location_code = \"x\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_name", | |
| ",", | |
| "location_description", | |
| "FROM", | |
| "Ref_locations", | |
| "WHERE", | |
| "location_code", | |
| "=", | |
| "``", | |
| "x", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_name", | |
| ",", | |
| "location_description", | |
| "from", | |
| "ref_locations", | |
| "where", | |
| "location_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "コード「x」で場所の名前と説明を教えてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"x\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code FROM Ref_locations WHERE location_name = \"Canada\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| "FROM", | |
| "Ref_locations", | |
| "WHERE", | |
| "location_name", | |
| "=", | |
| "``", | |
| "Canada", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| "from", | |
| "ref_locations", | |
| "where", | |
| "location_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "国「Canada」のロケーションコードは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canada\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code FROM Ref_locations WHERE location_name = \"Canada\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| "FROM", | |
| "Ref_locations", | |
| "WHERE", | |
| "location_name", | |
| "=", | |
| "``", | |
| "Canada", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| "from", | |
| "ref_locations", | |
| "where", | |
| "location_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "国「Canada」のロケーションコードを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canada\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM ROLES", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ROLES" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "roles" | |
| ], | |
| "question": "役割はいくつありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM ROLES", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ROLES" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "roles" | |
| ], | |
| "question": "リストされている役割の総数を数えます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_code , role_name , role_description FROM ROLES", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_code", | |
| ",", | |
| "role_name", | |
| ",", | |
| "role_description", | |
| "FROM", | |
| "ROLES" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_code", | |
| ",", | |
| "role_name", | |
| ",", | |
| "role_description", | |
| "from", | |
| "roles" | |
| ], | |
| "question": "すべての役割コード、役割名、および役割の説明をリストします。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_code , role_name , role_description FROM ROLES", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_code", | |
| ",", | |
| "role_name", | |
| ",", | |
| "role_description", | |
| "FROM", | |
| "ROLES" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_code", | |
| ",", | |
| "role_name", | |
| ",", | |
| "role_description", | |
| "from", | |
| "roles" | |
| ], | |
| "question": "すべての役割コード、役割名、および役割の説明は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_name , role_description FROM ROLES WHERE role_code = \"MG\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_name", | |
| ",", | |
| "role_description", | |
| "FROM", | |
| "ROLES", | |
| "WHERE", | |
| "role_code", | |
| "=", | |
| "``", | |
| "MG", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_name", | |
| ",", | |
| "role_description", | |
| "from", | |
| "roles", | |
| "where", | |
| "role_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "役割コード「MG」の名前と説明は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"MG\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_name , role_description FROM ROLES WHERE role_code = \"MG\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_name", | |
| ",", | |
| "role_description", | |
| "FROM", | |
| "ROLES", | |
| "WHERE", | |
| "role_code", | |
| "=", | |
| "``", | |
| "MG", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_name", | |
| ",", | |
| "role_description", | |
| "from", | |
| "roles", | |
| "where", | |
| "role_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "コード「MG」で役割の名前と説明を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"MG\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_description FROM ROLES WHERE role_name = \"Proof Reader\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_description", | |
| "FROM", | |
| "ROLES", | |
| "WHERE", | |
| "role_name", | |
| "=", | |
| "``", | |
| "Proof", | |
| "Reader", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_description", | |
| "from", | |
| "roles", | |
| "where", | |
| "role_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "役割名「Proof Reader」の説明を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Proof Reader\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_description FROM ROLES WHERE role_name = \"Proof Reader\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_description", | |
| "FROM", | |
| "ROLES", | |
| "WHERE", | |
| "role_name", | |
| "=", | |
| "``", | |
| "Proof", | |
| "Reader", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_description", | |
| "from", | |
| "roles", | |
| "where", | |
| "role_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Proof Reader」という名前の役割の説明は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Proof Reader\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM Employees", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Employees" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "employees" | |
| ], | |
| "question": "従業員は何人いますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT count(*) FROM Employees", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Employees" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "employees" | |
| ], | |
| "question": "私たちが持っている従業員の数を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'", | |
| "query_toks": [ | |
| "SELECT", | |
| "employee_name", | |
| ",", | |
| "role_code", | |
| ",", | |
| "date_of_birth", | |
| "FROM", | |
| "Employees", | |
| "WHERE", | |
| "employee_Name", | |
| "=", | |
| "'Armani", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "employee_name", | |
| ",", | |
| "role_code", | |
| ",", | |
| "date_of_birth", | |
| "from", | |
| "employees", | |
| "where", | |
| "employee_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Armani」という名前の従業員の名前、役割コード、および生年月日を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Armani\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'", | |
| "query_toks": [ | |
| "SELECT", | |
| "employee_name", | |
| ",", | |
| "role_code", | |
| ",", | |
| "date_of_birth", | |
| "FROM", | |
| "Employees", | |
| "WHERE", | |
| "employee_Name", | |
| "=", | |
| "'Armani", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "employee_name", | |
| ",", | |
| "role_code", | |
| ",", | |
| "date_of_birth", | |
| "from", | |
| "employees", | |
| "where", | |
| "employee_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Armani」という名前の従業員の名前、役割コード、および生年月日は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Armani\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT employee_ID FROM Employees WHERE employee_name = \"Ebba\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "employee_ID", | |
| "FROM", | |
| "Employees", | |
| "WHERE", | |
| "employee_name", | |
| "=", | |
| "``", | |
| "Ebba", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "employee_id", | |
| "from", | |
| "employees", | |
| "where", | |
| "employee_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Ebba」という従業員のIDは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Ebba\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT employee_ID FROM Employees WHERE employee_name = \"Ebba\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "employee_ID", | |
| "FROM", | |
| "Employees", | |
| "WHERE", | |
| "employee_name", | |
| "=", | |
| "``", | |
| "Ebba", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "employee_id", | |
| "from", | |
| "employees", | |
| "where", | |
| "employee_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Ebba」という名前の従業員のIDを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Ebba\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT employee_name FROM Employees WHERE role_code = \"HR\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "employee_name", | |
| "FROM", | |
| "Employees", | |
| "WHERE", | |
| "role_code", | |
| "=", | |
| "``", | |
| "HR", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "employee_name", | |
| "from", | |
| "employees", | |
| "where", | |
| "role_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "役割「HR」を持つすべての従業員の名前を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"HR\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT employee_name FROM Employees WHERE role_code = \"HR\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "employee_name", | |
| "FROM", | |
| "Employees", | |
| "WHERE", | |
| "role_code", | |
| "=", | |
| "``", | |
| "HR", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "employee_name", | |
| "from", | |
| "employees", | |
| "where", | |
| "role_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "コード「HR」の役割を持つ従業員は誰ですか?彼らの名前を見つけてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"HR\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT 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": "すべての役割コードと各役割の従業員数を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_code , count(*) FROM Employees GROUP BY role_code", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_code", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Employees", | |
| "GROUP", | |
| "BY", | |
| "role_code" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_code", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "employees", | |
| "group", | |
| "by", | |
| "role_code" | |
| ], | |
| "question": "各役割のコードと各役割の従業員数はどのくらいですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_code", | |
| "FROM", | |
| "Employees", | |
| "GROUP", | |
| "BY", | |
| "role_code", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_code", | |
| "from", | |
| "employees", | |
| "group", | |
| "by", | |
| "role_code", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "従業員数が最も多い役割コードは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_code", | |
| "FROM", | |
| "Employees", | |
| "GROUP", | |
| "BY", | |
| "role_code", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_code", | |
| "from", | |
| "employees", | |
| "group", | |
| "by", | |
| "role_code", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "従業員が最も多い役割のコードを見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_code", | |
| "FROM", | |
| "Employees", | |
| "GROUP", | |
| "BY", | |
| "role_code", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_code", | |
| "from", | |
| "employees", | |
| "group", | |
| "by", | |
| "role_code", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "少なくとも3人の従業員がいるすべてのロールコードを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_code", | |
| "FROM", | |
| "Employees", | |
| "GROUP", | |
| "BY", | |
| "role_code", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_code", | |
| "from", | |
| "employees", | |
| "group", | |
| "by", | |
| "role_code", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "3人以上の従業員の役割は何ですか?役割コードを教えてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_code", | |
| "FROM", | |
| "Employees", | |
| "GROUP", | |
| "BY", | |
| "role_code", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_code", | |
| "from", | |
| "employees", | |
| "group", | |
| "by", | |
| "role_code", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "従業員が最も少ない役割コードを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "role_code", | |
| "FROM", | |
| "Employees", | |
| "GROUP", | |
| "BY", | |
| "role_code", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "role_code", | |
| "from", | |
| "employees", | |
| "group", | |
| "by", | |
| "role_code", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "従業員数が最も少ない役割は何ですか?役割コードを見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = \"Ebba\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.role_name", | |
| ",", | |
| "T2.role_description", | |
| "FROM", | |
| "Employees", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ROLES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.role_code", | |
| "=", | |
| "T2.role_code", | |
| "WHERE", | |
| "T1.employee_name", | |
| "=", | |
| "``", | |
| "Ebba", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "role_name", | |
| ",", | |
| "t2", | |
| ".", | |
| "role_description", | |
| "from", | |
| "employees", | |
| "as", | |
| "t1", | |
| "join", | |
| "roles", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "role_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "role_code", | |
| "where", | |
| "t1", | |
| ".", | |
| "employee_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Ebba」という従業員の役割名と役割の説明は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Ebba\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = \"Ebba\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.role_name", | |
| ",", | |
| "T2.role_description", | |
| "FROM", | |
| "Employees", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ROLES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.role_code", | |
| "=", | |
| "T2.role_code", | |
| "WHERE", | |
| "T1.employee_name", | |
| "=", | |
| "``", | |
| "Ebba", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "role_name", | |
| ",", | |
| "t2", | |
| ".", | |
| "role_description", | |
| "from", | |
| "employees", | |
| "as", | |
| "t1", | |
| "join", | |
| "roles", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "role_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "role_code", | |
| "where", | |
| "t1", | |
| ".", | |
| "employee_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Ebba」という名前の従業員が果たした役割の名前と説明を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Ebba\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.employee_name", | |
| "FROM", | |
| "Employees", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ROLES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.role_code", | |
| "=", | |
| "T2.role_code", | |
| "WHERE", | |
| "T2.role_name", | |
| "=", | |
| "``", | |
| "Editor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "employee_name", | |
| "from", | |
| "employees", | |
| "as", | |
| "t1", | |
| "join", | |
| "roles", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "role_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "role_code", | |
| "where", | |
| "t2", | |
| ".", | |
| "role_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "役割名「Editor」で従業員の名前を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Editor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.employee_name", | |
| "FROM", | |
| "Employees", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ROLES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.role_code", | |
| "=", | |
| "T2.role_code", | |
| "WHERE", | |
| "T2.role_name", | |
| "=", | |
| "``", | |
| "Editor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "employee_name", | |
| "from", | |
| "employees", | |
| "as", | |
| "t1", | |
| "join", | |
| "roles", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "role_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "role_code", | |
| "where", | |
| "t2", | |
| ".", | |
| "role_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "役割名が「Editor」であるすべての従業員の名前を検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Editor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.employee_id", | |
| "FROM", | |
| "Employees", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ROLES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.role_code", | |
| "=", | |
| "T2.role_code", | |
| "WHERE", | |
| "T2.role_name", | |
| "=", | |
| "``", | |
| "Human", | |
| "Resource", | |
| "''", | |
| "OR", | |
| "T2.role_name", | |
| "=", | |
| "``", | |
| "Manager", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "employee_id", | |
| "from", | |
| "employees", | |
| "as", | |
| "t1", | |
| "join", | |
| "roles", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "role_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "role_code", | |
| "where", | |
| "t2", | |
| ".", | |
| "role_name", | |
| "=", | |
| "value", | |
| "or", | |
| "t2", | |
| ".", | |
| "role_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ロール名が「HumanResource」または「Manager」のすべての従業員の従業員IDを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Human Resource\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Manager\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.employee_id", | |
| "FROM", | |
| "Employees", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ROLES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.role_code", | |
| "=", | |
| "T2.role_code", | |
| "WHERE", | |
| "T2.role_name", | |
| "=", | |
| "``", | |
| "Human", | |
| "Resource", | |
| "''", | |
| "OR", | |
| "T2.role_name", | |
| "=", | |
| "``", | |
| "Manager", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "employee_id", | |
| "from", | |
| "employees", | |
| "as", | |
| "t1", | |
| "join", | |
| "roles", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "role_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "role_code", | |
| "where", | |
| "t2", | |
| ".", | |
| "role_name", | |
| "=", | |
| "value", | |
| "or", | |
| "t2", | |
| ".", | |
| "role_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "役割名が「Human Resource」または「マネージャー」である従業員の従業員IDは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Human Resource\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Manager\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT DISTINCT location_code FROM Document_locations", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "location_code", | |
| "FROM", | |
| "Document_locations" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "location_code", | |
| "from", | |
| "document_locations" | |
| ], | |
| "question": "ドキュメントのさまざまなロケーションコードは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT DISTINCT location_code FROM Document_locations", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "location_code", | |
| "FROM", | |
| "Document_locations" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "location_code", | |
| "from", | |
| "document_locations" | |
| ], | |
| "question": "ドキュメントの個別のロケーションコードをすべて教えてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.location_name", | |
| "FROM", | |
| "All_documents", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Document_locations", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.document_id", | |
| "=", | |
| "T2.document_id", | |
| "JOIN", | |
| "Ref_locations", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.location_code", | |
| "=", | |
| "T3.location_code", | |
| "WHERE", | |
| "T1.document_name", | |
| "=", | |
| "``", | |
| "Robin", | |
| "CV", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "location_name", | |
| "from", | |
| "all_documents", | |
| "as", | |
| "t1", | |
| "join", | |
| "document_locations", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "document_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "document_id", | |
| "join", | |
| "ref_locations", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "location_code", | |
| "=", | |
| "t3", | |
| ".", | |
| "location_code", | |
| "where", | |
| "t1", | |
| ".", | |
| "document_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ドキュメント「RobinCV」の場所の名前を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Robin CV\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.location_name", | |
| "FROM", | |
| "All_documents", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Document_locations", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.document_id", | |
| "=", | |
| "T2.document_id", | |
| "JOIN", | |
| "Ref_locations", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.location_code", | |
| "=", | |
| "T3.location_code", | |
| "WHERE", | |
| "T1.document_name", | |
| "=", | |
| "``", | |
| "Robin", | |
| "CV", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "location_name", | |
| "from", | |
| "all_documents", | |
| "as", | |
| "t1", | |
| "join", | |
| "document_locations", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "document_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "document_id", | |
| "join", | |
| "ref_locations", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "location_code", | |
| "=", | |
| "t3", | |
| ".", | |
| "location_code", | |
| "where", | |
| "t1", | |
| ".", | |
| "document_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ドキュメント「RobinCV」の場所の名前は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Robin CV\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| ",", | |
| "date_in_location_from", | |
| ",", | |
| "date_in_locaton_to", | |
| "FROM", | |
| "Document_locations" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| ",", | |
| "date_in_location_from", | |
| ",", | |
| "date_in_locaton_to", | |
| "from", | |
| "document_locations" | |
| ], | |
| "question": "すべてのドキュメントについて、ロケーションコード、開始日、およびそのロケーションの終了データを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| ",", | |
| "date_in_location_from", | |
| ",", | |
| "date_in_locaton_to", | |
| "FROM", | |
| "Document_locations" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| ",", | |
| "date_in_location_from", | |
| ",", | |
| "date_in_locaton_to", | |
| "from", | |
| "document_locations" | |
| ], | |
| "question": "各ドキュメントのロケーションコード、およびそのロケーションの開始日と終了データは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.date_in_location_from", | |
| ",", | |
| "T1.date_in_locaton_to", | |
| "FROM", | |
| "Document_locations", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "All_documents", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.document_id", | |
| "=", | |
| "T2.document_id", | |
| "WHERE", | |
| "T2.document_name", | |
| "=", | |
| "``", | |
| "Robin", | |
| "CV", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "date_in_location_from", | |
| ",", | |
| "t1", | |
| ".", | |
| "date_in_locaton_to", | |
| "from", | |
| "document_locations", | |
| "as", | |
| "t1", | |
| "join", | |
| "all_documents", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "document_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "document_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "document_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「RobinCV」という名前のドキュメントの「the date in location from」と「the date in location to」とは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Robin CV\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.date_in_location_from", | |
| ",", | |
| "T1.date_in_locaton_to", | |
| "FROM", | |
| "Document_locations", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "All_documents", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.document_id", | |
| "=", | |
| "T2.document_id", | |
| "WHERE", | |
| "T2.document_name", | |
| "=", | |
| "``", | |
| "Robin", | |
| "CV", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "date_in_location_from", | |
| ",", | |
| "t1", | |
| ".", | |
| "date_in_locaton_to", | |
| "from", | |
| "document_locations", | |
| "as", | |
| "t1", | |
| "join", | |
| "all_documents", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "document_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "document_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "document_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「RobinCV」という名前のドキュメントの「the date in location from」と「the date in location to」を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Robin CV\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code , count(*) FROM Document_locations GROUP BY location_code", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Document_locations", | |
| "GROUP", | |
| "BY", | |
| "location_code" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "document_locations", | |
| "group", | |
| "by", | |
| "location_code" | |
| ], | |
| "question": "ロケーションコードと各ロケーションのドキュメント数を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code , count(*) FROM Document_locations GROUP BY location_code", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Document_locations", | |
| "GROUP", | |
| "BY", | |
| "location_code" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "document_locations", | |
| "group", | |
| "by", | |
| "location_code" | |
| ], | |
| "question": "各場所のコードとその場所のドキュメントの数はいくつですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| "FROM", | |
| "Document_locations", | |
| "GROUP", | |
| "BY", | |
| "location_code", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| "from", | |
| "document_locations", | |
| "group", | |
| "by", | |
| "location_code", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "最も多くのドキュメントがあるロケーションコードは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| "FROM", | |
| "Document_locations", | |
| "GROUP", | |
| "BY", | |
| "location_code", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| "from", | |
| "document_locations", | |
| "group", | |
| "by", | |
| "location_code", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "ドキュメントの数が最も多い場所のコードを見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| "FROM", | |
| "Document_locations", | |
| "GROUP", | |
| "BY", | |
| "location_code", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| "from", | |
| "document_locations", | |
| "group", | |
| "by", | |
| "location_code", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "少なくとも3つのドキュメントでロケーションコードを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "location_code", | |
| "FROM", | |
| "Document_locations", | |
| "GROUP", | |
| "BY", | |
| "location_code", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location_code", | |
| "from", | |
| "document_locations", | |
| "group", | |
| "by", | |
| "location_code", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "少なくとも3つの文書がある場所のコードは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.location_name", | |
| ",", | |
| "T1.location_code", | |
| "FROM", | |
| "Document_locations", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Ref_locations", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.location_code", | |
| "=", | |
| "T2.location_code", | |
| "GROUP", | |
| "BY", | |
| "T1.location_code", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "location_name", | |
| ",", | |
| "t1", | |
| ".", | |
| "location_code", | |
| "from", | |
| "document_locations", | |
| "as", | |
| "t1", | |
| "join", | |
| "ref_locations", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "location_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "location_code", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "location_code", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "ドキュメントが最も少ない場所の名前とコードを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.location_name", | |
| ",", | |
| "T1.location_code", | |
| "FROM", | |
| "Document_locations", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Ref_locations", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.location_code", | |
| "=", | |
| "T2.location_code", | |
| "GROUP", | |
| "BY", | |
| "T1.location_code", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "location_name", | |
| ",", | |
| "t1", | |
| ".", | |
| "location_code", | |
| "from", | |
| "document_locations", | |
| "as", | |
| "t1", | |
| "join", | |
| "ref_locations", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "location_code", | |
| "=", | |
| "t2", | |
| ".", | |
| "location_code", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "location_code", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "ドキュメントの数が最も少ない場所の名前とコードは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 25, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.employee_name", | |
| ",", | |
| "T3.employee_name", | |
| "FROM", | |
| "Documents_to_be_destroyed", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Employees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Destruction_Authorised_by_Employee_ID", | |
| "=", | |
| "T2.employee_id", | |
| "JOIN", | |
| "Employees", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Destroyed_by_Employee_ID", | |
| "=", | |
| "T3.employee_id", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "employee_name", | |
| ",", | |
| "t3", | |
| ".", | |
| "employee_name", | |
| "from", | |
| "documents_to_be_destroyed", | |
| "as", | |
| "t1", | |
| "join", | |
| "employees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "destruction_authorised_by_employee_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "employee_id", | |
| "join", | |
| "employees", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "destroyed_by_employee_id", | |
| "=", | |
| "t3", | |
| ".", | |
| "employee_id" | |
| ], | |
| "question": "破棄を許可した従業員と対応する文書を破棄した従業員の名前は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.employee_name", | |
| ",", | |
| "T3.employee_name", | |
| "FROM", | |
| "Documents_to_be_destroyed", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Employees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Destruction_Authorised_by_Employee_ID", | |
| "=", | |
| "T2.employee_id", | |
| "JOIN", | |
| "Employees", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Destroyed_by_Employee_ID", | |
| "=", | |
| "T3.employee_id", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "employee_name", | |
| ",", | |
| "t3", | |
| ".", | |
| "employee_name", | |
| "from", | |
| "documents_to_be_destroyed", | |
| "as", | |
| "t1", | |
| "join", | |
| "employees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "destruction_authorised_by_employee_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "employee_id", | |
| "join", | |
| "employees", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "destroyed_by_employee_id", | |
| "=", | |
| "t3", | |
| ".", | |
| "employee_id" | |
| ], | |
| "question": "文書の破棄を許可した従業員と対応する文書を破棄した従業員の名前をリストします。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID", | |
| "query_toks": [ | |
| "SELECT", | |
| "Destruction_Authorised_by_Employee_ID", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Documents_to_be_destroyed", | |
| "GROUP", | |
| "BY", | |
| "Destruction_Authorised_by_Employee_ID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "destruction_authorised_by_employee_id", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "documents_to_be_destroyed", | |
| "group", | |
| "by", | |
| "destruction_authorised_by_employee_id" | |
| ], | |
| "question": "各従業員のIDと、その従業員によって許可されたドキュメント破棄の数を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID", | |
| "query_toks": [ | |
| "SELECT", | |
| "Destruction_Authorised_by_Employee_ID", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Documents_to_be_destroyed", | |
| "GROUP", | |
| "BY", | |
| "Destruction_Authorised_by_Employee_ID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "destruction_authorised_by_employee_id", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "documents_to_be_destroyed", | |
| "group", | |
| "by", | |
| "destruction_authorised_by_employee_id" | |
| ], | |
| "question": "各従業員のIDと、その従業員によって許可されたドキュメント破棄の数はいくつですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID", | |
| "query_toks": [ | |
| "SELECT", | |
| "Destroyed_by_Employee_ID", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Documents_to_be_destroyed", | |
| "GROUP", | |
| "BY", | |
| "Destroyed_by_Employee_ID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "destroyed_by_employee_id", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "documents_to_be_destroyed", | |
| "group", | |
| "by", | |
| "destroyed_by_employee_id" | |
| ], | |
| "question": "従業員IDと各従業員によって破棄されたドキュメントの数を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID", | |
| "query_toks": [ | |
| "SELECT", | |
| "Destroyed_by_Employee_ID", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Documents_to_be_destroyed", | |
| "GROUP", | |
| "BY", | |
| "Destroyed_by_Employee_ID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "destroyed_by_employee_id", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "documents_to_be_destroyed", | |
| "group", | |
| "by", | |
| "destroyed_by_employee_id" | |
| ], | |
| "question": "各従業員のIDと、その従業員によって破棄されたドキュメントの数はいくつですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", | |
| "query_toks": [ | |
| "SELECT", | |
| "employee_id", | |
| "FROM", | |
| "Employees", | |
| "EXCEPT", | |
| "SELECT", | |
| "Destruction_Authorised_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "employee_id", | |
| "from", | |
| "employees", | |
| "except", | |
| "select", | |
| "destruction_authorised_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed" | |
| ], | |
| "question": "ドキュメントの破棄を許可しない従業員のIDを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", | |
| "query_toks": [ | |
| "SELECT", | |
| "employee_id", | |
| "FROM", | |
| "Employees", | |
| "EXCEPT", | |
| "SELECT", | |
| "Destruction_Authorised_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "employee_id", | |
| "from", | |
| "employees", | |
| "except", | |
| "select", | |
| "destruction_authorised_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed" | |
| ], | |
| "question": "どの従業員がドキュメントの破棄を許可していませんか?従業員IDを教えてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "Destruction_Authorised_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "destruction_authorised_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed" | |
| ], | |
| "question": "破壊を許可したすべての従業員のIDを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "Destruction_Authorised_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "destruction_authorised_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed" | |
| ], | |
| "question": "ドキュメントの破棄を許可するすべての従業員のIDは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "Destroyed_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "destroyed_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed" | |
| ], | |
| "question": "ドキュメントを破棄したすべての従業員のIDを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "Destroyed_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "destroyed_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed" | |
| ], | |
| "question": "ドキュメントを破棄したすべての従業員のIDは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", | |
| "query_toks": [ | |
| "SELECT", | |
| "employee_id", | |
| "FROM", | |
| "Employees", | |
| "EXCEPT", | |
| "SELECT", | |
| "Destroyed_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "employee_id", | |
| "from", | |
| "employees", | |
| "except", | |
| "select", | |
| "destroyed_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed" | |
| ], | |
| "question": "ドキュメントを破棄しないすべての従業員のIDを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed", | |
| "query_toks": [ | |
| "SELECT", | |
| "employee_id", | |
| "FROM", | |
| "Employees", | |
| "EXCEPT", | |
| "SELECT", | |
| "Destroyed_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "employee_id", | |
| "from", | |
| "employees", | |
| "except", | |
| "select", | |
| "destroyed_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed" | |
| ], | |
| "question": "どの従業員がドキュメントを破棄しませんか?従業員IDを見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", | |
| "query_toks": [ | |
| "SELECT", | |
| "Destroyed_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed", | |
| "UNION", | |
| "SELECT", | |
| "Destruction_Authorised_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "destroyed_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed", | |
| "union", | |
| "select", | |
| "destruction_authorised_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed" | |
| ], | |
| "question": "ドキュメントを破棄したか、これを行う権限を与えたすべての従業員のIDを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cre_Doc_Tracking_DB", | |
| "query": "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", | |
| "query_toks": [ | |
| "SELECT", | |
| "Destroyed_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed", | |
| "UNION", | |
| "SELECT", | |
| "Destruction_Authorised_by_Employee_ID", | |
| "FROM", | |
| "Documents_to_be_destroyed" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "destroyed_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed", | |
| "union", | |
| "select", | |
| "destruction_authorised_by_employee_id", | |
| "from", | |
| "documents_to_be_destroyed" | |
| ], | |
| "question": "どの従業員がドキュメントを破棄したか、またはそうすることを許可しましたか?従業員IDを返します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "except": null | |
| } | |
| } | |
| ] |