[ { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_status_code FROM Ref_Document_Status;", "query_toks": [ "SELECT", "document_status_code", "FROM", "Ref_Document_Status", ";" ], "query_toks_no_value": [ "select", "document_status_code", "from", "ref_document_status" ], "question_spider": "What document status codes do we have?", "question": "我们有什么文档状态代码?", "question_cspider": "我们有什么文档状态代码?", "Harold": "BLEU = 0.00, 72.7/40.0/11.1/0.0 (BP=0.913, ratio=0.917, hyp_len=11, ref_len=12)", "question_toks": [ "我", "们", "有", "哪", "些", "文", "件", "状", "态", "码", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = \"working\";", "query_toks": [ "SELECT", "document_status_description", "FROM", "Ref_Document_Status", "WHERE", "document_status_code", "=", "``", "working", "''", ";" ], "query_toks_no_value": [ "select", "document_status_description", "from", "ref_document_status", "where", "document_status_code", "=", "value" ], "question_spider": "What is the description of document status code 'working'?", "question": "文档状态代码“working”的描述是什么?", "question_cspider": "文档状态代码“工作”的描述是什么?", "Harold": "BLEU = 83.20, 100.0/93.3/85.7/76.9 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", "question_toks": [ "文", "档", "状", "态", "码", "“", "工", "作", "”", "的", "描", "述", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"working\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_type_code FROM Ref_Document_Types;", "query_toks": [ "SELECT", "document_type_code", "FROM", "Ref_Document_Types", ";" ], "query_toks_no_value": [ "select", "document_type_code", "from", "ref_document_types" ], "question_spider": "What document type codes do we have?", "question": "我们有什么文档类型代码?", "question_cspider": "我们有什么文档类型代码?", "Harold": "BLEU = 73.49, 91.7/81.8/70.0/55.6 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", "question_toks": [ "我", "们", "有", "什", "么", "文", "件", "类", "型", "代", "码", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = \"Paper\";", "query_toks": [ "SELECT", "document_type_description", "FROM", "Ref_Document_Types", "WHERE", "document_type_code", "=", "``", "Paper", "''", ";" ], "query_toks_no_value": [ "select", "document_type_description", "from", "ref_document_types", "where", "document_type_code", "=", "value" ], "question_spider": "What is the description of document type 'Paper'?", "question": "文档类型“Paper”的描述是什么?", "question_cspider": "文档类型“Paper”的描述是什么?", "Harold": "BLEU = 72.42, 86.7/78.6/69.2/58.3 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", "question_toks": [ "文", "档", "类", "型", "“", "纸", "张", "”", "的", "描", "述", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Paper\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT shipping_agent_name FROM Ref_Shipping_Agents;", "query_toks": [ "SELECT", "shipping_agent_name", "FROM", "Ref_Shipping_Agents", ";" ], "query_toks_no_value": [ "select", "shipping_agent_name", "from", "ref_shipping_agents" ], "question_spider": "What are the shipping agent names?", "question": "运输代理名称是什么?", "question_cspider": "运输代理名称是什么?", "Harold": "BLEU = 53.48, 81.8/60.0/44.4/37.5 (BP=1.000, ratio=1.100, hyp_len=11, ref_len=10)", "question_toks": [ "货", "运", "代", "理", "的", "名", "称", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = \"UPS\";", "query_toks": [ "SELECT", "shipping_agent_code", "FROM", "Ref_Shipping_Agents", "WHERE", "shipping_agent_name", "=", "``", "UPS", "''", ";" ], "query_toks_no_value": [ "select", "shipping_agent_code", "from", "ref_shipping_agents", "where", "shipping_agent_name", "=", "value" ], "question_spider": "What is the shipping agent code of shipping agent UPS?", "question": "“UPS”船舶代理的运输代理代码是什么?", "question_cspider": "“USPS”船舶代理的运输代理代码是什么?", "Harold": "BLEU = 29.03, 60.0/36.8/22.2/17.6 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)", "question_toks": [ "货", "运", "代", "理", "商", "U", "P", "S", "的", "货", "运", "代", "理", "商", "代", "码", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"UPS\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT role_code FROM ROLES;", "query_toks": [ "SELECT", "role_code", "FROM", "ROLES", ";" ], "query_toks_no_value": [ "select", "role_code", "from", "roles" ], "question_spider": "What are all role codes?", "question": "什么是所有角色代码?", "question_cspider": "什么是所有角色代码?", "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", "question_toks": [ "什", "么", "是", "所", "有", "角", "色", "代", "码", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT role_description FROM ROLES WHERE role_code = \"ED\";", "query_toks": [ "SELECT", "role_description", "FROM", "ROLES", "WHERE", "role_code", "=", "``", "ED", "''", ";" ], "query_toks_no_value": [ "select", "role_description", "from", "roles", "where", "role_code", "=", "value" ], "question_spider": "What is the description of role code ED?", "question": "角色代码为“ED”的描述是什么?", "question_cspider": "角色代码为“ED”的描述是什么?", "Harold": "BLEU = 56.97, 100.0/83.3/63.6/50.0 (BP=0.794, ratio=0.812, hyp_len=13, ref_len=16)", "question_toks": [ "角", "色", "代", "码", "E", "D", "的", "描", "述", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"ED\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT count(*) FROM Employees;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Employees", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employees" ], "question_spider": "How many employees do we have?", "question": "我们有多少员工?", "question_cspider": "我们有多少员工?", "Harold": "BLEU = 59.69, 88.9/75.0/57.1/33.3 (BP=1.000, ratio=1.125, hyp_len=9, ref_len=8)", "question_toks": [ "我", "们", "有", "多", "少", "名", "员", "工", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "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_Control_Systems", "query": "SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = \"Koby\";", "query_toks": [ "SELECT", "T1.role_description", "FROM", "ROLES", "AS", "T1", "JOIN", "Employees", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "WHERE", "T2.employee_name", "=", "``", "Koby", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "role_description", "from", "roles", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "where", "t2", ".", "employee_name", "=", "value" ], "question_spider": "What is the role of the employee named Koby?", "question": "雇员“Koby”的角色是什么?", "question_cspider": "雇员“Koby”的角色是什么?", "Harold": "BLEU = 38.50, 50.0/40.0/35.7/30.8 (BP=1.000, ratio=1.231, hyp_len=16, ref_len=13)", "question_toks": [ "名", "为", "K", "o", "b", "y", "的", "员", "工", "的", "角", "色", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 20, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"Koby\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id , receipt_date FROM Documents;", "query_toks": [ "SELECT", "document_id", ",", "receipt_date", "FROM", "Documents", ";" ], "query_toks_no_value": [ "select", "document_id", ",", "receipt_date", "from", "documents" ], "question_spider": "List all document ids and receipt dates of documents.", "question": "列出文件的所有ID和收据日期。", "question_cspider": "列出文件的所有ID和收据日期。", "Harold": "BLEU = 0.00, 82.4/50.0/20.0/0.0 (BP=1.000, ratio=1.133, hyp_len=17, ref_len=15)", "question_toks": [ "列", "出", "所", "有", "文", "件", "I", "D", "和", "文", "件", "的", "接", "收", "日", "期", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT T1.role_description , T2.role_code , count(*) FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code;", "query_toks": [ "SELECT", "T1.role_description", ",", "T2.role_code", ",", "count", "(", "*", ")", "FROM", "ROLES", "AS", "T1", "JOIN", "Employees", "AS", "T2", "ON", "T1.role_code", "=", "T2.role_code", "GROUP", "BY", "T2.role_code", ";" ], "query_toks_no_value": [ "select", "t1", ".", "role_description", ",", "t2", ".", "role_code", ",", "count", "(", "*", ")", "from", "roles", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "role_code", "=", "t2", ".", "role_code", "group", "by", "t2", ".", "role_code" ], "question_spider": "How many employees does each role have? List role description, id and number of employees.", "question": "每个角色有多少员工?列出员工的角色描述、ID和数量。", "question_cspider": "每个角色有多少员工?列出员工的角色描述、ID和数量。", "Harold": "BLEU = 53.01, 88.5/64.0/45.8/30.4 (BP=1.000, ratio=1.000, hyp_len=26, ref_len=26)", "question_toks": [ "每", "个", "角", "色", "有", "多", "少", "名", "员", "工", "?", "列", "出", "角", "色", "描", "述", ",", "I", "D", "和", "员", "工", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 20, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 20, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Roles.role_description , count(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING count(Employees.employee_id) > 1;", "query_toks": [ "SELECT", "Roles.role_description", ",", "count", "(", "Employees.employee_id", ")", "FROM", "ROLES", "JOIN", "Employees", "ON", "Employees.role_code", "=", "Roles.role_code", "GROUP", "BY", "Employees.role_code", "HAVING", "count", "(", "Employees.employee_id", ")", ">", "1", ";" ], "query_toks_no_value": [ "select", "roles.role_description", ",", "count", "(", "employees.employee_id", ")", "from", "roles", "join", "employees", "on", "employees.role_code", "=", "roles.role_code", "group", "by", "employees.role_code", "having", "count", "(", "employees.employee_id", ")", ">", "value" ], "question_spider": "List roles that have more than one employee. List the role description and number of employees.", "question": "列出具有不止一个雇员的角色,并列出角色描述和员工的人数。", "question_cspider": "列出具有不止一个雇员的角色,并列出角色描述和员工的人数。", "Harold": "BLEU = 29.87, 79.2/56.5/36.4/9.5 (BP=0.846, ratio=0.857, hyp_len=24, ref_len=28)", "question_toks": [ "列", "出", "具", "有", "多", "个", "员", "工", "的", "角", "色", "。", "列", "出", "角", "色", "说", "明", "和", "员", "工", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 20, false ] ], "having": [ [ false, 3, [ 0, [ 3, 19, false ], null ], 1, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1;", "query_toks": [ "SELECT", "Ref_Document_Status.document_status_description", "FROM", "Ref_Document_Status", "JOIN", "Documents", "ON", "Documents.document_status_code", "=", "Ref_Document_Status.document_status_code", "WHERE", "Documents.document_id", "=", "1", ";" ], "query_toks_no_value": [ "select", "ref_document_status.document_status_description", "from", "ref_document_status", "join", "documents", "on", "documents.document_status_code", "=", "ref_document_status.document_status_code", "where", "documents.document_id", "=", "value" ], "question_spider": "What is the document status description of the document with id 1?", "question": "ID为1的文档的文档状态描述是什么?", "question_cspider": "ID为1的文档的文档状态描述是什么?", "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", "question_toks": [ "I", "D", "为", "1", "的", "文", "档", "的", "文", "档", "状", "态", "描", "述", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], 1, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT count(*) FROM Documents WHERE document_status_code = \"done\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents", "where", "document_status_code", "=", "value" ], "question_spider": "How many documents have the status code done?", "question": "有多少文档的状态代码是完成状态?", "question_cspider": "有多少文档的状态代码是完成状态?", "Harold": "BLEU = 0.00, 75.0/27.3/0.0/0.0 (BP=0.717, ratio=0.750, hyp_len=12, ref_len=16)", "question_toks": [ "状", "态", "码", "完", "成", "了", "多", "少", "个", "文", "件", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"done\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_type_code FROM Documents WHERE document_id = 2;", "query_toks": [ "SELECT", "document_type_code", "FROM", "Documents", "WHERE", "document_id", "=", "2", ";" ], "query_toks_no_value": [ "select", "document_type_code", "from", "documents", "where", "document_id", "=", "value" ], "question_spider": "List the document type code for the document with the id 2.", "question": "列出ID是2的文档的文档类型代码。", "question_cspider": "列出ID是2的文档的文档类型代码。", "Harold": "BLEU = 82.82, 94.1/87.5/80.0/71.4 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", "question_toks": [ "列", "出", "I", "D", "为", "2", "的", "文", "档", "的", "文", "档", "类", "型", "代", "码", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], 2, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\";", "query_toks": [ "SELECT", "document_id", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", "AND", "document_type_code", "=", "``", "Paper", "''", ";" ], "query_toks_no_value": [ "select", "document_id", "from", "documents", "where", "document_status_code", "=", "value", "and", "document_type_code", "=", "value" ], "question_spider": "List the document ids for any documents with the status code done and the type code paper.", "question": "列出具有完成状态代码和类型代码为论文的所有文档的文档ID。", "question_cspider": "列出具有完成状态代码和类型代码为论文的所有文档的文档ID。", "Harold": "BLEU = 34.08, 75.0/48.1/26.9/16.0 (BP=0.965, ratio=0.966, hyp_len=28, ref_len=29)", "question_toks": [ "列", "出", "所", "有", "文", "档", ",", "其", "中", "包", "含", "状", "态", "码", "已", "完", "成", "和", "类", "型", "码", "纸", "的", "文", "档", "I", "D", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"done\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Paper\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2;", "query_toks": [ "SELECT", "Ref_Shipping_Agents.shipping_agent_name", "FROM", "Ref_Shipping_Agents", "JOIN", "Documents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "WHERE", "Documents.document_id", "=", "2", ";" ], "query_toks_no_value": [ "select", "ref_shipping_agents.shipping_agent_name", "from", "ref_shipping_agents", "join", "documents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "where", "documents.document_id", "=", "value" ], "question_spider": "What is the name of the shipping agent of the document with id 2?", "question": "ID为2的文件的运输代理的名称是什么?", "question_cspider": "ID为2的文件的运输代理的名称是什么?", "Harold": "BLEU = 63.75, 84.2/66.7/58.8/50.0 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", "question_toks": [ "I", "D", "为", "2", "的", "单", "据", "的", "货", "运", "代", "理", "的", "名", "称", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], 2, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT count(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Ref_Shipping_Agents", "JOIN", "Documents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "WHERE", "Ref_Shipping_Agents.shipping_agent_name", "=", "``", "USPS", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ref_shipping_agents", "join", "documents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "where", "ref_shipping_agents.shipping_agent_name", "=", "value" ], "question_spider": "How many documents were shipped by USPS?", "question": "“USPS”公司运送了多少份文件?", "question_cspider": "“USPS”公司运送了多少份文件?", "Harold": "BLEU = 27.95, 66.7/54.5/40.0/22.2 (BP=0.659, ratio=0.706, hyp_len=12, ref_len=17)", "question_toks": [ "U", "S", "P", "S", "运", "送", "了", "多", "少", "文", "件", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"USPS\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Ref_Shipping_Agents.shipping_agent_name , count(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY count(Documents.document_id) DESC LIMIT 1;", "query_toks": [ "SELECT", "Ref_Shipping_Agents.shipping_agent_name", ",", "count", "(", "Documents.document_id", ")", "FROM", "Ref_Shipping_Agents", "JOIN", "Documents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "GROUP", "BY", "Ref_Shipping_Agents.shipping_agent_code", "ORDER", "BY", "count", "(", "Documents.document_id", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "ref_shipping_agents.shipping_agent_name", ",", "count", "(", "documents.document_id", ")", "from", "ref_shipping_agents", "join", "documents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "group", "by", "ref_shipping_agents.shipping_agent_code", "order", "by", "count", "(", "documents.document_id", ")", "desc", "limit", "value" ], "question_spider": "Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.", "question": "哪一个运输代理运送了最多的文件?列出运输代理名称和文件数量。", "question_cspider": "哪一个运输代理运送了最多的文件?列出运输代理名称和文件数量。", "Harold": "BLEU = 59.87, 90.3/70.0/51.7/39.3 (BP=1.000, ratio=1.033, hyp_len=31, ref_len=30)", "question_toks": [ "哪", "个", "运", "输", "代", "理", "商", "运", "送", "的", "文", "件", "最", "多", "?", "列", "出", "运", "输", "代", "理", "商", "的", "名", "称", "和", "文", "件", "数", "量", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 12, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT receipt_date FROM Documents WHERE document_id = 3;", "query_toks": [ "SELECT", "receipt_date", "FROM", "Documents", "WHERE", "document_id", "=", "3", ";" ], "query_toks_no_value": [ "select", "receipt_date", "from", "documents", "where", "document_id", "=", "value" ], "question_spider": "What is the receipt date of the document with id 3?", "question": "文件ID为3的收据日期是什么?", "question_cspider": "文件ID为3的收据日期是什么?", "Harold": "BLEU = 55.33, 81.2/60.0/50.0/38.5 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", "question_toks": [ "I", "D", "为", "3", "的", "单", "据", "的", "接", "收", "日", "期", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], 3, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4;", "query_toks": [ "SELECT", "Addresses.address_details", "FROM", "Addresses", "JOIN", "Documents_Mailed", "ON", "Documents_Mailed.mailed_to_address_id", "=", "Addresses.address_id", "WHERE", "document_id", "=", "4", ";" ], "query_toks_no_value": [ "select", "addresses.address_details", "from", "addresses", "join", "documents_mailed", "on", "documents_mailed.mailed_to_address_id", "=", "addresses.address_id", "where", "document_id", "=", "value" ], "question_spider": "What address was the document with id 4 mailed to?", "question": "ID为4的文件的邮寄地址是什么?", "question_cspider": "ID为4的文件的邮寄地址是什么?", "Harold": "BLEU = 38.34, 73.3/50.0/30.8/25.0 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", "question_toks": [ "I", "D", "为", "4", "的", "文", "档", "邮", "寄", "到", "哪", "个", "地", "址", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ], "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 33, false ], null ], 4, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7;", "query_toks": [ "SELECT", "mailing_date", "FROM", "Documents_Mailed", "WHERE", "document_id", "=", "7", ";" ], "query_toks_no_value": [ "select", "mailing_date", "from", "documents_mailed", "where", "document_id", "=", "value" ], "question_spider": "What is the mail date of the document with id 7?", "question": "ID 7的文件的邮寄日期是什么?", "question_cspider": "ID 7的文件的邮寄日期是什么?", "Harold": "BLEU = 64.14, 87.5/73.3/57.1/46.2 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", "question_toks": [ "I", "D", "为", "7", "的", "文", "档", "的", "邮", "寄", "日", "期", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 33, false ], null ], 7, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";", "query_toks": [ "SELECT", "document_id", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", "AND", "document_type_code", "=", "``", "Paper", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents", "JOIN", "Ref_Shipping_Agents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "WHERE", "Ref_Shipping_Agents.shipping_agent_name", "=", "``", "USPS", "''", ";" ], "query_toks_no_value": [ "select", "document_id", "from", "documents", "where", "document_status_code", "=", "value", "and", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents", "join", "ref_shipping_agents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "where", "ref_shipping_agents.shipping_agent_name", "=", "value" ], "question_spider": "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.", "question": "列出具有完成状态和“Paper”类型且不是由名为“USPS”公司代理运输的文件的文件ID。", "question_cspider": "列出具有完成状态和“Paper”类型且不是由名为“USPS”公司代理运输的文件的文件ID。", "Harold": "BLEU = 0.00, 52.3/23.3/0.0/0.0 (BP=1.000, ratio=1.048, hyp_len=44, ref_len=42)", "question_toks": [ "列", "出", "状", "态", "为", "“", "已", "完", "成", "”", "的", "文", "档", "的", "文", "档", "I", "D", ",", "并", "键", "入", "“", "纸", "张", "”", "(", "名", "为", "U", "S", "P", "S", "的", "运", "输", "代", "理", "商", "未", "提", "供", ")", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"done\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Paper\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"USPS\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";", "query_toks": [ "SELECT", "document_id", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", "AND", "document_type_code", "=", "``", "Paper", "''", "INTERSECT", "SELECT", "document_id", "FROM", "Documents", "JOIN", "Ref_Shipping_Agents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "WHERE", "Ref_Shipping_Agents.shipping_agent_name", "=", "``", "USPS", "''", ";" ], "query_toks_no_value": [ "select", "document_id", "from", "documents", "where", "document_status_code", "=", "value", "and", "document_type_code", "=", "value", "intersect", "select", "document_id", "from", "documents", "join", "ref_shipping_agents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "where", "ref_shipping_agents.shipping_agent_name", "=", "value" ], "question_spider": "List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.", "question": "列出不是由名为“USPS”运输代理且具有完成状态和“Paper”类型运输的文件的文件ID。", "question_cspider": "列出不是由名为“USPS”运输代理且具有完成状态和“Paper”类型运输的文件的文件ID。", "Harold": "BLEU = 11.26, 45.7/22.2/6.8/2.3 (BP=1.000, ratio=1.095, hyp_len=46, ref_len=42)", "question_toks": [ "列", "出", "单", "据", "状", "态", "的", "单", "据", "I", "D", ",", "并", "且", "单", "据", "类", "型", "为", "P", "a", "p", "e", "r", ",", "并", "且", "该", "单", "据", "由", "名", "为", "U", "S", "P", "S", "的", "运", "输", "代", "理", "商", "运", "输", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"done\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Paper\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"USPS\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT draft_details FROM Document_Drafts WHERE document_id = 7;", "query_toks": [ "SELECT", "draft_details", "FROM", "Document_Drafts", "WHERE", "document_id", "=", "7", ";" ], "query_toks_no_value": [ "select", "draft_details", "from", "document_drafts", "where", "document_id", "=", "value" ], "question_spider": "What is draft detail of the document with id 7?", "question": "文档ID为7的草稿信息是什么?", "question_cspider": "文档ID为7的草稿信息是什么?", "Harold": "BLEU = 55.96, 83.3/70.6/50.0/33.3 (BP=1.000, ratio=1.200, hyp_len=18, ref_len=15)", "question_toks": [ "I", "D", "为", "7", "的", "文", "档", "的", "草", "稿", "详", "细", "信", "息", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], 7, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT count(*) FROM Draft_Copies WHERE document_id = 2;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Draft_Copies", "WHERE", "document_id", "=", "2", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "draft_copies", "where", "document_id", "=", "value" ], "question_spider": "How many draft copies does the document with id 2 have?", "question": "ID为2的文件有多少份草稿?", "question_cspider": "ID为2的文件有多少份草稿?", "Harold": "BLEU = 78.25, 92.9/84.6/75.0/63.6 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", "question_toks": [ "I", "D", "为", "2", "的", "文", "档", "有", "多", "少", "份", "草", "稿", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], 2, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id , count(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY count(copy_number) DESC LIMIT 1;", "query_toks": [ "SELECT", "document_id", ",", "count", "(", "copy_number", ")", "FROM", "Draft_Copies", "GROUP", "BY", "document_id", "ORDER", "BY", "count", "(", "copy_number", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "document_id", ",", "count", "(", "copy_number", ")", "from", "draft_copies", "group", "by", "document_id", "order", "by", "count", "(", "copy_number", ")", "desc", "limit", "value" ], "question_spider": "Which document has the most draft copies? List its document id and number of draft copies.", "question": "哪份文件的草稿最多?列出其文件ID和草稿的数量。", "question_cspider": "哪份文件的草稿最多?列出其文件ID和草稿的数量。", "Harold": "BLEU = 51.19, 76.9/56.0/45.8/34.8 (BP=1.000, ratio=1.083, hyp_len=26, ref_len=24)", "question_toks": [ "哪", "个", "文", "件", "的", "草", "稿", "副", "本", "最", "多", "?", "列", "出", "其", "文", "档", "I", "D", "和", "草", "稿", "副", "本", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 3, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 26, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 28, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id , count(*) FROM Draft_Copies GROUP BY document_id HAVING count(*) > 1;", "query_toks": [ "SELECT", "document_id", ",", "count", "(", "*", ")", "FROM", "Draft_Copies", "GROUP", "BY", "document_id", "HAVING", "count", "(", "*", ")", ">", "1", ";" ], "query_toks_no_value": [ "select", "document_id", ",", "count", "(", "*", ")", "from", "draft_copies", "group", "by", "document_id", "having", "count", "(", "*", ")", ">", "value" ], "question_spider": "Which documents have more than 1 draft copies? List document id and number of draft copies.", "question": "哪些文件有超过1份草稿?列出文件ID和草稿的数量。", "question_cspider": "哪些文件有超过1份草稿?列出文件ID和草稿的数量。", "Harold": "BLEU = 52.69, 76.0/58.3/47.8/36.4 (BP=1.000, ratio=1.000, hyp_len=25, ref_len=25)", "question_toks": [ "哪", "些", "文", "件", "有", "多", "于", "1", "份", "草", "稿", "?", "列", "出", "文", "件", "编", "号", "和", "草", "稿", "副", "本", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 26, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1;", "query_toks": [ "SELECT", "Employees.employee_name", "FROM", "Employees", "JOIN", "Circulation_History", "ON", "Circulation_History.employee_id", "=", "Employees.employee_id", "WHERE", "Circulation_History.document_id", "=", "1", ";" ], "query_toks_no_value": [ "select", "employees.employee_name", "from", "employees", "join", "circulation_history", "on", "circulation_history.employee_id", "=", "employees.employee_id", "where", "circulation_history.document_id", "=", "value" ], "question_spider": "List all employees in the circulation history of the document with id 1. List the employee's name.", "question": "列出出现在文档id为1的流通文件上的员工的姓名。", "question_cspider": "列出出现在文档id为1的流通文件上的员工的姓名。", "Harold": "BLEU = 32.73, 58.6/39.3/25.9/19.2 (BP=1.000, ratio=1.208, hyp_len=29, ref_len=24)", "question_toks": [ "列", "出", "I", "D", "为", "1", "的", "文", "档", "的", "发", "行", "历", "史", "中", "的", "所", "有", "员", "工", "。", "列", "出", "员", "工", "的", "姓", "名", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 19, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], 1, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id", "query_toks": [ "SELECT", "employee_name", "FROM", "Employees", "EXCEPT", "SELECT", "Employees.employee_name", "FROM", "Employees", "JOIN", "Circulation_History", "ON", "Circulation_History.employee_id", "=", "Employees.employee_id" ], "query_toks_no_value": [ "select", "employee_name", "from", "employees", "except", "select", "employees.employee_name", "from", "employees", "join", "circulation_history", "on", "circulation_history.employee_id", "=", "employees.employee_id" ], "question_spider": "List the employees who have not showed up in any circulation history of documents. List the employee's name.", "question": "列出没有出现在任何流通文件上的员工的姓名。", "question_cspider": "列出没有出现在任何流通文件上的员工的姓名。", "Harold": "BLEU = 36.75, 59.3/46.2/32.0/20.8 (BP=1.000, ratio=1.286, hyp_len=27, ref_len=21)", "question_toks": [ "列", "出", "未", "出", "现", "在", "任", "何", "文", "件", "分", "发", "历", "史", "中", "的", "员", "工", "。", "列", "出", "员", "工", "的", "姓", "名", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 19, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT Employees.employee_name , count(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id , Circulation_History.draft_number , Circulation_History.copy_number ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "Employees.employee_name", ",", "count", "(", "*", ")", "FROM", "Employees", "JOIN", "Circulation_History", "ON", "Circulation_History.employee_id", "=", "Employees.employee_id", "GROUP", "BY", "Circulation_History.document_id", ",", "Circulation_History.draft_number", ",", "Circulation_History.copy_number", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "employees.employee_name", ",", "count", "(", "*", ")", "from", "employees", "join", "circulation_history", "on", "circulation_history.employee_id", "=", "employees.employee_id", "group", "by", "circulation_history.document_id", ",", "circulation_history.draft_number", ",", "circulation_history.copy_number", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question_spider": "Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.", "question": "哪个雇员在流通文件中出现的最多。列出员工姓名、文件草稿和复印件的数量。", "question_cspider": "哪个雇员在流通文件中出现的最多。列出员工姓名、文件草稿和复印件的数量。", "Harold": "BLEU = 36.68, 71.1/48.6/30.6/17.1 (BP=1.000, ratio=1.086, hyp_len=38, ref_len=35)", "question_toks": [ "大", "多", "数", "流", "通", "历", "史", "记", "录", "文", "件", "中", "出", "现", "了", "哪", "个", "雇", "员", "。", "列", "出", "员", "工", "的", "姓", "名", "以", "及", "草", "稿", "和", "副", "本", "的", "数", "量", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 19, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 29, false ], [ 0, 30, false ], [ 0, 31, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "cre_Doc_Control_Systems", "query": "SELECT document_id , count(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id;", "query_toks": [ "SELECT", "document_id", ",", "count", "(", "DISTINCT", "employee_id", ")", "FROM", "Circulation_History", "GROUP", "BY", "document_id", ";" ], "query_toks_no_value": [ "select", "document_id", ",", "count", "(", "distinct", "employee_id", ")", "from", "circulation_history", "group", "by", "document_id" ], "question_spider": "For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.", "question": "对于每个文档,列出在该文档的流通史中出现的雇员人数、文档ID和员工数量。", "question_cspider": "对于每个文档,列出在该文档的流通史中出现的雇员人数、文档ID和员工数量。", "Harold": "BLEU = 48.21, 76.3/54.1/41.7/31.4 (BP=1.000, ratio=1.056, hyp_len=38, ref_len=36)", "question_toks": [ "对", "于", "每", "个", "文", "档", ",", "列", "出", "该", "文", "档", "的", "分", "发", "历", "史", "中", "显", "示", "的", "员", "工", "数", "量", "。", "列", "出", "文", "件", "I", "D", "和", "员", "工", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 3, [ 0, [ 0, 32, true ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 29, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } ]