How much energy needed to push a volume of water?

I am trying to solve a situation, where I'd like to know how much energy would be needed to push a mass of water out of a container. Here's an image to help understand:

The water tank has a height of 2 meters, length of 6 meters, and width of 4 meters. If a piston, much like a coffee press but watertight, pushes the water with only the hole on top of the container, as shown in the drawing, as an exit point, how much energy would be needed for that device to go all the way to the other side of the container? Assuming the hole is 1 square meter, if that can help.

I understand there are a lot of forces to take into consideration, such as friction, hydrostatic pressure, and more, but I'm trying to figure out if it would require a lot of energy or would it remain minimal? What is the force that will require the most energy? Hydrostatic pressure?

If there is a formula that would enable me to figure this out, that is all I'm asking, I can try and do the math myself, but I can't figure out where to start!

Thanks a lot for the help!

-
Hi @Yoan. Welcome to Phys.SE. If you haven't already done so, please take a minute to read the definition of when to use the homework tag, and the Phys.SE policy for homework-like problems. In particular, please note that it doesn't have to be actual homework for the homework tag to apply. –  Qmechanic Mar 4 at 21:12
Hello Qmechanic, thank you for your message. This is not a homework, I am not a student or a professional in a scientific area, I am just trying to understand how forces work! –  Yoan Mar 5 at 16:02

I don't think that the size of the hole has an influence on the energy required. Friction is a complicated matter here, not easy to calculate. Try to calculate the pressure imposed by the water on the piston. The force working against that pressure will require most energy.

Edit

The pressure on the piston isn't uniform along its height in this case. At any given height the pressure is $p=\rho g z$, where $z$ is the vertical coordinate. To get the force required to counteract the pressure imposed on the piston You need to integrate this formula across the piston surface:

$F=\int_Sda$ = $F=\rho g \int_0^w \int_0^h zdzdx$

Finally, after the integration:

$F_{piston}= \frac{1}{2} \rho g w h^2$,

where $\rho$ is the density of the fluid, $g$ is the gravitational acceleration, $w$ is the tank's (and piston's) width and $h$ is the tank's (and piston's) height.

Having the force all You need to do is multiply it by tank's length to get the work (and energy) required.

-
It isn't meant as new question. Compute the energy needed to lift the respective layers of water above the valve. You don't even need integration, if all layers have the same surface $A= 6m\cdot 4m$. Then it's lifting the weight seen as point mass half the high => $E = m* g* h/2$ –  Lord_Gestalter Mar 4 at 13:36