Question: What is the connection between Neil Young (the one that has the occupation of judge) to Melbourne (the one that contains University of Melbourne)?
Choices:
capital of
screenwriter
doctoral student
place of birth
location of final assembly
taxon rank
had as last meal
follows
fabrication method
professorship
Answer: place of birth
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Neil Young" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "judge" . ?e_2 <pred:name> "Melbourne" . ?e_4 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_4 <pred:name> "University of Melbourne" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: judge
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Neil Young
function: And
dependencies: 1
2
function: Find
inputs: University of Melbourne
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Melbourne
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7