Question: What administrative territorial entity is Lexington (the one that contains Virginia Military Institute), where Robert E. Lee died located in?
Choices:
Utah
Habsburg Monarchy
Virginia
New York City
Syria
Kentucky
Florida
Quebec
New Jersey
Puerto Rico
Program:
function: Find
inputs: Robert E. Lee
function: Find
inputs: Virginia Military Institute
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Lexington
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of death
located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Robert E. Lee" . ?e_2 <pred:name> "Lexington" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_3 <pred:name> "Virginia Military Institute" . ?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 .  }
Answer: Virginia