Question: What is the connection between George Martin (the one that has the occupation of screenwriter) to film director?
Choices: child
spouse
basin country
religious order
place of publication
legislative body
indigenous to
family
occupation
chief executive officer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "George Martin" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "screenwriter" . ?e_2 <pred:name> "film director" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: screenwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: George Martin
function: And
dependencies: 1
2
function: Find
inputs: film director
function: QueryRelation
dependencies: 3
4
Answer: occupation