Question: What is the relationship between The Road (the one whose genre is film based on literature) and Guy Pearce?
Choices:
month of the year
cast member
has parts of the class
symptoms
software engine
edition or translation of
contributing factor of
editor
official religion
separated from
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Road" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "film based on literature" . ?e_2 <pred:name> "Guy Pearce" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Road
function: And
dependencies: 1
2
function: Find
inputs: Guy Pearce
function: QueryRelation
dependencies: 3
4