Show all template ids and number of documents using each template.
CREATE TABLE Documents (template_id VARCHAR)
SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Documents (template_id VARCHAR) Question: Show all template ids and number of documents using each template. [/INST] SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id </s>