Trello interview question

Write a query to get this data