The boy painted the cookie in the envelope .
* boy ( x _ 1 ) ; * cookie ( x _ 4 ) ; * envelope ( x _ 7 ) ; paint . agent ( x _ 2 , x _ 1 ) AND paint . theme ( x _ 2 , x _ 4 ) AND cookie . nmod . in ( x _ 4 , x _ 7 )