find lake which is the outflow location of town brook.
Entity
m.02x35pq
Billington Sea
class entity
geography.lake m.02x2t29
geography.lake geography.body_of_water
Lake Town Brook
none none
geography.lake.outflow
Outflow location
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.02x2t29 } 
?x0 :geography.lake.outflow ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND geography.lake (JOIN geography.lake.outflow m.02x2t29))