Affinity Solutions interview question

How to pull certain SQL information using queries