InsertQuery   (children 2)
 Identifier test_agg_variant
 SelectWithUnionQuery (children 1)
  ExpressionList (children 1)
   SelectQuery (children 2)
    ExpressionList (children 2)
     Identifier Name
     Identifier t (alias Value)
    TablesInSelectQuery (children 1)
     TablesInSelectQueryElement (children 1)
      TableExpression (children 1)
       Subquery (children 1)
        SelectWithUnionQuery (children 1)
         ExpressionList (children 1)
          SelectQuery (children 3)
           ExpressionList (children 2)
            Identifier Name
            Function arrayJoin (alias t) (children 1)
             ExpressionList (children 1)
              Function array (children 1)
               ExpressionList (children 2)
                Function CAST (children 1)
                 ExpressionList (children 2)
                  Function uniqExactState (children 1)
                   ExpressionList (children 1)
                    Identifier Value
                  Literal \'Variant(AggregateFunction(uniqExact, Int64), AggregateFunction(avg, Int64))\'
                Function CAST (children 1)
                 ExpressionList (children 2)
                  Function avgState (children 1)
                   ExpressionList (children 1)
                    Identifier Value
                  Literal \'Variant(AggregateFunction(uniqExact, Int64), AggregateFunction(avg, Int64))\'
           TablesInSelectQuery (children 1)
            TablesInSelectQueryElement (children 1)
             TableExpression (children 1)
              TableIdentifier source
           ExpressionList (children 1)
            Identifier Name
