Add queryAnnotation to query an annotation without doing any write.