Just is a synonym of Legitimate. Legitimate is a type of Justify. 
Prayer is derived from Pray. Pray is a synonym of Beg. Beg is related to Ask. Ask is related to Inquiry. 
Just <--Synonym--> Legitimate --IsA--> Justify 
Prayer --DerivedFrom--> Pray <--Synonym--> Beg <--RelatedTo--> Ask <--RelatedTo--> Inquiry 