which river is in mangakino?
Entity
m.01lbqf
Waikato River
class entity
geography.river m.04fgx9
geography.river location.citytown
River Mangakino
none none
geography.river.cities
Cities
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.04fgx9 } 
?x0 :geography.river.cities ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND geography.river (JOIN geography.river.cities m.04fgx9))