Riley was lended a cookie in the garden by the dog .
* garden ( x _ 7 ) ; * dog ( x _ 10 ) ; lend . recipient ( x _ 2 , Riley ) AND lend . theme ( x _ 2 , x _ 4 ) AND lend . agent ( x _ 2 , x _ 10 ) AND cookie ( x _ 4 ) AND cookie . nmod . in ( x _ 4 , x _ 7 )