Quiz Stuff

Quiz 7; October 12; 2'30"; one point per question

  1. Write a query to find out who likes baseball and broccoli and mary.
  2. In terms of "Can you prove...?", what is the following query asking?
    ?- food(X), drink(X).

EC: Write a three-goal query *not* involving the food, color, et al. predicates.
      (No need to explain it!—Just write such a query!)

% Predicate reminders for questions 1 and 2:
food(apple).
...more...
color(lettuce, green).
...more...
likes(bob, mary).
likes(joe, baseball).
...more...
drink(milkshake).
drink(soup).
...more...