( Ions ( ( are ( ( electrons and ) ( ( ( atoms and ) molecules ) ( which ( ( ( have loss ) or ) ( gained electrons ) ) ) ) ) ) . ) )
(ROOT (S (NP (NNS Ions)) (VP (VBP are) (NP (NP (NNS electrons)) (CC and) (NP (NP (NNS atoms) (CC and) (NNS molecules)) (SBAR (WHNP (WDT which)) (S (VP (VP (VBP have) (NP (NN loss))) (CC or) (VP (VBD gained) (NP (NNS electrons))))))))) (. .)))
Ions are electrons and atoms and molecules which have loss or gained electrons.
(ROOT (S (SBAR (WHADVP (WRB When)) (S (NP (DT an) (NN atom)) (VP (VBZ gains) (CC or) (VBZ loses) (NP (DT an) (NN electron))))) (NP (PRP it)) (VP (VBZ becames) (NP (DT a) (PRN (-LRB- -LRB-) (NP (NN n)) (-RRB- -RRB-)) (NN ion))) (. .)))