for $x in collection('/db/DRIVER/RepositoryServiceResources/RepositoryServiceResourceType')
where $x/RESOURCE_PROFILE/BODY/CONFIGURATION/DATASOURCE_ORIGINAL_ID[@provenance="OPENAIRE"]/text() = "%s"
return $x
