This is my prolog file.
male(bob).
male(john).
female(betty).
female(dana).
father(bob, john).
father(bob, dana).
mother(betty, john).
mother(betty, dana).
daughter(X, Y) :- female(X), mother(Y, X).
I want to query something like this daughter(X, mother(Y, john)).
Is it possible?
I'm trying to get daughter of john's mother.
I got this idea from here under 'Asking Questions with Structures'