what tv character has a occupation that is tiresias?
Entity Entity Entity Entity Entity Entity
m.02n9v8g m.01xh7 m.02rl4g m.0ggk9p6 m.02nw6nv m.0fqtyt
John Monad Cassandra Alti Usutu Naboo Eli
class class entity
tv.tv_character fictional_universe.character_occupation m.0klcf
tv.tv_character fictional_universe.character_occupation book.poem_character
TV Character Character Occupation Tiresias
none none none
fictional_universe.character_occupation.characters_with_this_occupation fictional_universe.character_occupation.characters_with_this_occupation
Characters With This Occupation Characters With This Occupation
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_character . 
?x1 :type.object.type :fictional_universe.character_occupation . 
VALUES ?x2 { :m.0klcf } 
?x1 :fictional_universe.character_occupation.characters_with_this_occupation ?x0 . 
?x1 :fictional_universe.character_occupation.characters_with_this_occupation ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND tv.tv_character (JOIN (R fictional_universe.character_occupation.characters_with_this_occupation) (JOIN fictional_universe.character_occupation.characters_with_this_occupation m.0klcf)))