which user profile has a favorite film harold and maude?
Entity Entity Entity
m.025ds09 m.0290qzy m.02kzt3r
ceedee666 longobord danese
class entity
freebase.user_profile m.03gmw
freebase.user_profile film.film
User Profile Harold and Maude
none none
freebase.user_profile.favorite_films
Favorite Films
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 :freebase.user_profile . 
VALUES ?x1 { :m.03gmw } 
?x0 :freebase.user_profile.favorite_films ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND freebase.user_profile (JOIN freebase.user_profile.favorite_films m.03gmw))