Add methods to compose where and having parts.