Question: What is the relationship between Labyrinth (the one whose producer is Ridley Scott) and Ridley Scott?
Choices:
published in
drafted by
interested in
candidate
health specialty
producer
mascot
permanent resident of
vehicle normally used
family name
Program:
function: Find
inputs: Ridley Scott
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Labyrinth
function: And
dependencies: 1
2
function: Find
inputs: Ridley Scott
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Labyrinth" . ?e_1 <producer> ?e_3 . ?e_3 <pred:name> "Ridley Scott" . ?e_2 <pred:name> "Ridley Scott" . ?e_1 ?p ?e_2 .  }
Answer: producer