Question: Which administrative territorial entity is Brooklyn (where Isaac Asimov died and which shares a border with Jersey City) located in?
Choices:
Texas
British Raj
Pennsylvania
New York
Suisse Romande
New York City
Los Angeles
Ramenki District
Utah
Missouri
Program:
function: Find
inputs: Isaac Asimov
function: Find
inputs: Jersey City
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Brooklyn
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> "Isaac Asimov" . ?e_2 <pred:name> "Brooklyn" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Jersey City" . ?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: New York City