Question: What is the link between Harry Shum (whose occupation is computer scientist) and computer scientist?
Choices:
subject has role
permanent resident of
honorific suffix
occupation
developer
architectural style
main subject
grants
subsidiary
shares border with
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Harry Shum" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "computer scientist" . ?e_2 <pred:name> "computer scientist" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: computer scientist
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Harry Shum
function: And
dependencies: 1
2
function: Find
inputs: computer scientist
function: QueryRelation
dependencies: 3
4