Question: What is the connection between Chris Carter (whose profession is politician) and the New Zealand Labour Party?
Choices:
member of political party
director of photography
legislative body
has immediate cause
honorific suffix
diaspora
edition or translation of
dissertation submitted to
draft pick from school
distribution
Answer: member of political party
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Chris Carter" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "politician" . ?e_2 <pred:name> "New Zealand Labour Party" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Chris Carter
function: And
dependencies: 1
2
function: Find
inputs: New Zealand Labour Party
function: QueryRelation
dependencies: 3
4