Database: cre_Doc_Template_Mgt
Question: What is the document id with least number of paragraphs?
SQL:
SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1