A man in a light blue cap is riding on a cart behind an animal who is pulling the cart.
A man in a hat is outside with an animal
A cap is a hat. An animal pulling a cart would be pulled outside, so a man is outside with an animal.
exists e2 e1 s1 s2 x1 x2 x3 x4 x5.(behind(e1,x4) & Theme(e2,x3) & Actor(e2,x5) & v_pull(e2) & n_cart(x3) & n_cart(x3) & (x4 = x5) & n_animal(x4) & on(e1,x3) & Actor(e1,x1) & v_ride(e1) & in(x1,x2) & n_cap(x2) & a_blue(s2) & Theme(s2,x2) & a_light(s1) & Theme(s1,x2) & n_man(x1))
exists s1 x1 x2 x3.(with(s1,x3) & n_animal(x3) & Theme(s1,x1) & a_outside(s1) & in(x1,x2) & n_hat(x2) & n_man(x1))