Add distinct clause.