Input (grade 11): On his father's side, Aga Ali Shah traced his ancestry to the Prophet Muhammad, through his daughter Fatima and his son-in-law Ali b. Abi Talib.
Output (grade 5): The Prophet's daughter Fatima and son-in-law Ali b. Abi Talib were Aqa Ali Shah's ancestors.