Report question

Question: How would you do this Rails sub-query using Squeel?