Find the average access count of documents with the least popular structure.
CREATE TABLE documents (access_count INTEGER, document_structure_code VARCHAR)
SELECT TOP 1 AVG(access_count) FROM documents GROUP BY document_structure_code ORDER BY COUNT(*)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE documents (access_count INTEGER, document_structure_code VARCHAR) Question: Find the average access count of documents with the least popular structure. [/INST] SELECT TOP 1 AVG(access_count) FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) </s>