SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 3) ExpressionList (children 1) Identifier distr1.id TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier distr1 Function in (children 1) ExpressionList (children 2) Identifier distr1.id Subquery (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 3) ExpressionList (children 1) Identifier distr1.id TablesInSelectQuery (children 2) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier distr1 TablesInSelectQueryElement (children 2) TableExpression (children 1) TableIdentifier distr2 TableJoin (children 1) Function equals (children 1) ExpressionList (children 2) Identifier distr1.id Identifier distr2.id Function greater (children 1) ExpressionList (children 2) Identifier distr1.id Literal UInt64_0