Show all document ids and the number of paragraphs in each document. Order by document id.
return documents ;return document ids of  #1 ;return paragraphs of  #1 ;return number of  #3 for each  #1 ;return #2 ,  #4 ;return #5 sorted by #2
['select', 'project', 'project', 'group', 'union', 'sort']