This is an interesting question. I don't think that's impossible with modern LLMs at all.
If I ask ChatGPT "How far is Seville from the capital of Spain, Paris?", it tells me "Paris is the capital of France; Madrid is the capital of Spain.
Seville is about 390 km (240 mi) southwest of Madrid in a straight line, or roughly 530 km (330 mi) by road. The high-speed train takes around 2Β½β3 hours."