112551
The Battle of Algami Canal was fought between Kara Koyunlu under their Bey , Qara Yusuf and the Timurid Empire under the leadership of Timur 's grandson Abu Bakr bin Miran Shah for control of Baghdad and therefore Iraq in late 1402 .
 person: Qara Yusuf; location: Empire; person: Timur; location: Baghdad; location: Iraq
Given options, please tell me the categories of all the listed entity words.Output format is "type1: word1; type2: word2". 
Option: location, person, organization 
Text: {0} 
 Entities: Qara Yusuf, Empire, Timur, Baghdad, Iraq 
Answer:
 person: Qara Yusuf; location: Empire; person: Timur; location: Baghdad; location: Iraq