SCHEMA:
CREATE TABLE Documents (template_id VARCHAR)
User Question:
Show ids for all templates that are used by more than one document.


SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1