Task: Text to Code
Input (English): SQL: SELECT name , Count ( * ) FROM photos GROUP BY camera_lens_id ORDER BY Count ( * ) Asc
Feedback: Replace camera lens id with id in step 1 , and camera lens id in photos table with name in camera lens .
Output (English): SELECT T1.name ,  count(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id  =  T2.camera_lens_id GROUP BY T1.id ORDER BY count(*)