Question: Please answer the following question in compatibility mode Ask Prolog if Albert is the parent of Peter by entering the query. Ask Prolog if Albert

Please answer the following question in compatibility mode

  1. Ask Prolog if Albert is the parent of Peter by entering the query.

  1. Ask Prolog if Albert is the parent of Brian by entering the query:

  1. Ask, "Who are the parents of Brian?":

  1. Ask, "Is Irene a grandparent of Brian?" This can be answered by finding out if Irene is the parent of someone who is the parent of Brian.

  1. Find all the grandchildren of Irene

  1. Add rule to define grandparent relation.

  1. Add rule to define who is the older.

  1. Using the rules that you are defined in 7, and 6 ,(siblings, older), define new rule: bigBrother. Hint the big brother should be male.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!