A little boy playing with some sort of pipe.
A boy is wearing a hat.
No way to know that he is wearing a hat just because playing with some sort of pipe.
exists e1 s1 x1 x2 x3 x4.(a_topic(x1) & with(e1,x3) & of(x3,x4) & n_pipe(x4) & n_sort(x3) & Actor(e1,x2) & v_play(e1) & (x1 = x2) & n_boy(x1) & a_little(s1) & Theme(s1,x1))
exists e1 x1 x2.(Theme(e1,x2) & Actor(e1,x1) & v_wear(e1) & n_hat(x2) & n_boy(x1))