The dog was offered the cake beside a book .
* dog ( x _ 1 ) ; * cake ( x _ 5 ) ; offer . recipient ( x _ 3 , x _ 1 ) AND offer . theme ( x _ 3 , x _ 5 ) AND cake . nmod . beside ( x _ 5 , x _ 8 ) AND book ( x _ 8 )