Logan liked that a cake was lended to a dog by Sophia .
like . agent ( x _ 1 , Logan ) AND like . ccomp ( x _ 1 , x _ 6 ) AND cake ( x _ 4 ) AND lend . theme ( x _ 6 , x _ 4 ) AND lend . recipient ( x _ 6 , x _ 9 ) AND lend . agent ( x _ 6 , Sophia ) AND dog ( x _ 9 )