Question: What is the connection between Tom Johnson (the one that is educated at University of Michigan) to politician?
Choices:
performer
takes place in fictional universe
partially contains
shares border with
occupation
copyright representative
contributing factor of
rector
contains administrative territorial entity
film distribute region
Program:
function: Find
inputs: University of Michigan
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Tom Johnson
function: And
dependencies: 1
2
function: Find
inputs: politician
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tom Johnson" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "University of Michigan" . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Answer: occupation