Generate aggregates (relational data)