A teacher was sold the cookie on the tabletop .
* cookie ( x _ 5 ) ; * tabletop ( x _ 8 ) ; teacher ( x _ 1 ) AND sell . recipient ( x _ 3 , x _ 1 ) AND sell . theme ( x _ 3 , x _ 5 ) AND cookie . nmod . on ( x _ 5 , x _ 8 )