New implementations for building relationship criteria.