Help with aggregation code

Hard to answer without knowing what the module2 and module3 events look like. Which fields do you want to combine from each one?