what physician specializes in the medical specialty specialized by helen hayes hospital?
Entity
m.0n5wk5v
Mary Verghese
class class entity
medicine.physician medicine.medical_specialty m.04g3f52
medicine.physician medicine.medical_specialty medicine.hospital
Physician Medical specialty Helen Hayes Hospital
none none none
medicine.medical_specialty.physicians_with_this_specialty medicine.hospital.medical_specialties
Physicians with this Specialty 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.physician . 
?x1 :type.object.type :medicine.medical_specialty . 
VALUES ?x2 { :m.04g3f52 } 
?x1 :medicine.medical_specialty.physicians_with_this_specialty ?x0 . 
?x2 :medicine.hospital.medical_specialties ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND medicine.physician (JOIN (R medicine.medical_specialty.physicians_with_this_specialty) (JOIN (R medicine.hospital.medical_specialties) m.04g3f52)))