Program: Write prolog clauses to express the subsequent relationships, given the parent relationship: grand-parent, sibling, cousin.
so far i have:
ancestor(X,X).
ancestor(X,Y) :- ancestor(X, Z), parent(Z, Y).
PLEASE make sure it compiles and write the full program to receive full credit. Thank you so much for your help.