How to build aggregation operators from data | Synapse