For the system you have shown, a problem like this would be solved using the macroscopic mechanical energy balance equation, which is an extension of the Bernoulli equation (that takes into account frictional energy losses in the straight pipe sections and in bends, junctions, nozzles, etc). The macroscopic mechanical energy balance equation is given by:
$$\Delta \left(\frac{1}{2}\rho v^2 + \rho g z + p\right)+\sum\left(\frac{1}{2}\rho v^2 f\frac{4L}{D}\right)+\sum\left(\frac{1}{2}\rho v^2 e_v\right)=0$$
where the first summation is carried out over all long straight sections of pipe, f is the Fanning friction factor in each pipe section (correlated as a function of Reynolds number in many sources), the second summation is carried out over all fittings, junctions, bends, etc, and ##e_v## is a friction loss factor for each kind of junction (tabulated in many sources, including Transport Phenomena by Bird, Stewart, and Lightfoot).
Are you familiar with the equation? If so, here is how to use it: Assume a volumetric flow rate for the water, substitute into the equation, and see how well the equation is satisfied. If the left side of the equation does not add up to zero, modify the volumetric flow rate, and try again. So we are dealing with an iterative procedure, until the left hand side of the equation adds up to zero. For the terms that involve the ##\Delta##, you take the first location on the top of the reservoir and the second location at the discharge from the nozzle (so ##\Delta p=0##).
I'll stop here and give you a chance to ask questions.