Tennis is related to Table. Table is related to Bull. 
Grocery is related to Bag. you are likely to find Bag in/at/on Shelf. you are likely to find Photograph in/at/on Shelf. 
Tennis <--RelatedTo--> Table <--RelatedTo--> Bull 
Grocery <--RelatedTo--> Bag --AtLocation--> Shelf <--AtLocation-- Photograph 