Question: How is The Spy Who Loved Me (the one that was nominated for BAFTA Award for Best Film Music) related to Roger Moore (the one that has the occupation of film producer) ?
Choices: penalty
series spin-off
depicted by
allegiance
drafted by
operating area
cast member
home venue
parent club
history of topic
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Spy Who Loved Me" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "BAFTA Award for Best Film Music" . ?e_2 <pred:name> "Roger Moore" . ?e_2 <occupation> ?e_4 . ?e_4 <pred:name> "film producer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: BAFTA Award for Best Film Music
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Spy Who Loved Me
function: And
dependencies: 1
2
function: Find
inputs: film producer
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: Roger Moore
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: cast member