PROLOG QUESTION
(a) Consider the Prolog database gven below p (3,5,2) p(5,2,4) What do the quernes given below return? – bagof (Z,p(X,Y,Z),Bag) *?- findall (Z,p (X,Y,Z) ,Bag) .?- setof (Z,XY”p(X,Y,Z) ,Bag) Show transcribed image text
Expert Answer
An answer will be send to you shortly. . . . .