What are all the documents?
select * from documents
Which document types have more than 10000 total access number?
select document_type_code from documents group by document_type_code having sum(access_count) > 10000