which work of fiction includes event that occurs in rankan mageguild?
Entity Entity Entity Entity Entity Entity Entity
m.05qh0kq m.0cqztld m.0chzk_3 m.05qh0l8 m.05qjlx0 m.05qjm01 m.0cp3drv
Tempus With His Right Side Companion Niko Sanctuary is for Lovers The Sacred Band Beyond Wizardwall Beyond Sanctuary Beyond the Veil Wake of the Riddler
class class entity
fictional_universe.work_of_fiction fictional_universe.event_in_fiction m.0c5x4c5
fictional_universe.work_of_fiction fictional_universe.event_in_fiction fictional_universe.fictional_setting
Work of Fiction Event in fiction Rankan Mageguild
none none none
fictional_universe.work_of_fiction.events fictional_universe.event_in_fiction.location
Events Location
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 :fictional_universe.work_of_fiction . 
?x1 :type.object.type :fictional_universe.event_in_fiction . 
VALUES ?x2 { :m.0c5x4c5 } 
?x0 :fictional_universe.work_of_fiction.events ?x1 . 
?x1 :fictional_universe.event_in_fiction.location ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND fictional_universe.work_of_fiction (JOIN fictional_universe.work_of_fiction.events (JOIN fictional_universe.event_in_fiction.location m.0c5x4c5)))