SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 1)
    Function SUM (alias aggr) (children 1)
     ExpressionList (children 1)
      Identifier t1.rev
   TablesInSelectQuery (children 3)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier t1
    TablesInSelectQueryElement (children 2)
     TableExpression (children 1)
      TableIdentifier t0 (alias right_0)
     TableJoin (children 1)
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier t1.id
        Identifier right_0.id
    TablesInSelectQueryElement (children 2)
     TableExpression (children 1)
      TableIdentifier t1 (alias right_1)
     TableJoin (children 1)
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier t1.id
        Identifier right_1.id
