Canva Interview Question

How would you write a query to answer this question.