The turbine shafts are connected to a generator that converts the mechanical energy into electrical energy.
(The turbine shafts; are connected; ) (a generator; converts; the mechanical energy; into electrical energy)
The turbine shafts a generator
are connected converts
the mechanical energy into electrical energy