Question: What is the character role for cast member Roger Moore (the one that is an employee of United Nations) in the work Moonraker (the one whose genre is adventure film)?
Choices: James Bond
Andrew Martin
Abbey Bartlet
Sandy Cohen
Karen Walker
Ernst Stavro Blofeld
Alan Garner
Deadpool
Wolverine
Mary Temple Grandin
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Moonraker" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "adventure film" . ?e_2 <pred:name> "Roger Moore" . ?e_2 <employer> ?e_4 . ?e_4 <pred:name> "United Nations" . ?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: adventure film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Moonraker
function: And
dependencies: 1
2
function: Find
inputs: United Nations
function: Relate
dependencies: 4
inputs: employer
backward
function: Find
inputs: Roger Moore
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: cast member
character role
Answer: James Bond