Question: What's the relationship between a politician and Jack Warner (of Trinidad and Tobago)?
Choices:
award received
given name
industry
office held by head of the organisation
destination point
designated as terrorist by
licensed to broadcast to
capital of
location of final assembly
occupation
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Jack Warner" . ?e_1 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "Trinidad and Tobago" . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Trinidad and Tobago
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Jack Warner
function: And
dependencies: 1
2
function: Find
inputs: politician
function: QueryRelation
dependencies: 3
4