CREATE TABLE airports (name VARCHAR2, apid VARCHAR2)
CREATE TABLE routes (src_apid VARCHAR2)

Find the number of routes and airport name for each source airport, order the results by decreasing number of routes.
SELECT COUNT(*), T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY COUNT(*) DESC
SELECT COUNT(*), "T1"."name" FROM "airports" "T1" JOIN "routes" "T2" ON "T1"."apid" = "T2"."src_apid" GROUP BY "T1"."name" ORDER BY COUNT(*) DESC