( ( ( The ( only bodies ) ) ( in ( ( the ( solar system ) ) ( known ( to ( have ( magnetic fields ) ) ) ) ) ) ) ( ( are ( ( ( ( ( ( ( ( the Sun ) , ) Earth ) , ) Mercury ) , ) and ) ( ( the gas ) ( giant planets ) ) ) ) . ) )
(ROOT (S (NP (NP (DT The) (JJ only) (NNS bodies)) (PP (IN in) (NP (NP (DT the) (JJ solar) (NN system)) (VP (VBN known) (S (VP (TO to) (VP (VB have) (NP (JJ magnetic) (NNS fields))))))))) (VP (VBP are) (NP (NP (DT the) (NNP Sun)) (, ,) (NP (NNP Earth)) (, ,) (NP (NNP Mercury)) (, ,) (CC and) (NP (NP (DT the) (NN gas)) (NP (JJ giant) (NNS planets))))) (. .)))
The only bodies in the solar system known to have magnetic fields are the Sun, Earth, Mercury, and the gas giant planets.
(ROOT (S (NP (NNP Mercury)) (VP (VBZ is) (NP (NP (DT the) (NN name)) (PP (IN of) (NP (NP (DT the) (JJS smallest) (NN planet)) (PP (IN in) (NP (NP (PRP$ our) (JJ solar) (NN system)) (, ,) (SBAR (WHNP (WDT which)) (S (VP (VBZ is) (ADVP (RB also)) (NP (NP (JJS nearest)) (PP (TO to) (NP (DT the) (NN sun))))))))))))) (. .)))