Following is a demo of the imaginary_friends.pl program.
?- solve. joanne wrote a book about a moose on a circus adventure. lou wrote a book about a bear on a train adventure. ralph wrote a book about a seal on a band adventure. winnie wrote a book about a zebra on a spaceship adventure. true