build inferenced Relations.