Chapter 1: Q55E (page 56)
Given the Prolog facts in Example 28, what would Prolog
return given these queries?
a) ?instructor(chan,math273)
b) ?instructor(patel,cs301)
c) ?enrolled(X,cs301)
d) ?enrolled(kiko,Y)
e) ?teaches(grossman,Y)
Short Answer
a) Yes
b) No
c) Juana and Kiko
d) math273 and cs301
e) Juana and Kiko