Add more query functions to BinaryOperator class