Question: What character does David Bowie (the UK citizen) play in The Prestige?
Choices:
Nicky Parsons
Robert Langdon
George Costanza
Forrest Gump
Joker (The Dark Knight)
Nikola Tesla
Eliot Ness
Jimmy Darmody
The President
Bane
Answer: Nikola Tesla
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Prestige" . ?e_2 <pred:name> "David Bowie" . ?e_2 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United Kingdom" . ?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: The Prestige
function: Find
inputs: United Kingdom
function: Relate
dependencies: 1
inputs: country of citizenship
backward
function: Find
inputs: David Bowie
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: cast member
character role