The wires electric current was producing magnetism, which made the compass needle move.
(The wires; was producing; magnetism, which made the compass needle move) (magnetism; made; the compass needle move)
The wires magnetism
was producing made
magnetism, which made the compass needle move
the compass needle move