neurosurgery is in which hospital?
Entity Entity Entity Entity Entity Entity
m.04zvyh2 m.04c1z0 m.071054 m.02b70v m.07gxss m.04x4dt
Calvary Wakefield Hospital National Hospital for Neurology and Neurosurgery Walton Centre King's College Hospital Royal Hobart Hospital Royal Adelaide Hospital
class entity
medicine.hospital m.05h54
medicine.hospital medicine.medical_specialty
Hospital Neurosurgery
none none
medicine.hospital.medical_specialties
Medical Specialties
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 :medicine.hospital . 
VALUES ?x1 { :m.05h54 } 
?x0 :medicine.hospital.medical_specialties ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND medicine.hospital (JOIN medicine.hospital.medical_specialties m.05h54))