What are department ids for departments with managers managing more than 3 employees?
SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4
departments with managers managing more than 3 employees refers to COUNT(employee_id) >= 4; department ids refers to department_id;