name all of the rivers located in san marino republic.
Entity Entity Entity Entity
m.027rcxs m.0h78rn m.0h78sp m.0h78tr
Ausa Fiumicello San Marino Marano
class entity
geography.river m.06sff
geography.river location.country
River san marino republic
none none
geography.river.basin_countries
Basin countries
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :geography.river . 
VALUES ?x1 { :m.06sff } 
?x0 :geography.river.basin_countries ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND geography.river (JOIN geography.river.basin_countries m.06sff))