The cake was given to the teacher by a pony .
* cake ( x _ 1 ) ; * teacher ( x _ 6 ) ; give . theme ( x _ 3 , x _ 1 ) AND give . recipient ( x _ 3 , x _ 6 ) AND give . agent ( x _ 3 , x _ 9 ) AND pony ( x _ 9 )