Simpler scala query