The cake was offered to a teacher by a girl .
* cake ( x _ 1 ) ; offer . theme ( x _ 3 , x _ 1 ) AND offer . recipient ( x _ 3 , x _ 6 ) AND offer . agent ( x _ 3 , x _ 9 ) AND teacher ( x _ 6 ) AND girl ( x _ 9 )