Database: hospital_1
Question: What are the names of departments that have primarily affiliated physicians.
SQL: select distinct t2.name from affiliated_with as t1 join department as t2 on t1.department = t2.departmentid where primaryaffiliation  =  1