Input (grade 4): Battle of São Mamede, near Guimarães: Portuguese forces led by Alfonso I defeat his mother D. Teresa and D. Fernão Peres de Trava.
Output (grade 3): Portuguese forces led by Afonso I beat his mother D.Teresa and D.Fernão Peres de Trava.