Task: Text to Code
Input (English): Step 1: For each row in Staff table, find the corresponding rows in Engineer_Visits table.
Step 2: find each value of contact_staff_id in the results of step 1 along with the number of the corresponding rows to each value
Output (English): SELECT T1.staff_name , Count ( * ) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T2.contact_staff_id