Improved time frame in previous queries