Question: what is the title of the TV series episode that has the narrative location of Las Vegas (which was where Pat Morita died)
Choices:
Water
The Black Dahlia
Der scharlachrote Buchstabe
Eat Pray Love
The Twilight Zone
Howards End
Flags of Our Fathers
Genesis
Python
Batman Forever
Answer: Genesis
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series episode" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Las Vegas" . ?e_2 <place_of_death> ?e_1 . ?e_2 <pred:name> "Pat Morita" .  ?e <title> ?pv .  }
Program:
function: Find
inputs: Pat Morita
function: Relate
dependencies: 0
inputs: place of death
forward
function: Find
inputs: Las Vegas
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
backward
function: FilterConcept
dependencies: 4
inputs: television series episode
function: QueryAttr
dependencies: 5
inputs: title