Find the total access count of all documents in the most popular document type.
CREATE TABLE documents (access_count INTEGER, document_type_code VARCHAR)
SELECT TOP 1 SUM(access_count) FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE documents (access_count INTEGER, document_type_code VARCHAR) Question: Find the total access count of all documents in the most popular document type. [/INST] SELECT TOP 1 SUM(access_count) FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC </s>