Added queries to find gaps and overlaps in SCD2 tables