Question: Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.
Schema: create table apartments (apt_type_code varchar, PRIMARY KEY (apt_type_code))
SQL: select apt_type_code, count(*) from apartments group by apt_type_code order by count(*)