kardashians was filmed in what location?
Entity
m.0kkph
Calabasas
class entity
tv.tv_location m.03cgq24
tv.tv_location tv.tv_program
TV Location kardashians
none none
tv.tv_location.tv_shows_filmed_here
TV shows filmed here
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 :tv.tv_location . 
VALUES ?x1 { :m.03cgq24 } 
?x0 :tv.tv_location.tv_shows_filmed_here ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND tv.tv_location (JOIN tv.tv_location.tv_shows_filmed_here m.03cgq24))