Which classes have more than two captains?
select class from captain group by class having count(*) > 2