How many different templates do all document use?
CREATE TABLE Documents (template_id VARCHAR)
SELECT COUNT(DISTINCT template_id) FROM Documents
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Documents (template_id VARCHAR) Question: How many different templates do all document use? [/INST] SELECT COUNT(DISTINCT template_id) FROM Documents </s>