A woman in a swimsuit sitting on a bench with a dog.
A woman and dog on the beach.
in a both sentence woman and dog are different.
exists e1 x1 x2 x3 x4 x5.(a_topic(x1) & in(x1,x2) & with(e1,x5) & n_dog(x5) & on(e1,x4) & n_bench(x4) & Actor(e1,x3) & v_sit(e1) & (x2 = x3) & n_swimsuit(x2) & n_woman(x1))
exists s1 x1 x2 x3.(n_beach(x3) & a_topic(s1) & subset_of(x2,s1) & on(x2,x3) & n_dog(x2) & subset_of(x1,s1) & n_woman(x1))