SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 3)
    Function arrayReduce (alias a) (children 1)
     ExpressionList (children 2)
      Literal \'sumDistinctState\'
      Literal Array_[UInt64_1, UInt64_2, UInt64_3]
    Function arrayReduce (alias b) (children 1)
     ExpressionList (children 2)
      Literal \'sumDistinctState\'
      Literal Array_[UInt64_2, UInt64_3, UInt64_4]
    Function arrayReduce (alias c) (children 1)
     ExpressionList (children 2)
      Literal \'sumDistinctState\'
      Literal Array_[UInt64_3, UInt64_4, UInt64_5]
   ExpressionList (children 9)
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Identifier a
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Identifier b
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Identifier c
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Function plus (children 1)
       ExpressionList (children 2)
        Identifier a
        Identifier b
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Function plus (children 1)
       ExpressionList (children 2)
        Identifier a
        Identifier c
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Function plus (children 1)
       ExpressionList (children 2)
        Identifier b
        Identifier c
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Function plus (children 1)
       ExpressionList (children 2)
        Function plus (children 1)
         ExpressionList (children 2)
          Identifier a
          Identifier b
        Identifier c
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Function plus (children 1)
       ExpressionList (children 2)
        Function plus (children 1)
         ExpressionList (children 2)
          Identifier b
          Identifier c
        Identifier a
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Function plus (children 1)
       ExpressionList (children 2)
        Function plus (children 1)
         ExpressionList (children 2)
          Identifier c
          Identifier a
        Identifier b
