Context: CREATE TABLE captain (CLASS VARCHAR)
Question: Which classes have more than two captains?
Answer: SELECT CLASS FROM captain GROUP BY CLASS HAVING COUNT(*) > 2