A woman is standing and opening something while a man is sitting with his arm raised.
A woman is with a man
The woman doing something while the man does something else does not necessarily imply that the woman is with the man.
exists e2 e1 p1 p2 x1 x2 x3 x5 x8 x9.(exists e6 e5 x7 x10.(with(e5,x9) & Theme(e6,x10) & v_raise(e6) & (x9 = x10) & Actor(e5,x7) & v_sit(e5) & n_man(x7)) & n_arm(x9) & of(x9,x8) & n_male(x8) & while(e2,p2) & Theme(e2,x3) & Actor(e2,x2) & v_open(e2) & n_thing(x3) & n_woman(x2) & exists e3 e4 x4 x6.(with(e3,x5) & Theme(e4,x6) & v_raise(e4) & (x5 = x6) & Actor(e3,x4) & v_sit(e3) & n_man(x4)) & n_arm(x5) & of(x5,x1) & n_male(x1) & while(e1,p1) & Actor(e1,x1) & v_stand(e1) & n_woman(x1))
exists p1 x1.(exists x2.(with(x1,x2) & n_man(x2)) & n_woman(x1))