Overloaded the == operator for Relation