Time periods queries for state attributes.