Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.
return document ids ;return the  different #1 ;return paragraphs in #2 ;return the  number of  #3 for each of #2 ;return #2 ,  #4 ;return #5 sorted by #2
['select', 'project', 'project', 'group', 'union', 'sort']