The electric current running through the coil of wire produces a magnetic field, which pushes on the the hanging magnet, making it twist.
(The electric current running through the coil of wire; produces; a magnetic field, which pushes on the the hanging magnet) (a magnetic field; pushes; on the the hanging magnet)
The electric current running through the coil of wire a magnetic field
produces pushes
a magnetic field, which pushes on the the hanging magnet
on the the hanging magnet