A woman in a yellow hat is talking.
That woman, in the yellow hat, is talking to her friend.
Just because the woman is talking does not mean she is talking to a friend.
exists e1 s1 x1 x2.(Actor(e1,x1) & v_talk(e1) & in(x1,x2) & n_hat(x2) & a_yellow(s1) & Theme(s1,x2) & n_woman(x1))
exists e1 s1 x1 x2 x3.(n_hat(x2) & a_yellow(s1) & Theme(s1,x2) & n_friend(x3) & of(x3,x2) & n_female(x2) & n_woman(x1) & in(e1,x2) & to(e1,x3) & Actor(e1,x1) & v_talk(e1))