abstract SemanticRepositoryQuery in order to suport count and delete