Question: Show ids for all templates that are used by more than one document.
Schema: create table documents (template_id varchar, PRIMARY KEY (template_id))
SQL: select template_id from documents group by template_id having count(*) > 1