Solutions to problems at https://sites.google.com/site/prologsite/prolog-problems