Question: How is the Robert Smith born in County Armagh linked to Ottawa?
Choices:
named after
film distribute region
source of income
main food source
work location
depicted by
hair color
exported to
next lower rank
opposite of
Answer: work location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Robert Smith" . ?e_1 <place_of_birth> ?e_3 . ?e_3 <pred:name> "County Armagh" . ?e_2 <pred:name> "Ottawa" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: County Armagh
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Robert Smith
function: And
dependencies: 1
2
function: Find
inputs: Ottawa
function: QueryRelation
dependencies: 3
4