function annotation for query