Input (grade 0): It was the fourth and final Arab caliphate.
Output (grade 3): It was an Arab Shi'a dynasty It ruled the fourth and final Arab caliphate.