People looking over the rail at something in the distance.
People looking in the distance
If you are looking in the distance you are not looking at something.
exists e1 x1 x2 x3 x4.(n_distance(x4) & n_rail(x2) & over(e1,x2) & at(x2,x3) & in(x3,x4) & n_thing(x3) & Actor(e1,x1) & v_look(e1) & n_people(x1))
exists e1 x1 x2 x3.(n_distance(x3) & a_topic(x1) & in(e1,x3) & Actor(e1,x2) & v_look(e1) & (x1 = x2) & n_people(x1))