Question: How is John Adams (the one that is educated at United States Military Academy) connected to Nashville, where James K. Polk died?
Choices:
musical conductor
place of birth
office held by head of government
cast member
official color
place of origin (Switzerland)
operator
foundational text
Wikidata property
located in time zone
Program:
function: Find
inputs: United States Military Academy
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Adams
function: And
dependencies: 1
2
function: Find
inputs: James K. Polk
function: Relate
dependencies: 4
inputs: place of death
forward
function: Find
inputs: Nashville
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Adams" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "United States Military Academy" . ?e_2 <pred:name> "Nashville" . ?e_4 <place_of_death> ?e_2 . ?e_4 <pred:name> "James K. Polk" . ?e_1 ?p ?e_2 .  }
Answer: place of birth