Three babies in hats are playing with toys on the beach.
Babies in yarn hats play with toys.
The babies are not necessarily in yarn hats.
exists e1 x1 x2 x3 x4.(n_beach(x4) & with(e1,x3) & on(x3,x4) & n_toy(x3) & Actor(e1,x1) & v_play(e1) & in(x1,x2) & n_hat(x2) & n_baby(x1) & card_eq_3(x1))
exists e1 x1 x2 x3 x4.(with(e1,x4) & n_toy(x4) & Actor(e1,x1) & v_play(e1) & in(x1,x2) & n_hat(x2) & of(x2,x3) & n_yarn(x3) & n_baby(x1))