SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 3)
   ExpressionList (children 1)
    Identifier t1_distr.id
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier t1_distr
   Function in (children 1)
    ExpressionList (children 2)
     Identifier t1_distr.id
     Subquery (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
