Just started out programming a bit in Prolog but I feel like I've either misunderstood some concept or maybe you have to have more rules.
I would like it so it checks that the son is male and has at least one parent (father/mother)
% Son
son(X, Y):- male(X), father(Y, X).
son(X, Y):- male(X), mother(Y, X).
Is there any way to combine this easily so I don't need two rows which are similar? Maybe something like: Check if X is a male, then check if he has a father, if not check if he has a mother. Only return if X is a male and has a father and/or mother.