The magnetic north pole of the earth attracts the magnetic south pole of the compass needle.
(The magnetic north pole of the earth; attracts; the magnetic south pole of the compass needle)
The magnetic north pole of the earth
attracts
the magnetic south pole of the compass needle