Question: Find the number of routes operated by American Airlines.
Schema: create table routes (alid varchar, PRIMARY KEY (alid)); create table airlines (alid varchar, name varchar, PRIMARY KEY (alid))
SQL: select count(*) from airlines as t1 join routes as t2 on t1.alid = t2.alid where t1.name = 'american airlines'