Input (grade 10): However campaigns into Egypt faltered against the resistance of the Abbasids (914-915 and 919-921), with heavy casualties.
Output (grade 7): But campaigns into Egypt failed because of the resistance of the Abbasids (914-915 and 919-921).