CREATE TABLE captain (rank VARCHAR)

Which rank is the most common among captains?
SELECT rank FROM captain GROUP BY rank ORDER BY COUNT(*) DESC LIMIT 1
SELECT "rank" FROM "captain" GROUP BY "rank" ORDER BY COUNT(*) DESC NULLS LAST LIMIT 1