You have 3 scripts for overlapping: contains start, contains the range of end and wraps. This can be expressed in SQL as follows:
select count(1)
from YourTable
where (@start >= Start and @start <= End)
or (@end >= Start and @end <= End)
or (@start < Start and @end > End)
, , .