Task: Text to Code
Input (English): Step 1: find the average bathroom_count of each value of apt_type_code in Apartments table.
Step 2: find apt_type_code of Apartments table ordered descending by the results of step 1.
Step 3: only show the first 3 rows of the results
Output (English): SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY Avg ( bathroom_count ) Desc LIMIT 3