Children wearing hats and making funny faces while smiling are standing next to a fence in the sand.
The children are at the beach.
Not all children next to a fence with sands are at the beach.
exists e1 e2 e4 e3 s1 x1 x2 x3 x4 x5 x6 x7.(n_sand(x7) & in(e4,x7) & to(e4,x6) & n_fence(x6) & r_next(e4) & Actor(e4,x1) & v_stand(e4) & while(e2,e3) & Actor(e3,x4) & v_smile(e3) & Theme(e2,x5) & Actor(e2,x4) & v_make(e2) & n_face(x5) & a_funny(s1) & Theme(s1,x5) & (x1 = x4) & Theme(e1,x3) & Actor(e1,x2) & v_wear(e1) & n_hat(x3) & (x1 = x2) & n_child(x1))
exists p1 x1 x2.(n_beach(x2) & n_child(x1) & at(x1,x2))