Rewrite datalog code for groupby term rearrangement
Generalize decomposable aggregates to n-ary local/merge aggregates
decrease indent
Implement distributed average using a finalizer expression
Create a unit test that combines distributive and algebraic aggregates