Return the subsequences where the temporal value stays within a given distance for at least a given duration.