sequence_range_from_previous