Hydrogen must be separated from water using electrolysis. That requires energy. Where did the energy come from?
Much less how much more energy was required for the electrolysis than was able to gained from the Hydrogen.
Wrong.
Most hydrogen for commercial use comes from methane, natural gas or other hydrocarbon sources.
There are many types of hydrogen based on the source material, but not much comes from water.