Generating Belongs to relations