A baby is crying while holding on to the side of a crib.
The baby is wearing pajamas.
we can't infer that he was wearing pajamas from sentence 1
exists e2 e1 x1 x2 x3.(n_side(x2) & while(e1,e2) & r_on(e2) & to(e2,x2) & of(x2,x3) & n_crib(x3) & Actor(e2,x1) & v_hold(e2) & Actor(e1,x1) & v_cry(e1) & n_baby(x1))
exists e1 x1 x2.(n_baby(x1) & Theme(e1,x2) & Actor(e1,x1) & v_wear(e1) & n_pajamas(x2))