Question: Henry James (the one that died in Chelsea) was born in New York City, in what administrative territorial entity is it located?
Choices: Victoria
Archbishopric of Salzburg
New York
Illinois
Guadeloupe
Utah
California
North Carolina
Texas
Maryland
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Henry James" . ?e_1 <place_of_death> ?e_3 . ?e_3 <pred:name> "Chelsea" . ?e_2 <pred:name> "New York City" . ?e_1 <place_of_birth> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_birth> ; <pred:fact_t> ?e_2 ] <located_in_the_administrative_territorial_entity> ?qpv .  }
Program:
function: Find
inputs: Chelsea
function: Relate
dependencies: 0
inputs: place of death
backward
function: Find
inputs: Henry James
function: And
dependencies: 1
2
function: Find
inputs: New York City
function: QueryRelationQualifier
dependencies: 3
4
inputs: place of birth
located in the administrative territorial entity
Answer: New York