Question: What is the connection between Tom Johnson (the one that is educated at University of Michigan) to Springfield (the one whose postal code is 62701)?
Choices:
found
work location
source of income
author
art director
producer
currency
replaced by
main subject
production designer
Answer: work location
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> "Springfield" . ?e_2 <postal_code> ?pv . ?pv <pred:value> "62701" . ?e_1 ?p ?e_2 .  }
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: Springfield
function: FilterStr
dependencies: 4
inputs: postal code
62701
function: QueryRelation
dependencies: 3
5