Hackweek: Select, Limit, Group By

IntelliJ told me it could make the code simpler and more efficient