modifies query time interval