On the binomial edge ideal of a pair of graphs