I have the following database:
vegetarian(jose).
vegetarian(james).
vegetable(carrot).
vegetable(egg_plant).
likes(jose,X):-vegetable(X).
loves(Who,egg_plant):-vegetarian(Who).
When I do the query vegetarian(_).
I was expecting to get _ = jose; _ = james.
but I am instead getting true; true.
If I instead do vegetarian(X).
, then I get the expected answer X = jose; X = james.
Why this difference?