The boy in the red shirt is next to a blue wall.
The boy is waiting for his friend.
A boy next to a wall does not imply the boy is waiting for his friend.
exists s1 s2 s3 x1 x2 x3.(n_shirt(x2) & a_red(s1) & Theme(s1,x2) & n_boy(x1) & to(s2,x3) & n_wall(x3) & a_blue(s3) & Theme(s3,x3) & Theme(s2,x1) & a_next(s2) & in(x1,x2))
exists e1 x1 x2.(n_friend(x2) & of(x2,x1) & n_male(x1) & n_boy(x1) & for(e1,x2) & Actor(e1,x1) & v_wait(e1))