A sailor liked the cake beside the tree beside a bed .
* cake ( x _ 4 ) ; * tree ( x _ 7 ) ; sailor ( x _ 1 ) AND like . agent ( x _ 2 , x _ 1 ) AND like . theme ( x _ 2 , x _ 4 ) AND cake . nmod . beside ( x _ 4 , x _ 7 ) AND tree . nmod . beside ( x _ 7 , x _ 10 ) AND bed ( x _ 10 )