Create relation only when all referenced attributes are found