Pergunta de entrevista da empresa Mollie

SQL question with joins, having, etc