Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE routes ( rid number, dst_apid number, dst_ap text, src_apid number, src_ap text, alid number, airline text, codeshare text )
TABLE: CREATE TABLE airlines ( alid number, name text, iata text, icao text, callsign text, country text, active text )
TABLE: CREATE TABLE airports ( apid number, name text, city text, country text, x number, y number, elevation number, iata text, icao text )

### Question ###
For each country and airline name, how many routes are there?

### Accurate SQL ###

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