A little girl examines a dog laying on a beach.
an exhausted cat sits in a tree above a dog
A dog laying on a beach is being spoken about, not the exhausted cat.
exists e2 e1 s1 x1 x2 x3 x4.(Theme(e2,x2) & Actor(e2,x1) & v_examine(e2) & on(e1,x4) & n_beach(x4) & Actor(e1,x3) & v_lay(e1) & (x2 = x3) & n_dog(x2) & n_girl(x1) & a_little(s1) & Theme(s1,x1))
exists e2 e1 x1 x2 x3.(above(e2,x3) & n_dog(x3) & in(e2,x2) & n_tree(x2) & Actor(e2,x1) & v_sit(e2) & n_cat(x1) & Theme(e1,x1) & v_exhaust(e1))