Implemented multi-time interval query for state