Which rank is the most common among captains?
CREATE TABLE captain (rank VARCHAR)
SELECT TOP 1 rank FROM captain GROUP BY rank ORDER BY COUNT(*) DESC
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE captain (rank VARCHAR) Question: Which rank is the most common among captains? [/INST] SELECT TOP 1 rank FROM captain GROUP BY rank ORDER BY COUNT(*) DESC </s>