Two men with caps on their head walking.
Two men with caps on their heads walking outside.
in both sentences, there are two men with caps on their heads walking.
exists x1 x2 x3 x4.(a_topic(x1) & with(x1,x2) & on(x2,x3) & n_walking(x3) & of(x3,x4) & n_head(x4) & of(x3,x1) & n_thing(x1) & n_cap(x2) & n_man(x1) & card_eq_2(x1))
exists e1 s1 x1 x2 x3 x4.(a_topic(x1) & a_outside(s1) & Manner(e1,s1) & Actor(e1,x4) & v_walk(e1) & (x1 = x4) & with(x1,x2) & on(x2,x3) & n_head(x3) & of(x3,x1) & n_thing(x1) & n_cap(x2) & n_man(x1) & card_eq_2(x1))