Task: Text to Code
Input (English): Step 1: for each value of product_name in Products table, calculate number of rows.
Step 2: show each value of product_name in Products table along with the corresponding number of rows ordered ascending by the results of step 1
Output (English): SELECT product_name , Count ( * ) FROM Products GROUP BY product_name ORDER BY Count ( * ) Asc