Chain the three comparators.