Give the classes that have more than two captains.
select class from captain group by class having count(*) > 2