Applied conditions to calculate rankings.