Question: What administrative territorial entity is Los Angeles (the place where Scott Wilson, cast member of The Last Samurai, died) located in ?
Choices:
California
Guadeloupe
Minnesota
Virginia
North Rhine-Westphalia
Latvian Soviet Socialist Republic
Makkah Region
East Pakistan
Texas
British Raj
Answer: California
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Scott Wilson" . ?e_3 <cast_member> ?e_1 . ?e_3 <pred:name> "The Last Samurai" . ?e_2 <pred:name> "Los Angeles" . ?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 .  }
Program:
function: Find
inputs: The Last Samurai
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: Scott Wilson
function: And
dependencies: 1
2
function: Find
inputs: Los Angeles
function: QueryRelationQualifier
dependencies: 3
4
inputs: place of death
located in the administrative territorial entity