Answer
mother(X, Y) :- parent(X, Y), female(X).
father(X, Y) :- parent(X, Y), male(X).
![](https://gradesaver.s3.amazonaws.com/uploads/solution/7b220fb6-0c55-4d92-8eac-0f3702bf872a/result_image/1560969880.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJVAXHCSURVZEX5QQ%2F20240908%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240908T001831Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=e22881d56a88cbf3e4b5969e11ef042f9544ed523e79a084e5ec583f35470906)
Work Step by Step
mother(X, Y) :- parent(X, Y), female(X).
father(X, Y) :- parent(X, Y), male(X).
![](https://gradesaver.s3.amazonaws.com/uploads/solution/7b220fb6-0c55-4d92-8eac-0f3702bf872a/steps_image/small_1560969880.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJVAXHCSURVZEX5QQ%2F20240908%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240908T001831Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=3c182cb2f347b1fdb54050b65e839bada6d897e0cd2730e95e28d38176165fa4)
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.