Question: Roger Moore, who died of natural causes, played what character as a cast member on For Your Eyes Only, whose story setting is Spain?
Choices: Samuel Loomis
Althea Flynt
Lois Griffin
Dr. Albert Hirsch
Pamela Anderson
Gertrude
Stansfield Turner
The Narrator
Pierre Bezukhov
James Bond
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "For Your Eyes Only" . ?e_1 <narrative_location> ?e_3 . ?e_3 <pred:name> "Spain" . ?e_2 <pred:name> "Roger Moore" . ?e_2 <manner_of_death> ?e_4 . ?e_4 <pred:name> "natural causes" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: Spain
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: For Your Eyes Only
function: And
dependencies: 1
2
function: Find
inputs: natural causes
function: Relate
dependencies: 4
inputs: manner of death
backward
function: Find
inputs: Roger Moore
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: cast member
character role
Answer: James Bond