Which classes have more than two captains?
SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*)  >  2
SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*)  >  2
[{'Class': 'Third-rate ship of the line'}]