A man with a yellow hat on is leaning on a wall of some sort.
someone with a yellow hat leans
A man is the one leaning on the wall wearing a yellow hat.
exists e1 s1 s2 x1 x2 x3 x4 x5.(on(e1,x4) & of(x4,x5) & n_sort(x5) & n_wall(x4) & Actor(e1,x1) & v_lean(e1) & with(x1,x2) & Theme(s2,x3) & a_on(s2) & (x2 = x3) & n_hat(x2) & a_yellow(s1) & Theme(s1,x2) & n_man(x1))
exists s1 x1 x2 x3.(a_topic(x1) & with(x1,x2) & n_lean(x2) & of(x2,x3) & n_hat(x3) & a_yellow(s1) & Theme(s1,x2) & n_person(x1))