Task: Text to Code
Input (English): Step 1: For each row in department table, find the corresponding rows in student table.
Step 2: find each value of student'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 student AS T2 ON T1.dept_name = T2.dept_name GROUP BY T2.dept_name