A man walks by a portrait of a man on the wall
The man is at the art museum looking at paintings.
Portrait on the wall implies art museum.
exists e1 x1 x2 x3 x4.(n_wall(x4) & on(e1,x4) & by(e1,x2) & of(x2,x3) & n_man(x3) & n_portrait(x2) & Actor(e1,x1) & v_walk(e1) & n_man(x1))
exists p1 x1 x2 x3.(n_museum(x2) & of(x2,x3) & n_art(x3) & n_man(x1) & exists e1 x4 x5.(at(x1,x2) & at(e1,x5) & n_painting(x5) & Actor(e1,x4) & v_look(e1) & (x2 = x4)))