There are three sets defined: S is the set of all integers, P is the set of prime numbers, and Q is also the set of prime numbers. P and Q are subsets of S as all prime numbers are integers. The relationship between the sets is that P and Q are subsets of S.