Combining nested and none nested fields in aggregate query

Which aggregation are we talking about and how should fields be combined?