Complex sentence: Karakhanids were several times defeated by Aslan's forces and finally in 1025, Karakhanid sultan Yusuf Kadir met with Mahmud of Ghazni to plan a joint action against Kınık.
Split into simpler sentences: Karakhanids were several times defeated by Aslan's forces. Finally in 1025, Karakhanid sultan Yusuf Kadir met with Mahmud of Ghazni to form a coalition against Kınık.