Which template type code has most number of templates?
CREATE TABLE Templates (template_type_code VARCHAR)
SELECT TOP 1 template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Templates (template_type_code VARCHAR) Question: Which template type code has most number of templates? [/INST] SELECT TOP 1 template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC </s>