iQor Interview Question

SQl queries solved using set theory.