According to the equation of continuity, if the exit hole of the pipe is partially closed, the water stream comes out with more velocity due to decrease in area. This results in the water stream going to a larger distance.