for $x in collection('/db/DRIVER/entity/datasource') where $x//NUMBER_OF_OBJECTS != 0 and not($x//LATITUDE = 0 and $x//LONGITUDE = 0) return {$x//RESOURCE_IDENTIFIER/@value/string()} {$x//OFFICIAL_NAME/text()} {$x//LATITUDE/text()} {$x//LONGITUDE/text()}