Show the top 3 apartment type codes sorted by the average number of rooms in descending order.
CREATE TABLE Apartments (apt_type_code VARCHAR, room_count INTEGER)
SELECT TOP 3 apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY AVG(room_count) DESC
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Apartments (apt_type_code VARCHAR, room_count INTEGER) Question: Show the top 3 apartment type codes sorted by the average number of rooms in descending order. [/INST] SELECT TOP 3 apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY AVG(room_count) DESC </s>