Question: The Alice in Wonderland from Germany has what connection to Pete Postlethwaite?
Choices:
work location
signatory
seed team
copyright representative
grants
cast member
narrative location
religion
license
record label
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Alice in Wonderland" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "Germany" . ?e_2 <pred:name> "Pete Postlethwaite" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Alice in Wonderland
function: And
dependencies: 1
2
function: Find
inputs: Pete Postlethwaite
function: QueryRelation
dependencies: 3
4