buildings causal-relationships database image-display indexing lines matching neural-networks queries relational time-related weighting