SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 1)
    Identifier t1_distr.id
   TablesInSelectQuery (children 2)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier t1_distr
    TablesInSelectQueryElement (children 2)
     TableExpression (children 1)
      Subquery (alias s0) (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 4)
          ExpressionList (children 1)
           Identifier t1_distr.id
          TablesInSelectQuery (children 2)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier t1_distr (alias d1)
           TablesInSelectQueryElement (children 2)
            TableExpression (children 1)
             TableIdentifier t2_distr (alias d2)
            TableJoin (children 1)
             Function equals (children 1)
              ExpressionList (children 2)
               Identifier t1_distr.id
               Identifier t2_distr.id
          Function greater (children 1)
           ExpressionList (children 2)
            Identifier t1_distr.id
            Literal UInt64_0
          ExpressionList (children 1)
           OrderByElement (children 1)
            Identifier t1_distr.id
     TableJoin (children 1)
      ExpressionList (children 1)
       Identifier id
