dreamerdeo's picture
Upload folder using huggingface_hub
1faca1c
[
{
"db_id": "assets_maintenance",
"query": "SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count(*) = 2 INTERSECT SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count(*) < 2",
"query_toks": [
"SELECT",
"T1.asset_id",
",",
"T1.asset_details",
"FROM",
"Assets",
"AS",
"T1",
"JOIN",
"Asset_Parts",
"AS",
"T2",
"ON",
"T1.asset_id",
"=",
"T2.asset_id",
"GROUP",
"BY",
"T1.asset_id",
"HAVING",
"count",
"(",
"*",
")",
"=",
"2",
"INTERSECT",
"SELECT",
"T1.asset_id",
",",
"T1.asset_details",
"FROM",
"Assets",
"AS",
"T1",
"JOIN",
"Fault_Log",
"AS",
"T2",
"ON",
"T1.asset_id",
"=",
"T2.asset_id",
"GROUP",
"BY",
"T1.asset_id",
"HAVING",
"count",
"(",
"*",
")",
"<",
"2"
],
"query_toks_no_value": [
"select",
"t1",
".",
"asset_id",
",",
"t1",
".",
"asset_details",
"from",
"assets",
"as",
"t1",
"join",
"asset_parts",
"as",
"t2",
"on",
"t1",
".",
"asset_id",
"=",
"t2",
".",
"asset_id",
"group",
"by",
"t1",
".",
"asset_id",
"having",
"count",
"(",
"*",
")",
"=",
"value",
"intersect",
"select",
"t1",
".",
"asset_id",
",",
"t1",
".",
"asset_details",
"from",
"assets",
"as",
"t1",
"join",
"fault_log",
"as",
"t2",
"on",
"t1",
".",
"asset_id",
"=",
"t2",
".",
"asset_id",
"group",
"by",
"t1",
".",
"asset_id",
"having",
"count",
"(",
"*",
")",
"<",
"value"
],
"question_spider": "Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.",
"question": "哪些资产有2个部分并且故障日志少于2?列出资产ID和详细信息。",
"question_cspider": "哪些资产有2个部分并且故障日志少于2?列出资产ID和详细信息。",
"Harold": "BLEU = 74.13, 96.8/83.3/65.5/57.1 (BP=1.000, ratio=1.000, hyp_len=31, ref_len=31)",
"question_toks": [
"哪",
"些",
"资",
"产",
"具",
"有",
"2",
"部",
"分",
"且",
"故",
"障",
"日",
"志",
"少",
"于",
"2",
"个",
"?",
"列",
"出",
"资",
"产",
"I",
"D",
"和",
"详",
"细",
"信",
"息",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
6
]
],
"conds": [
[
false,
2,
[
0,
[
0,
23,
false
],
null
],
[
0,
42,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
23,
false
],
null
]
],
[
0,
[
0,
[
0,
26,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
23,
false
]
],
"having": [
[
false,
2,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
9
]
],
"conds": [
[
false,
2,
[
0,
[
0,
23,
false
],
null
],
[
0,
42,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
23,
false
],
null
]
],
[
0,
[
0,
[
0,
26,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
23,
false
]
],
"having": [
[
false,
4,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT count(*) , T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
",",
"T1.maintenance_contract_id",
"FROM",
"Maintenance_Contracts",
"AS",
"T1",
"JOIN",
"Assets",
"AS",
"T2",
"ON",
"T1.maintenance_contract_id",
"=",
"T2.maintenance_contract_id",
"GROUP",
"BY",
"T1.maintenance_contract_id"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
",",
"t1",
".",
"maintenance_contract_id",
"from",
"maintenance_contracts",
"as",
"t1",
"join",
"assets",
"as",
"t2",
"on",
"t1",
".",
"maintenance_contract_id",
"=",
"t2",
".",
"maintenance_contract_id",
"group",
"by",
"t1",
".",
"maintenance_contract_id"
],
"question_spider": "How many assets does each maintenance contract contain? List the number and the contract id.",
"question": "每个维修合同包含多少资产?列出个数和合同ID。",
"question_cspider": "每个维修合同包含多少资产?列出个数和合同ID。",
"Harold": "BLEU = 56.84, 78.3/63.6/52.4/40.0 (BP=1.000, ratio=1.000, hyp_len=23, ref_len=23)",
"question_toks": [
"每",
"个",
"维",
"护",
"合",
"同",
"包",
"含",
"多",
"少",
"资",
"产",
"?",
"列",
"出",
"编",
"号",
"和",
"合",
"同",
"编",
"号",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
24,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT count(*) , T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
",",
"T1.company_id",
"FROM",
"Third_Party_Companies",
"AS",
"T1",
"JOIN",
"Assets",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.supplier_company_id",
"GROUP",
"BY",
"T1.company_id"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
",",
"t1",
".",
"company_id",
"from",
"third_party_companies",
"as",
"t1",
"join",
"assets",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"supplier_company_id",
"group",
"by",
"t1",
".",
"company_id"
],
"question_spider": "How many assets does each third party company supply? List the count and the company id.",
"question": "每家第三方公司提供多少资产?列出总和和公司ID。",
"question_cspider": "每家第三方公司提供多少资产?列出总和和公司ID。",
"Harold": "BLEU = 75.17, 90.9/85.7/80.0/73.7 (BP=0.913, ratio=0.917, hyp_len=22, ref_len=24)",
"question_toks": [
"第",
"三",
"方",
"公",
"司",
"提",
"供",
"多",
"少",
"资",
"产",
"?",
"列",
"出",
"数",
"量",
"和",
"公",
"司",
"I",
"D",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
25,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
],
[
0,
[
0,
[
0,
1,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
1,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.company_id , T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING count(*) >= 2 UNION SELECT T3.company_id , T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING count(*) >= 2",
"query_toks": [
"SELECT",
"T1.company_id",
",",
"T1.company_name",
"FROM",
"Third_Party_Companies",
"AS",
"T1",
"JOIN",
"Maintenance_Engineers",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.company_id",
"GROUP",
"BY",
"T1.company_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2",
"UNION",
"SELECT",
"T3.company_id",
",",
"T3.company_name",
"FROM",
"Third_Party_Companies",
"AS",
"T3",
"JOIN",
"Maintenance_Contracts",
"AS",
"T4",
"ON",
"T3.company_id",
"=",
"T4.maintenance_contract_company_id",
"GROUP",
"BY",
"T3.company_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
],
"query_toks_no_value": [
"select",
"t1",
".",
"company_id",
",",
"t1",
".",
"company_name",
"from",
"third_party_companies",
"as",
"t1",
"join",
"maintenance_engineers",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"company_id",
"group",
"by",
"t1",
".",
"company_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value",
"union",
"select",
"t3",
".",
"company_id",
",",
"t3",
".",
"company_name",
"from",
"third_party_companies",
"as",
"t3",
"join",
"maintenance_contracts",
"as",
"t4",
"on",
"t3",
".",
"company_id",
"=",
"t4",
".",
"maintenance_contract_company_id",
"group",
"by",
"t3",
".",
"company_id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question_spider": "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.",
"question": "哪些第三方公司至少有两名维修工程师,或者至少有两份维修合同?列出公司ID和名称。",
"question_cspider": "哪些第三方公司至少有两名维修工程师,或者至少有两份维修合同?列出公司ID和名称。",
"Harold": "BLEU = 47.14, 78.9/54.1/41.7/34.3 (BP=0.949, ratio=0.950, hyp_len=38, ref_len=40)",
"question_toks": [
"哪",
"个",
"第",
"三",
"方",
"公",
"司",
"拥",
"有",
"至",
"少",
"2",
"位",
"维",
"护",
"工",
"程",
"师",
"或",
"至",
"少",
"2",
"位",
"维",
"护",
"合",
"同",
"?",
"列",
"出",
"公",
"司",
"I",
"D",
"和",
"名",
"称",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
7
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
35,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
1,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
7,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
1,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.staff_name , T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id = T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name , T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id = T4.contact_staff_id",
"query_toks": [
"SELECT",
"T1.staff_name",
",",
"T1.staff_id",
"FROM",
"Staff",
"AS",
"T1",
"JOIN",
"Fault_Log",
"AS",
"T2",
"ON",
"T1.staff_id",
"=",
"T2.recorded_by_staff_id",
"EXCEPT",
"SELECT",
"T3.staff_name",
",",
"T3.staff_id",
"FROM",
"Staff",
"AS",
"T3",
"JOIN",
"Engineer_Visits",
"AS",
"T4",
"ON",
"T3.staff_id",
"=",
"T4.contact_staff_id"
],
"query_toks_no_value": [
"select",
"t1",
".",
"staff_name",
",",
"t1",
".",
"staff_id",
"from",
"staff",
"as",
"t1",
"join",
"fault_log",
"as",
"t2",
"on",
"t1",
".",
"staff_id",
"=",
"t2",
".",
"recorded_by_staff_id",
"except",
"select",
"t3",
".",
"staff_name",
",",
"t3",
".",
"staff_id",
"from",
"staff",
"as",
"t3",
"join",
"engineer_visits",
"as",
"t4",
"on",
"t3",
".",
"staff_id",
"=",
"t4",
".",
"contact_staff_id"
],
"question_spider": "What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?",
"question": "记录过故障日志但没有联系任何来访工程师的工作人员的姓名和id是什么?",
"question_cspider": "记录过故障日志但没有联系任何来访工程师的工作人员的姓名和id是什么?",
"Harold": "BLEU = 46.71, 90.0/65.5/46.4/29.6 (BP=0.875, ratio=0.882, hyp_len=30, ref_len=34)",
"question_toks": [
"记",
"录",
"故",
"障",
"日",
"志",
"但",
"未",
"联",
"系",
"任",
"何",
"访",
"问",
"工",
"程",
"师",
"的",
"人",
"员",
"的",
"名",
"称",
"和",
"I",
"D",
"是",
"什",
"么",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
9
]
],
"conds": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
[
0,
43,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
],
[
0,
[
0,
[
0,
19,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
[
0,
48,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
],
[
0,
[
0,
[
0,
19,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.engineer_id",
",",
"T1.first_name",
",",
"T1.last_name",
"FROM",
"Maintenance_Engineers",
"AS",
"T1",
"JOIN",
"Engineer_Visits",
"AS",
"T2",
"GROUP",
"BY",
"T1.engineer_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"engineer_id",
",",
"t1",
".",
"first_name",
",",
"t1",
".",
"last_name",
"from",
"maintenance_engineers",
"as",
"t1",
"join",
"engineer_visits",
"as",
"t2",
"group",
"by",
"t1",
".",
"engineer_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question_spider": "Which engineer has visited the most times? Show the engineer id, first name and last name.",
"question": "哪位工程师去过的次数最多?显示工程师id、名字和姓氏。",
"question_cspider": "哪位工程师去过的次数最多?显示工程师id、名字和姓氏。",
"Harold": "BLEU = 56.15, 76.9/64.0/54.2/43.5 (BP=0.962, ratio=0.963, hyp_len=26, ref_len=27)",
"question_toks": [
"哪",
"个",
"工",
"程",
"师",
"访",
"问",
"次",
"数",
"最",
"多",
"?",
"显",
"示",
"工",
"程",
"师",
"编",
"号",
",",
"名",
"字",
"和",
"姓",
"氏",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
10
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
34,
false
],
null
]
],
[
0,
[
0,
[
0,
36,
false
],
null
]
],
[
0,
[
0,
[
0,
37,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
34,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.part_name , T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING count(*) > 2",
"query_toks": [
"SELECT",
"T1.part_name",
",",
"T1.part_id",
"FROM",
"Parts",
"AS",
"T1",
"JOIN",
"Part_Faults",
"AS",
"T2",
"ON",
"T1.part_id",
"=",
"T2.part_id",
"GROUP",
"BY",
"T1.part_id",
"HAVING",
"count",
"(",
"*",
")",
">",
"2"
],
"query_toks_no_value": [
"select",
"t1",
".",
"part_name",
",",
"t1",
".",
"part_id",
"from",
"parts",
"as",
"t1",
"join",
"part_faults",
"as",
"t2",
"on",
"t1",
".",
"part_id",
"=",
"t2",
".",
"part_id",
"group",
"by",
"t1",
".",
"part_id",
"having",
"count",
"(",
"*",
")",
">",
"value"
],
"question_spider": "Which parts have more than 2 faults? Show the part name and id.",
"question": "哪些部件有超过2个故障?显示零件名称和ID。",
"question_cspider": "哪些部件有超过2个故障?显示零件名称和ID。",
"Harold": "BLEU = 46.41, 69.6/50.0/38.1/35.0 (BP=1.000, ratio=1.045, hyp_len=23, ref_len=22)",
"question_toks": [
"哪",
"些",
"零",
"件",
"有",
"两",
"个",
"以",
"上",
"的",
"故",
"障",
"?",
"显",
"示",
"零",
"件",
"名",
"称",
"和",
"编",
"号",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
11
]
],
"conds": [
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
56,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
],
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
11,
false
]
],
"having": [
[
false,
3,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.first_name , T1.last_name , T1.other_details , T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id",
"query_toks": [
"SELECT",
"T1.first_name",
",",
"T1.last_name",
",",
"T1.other_details",
",",
"T3.skill_description",
"FROM",
"Maintenance_Engineers",
"AS",
"T1",
"JOIN",
"Engineer_Skills",
"AS",
"T2",
"ON",
"T1.engineer_id",
"=",
"T2.engineer_id",
"JOIN",
"Skills",
"AS",
"T3",
"ON",
"T2.skill_id",
"=",
"T3.skill_id"
],
"query_toks_no_value": [
"select",
"t1",
".",
"first_name",
",",
"t1",
".",
"last_name",
",",
"t1",
".",
"other_details",
",",
"t3",
".",
"skill_description",
"from",
"maintenance_engineers",
"as",
"t1",
"join",
"engineer_skills",
"as",
"t2",
"on",
"t1",
".",
"engineer_id",
"=",
"t2",
".",
"engineer_id",
"join",
"skills",
"as",
"t3",
"on",
"t2",
".",
"skill_id",
"=",
"t3",
".",
"skill_id"
],
"question_spider": "List all every engineer's first name, last name, details and coresponding skill description.",
"question": "列出所有工程师的名字、姓氏、详细情况以及相应的技能描述。",
"question_cspider": "列出所有工程师的名字、姓氏、详细情况以及相应的技能描述。",
"Harold": "BLEU = 60.75, 81.5/69.2/56.0/50.0 (BP=0.964, ratio=0.964, hyp_len=27, ref_len=28)",
"question_toks": [
"列",
"出",
"所",
"有",
"工",
"程",
"师",
"的",
"名",
"字",
",",
"姓",
"氏",
",",
"详",
"细",
"信",
"息",
"和",
"相",
"应",
"的",
"技",
"能",
"描",
"述",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
8
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
39,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
40,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
36,
false
],
null
]
],
[
0,
[
0,
[
0,
37,
false
],
null
]
],
[
0,
[
0,
[
0,
38,
false
],
null
]
],
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.fault_short_name , T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id",
"query_toks": [
"SELECT",
"T1.fault_short_name",
",",
"T3.skill_description",
"FROM",
"Part_Faults",
"AS",
"T1",
"JOIN",
"Skills_Required_To_Fix",
"AS",
"T2",
"ON",
"T1.part_fault_id",
"=",
"T2.part_fault_id",
"JOIN",
"Skills",
"AS",
"T3",
"ON",
"T2.skill_id",
"=",
"T3.skill_id"
],
"query_toks_no_value": [
"select",
"t1",
".",
"fault_short_name",
",",
"t3",
".",
"skill_description",
"from",
"part_faults",
"as",
"t1",
"join",
"skills_required_to_fix",
"as",
"t2",
"on",
"t1",
".",
"part_fault_id",
"=",
"t2",
".",
"part_fault_id",
"join",
"skills",
"as",
"t3",
"on",
"t2",
".",
"skill_id",
"=",
"t3",
".",
"skill_id"
],
"question_spider": "For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.",
"question": "对于不同部件的所有故障,修复它们所需的所有技能的描述是什么?列出故障的名称和技能描述。",
"question_cspider": "对于不同部件的所有故障,修复它们所需的所有技能的描述是什么?列出故障的名称和技能描述。",
"Harold": "BLEU = 53.11, 81.0/63.4/47.5/35.9 (BP=0.976, ratio=0.977, hyp_len=42, ref_len=43)",
"question_toks": [
"对",
"于",
"不",
"同",
"部",
"分",
"的",
"所",
"有",
"故",
"障",
",",
"修",
"复",
"这",
"些",
"故",
"障",
"所",
"需",
"的",
"技",
"能",
"都",
"有",
"哪",
"些",
"描",
"述",
"?",
"列",
"出",
"故",
"障",
"名",
"称",
"和",
"技",
"能",
"描",
"述",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
11
],
[
"table_unit",
13
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
55,
false
],
null
],
[
0,
63,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
64,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
57,
false
],
null
]
],
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.part_name , count(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name",
"query_toks": [
"SELECT",
"T1.part_name",
",",
"count",
"(",
"*",
")",
"FROM",
"Parts",
"AS",
"T1",
"JOIN",
"Asset_Parts",
"AS",
"T2",
"ON",
"T1.part_id",
"=",
"T2.part_id",
"GROUP",
"BY",
"T1.part_name"
],
"query_toks_no_value": [
"select",
"t1",
".",
"part_name",
",",
"count",
"(",
"*",
")",
"from",
"parts",
"as",
"t1",
"join",
"asset_parts",
"as",
"t2",
"on",
"t1",
".",
"part_id",
"=",
"t2",
".",
"part_id",
"group",
"by",
"t1",
".",
"part_name"
],
"question_spider": "How many assets can each parts be used in? List the part name and the number.",
"question": "每个零件可以用于多少资产?列出零件名称和编号。",
"question_cspider": "每个零件可以用于多少资产?列出零件名称和编号。",
"Harold": "BLEU = 84.15, 95.7/86.4/81.0/75.0 (BP=1.000, ratio=1.000, hyp_len=23, ref_len=23)",
"question_toks": [
"每",
"个",
"零",
"件",
"可",
"以",
"使",
"用",
"多",
"少",
"资",
"产",
"?",
"列",
"出",
"零",
"件",
"名",
"称",
"和",
"编",
"号",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
6
]
],
"conds": [
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
33,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
12,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.fault_description , T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id",
"query_toks": [
"SELECT",
"T1.fault_description",
",",
"T2.fault_status",
"FROM",
"Fault_Log",
"AS",
"T1",
"JOIN",
"Fault_Log_Parts",
"AS",
"T2",
"ON",
"T1.fault_log_entry_id",
"=",
"T2.fault_log_entry_id"
],
"query_toks_no_value": [
"select",
"t1",
".",
"fault_description",
",",
"t2",
".",
"fault_status",
"from",
"fault_log",
"as",
"t1",
"join",
"fault_log_parts",
"as",
"t2",
"on",
"t1",
".",
"fault_log_entry_id",
"=",
"t2",
".",
"fault_log_entry_id"
],
"question_spider": "What are all the fault descriptions and the fault status of all the faults recoreded in the logs?",
"question": "日志中的所有故障记录中的所有故障描述和故障状态是什么?",
"question_cspider": "日志中的所有故障记录中的所有故障描述和故障状态是什么?",
"Harold": "BLEU = 67.29, 100.0/80.0/62.5/47.8 (BP=0.962, ratio=0.963, hyp_len=26, ref_len=27)",
"question_toks": [
"日",
"志",
"中",
"记",
"录",
"的",
"所",
"有",
"故",
"障",
"描",
"述",
"和",
"所",
"有",
"故",
"障",
"的",
"故",
"障",
"状",
"态",
"是",
"什",
"么",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
9
],
[
"table_unit",
12
]
],
"conds": [
[
false,
2,
[
0,
[
0,
41,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
45,
false
],
null
]
],
[
0,
[
0,
[
0,
62,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT count(*) , T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
",",
"T1.fault_log_entry_id",
"FROM",
"Fault_Log",
"AS",
"T1",
"JOIN",
"Engineer_Visits",
"AS",
"T2",
"ON",
"T1.fault_log_entry_id",
"=",
"T2.fault_log_entry_id",
"GROUP",
"BY",
"T1.fault_log_entry_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
",",
"t1",
".",
"fault_log_entry_id",
"from",
"fault_log",
"as",
"t1",
"join",
"engineer_visits",
"as",
"t2",
"on",
"t1",
".",
"fault_log_entry_id",
"=",
"t2",
".",
"fault_log_entry_id",
"group",
"by",
"t1",
".",
"fault_log_entry_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question_spider": "How many engineer visits are required at most for a single fault log? List the number and the log entry id.",
"question": "一个单独的故障日志最多需要多少工程师参与?列出数字和日志条目ID。",
"question_cspider": "一个单独的故障日志最多需要多少工程师参与?列出数字和日志条目ID。",
"Harold": "BLEU = 62.99, 86.7/75.9/64.3/55.6 (BP=0.905, ratio=0.909, hyp_len=30, ref_len=33)",
"question_toks": [
"一",
"个",
"故",
"障",
"日",
"志",
"最",
"多",
"需",
"要",
"多",
"少",
"工",
"程",
"师",
"访",
"问",
"?",
"列",
"出",
"编",
"号",
"和",
"日",
"志",
"条",
"目",
"I",
"D",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
9
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
41,
false
],
null
],
[
0,
50,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
],
[
0,
[
0,
[
0,
41,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
41,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT DISTINCT last_name FROM Maintenance_Engineers",
"query_toks": [
"SELECT",
"DISTINCT",
"last_name",
"FROM",
"Maintenance_Engineers"
],
"query_toks_no_value": [
"select",
"distinct",
"last_name",
"from",
"maintenance_engineers"
],
"question_spider": "What are all the distinct last names of all the engineers?",
"question": "所有工程师的不同姓氏有哪些?",
"question_cspider": "所有工程师的不同姓氏有哪些?",
"Harold": "BLEU = 69.31, 78.6/69.2/66.7/63.6 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)",
"question_toks": [
"所",
"有",
"工",
"程",
"师",
"的",
"不",
"同",
"姓",
"氏",
"是",
"什",
"么",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
37,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT DISTINCT fault_status FROM Fault_Log_Parts",
"query_toks": [
"SELECT",
"DISTINCT",
"fault_status",
"FROM",
"Fault_Log_Parts"
],
"query_toks_no_value": [
"select",
"distinct",
"fault_status",
"from",
"fault_log_parts"
],
"question_spider": "How many fault status codes are recorded in the fault log parts table?",
"question": "在故障日志部件表中记录了多少故障状态代码?",
"question_cspider": "在故障日志部件表中记录了多少故障状态代码?",
"Harold": "BLEU = 95.12, 100.0/100.0/100.0/100.0 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)",
"question_toks": [
"故",
"障",
"日",
"志",
"部",
"件",
"表",
"中",
"记",
"录",
"了",
"多",
"少",
"故",
"障",
"状",
"态",
"代",
"码",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
12
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
62,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT first_name , last_name FROM Maintenance_Engineers WHERE engineer_id NOT IN (SELECT engineer_id FROM Engineer_Visits)",
"query_toks": [
"SELECT",
"first_name",
",",
"last_name",
"FROM",
"Maintenance_Engineers",
"WHERE",
"engineer_id",
"NOT",
"IN",
"(",
"SELECT",
"engineer_id",
"FROM",
"Engineer_Visits",
")"
],
"query_toks_no_value": [
"select",
"first_name",
",",
"last_name",
"from",
"maintenance_engineers",
"where",
"engineer_id",
"not",
"in",
"(",
"select",
"engineer_id",
"from",
"engineer_visits",
")"
],
"question_spider": "Which engineers have never visited to maintain the assets? List the engineer first name and last name.",
"question": "哪些工程师从未参与过维护资产?列出工程师的名字和姓氏。",
"question_cspider": "哪些工程师从未参与过维护资产?列出工程师的名字和姓氏。",
"Harold": "BLEU = 85.91, 92.6/88.5/84.0/79.2 (BP=1.000, ratio=1.000, hyp_len=27, ref_len=27)",
"question_toks": [
"哪",
"些",
"工",
"程",
"师",
"从",
"未",
"访",
"问",
"过",
"维",
"护",
"资",
"产",
"?",
"列",
"出",
"工",
"程",
"师",
"的",
"名",
"字",
"和",
"姓",
"氏",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
36,
false
],
null
]
],
[
0,
[
0,
[
0,
37,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
34,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
10
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
49,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT asset_id , asset_details , asset_make , asset_model FROM Assets",
"query_toks": [
"SELECT",
"asset_id",
",",
"asset_details",
",",
"asset_make",
",",
"asset_model",
"FROM",
"Assets"
],
"query_toks_no_value": [
"select",
"asset_id",
",",
"asset_details",
",",
"asset_make",
",",
"asset_model",
"from",
"assets"
],
"question_spider": "List the asset id, details, make and model for every asset.",
"question": "列出每个资产的资产ID、细节、制作和模型。",
"question_cspider": "列出每个资产的资产ID、细节、制作和模型。",
"Harold": "BLEU = 47.48, 65.2/45.5/42.9/40.0 (BP=1.000, ratio=1.095, hyp_len=23, ref_len=21)",
"question_toks": [
"列",
"出",
"每",
"个",
"资",
"产",
"的",
"资",
"产",
"I",
"D",
",",
"详",
"细",
"信",
"息",
",",
"品",
"牌",
"和",
"型",
"号",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
23,
false
],
null
]
],
[
0,
[
0,
[
0,
26,
false
],
null
]
],
[
0,
[
0,
[
0,
27,
false
],
null
]
],
[
0,
[
0,
[
0,
28,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date ASC LIMIT 1",
"query_toks": [
"SELECT",
"asset_acquired_date",
"FROM",
"Assets",
"ORDER",
"BY",
"asset_acquired_date",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"asset_acquired_date",
"from",
"assets",
"order",
"by",
"asset_acquired_date",
"asc",
"limit",
"value"
],
"question_spider": "When was the first asset acquired?",
"question": "第一笔资产是什么时候收购的?",
"question_cspider": "第一笔资产是什么时候收购的?",
"Harold": "BLEU = 0.00, 60.0/22.2/0.0/0.0 (BP=0.670, ratio=0.714, hyp_len=10, ref_len=14)",
"question_toks": [
"第",
"一",
"项",
"资",
"产",
"何",
"时",
"获",
"得",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
29,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
29,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.part_id , T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.part_id",
",",
"T1.part_name",
"FROM",
"Parts",
"AS",
"T1",
"JOIN",
"Part_Faults",
"AS",
"T2",
"ON",
"T1.part_id",
"=",
"T2.part_id",
"JOIN",
"Skills_Required_To_Fix",
"AS",
"T3",
"ON",
"T2.part_fault_id",
"=",
"T3.part_fault_id",
"GROUP",
"BY",
"T1.part_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"part_id",
",",
"t1",
".",
"part_name",
"from",
"parts",
"as",
"t1",
"join",
"part_faults",
"as",
"t2",
"on",
"t1",
".",
"part_id",
"=",
"t2",
".",
"part_id",
"join",
"skills_required_to_fix",
"as",
"t3",
"on",
"t2",
".",
"part_fault_id",
"=",
"t3",
".",
"part_fault_id",
"group",
"by",
"t1",
".",
"part_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question_spider": "Which part fault requires the most number of skills to fix? List part id and name.",
"question": "哪个部件故障需要最多的技能来修复?列出零件ID和名称。",
"question_cspider": "哪个部件故障需要最多的技能来修复?列出零件ID和名称。",
"Harold": "BLEU = 56.75, 77.8/61.5/52.0/41.7 (BP=1.000, ratio=1.000, hyp_len=27, ref_len=27)",
"question_toks": [
"哪",
"一",
"部",
"分",
"故",
"障",
"需",
"要",
"最",
"多",
"的",
"技",
"能",
"来",
"解",
"决",
"?",
"列",
"出",
"零",
"件",
"编",
"号",
"和",
"名",
"称",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
11
],
[
"table_unit",
13
]
],
"conds": [
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
56,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
55,
false
],
null
],
[
0,
63,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
],
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
11,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"T1.part_name",
"FROM",
"Parts",
"AS",
"T1",
"JOIN",
"Part_Faults",
"AS",
"T2",
"ON",
"T1.part_id",
"=",
"T2.part_id",
"GROUP",
"BY",
"T1.part_name",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"part_name",
"from",
"parts",
"as",
"t1",
"join",
"part_faults",
"as",
"t2",
"on",
"t1",
".",
"part_id",
"=",
"t2",
".",
"part_id",
"group",
"by",
"t1",
".",
"part_name",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question_spider": "Which kind of part has the least number of faults? List the part name.",
"question": "哪一类部件的故障数量最少?列出部件名称。",
"question_cspider": "哪一类部件的故障数量最少?列出部件名称。",
"Harold": "BLEU = 39.08, 88.2/62.5/40.0/21.4 (BP=0.838, ratio=0.850, hyp_len=17, ref_len=20)",
"question_toks": [
"哪",
"一",
"部",
"分",
"的",
"故",
"障",
"最",
"少",
"?",
"列",
"出",
"零",
"件",
"名",
"称",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
11
]
],
"conds": [
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
56,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
12,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"T1.engineer_id",
",",
"T1.first_name",
",",
"T1.last_name",
"FROM",
"Maintenance_Engineers",
"AS",
"T1",
"JOIN",
"Engineer_Visits",
"AS",
"T2",
"ON",
"T1.engineer_id",
"=",
"T2.engineer_id",
"GROUP",
"BY",
"T1.engineer_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"engineer_id",
",",
"t1",
".",
"first_name",
",",
"t1",
".",
"last_name",
"from",
"maintenance_engineers",
"as",
"t1",
"join",
"engineer_visits",
"as",
"t2",
"on",
"t1",
".",
"engineer_id",
"=",
"t2",
".",
"engineer_id",
"group",
"by",
"t1",
".",
"engineer_id",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question_spider": "Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.",
"question": "在所有参与过的工程师中,哪个工程师的参与次数最少?列出工程师id、名字和姓氏。",
"question_cspider": "在所有参与过的工程师中,哪个工程师的参与次数最少?列出工程师id、名字和姓氏。",
"Harold": "BLEU = 64.32, 81.6/70.3/61.1/54.3 (BP=0.974, ratio=0.974, hyp_len=38, ref_len=39)",
"question_toks": [
"在",
"访",
"问",
"过",
"的",
"那",
"些",
"工",
"程",
"师",
"中",
",",
"哪",
"个",
"工",
"程",
"师",
"访",
"问",
"次",
"数",
"最",
"少",
"?",
"列",
"出",
"工",
"程",
"师",
"I",
"D",
",",
"名",
"字",
"和",
"姓",
"氏",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
49,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
34,
false
],
null
]
],
[
0,
[
0,
[
0,
36,
false
],
null
]
],
[
0,
[
0,
[
0,
37,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
34,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.staff_name , T3.first_name , T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id",
"query_toks": [
"SELECT",
"T1.staff_name",
",",
"T3.first_name",
",",
"T3.last_name",
"FROM",
"Staff",
"AS",
"T1",
"JOIN",
"Engineer_Visits",
"AS",
"T2",
"ON",
"T1.staff_id",
"=",
"T2.contact_staff_id",
"JOIN",
"Maintenance_Engineers",
"AS",
"T3",
"ON",
"T2.engineer_id",
"=",
"T3.engineer_id"
],
"query_toks_no_value": [
"select",
"t1",
".",
"staff_name",
",",
"t3",
".",
"first_name",
",",
"t3",
".",
"last_name",
"from",
"staff",
"as",
"t1",
"join",
"engineer_visits",
"as",
"t2",
"on",
"t1",
".",
"staff_id",
"=",
"t2",
".",
"contact_staff_id",
"join",
"maintenance_engineers",
"as",
"t3",
"on",
"t2",
".",
"engineer_id",
"=",
"t3",
".",
"engineer_id"
],
"question_spider": "Which staff have contacted which engineers? List the staff name and the engineer first name and last name.",
"question": "哪些员工联系过哪些工程师?列出员工姓名和工程师的名字和姓氏。",
"question_cspider": "哪些员工联系过哪些工程师?列出员工姓名和工程师的名字和姓氏。",
"Harold": "BLEU = 66.47, 83.9/70.0/62.1/53.6 (BP=1.000, ratio=1.033, hyp_len=31, ref_len=30)",
"question_toks": [
"哪",
"些",
"员",
"工",
"联",
"系",
"了",
"哪",
"些",
"工",
"程",
"师",
"?",
"列",
"出",
"人",
"员",
"名",
"称",
"以",
"及",
"工",
"程",
"师",
"的",
"名",
"字",
"和",
"姓",
"氏",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
],
[
"table_unit",
7
]
],
"conds": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
[
0,
48,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
49,
false
],
null
],
[
0,
34,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
],
[
0,
[
0,
[
0,
36,
false
],
null
]
],
[
0,
[
0,
[
0,
37,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.fault_log_entry_id , T1.fault_description , T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.fault_log_entry_id",
",",
"T1.fault_description",
",",
"T1.fault_log_entry_datetime",
"FROM",
"Fault_Log",
"AS",
"T1",
"JOIN",
"Fault_Log_Parts",
"AS",
"T2",
"ON",
"T1.fault_log_entry_id",
"=",
"T2.fault_log_entry_id",
"GROUP",
"BY",
"T1.fault_log_entry_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"fault_log_entry_id",
",",
"t1",
".",
"fault_description",
",",
"t1",
".",
"fault_log_entry_datetime",
"from",
"fault_log",
"as",
"t1",
"join",
"fault_log_parts",
"as",
"t2",
"on",
"t1",
".",
"fault_log_entry_id",
"=",
"t2",
".",
"fault_log_entry_id",
"group",
"by",
"t1",
".",
"fault_log_entry_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question_spider": "Which fault log included the most number of faulty parts? List the fault log id, description and record time.",
"question": "哪一个故障日志包含了最多的故障部件?列出故障日志ID、描述和记录时间。",
"question_cspider": "哪一个故障日志包含了最多的故障部件?列出故障日志ID、描述和记录时间。",
"Harold": "BLEU = 71.06, 93.9/81.2/71.0/60.0 (BP=0.941, ratio=0.943, hyp_len=33, ref_len=35)",
"question_toks": [
"哪",
"个",
"故",
"障",
"日",
"志",
"包",
"含",
"最",
"多",
"的",
"故",
"障",
"零",
"件",
"?",
"列",
"出",
"故",
"障",
"日",
"志",
"I",
"D",
",",
"描",
"述",
"和",
"记",
"录",
"时",
"间",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
9
],
[
"table_unit",
12
]
],
"conds": [
[
false,
2,
[
0,
[
0,
41,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
41,
false
],
null
]
],
[
0,
[
0,
[
0,
45,
false
],
null
]
],
[
0,
[
0,
[
0,
44,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
41,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.skill_id , T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.skill_id",
",",
"T1.skill_description",
"FROM",
"Skills",
"AS",
"T1",
"JOIN",
"Skills_Required_To_Fix",
"AS",
"T2",
"ON",
"T1.skill_id",
"=",
"T2.skill_id",
"GROUP",
"BY",
"T1.skill_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"skill_id",
",",
"t1",
".",
"skill_description",
"from",
"skills",
"as",
"t1",
"join",
"skills_required_to_fix",
"as",
"t2",
"on",
"t1",
".",
"skill_id",
"=",
"t2",
".",
"skill_id",
"group",
"by",
"t1",
".",
"skill_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question_spider": "Which skill is used in fixing the most number of faults? List the skill id and description.",
"question": "哪种技术能用来修复最多的故障?列出技术ID和描述。",
"question_cspider": "哪种技术能用来修复最多的故障?列出技术ID和描述。",
"Harold": "BLEU = 45.88, 82.6/59.1/42.9/30.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)",
"question_toks": [
"最",
"多",
"的",
"故",
"障",
"修",
"复",
"技",
"巧",
"是",
"什",
"么",
"?",
"列",
"出",
"技",
"能",
"I",
"D",
"和",
"描",
"述",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
13
]
],
"conds": [
[
false,
2,
[
0,
[
0,
16,
false
],
null
],
[
0,
64,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
16,
false
],
null
]
],
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
16,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT DISTINCT asset_model FROM Assets",
"query_toks": [
"SELECT",
"DISTINCT",
"asset_model",
"FROM",
"Assets"
],
"query_toks_no_value": [
"select",
"distinct",
"asset_model",
"from",
"assets"
],
"question_spider": "What are all the distinct asset models?",
"question": "所有不同的资产模型是什么?",
"question_cspider": "所有不同的资产模型是什么?",
"Harold": "BLEU = 50.67, 81.8/60.0/55.6/50.0 (BP=0.834, ratio=0.846, hyp_len=11, ref_len=13)",
"question_toks": [
"有",
"哪",
"些",
"不",
"同",
"的",
"资",
"产",
"模",
"型",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
28,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT asset_make , asset_model , asset_details FROM Assets ORDER BY asset_disposed_date ASC",
"query_toks": [
"SELECT",
"asset_make",
",",
"asset_model",
",",
"asset_details",
"FROM",
"Assets",
"ORDER",
"BY",
"asset_disposed_date",
"ASC"
],
"query_toks_no_value": [
"select",
"asset_make",
",",
"asset_model",
",",
"asset_details",
"from",
"assets",
"order",
"by",
"asset_disposed_date",
"asc"
],
"question_spider": "List the all the assets make, model, details by the disposed date ascendingly.",
"question": "按处理日期升序列出所有资产的制作、型号、细节。",
"question_cspider": "按处理日期升序列出所有资产的制作、型号、细节。",
"Harold": "BLEU = 31.32, 68.2/42.9/25.0/15.8 (BP=0.956, ratio=0.957, hyp_len=22, ref_len=23)",
"question_toks": [
"按",
"出",
"售",
"日",
"期",
"递",
"增",
"列",
"出",
"所",
"有",
"资",
"产",
"制",
"造",
",",
"型",
"号",
",",
"细",
"节",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
27,
false
],
null
]
],
[
0,
[
0,
[
0,
28,
false
],
null
]
],
[
0,
[
0,
[
0,
26,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
30,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT part_id , chargeable_amount FROM Parts ORDER BY chargeable_amount ASC LIMIT 1",
"query_toks": [
"SELECT",
"part_id",
",",
"chargeable_amount",
"FROM",
"Parts",
"ORDER",
"BY",
"chargeable_amount",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"part_id",
",",
"chargeable_amount",
"from",
"parts",
"order",
"by",
"chargeable_amount",
"asc",
"limit",
"value"
],
"question_spider": "Which part has the least chargeable amount? List the part id and amount.",
"question": "哪个零件的收费最低?列出零件ID和数量。",
"question_cspider": "哪个零件的收费最低?列出零件ID和数量。",
"Harold": "BLEU = 32.92, 65.0/36.8/27.8/17.6 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)",
"question_toks": [
"哪",
"一",
"部",
"分",
"的",
"费",
"用",
"最",
"少",
"?",
"列",
"出",
"零",
"件",
"编",
"号",
"和",
"数",
"量",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
],
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
14,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 1",
"query_toks": [
"SELECT",
"T1.company_name",
"FROM",
"Third_Party_Companies",
"AS",
"T1",
"JOIN",
"Maintenance_Contracts",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.maintenance_contract_company_id",
"ORDER",
"BY",
"T2.contract_start_date",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"company_name",
"from",
"third_party_companies",
"as",
"t1",
"join",
"maintenance_contracts",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"maintenance_contract_company_id",
"order",
"by",
"t2",
".",
"contract_start_date",
"asc",
"limit",
"value"
],
"question_spider": "Which company started the earliest the maintenance contract? Show the company name.",
"question": "哪家公司最早开始有维修合同?显示公司名称。",
"question_cspider": "哪家公司最早开始有维修合同?显示公司名称。",
"Harold": "BLEU = 53.87, 85.7/60.0/42.1/38.9 (BP=1.000, ratio=1.000, hyp_len=21, ref_len=21)",
"question_toks": [
"最",
"早",
"由",
"哪",
"个",
"公",
"司",
"开",
"始",
"维",
"护",
"合",
"同",
"?",
"显",
"示",
"公",
"司",
"名",
"称",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
7,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
8,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.company_name",
"FROM",
"Third_Party_Companies",
"AS",
"T1",
"JOIN",
"Maintenance_Contracts",
"AS",
"T2",
"ON",
"T1.company_id",
"=",
"T2.maintenance_contract_company_id",
"JOIN",
"Ref_Company_Types",
"AS",
"T3",
"ON",
"T1.company_type_code",
"=",
"T3.company_type_code",
"ORDER",
"BY",
"T2.contract_end_date",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"company_name",
"from",
"third_party_companies",
"as",
"t1",
"join",
"maintenance_contracts",
"as",
"t2",
"on",
"t1",
".",
"company_id",
"=",
"t2",
".",
"maintenance_contract_company_id",
"join",
"ref_company_types",
"as",
"t3",
"on",
"t1",
".",
"company_type_code",
"=",
"t3",
".",
"company_type_code",
"order",
"by",
"t2",
".",
"contract_end_date",
"desc",
"limit",
"value"
],
"question_spider": "What is the description of the type of the company who concluded its contracts most recently?",
"question": "最近签订合同的公司的类型描述是什么?",
"question_cspider": "最近签订合同的公司的类型描述是什么?",
"Harold": "BLEU = 53.45, 87.5/66.7/50.0/46.2 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)",
"question_toks": [
"最",
"近",
"签",
"订",
"合",
"同",
"的",
"公",
"司",
"类",
"型",
"如",
"何",
"描",
"述",
"?"
],
"sql": {
"except": null,
"from": {
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
7,
false
],
null
]
],
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
]
},
"groupBy": [],
"having": [],
"intersect": null,
"limit": 1,
"orderBy": [
"desc",
[
[
0,
[
0,
9,
false
],
null
]
]
],
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"union": null,
"where": []
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT gender FROM staff GROUP BY gender ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"gender",
"FROM",
"staff",
"GROUP",
"BY",
"gender",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"gender",
"from",
"staff",
"group",
"by",
"gender",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question_spider": "Which gender makes up the majority of the staff?",
"question": "哪种性别占员工的大多数?",
"question_cspider": "哪种性别占员工的大多数?",
"Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)",
"question_toks": [
"哪",
"种",
"性",
"别",
"占",
"员",
"工",
"的",
"大",
"多",
"数",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
21,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
21,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "assets_maintenance",
"query": "SELECT T1.staff_name , count(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name",
"query_toks": [
"SELECT",
"T1.staff_name",
",",
"count",
"(",
"*",
")",
"FROM",
"Staff",
"AS",
"T1",
"JOIN",
"Engineer_Visits",
"AS",
"T2",
"ON",
"T1.staff_id",
"=",
"T2.contact_staff_id",
"GROUP",
"BY",
"T1.staff_name"
],
"query_toks_no_value": [
"select",
"t1",
".",
"staff_name",
",",
"count",
"(",
"*",
")",
"from",
"staff",
"as",
"t1",
"join",
"engineer_visits",
"as",
"t2",
"on",
"t1",
".",
"staff_id",
"=",
"t2",
".",
"contact_staff_id",
"group",
"by",
"t1",
".",
"staff_name"
],
"question_spider": "How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.",
"question": "每个员工联系了多少工程师?列出进行联系的员工的姓名和联系的工程师的数量。",
"question_cspider": "每个员工联系了多少工程师?列出进行联系的员工的姓名和联系的工程师的数量。",
"Harold": "BLEU = 66.27, 93.5/80.0/72.4/67.9 (BP=0.851, ratio=0.861, hyp_len=31, ref_len=36)",
"question_toks": [
"每",
"个",
"员",
"工",
"联",
"系",
"了",
"多",
"少",
"工",
"程",
"师",
"?",
"列",
"出",
"联",
"系",
"人",
"的",
"姓",
"名",
"和",
"联",
"系",
"的",
"工",
"程",
"师",
"人",
"数",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
[
0,
48,
false
],
null
]
]
},
"select": [
false,
[
[
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": "assets_maintenance",
"query": "SELECT asset_model FROM Assets WHERE asset_id NOT IN (SELECT asset_id FROM Fault_Log)",
"query_toks": [
"SELECT",
"asset_model",
"FROM",
"Assets",
"WHERE",
"asset_id",
"NOT",
"IN",
"(",
"SELECT",
"asset_id",
"FROM",
"Fault_Log",
")"
],
"query_toks_no_value": [
"select",
"asset_model",
"from",
"assets",
"where",
"asset_id",
"not",
"in",
"(",
"select",
"asset_id",
"from",
"fault_log",
")"
],
"question_spider": "Which assets did not incur any fault log? List the asset model.",
"question": "哪些资产没有产生任何故障记录?列出资产模型。",
"question_cspider": "哪些资产没有产生任何故障记录?列出资产模型。",
"Harold": "BLEU = 64.00, 85.7/75.0/63.2/50.0 (BP=0.953, ratio=0.955, hyp_len=21, ref_len=22)",
"question_toks": [
"哪",
"些",
"资",
"产",
"未",
"产",
"生",
"任",
"何",
"故",
"障",
"日",
"志",
"?",
"列",
"出",
"资",
"产",
"模",
"型",
"。"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
28,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
23,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
9
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
42,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
]