A baby noticed that a teacher gave Olivia the cookie beside a table .
* cookie ( x _ 9 ) ; baby ( x _ 1 ) AND notice . agent ( x _ 2 , x _ 1 ) AND notice . ccomp ( x _ 2 , x _ 6 ) AND teacher ( x _ 5 ) AND give . agent ( x _ 6 , x _ 5 ) AND give . recipient ( x _ 6 , Olivia ) AND give . theme ( x _ 6 , x _ 9 ) AND cookie . nmod . beside ( x _ 9 , x _ 12 ) AND table ( x _ 12 )