visual artist is the corresponding type for which profession?
Entity Entity Entity Entity
m.03hz6vv m.02nxqmh m.01c979 m.0b7b55p
Visual Artist Painter Designer Sculptor
class entity
people.profession m.01y2hcj
people.profession type.type
Profession Visual Artist
none none
people.profession.corresponding_type
Corresponding type
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.profession . 
VALUES ?x1 { :m.01y2hcj } 
?x0 :people.profession.corresponding_type ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND people.profession (JOIN people.profession.corresponding_type m.01y2hcj))