Database: cre_Doc_Template_Mgt
Question: Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.
SQL:
SELECT document_id ,  count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id