General
Material
Lecture 1
Lecture 2
Lecture 3
Lecture 4
Lecture 5

Solution

next_to_each_other(X,Y) :-
             sits_right_of(X,Y).
next_to_each_other(X,Y) :-
             sits_left_of(X,Y).
    

Back to the exercise.