A man with a beard wearing a brown and white hat and a white shirt is cooking something.
A man has a hat on.
a bearded man wears the brown and white hat. he always wears the hat which means he is wearing it when he is cooking.
exists e2 e1 s1 s2 s3 x1 x2 x3 x4 x5 x6 x7.(Theme(e2,x7) & Actor(e2,x1) & v_cook(e2) & n_thing(x7) & with(x1,x2) & Theme(e1,x4) & Actor(e1,x3) & v_wear(e1) & subset_of(x6,x4) & n_shirt(x6) & a_white(s3) & Theme(s3,x6) & subset_of(x5,x4) & n_hat(x5) & a_white(s2) & Theme(s2,x5) & a_brown(s1) & Theme(s1,x5) & (x2 = x3) & n_beard(x2) & n_man(x1))
exists e1 s1 x1 x2.(a_on(s1) & Manner(e1,s1) & Theme(e1,x2) & Actor(e1,x1) & v_have(e1) & n_hat(x2) & n_man(x1))