annotated query implementation using projections