Men with hard hats lean against a building.
Men in chef's hats are cooking.
Either men wearing hard hats lean on a building or they are cooking while wearing chef's hats.
exists e1 s1 x1 x2 x3.(against(e1,x3) & n_building(x3) & Actor(e1,x1) & v_lean(e1) & with(x1,x2) & n_hat(x2) & a_hard(s1) & Theme(s1,x2) & n_man(x1))
exists e1 x1 x2 x3.(Actor(e1,x1) & v_cook(e1) & in(x1,x3) & n_hat(x3) & of(x3,x2) & n_chef(x2) & n_man(x1))