┌─Ramon Berenguer III Count of Barcelona ⇒
┌─Ramon Barenguer IV of Barcelona
│ │ ┌─Ramiro II of Aragon
│ │ ┌─Raymond of Burgundy ⇒
│ │ ┌─Alfonso VII King of Leon and Castile
│ │ │ └─Urraca Queen of Leon and Castile
│ │ ┌─Vladislaus II the Exile of Poland
│ └─Agnes of Babenberg ⇒