How many employees does each department have?
select count(departmentid) from department group by departmentid
Which department has the least employees?
select * from department group by departmentid order by count(departmentid) limit 1;
Who is the head of this department? Find the employee id.
select head from department group by departmentid order by count(departmentid) limit 1;