S&P Global Interview Question

SQL queries