• Overlap (x,y) == (x.Start <= y.End AND y.Start <= x.End)

    Here overlap means intervals x and y have at least one common point. Intervals are closed, ie boundaries are included. Otherwise just replace '<=' with '<'