code: func (r *RecordAccess) SubAggregateQuery(query *Query, groupBy ...string) ([]*AggregateResult, error) {
  	return aggregateQuery(r.tx, r.record, query, groupBy...)
  }
docs: // SubAggregateQuery allows you to run another aggregate query in the same transaction for each
  // record in a parent query