Of these five men in police or security uniforms, two are hugging.
Two out of five men in uniforms are hugging.
Just because men are in uniforms it does not mean they are police or security.
exists e1 x1 x2 x3.(n_man(x2) & card_eq_5(x2) & of(e1,x2) & in(x2,x3) & (exists x4.(n_uniform(x3) & of(x3,x4) & n_police(x4)) | exists x5.(n_uniform(x3) & of(x3,x5) & n_security(x5))) & Actor(e1,x1) & v_hug(e1) & n_thing(x1) & card_eq_2(x1))
exists e1 x1 x2 x3 x4.(Actor(e1,x1) & v_hug(e1) & of(x2,x3) & in(x3,x4) & n_uniform(x4) & n_man(x3) & card_eq_5(x3) & out(x1,x2) & n_thing(x2) & n_thing(x1) & card_eq_2(x1))