A woman wearing a hat sitting on a bench on the sidewalk.
A woman is with hat.
The woman is wearing a hat so she is with a hat.
exists e2 e1 x1 x2 x3 x4 x5 x6.(n_sidewalk(x6) & a_topic(x1) & Theme(e2,x3) & Actor(e2,x2) & v_wear(e2) & on(e1,x6) & on(e1,x5) & n_bench(x5) & Actor(e1,x4) & v_sit(e1) & (x3 = x4) & n_hat(x3) & (x1 = x2) & n_woman(x1))
exists p1 x1.(exists x2.(with(x1,x2) & n_hat(x2)) & n_woman(x1))