Question: What is the connection between Andrew Jackson (the one that was born in Los Angeles) to Iowa State University?
Choices:
spouse
movement
political alignment
commander of
educated at
located in or next to body of water
used by
designed by
basin country
location of discovery
Answer: educated at
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Andrew Jackson" . ?e_1 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Los Angeles" . ?e_2 <pred:name> "Iowa State University" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Andrew Jackson
function: And
dependencies: 1
2
function: Find
inputs: Iowa State University
function: QueryRelation
dependencies: 3
4