you are likely to find Window in/at/on Classroom. Window is related to Bar. 
Preparation is a synonym of Homework. 
Classroom <--AtLocation-- Window <--RelatedTo--> Bar 
Preparation <--Synonym--> Homework 