Replacing Air Within a Y Range as a Surface Rule?

Hi all. I'm having some extremely weird stuff happen with oceans. It's fairly rare when it happens, but to help with the issue occuring, I'd like to replace all air within a certain Y-range as water. Is this possible to do using a surface rule, and if so, what sort of conditionals would I need for surface rules?

Continue to help post