Question: Baltimore, where playwright Edgar Allan Poe died, is in which administrative territorial entity?
Choices:
Michigan
Maryland
Archbishopric of Salzburg
Georgian Soviet Socialist Republic
Transcaucasian Socialist Federative Soviet Republic
Pennsylvania
Tennessee
Florida
Massachusetts
Saint Petersburg
Program:
function: Find
inputs: playwright
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Edgar Allan Poe
function: And
dependencies: 1
2
function: Find
inputs: Baltimore
function: QueryRelationQualifier
dependencies: 3
4
inputs: place of death
located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Edgar Allan Poe" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "playwright" . ?e_2 <pred:name> "Baltimore" . ?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: Maryland