Pergunta de entrevista da empresa Grange Insurance Association

They gave me a SQL query and asked me to make the necessary changes so that it functions the way that it should.