which lake has ognon as inflow source?
Entity
m.05mvkmp
Lac de Bonnal
class entity
geography.lake m.0cs_mn
geography.lake geography.body_of_water
Lake Ognon
none none
geography.lake.inflow
Inflow source(s)
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.lake . 
VALUES ?x1 { :m.0cs_mn } 
?x0 :geography.lake.inflow ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND geography.lake (JOIN geography.lake.inflow m.0cs_mn))