Database: cre_Doc_Template_Mgt
Question: Show all document ids, names and the number of paragraphs in each document.
SQL:
SELECT T1.document_id ,  T2.document_name ,  count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id