Input (grade 4): King Afonso I of Portugal takes Abrantes from the Moors.
Output (grade 4): Ramon Berenguer IV, Count of Barcelona fought and beat Tortosa for the Moors.