Question: What is the connection between Mars (the one that has the occupation of photographer) to record producer?
Choices:
chairperson
country
designated as terrorist by
political ideology
occupation
donated by
original language of film or TV show
killed by
officially opened by
derivative work
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Mars" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "photographer" . ?e_2 <pred:name> "record producer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: photographer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Mars
function: And
dependencies: 1
2
function: Find
inputs: record producer
function: QueryRelation
dependencies: 3
4