SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 3)
    Function divide (children 1)
     ExpressionList (children 2)
      Function finalizeAggregation (children 1)
       ExpressionList (children 1)
        Function uniqThetaIntersect (children 1)
         ExpressionList (children 2)
          Identifier uv2021
          Identifier uv2022
      Function finalizeAggregation (children 1)
       ExpressionList (children 1)
        Identifier uv2021
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Function uniqThetaIntersect (children 1)
       ExpressionList (children 2)
        Identifier uv2021
        Identifier uv2022
    Function finalizeAggregation (children 1)
     ExpressionList (children 1)
      Identifier uv2021
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 2)
          ExpressionList (children 2)
           Function uniqThetaStateIf (alias uv2021) (children 1)
            ExpressionList (children 2)
             Identifier uv
             Function equals (children 1)
              ExpressionList (children 2)
               Identifier year
               Literal \'2021\'
           Function uniqThetaStateIf (alias uv2022) (children 1)
            ExpressionList (children 2)
             Identifier uv
             Function equals (children 1)
              ExpressionList (children 2)
               Identifier year
               Literal \'2022\'
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier test2
