Complex sentence: The town takes its name from the Sufi Shah Balail who was the grandson of Bahauddin Zakriya Multani, as the shrine is located in this town.
Split into simpler sentences: The town takes its name from the Sufi Shah Balail, who was the grandson of Bahauddin Zakriya Multani. His shrine is located in this town.