Task: Text to Code
Input (English): Step 1: For each row in department table, find the corresponding rows in course table.
Step 2: find course's dept_name of the results of step 1 ordered descending by budget.
Step 3: only show the first 3 rows of the results
Output (English): 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