The cat painted a cookie beside a bag beside a table .
* cat ( x _ 1 ) ; paint . agent ( x _ 2 , x _ 1 ) AND paint . theme ( x _ 2 , x _ 4 ) AND cookie ( x _ 4 ) AND cookie . nmod . beside ( x _ 4 , x _ 7 ) AND bag ( x _ 7 ) AND bag . nmod . beside ( x _ 7 , x _ 10 ) AND table ( x _ 10 )