How many different captain ranks are there?
CREATE TABLE captain (rank VARCHAR)
SELECT COUNT(DISTINCT rank) FROM captain
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE captain (rank VARCHAR) Question: How many different captain ranks are there? [/INST] SELECT COUNT(DISTINCT rank) FROM captain </s>