SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 1)
    Function if (children 1)
     ExpressionList (children 3)
      Function and (children 1)
       ExpressionList (children 5)
        Function equals (children 1)
         ExpressionList (children 2)
          Function count (children 1)
           ExpressionList
          Literal UInt64_5
        Function equals (children 1)
         ExpressionList (children 2)
          Function min (children 1)
           ExpressionList (children 1)
            Identifier val
          Literal UInt64_15
        Function equals (children 1)
         ExpressionList (children 2)
          Function max (children 1)
           ExpressionList (children 1)
            Identifier val
          Literal UInt64_19
        Function equals (children 1)
         ExpressionList (children 2)
          Function sum (children 1)
           ExpressionList (children 1)
            Identifier val
          Literal UInt64_85
        Function equals (children 1)
         ExpressionList (children 2)
          Function uniqExact (children 1)
           ExpressionList (children 1)
            Identifier id
          Literal UInt64_2
      Literal \'OK\'
      Literal \'FAIL\'
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 4)
          ExpressionList (children 2)
           Identifier id
           Identifier val
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier num_tab
          ExpressionList (children 1)
           OrderByElement (children 1)
            Identifier val
          Literal Int64_-5
