def BuildTreeForCombine(parsed_expression, operator, parsed_body, full_text):
  """Construct a tree for a combine expression from the parsed components."""
  aggregated_field_value = {
      'field': 'logica_value',
      'value': {
          'aggregation': {
              'operator': operator,
              'argument': parsed_expression
          }
      }
  }
  result = {
      'head': {
          'predicate_name': 'Combine',
          'record': {
              'field_value': [aggregated_field_value]
          }
      },
      'distinct_denoted': True,
      'full_text': full_text
  }
  if parsed_body:
    result['body'] = {'conjunction': parsed_body}
  return result