print out the predicate, subject and object of each statement