Task: Text to Code
Input (English): SQL: SELECT T2.dept_name FROM department AS T1 JOIN course AS T2 ON T1.dept_name = T2.dept_name ORDER BY T1.budget Desc LIMIT 3
Feedback: In step 2 find number of rows of each value of course 's department name in descending order .
Output (English): SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3