Report question

Question: In Scala, how can I do the equivalent of an SQL SUM and GROUP BY?