Question: How is John Davis (the one that hold the position Governor of Massachusetts) related to United States of America ?
Choices:
time period
head of state
work location
occupant
location of discovery
country of citizenship
place served by transport hub
followed by
production company
this taxon is source of
Answer: country of citizenship
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <position_held> ?e_3 . ?e_3 <pred:name> "Governor of Massachusetts" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Governor of Massachusetts
function: Relate
dependencies: 0
inputs: position held
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 3
4