CUBE
The CUBE operator is a generalization of the group-by operator
The straightforward way to support it is to write a collection of group-by’s
The CUBE and the group-by work on an aggregating function (e.g. sum, count)
Assumption: the function is distributive