Task: Text to Code
Input (English): Step 1: find the summation of tot_cred of each value of dept_name in student table.
Step 2: find dept_name of student table with largest value in the results of step 1
Output (English): SELECT dept_name FROM student GROUP BY dept_name ORDER BY Sum ( tot_cred ) Desc LIMIT 1