Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.
CREATE TABLE Apartments (apt_type_code VARCHAR)
SELECT apt_type_code, COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Apartments (apt_type_code VARCHAR) Question: Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order. [/INST] SELECT apt_type_code, COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) </s>