Question: (4 MARKS) Q2) Answer the following using PROLOG: Consider the following DB: book (1, title1, george, 2015). book (2, title2, david, 2015). book (3, title3,

 (4 MARKS) Q2) Answer the following using PROLOG: Consider the following

(4 MARKS) Q2) Answer the following using PROLOG: Consider the following DB: book (1, title1, george, 2015). book (2, title2, david, 2015). book (3, title3, david, 2010). book (4, title4, wan, 2011). book (5, title5, sam, 2014). likes (george.susie). likes (george,david). likes (kate,susie). A) Write queries to answer the following questions? 1- What is the title of David? 2- In what year did Susie write a book? B) Add the following to the previous DB: 1- book (6, title6, david, 2011). after the rule likes (kate, susie). 2- likes (david, kate). before the rule c, where c:likes

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!