Question: How is the William Shakespeare who influenced John Updike related to the profession of poet?
Choices:
film crew member
production designer
occupation
has quality
notable work
position held
chief executive officer
platform
contributor(s) to the creative work
basic form of government
Program:
function: Find
inputs: John Updike
function: Relate
dependencies: 0
inputs: influenced by
forward
function: Find
inputs: William Shakespeare
function: And
dependencies: 1
2
function: Find
inputs: poet
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "William Shakespeare" . ?e_3 <influenced_by> ?e_1 . ?e_3 <pred:name> "John Updike" . ?e_2 <pred:name> "poet" . ?e_1 ?p ?e_2 .  }
Answer: occupation