Day is related to Length. Length is related to Foot. 
Prayer is a type of Ritual. Temple can be used for Prayer. Temple is a type of Building. you are likely to find Hall in/at/on Building. 
Day <--RelatedTo--> Length <--RelatedTo--> Foot 
Ritual <--IsA-- Prayer <--UsedFor-- Temple --IsA--> Building <--AtLocation-- Hall 