She was William VIII 's second wife , married in 1187 after he left his first wife , Eudokia Komnene , who was the mother of his daughter and heiress , Mary .
Head entity: mary Q268731 31
Tail entity: eudokia komnene Q1228696 18 19
Relation (head \u2192 tail): P25
Inverse relation (tail \u2192 head): P40