Input (grade 9): Later the caliphate was won by the Abbasids, and Al-Andalus (or Hispania) split from the Abbasid Caliph in Baghdad to form their own caliphate.
Output (grade 9): Later the caliphate was won by the Abbasids and Al-Andalus (or Hispania) split from the Abbasid Caliph in Baghdad to form their own caliphate.