What is the document id with least number of paragraphs?
create table paragraphs (document_id varchar, PRIMARY KEY (document_id))
select document_id from paragraphs group by document_id order by count(*) limit 1