He granted Hainaut to John and Flanders to William.

Entity and relation annotations:
id: 0
type: entity
value: text: Hainaut
labels: <Location>
id: 1
type: entity
value: text: John
labels: <Person>
id: 2
type: entity
value: text: Flanders
labels: <Location>
id: 3
type: entity
value: text: William
labels: <Person>