Task: Text to Code
Input (English): What is the total number of routes for each country and airline in that country?
Output (English): SELECT T1.country ,  T1.name ,  count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.country ,  T1.name