People are outside waving flags.
There is a family in a photo studio.
People and family are not same.
exists e1 s1 x1 x2.(for(s1,e1) & Theme(e1,x2) & Actor(e1,x1) & v_wave(e1) & n_flag(x2) & Theme(s1,x1) & a_outside(s1) & n_people(x1))
exists p1 x1 x2 x3.(in(p1,x2) & n_studio(x2) & of(x2,x3) & n_photo(x3) & exists x4.((x1 = x4) & n_family(x4)))