CREATE TABLE documents (document_type_code VARCHAR, access_count INT)

What document types do have more than 10000 total access number.
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING SUM(access_count) > 10000
SELECT "document_type_code" FROM "documents" GROUP BY "document_type_code" HAVING SUM("access_count") > 10000