S&P Global Interview Question

Comfortable with SQl and query writing