Cloud is related to Gathering. Class is a type of Gathering. Class is related to Rank. 
Ash is related to Fire. Fire is a type of Trial. Trial is related to Judge. Reject is a type of Judge. 
Cloud <--RelatedTo--> Gathering <--IsA-- Class <--RelatedTo--> Rank 
Ash <--RelatedTo--> Fire --IsA--> Trial <--RelatedTo--> Judge <--IsA-- Reject 