Input (grade 13): After this battle, the future king calls himself "Prince of Portugal", the first step towards "official independence" in 1139, after the Battle of Ourique.
Output (grade 11): After this battle, the future king calls himself "Prince of Portugal", the first step towards "official independence" in 1143.