which is the user profile who lives in montreal and most favors running?
Entity
m.0290jgr
Kenneth Trueman
class entity entity
freebase.user_profile m.052p7 m.06h7j
freebase.user_profile location.ca_census_division common.topic
User Profile Montreal Running
none none none
freebase.user_profile.location freebase.user_profile.favorite_topics
Where I Live Favorite Freebase Topics
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.052p7 } 
VALUES ?x2 { :m.06h7j } 
?x0 :freebase.user_profile.location ?x1 . 
?x0 :freebase.user_profile.favorite_topics ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND freebase.user_profile (AND (JOIN freebase.user_profile.location m.052p7) (JOIN freebase.user_profile.favorite_topics m.06h7j)))