Pregunta de entrevista de Canva

How would you write a query to answer this question.