Give the classes of captains.
select class from captain
Group by class and count.
select class, count(*) from captain group by class
Which class has more than two?
select class from captain group by class having count(*) > 2