Vegetable is related to Garden. you are likely to find Bean in/at/on Garden. Bean can be used for Eating. Eating is related to Table. 
Compare is a type of Be. Be is related to Flying. Flying is related to Spark. Spark is related to Bolt. 
Vegetable <--RelatedTo--> Garden <--AtLocation-- Bean --UsedFor--> Eating <--RelatedTo--> Table 
Compare --IsA--> Be <--RelatedTo--> Flying <--RelatedTo--> Spark <--RelatedTo--> Bolt 