Show all template type codes with less than three templates.
CREATE TABLE Templates (template_type_code VARCHAR)
SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Templates (template_type_code VARCHAR) Question: Show all template type codes with less than three templates. [/INST] SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3 </s>