Question: How is the University of Minnesota associated with John Davis, who was a student at Iowa State University?
Choices:
sidekick of
film distribute region
model item
educated at
software engine
seed team
godparent
product or material produced
librettist
office held by head of government
Answer: educated at
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "Iowa State University" . ?e_2 <pred:name> "University of Minnesota" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Iowa State University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Find
inputs: University of Minnesota
function: QueryRelation
dependencies: 3
4