parent( mary, john ). parent( ann, mary ). female( mary). mother( X, Y) :- parent( X, Y), female( X). grandparent( X, Y) :- parent( X, Z), parent( Z, Y). ?-female (mary).
Standard input is empty
prog.pl:6:3: syntax error: . or operator expected after expression 1 error(s) compilation failed
Standard output is empty