Find the total access count of all documents in the most popular document type.
SELECT sum ( access_count )  FROM documents GROUP BY document_type_code ORDER BY count ( * )  DESC LIMIT 1
most popular document type refers to the document_type_code with the highest count of documents; total access count of all documents refers to SUM(access_count);