A man in a uniform smiling and waving at the camera.
A man is taking pictures of near by people while with friends
Waving at the camera does not mean that he is taking pictures.
exists s1 x1 x2 x3 x4 x5.(n_camera(x5) & a_topic(x1) & at(x1,x5) & in(x1,x2) & n_wave(x4) & n_smiling(x3) & a_uniform(s1) & Theme(s1,x3) & subset_of(x4,x2) & subset_of(x3,x2) & n_man(x1))
exists e1 s1 x1 x2 x3 x4 x5.(with(e1,x5) & n_friend(x5) & r_while(e1) & by(e1,x4) & n_people(x4) & Theme(e1,x2) & Actor(e1,x1) & v_take(e1) & Theme(s1,x3) & a_near(s1) & (x2 = x3) & n_picture(x2) & n_man(x1))