SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 4)
    Function count (children 1)
     ExpressionList
    Function countIf (children 1)
     ExpressionList (children 1)
      Function isNull (children 1)
       ExpressionList (children 1)
        Identifier l.id
    Function sum (children 1)
     ExpressionList (children 1)
      Function coalesce (children 1)
       ExpressionList (children 2)
        Identifier l.id
        Literal UInt64_0
    Function sum (children 1)
     ExpressionList (children 1)
      Identifier r.id
   TablesInSelectQuery (children 2)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (alias l) (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 2)
          ExpressionList (children 1)
           Identifier number (alias id)
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             Function numbers (children 1)
              ExpressionList (children 1)
               Literal UInt64_15000
    TablesInSelectQueryElement (children 2)
     TableExpression (children 1)
      Subquery (alias r) (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 2)
          ExpressionList (children 1)
           Identifier number (alias id)
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             Function numbers (children 1)
              ExpressionList (children 1)
               Literal UInt64_20000
     TableJoin (children 1)
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier l.id
        Identifier r.id
