How can I query the names of companions?

You can query the names of the accompanying persons with:
 
Event -> Edit Registration -> Companions