implemented ANY, ALL and COUNT