The resident was handed the cake beside a computer .
* resident ( x _ 1 ) ; * cake ( x _ 5 ) ; hand . recipient ( x _ 3 , x _ 1 ) AND hand . theme ( x _ 3 , x _ 5 ) AND cake . nmod . beside ( x _ 5 , x _ 8 ) AND computer ( x _ 8 )