I want to know the answer to the following question:
Who did the Umayyads defeat?
All the background I'm provided with is that "In the 11th century, during the reign of Mahmud of Ghazni, the province became an important centre with Lahore as its second capital[citation needed] of the Ghaznavid Empire based out of Afghanistan.". Is that enough to answer the question?
Answer: no