Update informedby,derivedfrom query templates for qualified relationships