Show ids for all templates that are used by more than one document.
CREATE TABLE Documents (template_id VARCHAR)
SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Documents (template_id VARCHAR) Question: Show ids for all templates that are used by more than one document. [/INST] SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1 </s>