A girl was offered the hat beside the table by Mia .
* hat ( x _ 5 ) ; * table ( x _ 8 ) ; girl ( x _ 1 ) AND offer . recipient ( x _ 3 , x _ 1 ) AND offer . theme ( x _ 3 , x _ 5 ) AND offer . agent ( x _ 3 , Mia ) AND hat . nmod . beside ( x _ 5 , x _ 8 )