Code examples for an introduction to Prolog located on my website @ http://meschbach.com/kb/prolog-programmers-introduction.html