Question: What is the relationship between Richard Hunt (the one that has the occupation of puppeteer) to puppeteer?
Choices:
production designer
set in period
official language
commissioned by
military conflicts
spouse
occupation
copyright representative
founded by
director of photography
Program:
function: Find
inputs: puppeteer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Richard Hunt
function: And
dependencies: 1
2
function: Find
inputs: puppeteer
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Richard Hunt" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "puppeteer" . ?e_2 <pred:name> "puppeteer" . ?e_1 ?p ?e_2 .  }
Answer: occupation