A woman in a blue hat is talking to a baby in a stroller, while a small boy in is walking away.
The hat is on a woman.
A woman in a blue hat can be rephrased as hat is on a woman.
exists e1 e2 s1 s2 s3 s4 x1 x2 x3 x4 x5 x6.(a_away(s4) & Manner(e2,s4) & Actor(e2,x1) & v_walk(e2) & in(x1,x2) & a_in(s3) & Manner(e1,s3) & while(e1,x6) & n_boy(x6) & a_small(s2) & Theme(s2,x6) & in(e1,x5) & n_stroller(x5) & to(e1,x4) & n_baby(x4) & Actor(e1,x3) & v_talk(e1) & (x2 = x3) & n_hat(x2) & a_blue(s1) & Theme(s1,x2) & n_woman(x1))
exists p1 x1.(n_hat(x1) & exists x2.(on(x1,x2) & n_woman(x2)))