Sum, product and proportion of ratios