The dog was slipped the cookie on the bed by Sophia .
* dog ( x _ 1 ) ; * cookie ( x _ 5 ) ; * bed ( x _ 8 ) ; slip . recipient ( x _ 3 , x _ 1 ) AND slip . theme ( x _ 3 , x _ 5 ) AND slip . agent ( x _ 3 , Sophia ) AND cookie . nmod . on ( x _ 5 , x _ 8 )