Question: How many services has each resident requested? List the resident id, details, and the count in descending order of the count.
Schema: create table residents_services (resident_id varchar, PRIMARY KEY (resident_id)); create table residents (resident_id varchar, other_details varchar, PRIMARY KEY (resident_id))
SQL: select t1.resident_id, t1.other_details, count(*) from residents as t1 join residents_services as t2 on t1.resident_id = t2.resident_id group by t1.resident_id order by count(*) desc