read-occurence query working