Schema: CREATE TABLE Documents (template_id VARCHAR)
Question: Show ids for all templates that are used by more than one document.
SQL: SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1