Question: What role does Tom Hanks play in the Da Vinci Code (also featuring cast member Ian McKellan)?
Choices:
Will Tippin
Lando Calrissian
Mr. Sykes
Robert Langdon
Gilderoy Lockhart
Skinner
Edward I of England
Alice
Uncle Ben
William Riker
Answer: Robert Langdon
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Da Vinci Code" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ian McKellen" . ?e_2 <pred:name> "Tom Hanks" . ?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: Ian McKellen
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Da Vinci Code
function: And
dependencies: 1
2
function: Find
inputs: Tom Hanks
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role