Count the number of staff for each department.
select count(*) from staff_department_assignments group by department_id
Which department has the least number of staff?
select * from staff_department_assignments group by department_id order by count(*) limit 1
What is the id of this department?
select department_id from staff_department_assignments group by department_id order by count(*) limit 1