##Instruction:
Database: assets_maintenance
Total Tables: 14
Total Columns: 64

Table Schemas:

assets_maintenance contains tables such as Third_Party_Companies, Maintenance_Contracts, Parts, Skills, Staff, Assets, Asset_Parts, Maintenance_Engineers, Engineer_Skills, Fault_Log, Engineer_Visits, Part_Faults, Fault_Log_Parts, Skills_Required_To_Fix.
Table Third_Party_Companies has columns such as company_id, company_type, company_name, company_address, other_company_details.
company_id is the primary key.
Table Maintenance_Contracts has columns such as maintenance_contract_id, maintenance_contract_company_id, contract_start_date, contract_end_date, other_contract_details.
maintenance_contract_id is the primary key.
Table Parts has columns such as part_id, part_name, chargeable_yn, chargeable_amount, other_part_details.
part_id is the primary key.
Table Skills has columns such as skill_id, skill_code, skill_description.
skill_id is the primary key.
Table Staff has columns such as staff_id, staff_name, gender, other_staff_details.
staff_id is the primary key.
Table Assets has columns such as asset_id, maintenance_contract_id, supplier_company_id, asset_details, asset_make, asset_model, asset_acquired_date, asset_disposed_date, other_asset_details.
asset_id is the primary key.
Table Asset_Parts has columns such as asset_id, part_id.
Table Maintenance_Engineers has columns such as engineer_id, company_id, first_name, last_name, other_details.
engineer_id is the primary key.
Table Engineer_Skills has columns such as engineer_id, skill_id.
Table Fault_Log has columns such as fault_log_entry_id, asset_id, recorded_by_staff_id, fault_log_entry_datetime, fault_description, other_fault_details.
fault_log_entry_id is the primary key.
Table Engineer_Visits has columns such as engineer_visit_id, contact_staff_id, engineer_id, fault_log_entry_id, fault_status, visit_start_datetime, visit_end_datetime, other_visit_details.
engineer_visit_id is the primary key.
Table Part_Faults has columns such as part_fault_id, part_id, fault_short_name, fault_description, other_fault_details.
part_fault_id is the primary key.
Table Fault_Log_Parts has columns such as fault_log_entry_id, part_fault_id, fault_status.
Table Skills_Required_To_Fix has columns such as part_fault_id, skill_id.
The maintenance_contract_company_id of Maintenance_Contracts is the foreign key of company_id of Third_Party_Companies.
The supplier_company_id of Assets is the foreign key of company_id of Third_Party_Companies.
The maintenance_contract_id of Assets is the foreign key of maintenance_contract_id of Maintenance_Contracts.
The asset_id of Asset_Parts is the foreign key of asset_id of Assets.
The part_id of Asset_Parts is the foreign key of part_id of Parts.
The company_id of Maintenance_Engineers is the foreign key of company_id of Third_Party_Companies.
The skill_id of Engineer_Skills is the foreign key of skill_id of Skills.
The engineer_id of Engineer_Skills is the foreign key of engineer_id of Maintenance_Engineers.
The recorded_by_staff_id of Fault_Log is the foreign key of staff_id of Staff.
The asset_id of Fault_Log is the foreign key of asset_id of Assets.
The contact_staff_id of Engineer_Visits is the foreign key of staff_id of Staff.
The engineer_id of Engineer_Visits is the foreign key of engineer_id of Maintenance_Engineers.
The fault_log_entry_id of Engineer_Visits is the foreign key of fault_log_entry_id of Fault_Log.
The part_id of Part_Faults is the foreign key of part_id of Parts.
The fault_log_entry_id of Fault_Log_Parts is the foreign key of fault_log_entry_id of Fault_Log.
The part_fault_id of Fault_Log_Parts is the foreign key of part_fault_id of Part_Faults.
The skill_id of Skills_Required_To_Fix is the foreign key of skill_id of Skills.
The part_fault_id of Skills_Required_To_Fix is the foreign key of part_fault_id of Part_Faults.

##Role Access Policy (Column-Level):
Role: DataOperator_1
Accessible Columns:
  - Asset_Parts: * (all columns)
  - Assets: asset_acquired_date, asset_details, asset_id, asset_make, maintenance_contract_id, other_asset_details, supplier_company_id
  - Engineer_Skills: skill_id
  - Engineer_Visits: * (all columns)
  - Fault_Log: * (all columns)
  - Fault_Log_Parts: fault_log_entry_id
  - Maintenance_Contracts: * (all columns)
  - Maintenance_Engineers: company_id, engineer_id, first_name, last_name
  - Part_Faults: fault_description, fault_short_name, part_fault_id, part_id
  - Parts: chargeable_amount, other_part_details, part_id, part_name
  - Skills: * (all columns)
  - Skills_Required_To_Fix: skill_id
  - Staff: * (all columns)
  - Third_Party_Companies: * (all columns)

Question: How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.
Answer: Sorry, I cannot answer.
Permission: denied (All required columns are permitted)
Gold SQL: 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