The presidents of Ecuador and Peru say they have agreed to work together to try to find a peaceful solution to their long-running border dispute.
The presidents of either country are going to work together.
It is correct they have agreed to work together.
( z1 work :ARG0 ( z2 person :ARG0-of ( z3 have-org-role :ARG1 ( z4 country :mod ( z5 either ) ) :ARG2 ( z6 president ) ) ) :mod ( z7 together ) )