A man is sitting on a platform next to a building ledge.
A woman is inside the building.
In the first sentence, the man is sitting next to the building but in the second it is a woman who is inside the building.  It's two different genders and different locations.
exists e1 x1 x2 x3 x4 x5.(on(e1,x2) & to(x3,x4) & n_ledge(x4) & of(x4,x5) & n_building(x5) & next(x2,x3) & n_thing(x3) & n_platform(x2) & Actor(e1,x1) & v_sit(e1) & n_man(x1))
exists p1 x1 x2.(n_building(x2) & inside(x1,x2) & n_woman(x1))