For example, in the flashlight the chemical energy in the batteries is first converted to electrical energy in the wires leading to the bulb.
(the chemical energy in the batteries; is converted; to electrical energy; T:in the wires; T:first) (the wires; leading; to the bulb)
the chemical energy in the batteries the wires
is converted leading
to electrical energy T:in the wires T:first
to the bulb