bst version of quadrant queries