I want to know the answer to the following question:
Who was the last Safavid ruler who was defeated in 1722 by the Pashtuns in Isfahan?
All the background I'm provided with is that "The Safavid Era saw the start of mass integration from Caucasian populations into new layers of the society of Iran, as well as mass resettlement of them within the heartlands of Iran, playing a pivotal role in the history of Iran for centuries onwards.". Is that enough to answer the question?