Emma declared that the cookie was sold to Daniel by the girl .
* cookie ( x _ 4 ) ; * girl ( x _ 11 ) ; declare . agent ( x _ 1 , Emma ) AND declare . ccomp ( x _ 1 , x _ 6 ) AND sell . theme ( x _ 6 , x _ 4 ) AND sell . recipient ( x _ 6 , Daniel ) AND sell . agent ( x _ 6 , x _ 11 )