The mechanical energy is used to spin the turbine that converts the mechanical energy into electrical energy and more heat.
(The mechanical energy; is used; to spin the turbine) (the turbine; converts; the mechanical energy; into electrical energy and more heat)
The mechanical energy the turbine
is used converts
to spin the turbine
the mechanical energy into electrical energy and more heat