A boy in a red denim jacket plays in the sand with a flag in it.
A boy is playing in the sand.
A boy is playing in the sand that has a flag in it.
exists e1 s1 x1 x2 x3 x4 x5.(n_thing(x4) & n_sand(x4) & with(e1,x5) & in(x5,x4) & n_flag(x5) & in(e1,x4) & Actor(e1,x1) & v_play(e1) & in(x1,x2) & n_jacket(x2) & of(x2,x3) & n_denim(x3) & a_red(s1) & Theme(s1,x2) & n_boy(x1))
exists e1 x1 x2.(n_sand(x2) & in(e1,x2) & Actor(e1,x1) & v_play(e1) & n_boy(x1))