Non-consecutive and conditional inference on a chain done