Question: What administrative territorial entity is Nashville located in, the Nashville where James K. Polk died and also (the one that is the death place of Leon Russell)?
Choices:
Al Madinah Region
Makkah Region
British Raj
Stockholm Municipality
East Pakistan
Minnesota
Tennessee
South Holland
City of Westminster
Massachusetts
Answer: Tennessee
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "James K. Polk" . ?e_2 <pred:name> "Nashville" . ?e_3 <place_of_death> ?e_2 . ?e_3 <pred:name> "Leon Russell" . ?e_1 <place_of_death> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_death> ; <pred:fact_t> ?e_2 ] <located_in_the_administrative_territorial_entity> ?qpv .  }
Program:
function: Find
inputs: James K. Polk
function: Find
inputs: Leon Russell
function: Relate
dependencies: 1
inputs: place of death
forward
function: Find
inputs: Nashville
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of death
located in the administrative territorial entity