Ranking with multiple types of pairwise comparisons