Add group-by support to cassette