Tim was eating alone in the cafeteria.
It was Jim, who wanted to invite Tim to eat with his friends.
a group came over to ask if Tim wanted to sit with them.
a group came over to ask Tim to sit somewhere else.