QV should count DISTINCT each contract_no where contract_payments_perc is equal to the other contract_payments_perc position inside the same contract_no.
Example:
1. Look up for contract_no = 1 AND contract_term_type = 0 AND the referring contract_payments_perc = 3,11%
2. Compare contract_payments_perc = 3,11 % with contract_payment_perc where contract_term_type = 1 AND 2 (2,4%, 1,5%)