A woman in a yellow hat is talking.
That woman is wearing a yellow hat.
"Is wearing a yellow hat" is a rephrasing of "in a yellow hat".
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.(n_woman(x1) & Theme(e1,x2) & Actor(e1,x1) & v_wear(e1) & n_hat(x2) & a_yellow(s1) & Theme(s1,x2))