Task: Text to Code
Input (English): SQL: SELECT Sum ( tot_cred ) , dept_name FROM student GROUP BY dept_name
Feedback: The student table and total credits are wrong . Put course table and credits respectively instead .
Output (English): SELECT sum(credits) ,  dept_name FROM course GROUP BY dept_name