Question: What is the relationship between John Hughes (the one that is an employee of Yale School of Medicine) to Yale School of Medicine?
Choices:
military conflicts
practiced by
fabrication method
genre
godparent
official language
employer
drug used for treatment
presenter
doctoral student
Program:
function: Find
inputs: Yale School of Medicine
function: Relate
dependencies: 0
inputs: employer
backward
function: Find
inputs: John Hughes
function: And
dependencies: 1
2
function: Find
inputs: Yale School of Medicine
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Hughes" . ?e_1 <employer> ?e_3 . ?e_3 <pred:name> "Yale School of Medicine" . ?e_2 <pred:name> "Yale School of Medicine" . ?e_1 ?p ?e_2 .  }
Answer: employer