adding boolean operator to filter query