calculate the selectivity of the spatial join