A woman is resting her shoulder on a man's shoulder while riding the subway.
A women is in a subway
A woman resting while riding the subway means a women is in a subway.
exists e2 e1 x1 x2 x3 x4 x5.(n_subway(x5) & while(e1,e2) & Theme(e2,x5) & Actor(e2,x1) & v_ride(e2) & on(e1,x4) & n_shoulder(x4) & of(x4,x3) & n_man(x3) & Theme(e1,x2) & Actor(e1,x1) & v_rest(e1) & n_shoulder(x2) & of(x2,x1) & n_female(x1) & n_woman(x1))
exists p1 x1.(exists x2.(in(x1,x2) & n_subway(x2)) & n_woman(x1))