Implemented and tested query condition aggregation, including the NOR and NAND management.