truth table (p or q) and (p implies r) and ~r implies q