Context: CREATE TABLE Paragraphs (document_id VARCHAR)
Question: What is the document id with 1 to 2 paragraphs?
Answer: SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2