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