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

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