SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 4)
   ExpressionList (children 2)
    WithElement (children 1)
     Subquery (children 1)
      SelectWithUnionQuery (children 1)
       ExpressionList (children 1)
        SelectQuery (children 2)
         ExpressionList (children 2)
          Function rowNumberInAllBlocks (alias R) (children 1)
           ExpressionList
          Function addDays (alias TVV) (children 1)
           ExpressionList (children 2)
            Function toDate (children 1)
             ExpressionList (children 1)
              Literal \'2017-04-01\'
            Identifier R
         TablesInSelectQuery (children 1)
          TablesInSelectQueryElement (children 1)
           TableExpression (children 1)
            Function numbers (children 1)
             ExpressionList (children 1)
              Literal UInt64_5
    WithElement (children 1)
     Subquery (children 1)
      SelectWithUnionQuery (children 1)
       ExpressionList (children 1)
        SelectQuery (children 2)
         ExpressionList (children 2)
          Function rowNumberInAllBlocks (alias R) (children 1)
           ExpressionList
          Function toDateTime (alias TVV) (children 1)
           ExpressionList (children 1)
            Literal NULL
         TablesInSelectQuery (children 1)
          TablesInSelectQueryElement (children 1)
           TableExpression (children 1)
            Function numbers (children 1)
             ExpressionList (children 1)
              Literal UInt64_1
   ExpressionList (children 1)
    Function joinGetOrNull (alias TV1) (children 1)
     ExpressionList (children 3)
      Literal \'test\'
      Literal \'y\'
      Function toDate (children 1)
       ExpressionList (children 1)
        Identifier A.TVV
   TablesInSelectQuery (children 2)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier A
    TablesInSelectQueryElement (children 2)
     TableExpression (children 1)
      TableIdentifier B
     TableJoin (children 1)
      ExpressionList (children 1)
       Identifier R
   ExpressionList (children 1)
    OrderByElement (children 1)
     Identifier TV1
