Question: Show the names of trains and locations of railways they are in.
Schema: create table railway (location varchar, railway_id varchar, PRIMARY KEY (location)); create table train (name varchar, railway_id varchar, PRIMARY KEY (name))
SQL: select t2.name, t1.location from railway as t1 join train as t2 on t1.railway_id = t2.railway_id