Learning Pilog - 2: Facts, Rules, Queries