What are the project ids of those?
SELECT project_id FROM Documents GROUP BY project_id HAVING count ( * )    > =    3
project ids of those refers to SELECT project_id; having more than or equal to 3 documents refers to HAVING COUNT(*) >= 3;