Question: What is the connection between Great Expectations (the one whose distributor is Paramount Pictures) to Charles Dickens?
Choices:
drug used for treatment
used by
occupation
appears in the form of
approved by
kit supplier
after a work by
owned by
illustrator
conferred by
Answer: after a work by
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Great Expectations" . ?e_1 <distributor> ?e_3 . ?e_3 <pred:name> "Paramount Pictures" . ?e_2 <pred:name> "Charles Dickens" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Great Expectations
function: And
dependencies: 1
2
function: Find
inputs: Charles Dickens
function: QueryRelation
dependencies: 3
4