The little boy in the red shirt put his head out of the window of the train.
The boy in red put his head out the window for fresh air.
Just because the boy is out the window does not mean he is doing it for fresh air.
exists e1 s1 s2 x1 x2 x3 x4 x5.(n_train(x5) & n_window(x4) & n_head(x3) & of(x3,x1) & n_male(x1) & n_shirt(x2) & a_red(s2) & Theme(s2,x2) & n_boy(x1) & a_little(s1) & Theme(s1,x1) & r_out(e1) & of(e1,x4) & of(x4,x5) & Theme(e1,x3) & Actor(e1,x1) & v_put(e1) & in(x1,x2))
(x)