Which complaint status has more than 3 records on file?
CREATE TABLE complaints (complaint_status_code VARCHAR)
SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING COUNT(*) > 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE complaints (complaint_status_code VARCHAR) Question: Which complaint status has more than 3 records on file? [/INST] SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING COUNT(*) > 3 </s>