SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 1)
   ExpressionList (children 1)
    Function equals (children 1)
     ExpressionList (children 2)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 4)
          ExpressionList (children 3)
           Identifier ts
           Identifier metric
           Function nonNegativeDerivative (alias deriv) (children 1)
            ExpressionList (children 2)
             Identifier metric
             Identifier ts
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier nnd
          Literal UInt64_5
          Literal UInt64_1
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 4)
          ExpressionList (children 3)
           Identifier ts
           Identifier metric
           Function nonNegativeDerivative (alias deriv) (children 1)
            ExpressionList (children 3)
             Identifier metric
             Identifier ts
             Function toIntervalSecond (children 1)
              ExpressionList (children 1)
               Literal UInt64_1
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier nnd
          Literal UInt64_5
          Literal UInt64_1
