Question: How many departments have more than ten employees who got a commission?
SQL: SELECT COUNT ( * )  FROM  ( SELECT department_id FROM employees GROUP BY department_id HAVING COUNT ( commission_pct )  > 10 )