How many distinct complaint type codes are there in the database?
CREATE TABLE complaints (complaint_type_code VARCHAR)
SELECT COUNT(DISTINCT complaint_type_code) FROM complaints
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE complaints (complaint_type_code VARCHAR) Question: How many distinct complaint type codes are there in the database? [/INST] SELECT COUNT(DISTINCT complaint_type_code) FROM complaints </s>