Fixed logical operand on query reducer.