facts 2. Ask a question with a variable ?- even(X). 3. Prolog solves for the variable prolog, 2 is even prolog, 4 is even prolog, 6 is even prolog, can you find an even X? X = 2 ; X = 4 ; X = 6.
just_before(X, T), before(T, Y). ?- before(X, homework). X = laundry ; X = dishes. code repl before before Before After laundry homework dishes laundry dishes homework