Implementation+Task+2+-+Declarative+Languages

Enter the following code into a prolog editor



Now perform the following queries:

Is trude the mother of sally? ?- mother_child(trude, sally).

Is trude the mother of erica? ?- mother_child(trude, erica).

Who is tom the father of? ?- father_child(tom, X).

Is sally a sibling of erica? ?- sibling(sally, erica).