father(zeb, john_boy_sr). father(john_boy_sr, john_boy_jr). ancestor( X, Y) :- father( X,Y). ancestor( X, Y) :- father( X, Z), ancestor(Z, Y). ?- ancestor(zeb, Who).
Standard input is empty
prog.pl:10:5: syntax error: . or operator expected after expression 1 error(s) compilation failed
Standard output is empty