who died in dresden with last name brühl?
Entity
m.02spfv
Heinrich von Brühl
class entity entity
people.deceased_person m.02k8lwf m.09b9m
people.deceased_person people.family_name location.de_city
Deceased Person Brühl Dresden
none none none
people.family_name.people_with_this_family_name people.deceased_person.place_of_death
People with this family name Place of death
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 :people.deceased_person . 
VALUES ?x1 { :m.02k8lwf } 
VALUES ?x2 { :m.09b9m } 
?x1 :people.family_name.people_with_this_family_name ?x0 . 
?x0 :people.deceased_person.place_of_death ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND people.deceased_person (AND (JOIN (R people.family_name.people_with_this_family_name) m.02k8lwf) (JOIN people.deceased_person.place_of_death m.09b9m)))