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