Fixed Overlap Structure

overlap sql wasn't correct.

we should add a test for this