changed Query According to changed complement