updating time queries to support single range value