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