Which template type code has most number of templates?
create table templates (template_type_code varchar, PRIMARY KEY (template_type_code))
select template_type_code from templates group by template_type_code order by count(*) desc limit 1