A brown dog is laying on its back on a white carpet with a green ball on it.
A dog is lying down inside near a ball.
If a dob is lying down, it is laying on its back. If the dog is laying on its back on a white carpet, and the carpet has a green ball on it, the dog is near a ball.
exists e1 s1 s2 s3 x1 x2 x3 x4.(on(e1,x2) & on(x2,x3) & with(x3,x4) & on(x4,x1) & n_thing(x1) & n_thing(x1) & n_ball(x4) & a_green(s3) & Theme(s3,x4) & n_carpet(x3) & a_white(s2) & Theme(s2,x3) & n_back(x2) & of(x2,x1) & Actor(e1,x1) & v_lay(e1) & n_dog(x1) & a_brown(s1) & Theme(s1,x1))
exists e1 s1 s2 x1 x2.(near(e1,x2) & n_ball(x2) & a_inside(s2) & Manner(e1,s2) & a_down(s1) & Manner(e1,s1) & Actor(e1,x1) & v_lie(e1) & n_dog(x1))