Morningstar interview question

Question regarding sql and powerbi