Diet is related to Carbohydrate. Carbohydrate is a type of Nutrient. Vitamin is a type of Nutrient. Vitamin is related to Pill. 
Sex can be Painful. Painful is related to Accident. Accident is a synonym of Hazard. Hazard is related to Threat. 
Diet <--RelatedTo--> Carbohydrate --IsA--> Nutrient <--IsA-- Vitamin <--RelatedTo--> Pill 
Sex --HasProperty--> Painful <--RelatedTo--> Accident <--Synonym--> Hazard <--RelatedTo--> Threat 