SELECT T1.template_id ,  T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1
What is the id and type code for the template used by the most documents?
SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count ( * ) DESC LIMIT 1
select t1 . template_id , t2 . template_type_code from documents as t1 join templates as t2 on t1 . template_id = t2 . template_id group by t1 . template_id order by count ( * ) desc limit value
What is the id and type code for the template used by the most documents ?