( ( Chemical X ) ( ( will ( ( dissolve ( in ( chemical Y ) ) ) ( if ( ( molecules ( of X ) ) ( ( attract ( molecules ( of Y ) ) ) ( ( just ( as strongly ) ) ( as ( they ( attract ( each other ) ) ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (NNP Chemical) (NNP X)) (VP (MD will) (VP (VB dissolve) (PP (IN in) (NP (JJ chemical) (NNP Y))) (SBAR (IN if) (S (NP (NP (NNS molecules)) (PP (IN of) (NP (NNP X)))) (VP (VBP attract) (NP (NP (NNS molecules)) (PP (IN of) (NP (NNP Y)))) (ADVP (ADVP (RB just) (RB as) (RB strongly)) (SBAR (IN as) (S (NP (PRP they)) (VP (VBP attract) (NP (DT each) (JJ other))))))))))) (. .)))
Chemical X will dissolve in chemical Y if molecules of X attract molecules of Y just as strongly as they attract each other.
(ROOT (S (PP (VBN Compared) (PP (IN with) (NP (NP (DT the) (NNS molecules)) (PP (IN of) (NP (JJ many) (JJ other) (NNS substances)))))) (, ,) (NP (NP (NNS molecules)) (PP (IN of) (NP (NN water)))) (VP (VBP are) (ADVP (RB strongly)) (VP (VBN attracted) (PP (TO to) (NP (DT each) (JJ other))))) (. .)))