Task: Text to Code
Input (English): Step 1: find the average min_visibility_miles of each value of zip_code in weather table.
Step 2: find zip_code in weather table whose corresponding value in step 1 is less than 10
Output (English): SELECT zip_code FROM weather GROUP BY zip_code HAVING Avg ( min_visibility_miles ) < 10