Annotation-based query