Context: CREATE TABLE Paragraphs (document_id VARCHAR)
Question: Show all document ids and the number of paragraphs in each document. Order by document id.
Answer: SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id