The baby has learned that only when he is distraught will the parent reliably come to his aid.
( ( The baby ) ( ( has ( learned ( that ( ( only ( when ( he ( is distraught ) ) ) ) ( ( will ( ( the parent ) reliably ) ) ( come ( to ( his aid ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (DT The) (NN baby)) (VP (VBZ has) (VP (VBN learned) (SBAR (IN that) (S (SBAR (RB only) (WHADVP (WRB when)) (S (NP (PRP he)) (VP (VBZ is) (ADJP (JJ distraught))))) (VP (MD will) (ADVP (NP (DT the) (NN parent)) (RB reliably)) (VP (VB come) (PP (TO to) (NP (PRP$ his) (NN aid))))))))) (. .)))
Most babies cry for affection, not for any urgent danger.
( ( Most babies ) ( ( ( ( cry ( for affection ) ) , ) ( not ( for ( any ( urgent danger ) ) ) ) ) . ) )
(ROOT (S (NP (JJS Most) (NNS babies)) (VP (VBD cry) (PP (IN for) (NP (NN affection))) (, ,) (ADVP (RB not) (PP (IN for) (NP (DT any) (JJ urgent) (NN danger))))) (. .)))