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