Suppose we want to predict the outcome of a race between three runners $A$, $B$, $C$. We know the prior probabilities for head-to-head runs: $p_{A>B}$, $p_{A>C}$, $p_{B>C}$, where $A>B$ means that A finishes before B. How do we get the probability $p_{A>B>C}$?
I thought I could just use a tree diagram but I run into the following problem: Some outcomes are impossible. For example, if my first edge is "A finishes before B" and my second edge is "A finishes after C", then "B finishes before C" is no longer possible. I thought about just setting probability of impossible outcomes to 0, but then my outcome probabilities are different depending on which of the three probabilities I start with.
I think I'm making some basic mistake here.
I've seen a lot of similar questions but I don't think they answer this. I've also tried looking at how horse race outcomes are predicted, but couldn't find an answer that I understood.

