Question: The birth place of Maggie Gyllenhaal and the death place of Heath Ledger, Manhattan, is in which administrative territorial entity?
Choices:
New York
Ohio
Saint Petersburg
Illinois
Nevada
Stockholm County
Russian Soviet Federative Socialist Republic
Martinique
Montserrat
Scotland
Program:
function: Find
inputs: Maggie Gyllenhaal
function: Find
inputs: Heath Ledger
function: Relate
dependencies: 1
inputs: place of death
forward
function: Find
inputs: Manhattan
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of birth
located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Maggie Gyllenhaal" . ?e_2 <pred:name> "Manhattan" . ?e_3 <place_of_death> ?e_2 . ?e_3 <pred:name> "Heath Ledger" . ?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 .  }
Answer: New York