select
M.имя_маршрута
,G.имя_города
,G2.имя_города
from Маршруты M
inner join Города G ON M.id_пункта_отправления=G.ID
inner join Города G2 ON M.id_пункта_назначения=G2.ID
SELECT marshrutes.name,
t1.name AS cityFrom,
t2.name AS cityTo
FROM marshrutes
LEFT JOIN city AS t1
ON marshrutes.city1=t1.id
LEFT JOIN city AS t2
ON marshrutes.city2=t2.id
select route.name, departure_city.name, arrival_city.name
from
route
join city departure_city on route.departure_city_id = departure_city.id
join city arrival_city on route.arrival_city_id = arrival_city.id
select
routes.name as route,
cityfrom.name as cityfrom,
cityto.name as cityto
from routes
left join cities cityfrom on routes.from_id = cityfrom.id
left join cities cityto on routes.to_id = cityto.id