Show me id of all departments.
select distinct department_id from staff_department_assignments
show me the number of staff of all departments.
select department_id,count ( staff_id ) from staff_department_assignments group by department_id order by count ( * )
show me the department with lowest staff
select department_id from staff_department_assignments group by department_id order by count ( * ) limit 1