def METHOD_NAME(q: Query) -> Query:
    return (
        q.options(
            joinedload(Annotation.velp_content, innerjoin=True).load_only(
                VelpContent.content
            )
        )
        .options(
            joinedload(Annotation.comments)
            .joinedload(AnnotationComment.commenter, innerjoin=True)
            .raiseload(User.groups)
        )
        .options(
            joinedload(Annotation.annotator, innerjoin=True).raiseload(User.groups)
        )
        .options(
            joinedload(Annotation.answer)
            .joinedload(Answer.users_all)
            .raiseload(User.groups)
        )
        .options(
            joinedload(Annotation.velp_version, innerjoin=True)
            .load_only(VelpVersion.id, VelpVersion.velp_id)
            .joinedload(VelpVersion.velp)
            .load_only(Velp.color)
        )
    )