you might want to consider their head to head - this covers track races only, I don't do road or cross country.
event / first person / score1 / score2 / second person
1 mile Mohamed Farah 0-1 Bernard Lagat
3000m Mohamed Farah 1-4 Bernard Lagat
2 miles Mohamed Farah 1-0 Bernard Lagat
5000m Mohamed Farah 8-1 Bernard Lagat
if you look at this in terms of time, Lagat tended to win the earlier races while Farah has won the later races. the last time Bernard beat Mo on the track was March 2012 over 3000m in Istanbul. the last time they raced was the Rio Olympic 5000m final where Mo won and Bernard was 5th.
cheers.