Question: List all document ids with at least two paragraphs.
Schema: create table paragraphs (document_id varchar, PRIMARY KEY (document_id))
SQL: select document_id from paragraphs group by document_id having count(*) >= 2