Hint
father_of(Father,Child)
andmother_of(Mother,Child)
:
Fathers are male parent and mothers are female parents.grandfather_of(Grandfather,Child)
andgrandmother_of(Grandmother,Child)
:
X
is a grandfather ofY
ifX
is a father ofZ
andZ
is a parent ofY
.X
is a grandmother ofY
ifX
is a mother ofZ
andZ
is a parent ofY
.sister_of(Sister,Person)
andbrother_of(Brother,Person)
:
X
is a sister ofY
ifX
is female andZ
is a parent of bothX
andY
.aunt_of(Aunt,Person)
anduncle_of(Uncle,Person)
:
X
is an aunt ofY
ifX
is a sister ofZ
andZ
is a parent ofY
.