Question: What is the relationship between Jack Thompson (the one that has the occupation of politician) and United Kingdom?
Choices:
film distribute region
time period
health specialty
has edition
designed to carry
country of citizenship
doctoral student
operating area
hair color
airline hub
Answer: country of citizenship
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Jack Thompson" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "politician" . ?e_2 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Jack Thompson
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: QueryRelation
dependencies: 3
4