I want to know the answer to the following question:
What two cities were at war during this time?
All the background I'm provided with is that "War meanwhile continued between the rulers of Isfahan and Hamadãn; in 1024 the former captured Hamadan and its towns, expelling the Tajik mercenaries.". Is that enough to answer the question?
Answer: yes