Given that John and Jim are the subject and object of kill, we can extract their semantic roles directly from the frame, which are killer and victim, respectively.
6 we replace the two names with their extracted semantic roles, and generate the search queries from the resulting sentence in the same way as before.