Question: What is the character role of John Cleese in Die Another Day (the one whose narrative location is North Korea)?
Choices:
Zaphod Beeblebrox
John McClane
Captain Jack Sparrow
Hammond Druthers
Garrison Cootes
Gil Grissom
Mitch McDeere
Noah Vosen
Q
Lily Potter
Answer: Q
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Die Another Day" . ?e_1 <narrative_location> ?e_3 . ?e_3 <pred:name> "North Korea" . ?e_2 <pred:name> "John Cleese" . ?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: North Korea
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Die Another Day
function: And
dependencies: 1
2
function: Find
inputs: John Cleese
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role