Task: Text to Code
Input (English): Step 1: for each value of Document_ID in Paragraphs table, calculate number of rows.
Step 2: show each value of Document_ID in Paragraphs table along with the corresponding number of rows ordered ascending by the results of step 1
Output (English): SELECT Document_ID , Count ( * ) FROM Paragraphs GROUP BY Document_ID ORDER BY Count ( * ) Asc