AND & OR & max on a segment#4504