Add selectivity estimation function