Frage im Vorstellungsgespräch bei thoughtbot

Given this relationship between two different models, write an SQL statement that returns X.