Question: How is Sacramento related to Hamilton which is located in the continent of Oceania?
Choices:
had as last meal
lyrics by
home world
studies
professorship
office contested
twinned administrative body
film crew member
subsidiary
named after
Answer: twinned administrative body
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Sacramento" . ?e_2 <pred:name> "Hamilton" . ?e_2 <continent> ?e_3 . ?e_3 <pred:name> "Oceania" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Sacramento
function: Find
inputs: Oceania
function: Relate
dependencies: 1
inputs: continent
backward
function: Find
inputs: Hamilton
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4