Question: What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos.
Schema: create table photos (camera_lens_id varchar, PRIMARY KEY (camera_lens_id)); create table camera_lens (name varchar, id varchar, PRIMARY KEY (name))
SQL: 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(*)