Barclays Interview Question

SQL business case to pull the data