Question: How is Mel Gibson, who is the screenwriter of Apocalypto, related to film producer?
Choices:
found
subsidiary
occupation
doctoral student
captain
model item
replaced by
studies
narrative location
followed by
Program:
function: Find
inputs: Apocalypto
function: Relate
dependencies: 0
inputs: screenwriter
forward
function: Find
inputs: Mel Gibson
function: And
dependencies: 1
2
function: Find
inputs: film producer
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Mel Gibson" . ?e_3 <screenwriter> ?e_1 . ?e_3 <pred:name> "Apocalypto" . ?e_2 <pred:name> "film producer" . ?e_1 ?p ?e_2 .  }
Answer: occupation