Question: What are the names of the departments they teach classes for?
SQL: SELECT DISTINCT T4.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num   =   T2.emp_num JOIN professor AS T3 ON T2.emp_num   =   T3.emp_num JOIN department AS T4 ON T4.dept_code   =   T3.dept_code