Context: CREATE TABLE documents (document_type_code VARCHAR, access_count INTEGER)
Question: What document types do have more than 10000 total access number.
Answer: SELECT document_type_code FROM documents GROUP BY document_type_code HAVING SUM(access_count) > 10000