Two men and one woman are dressed in costume hats.
the people are in costumes
The people in costumes consists of two men and one woman.
exists e1 s1 x1 x2 x3 x4.(in(e1,x4) & n_hat(x4) & a_costume(s1) & Theme(s1,x4) & Theme(e1,x1) & v_dress(e1) & n_woman(x3) & card_eq_1(x3) & n_man(x2) & card_eq_2(x2) & subset_of(x3,x1) & subset_of(x2,x1))
exists p1 x1.(n_people(x1) & exists x2.(in(x1,x2) & n_costume(x2)))