What are the department ids for which more than 10 employees had a commission?
select department_id from employees group by department_id having count(commission_pct) > 10