Basic calculations of relations