Picture of a hotdog vendor in the street.
A picture of a hamburger restaurant inside a mall.
The picture is of a hotdog vendor in the street not of a hamburger restaurant inside a mall.
exists x1 x2 x3 x4.(n_street(x4) & a_topic(x1) & of(x1,x2) & in(x2,x4) & n_vendor(x2) & of(x2,x3) & n_hotdog(x3) & n_picture(x1))
exists x1 x2 x3 x4.(a_topic(x1) & of(x1,x2) & inside(x2,x4) & n_mall(x4) & n_restaurant(x2) & of(x2,x3) & n_hamburger(x3) & n_picture(x1))