The air that is trapped will be pushed out of the outflow end once the weight of the water has overcome it either due to the pressure from the weight of the water above or the suction developed from the weight of the water below once the lower part of the pipe is filled. It will work as long as there isn't significantly more air trapped in the high section of the pipe than there is water filling the lower section of the pipe. Try the experiment.




"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge." Stephen W. Hawking