Affinity Solutions Interview Question

How to pull certain SQL information using queries