Group rows from Slick query results according to the join structure of the query.