Question: What is the connection between John Carpenter (the one that has the occupation of composer) to film producer
Choices:
studied by
connects with
based on
subject has role
time period
organizer
applies to jurisdiction
convicted of
participant of
occupation
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Carpenter" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "composer" . ?e_2 <pred:name> "film producer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: composer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Carpenter
function: And
dependencies: 1
2
function: Find
inputs: film producer
function: QueryRelation
dependencies: 3
4