Input (grade 12): Afonso I was the son of Henry of Burgundy, Count of Portugal and Teresa of León, the illegitimate daughter of King Alfonso VI of León.
Output (grade 7): Afonso Henriques was the son of Henry of Burgundy, Count of Portugal and Teresa of León.