Question: What is cast member Topher Grace's character role in the work Spider-Man 3 (the one whose script is wrote by Sam Raimi)?
Choices: Magneto
Monsieur André
Randle McMurphy
Anna Valerious
Mathayus
Polonius
Arthur Hobbs
The Joker
Eddie Brock
The Captain
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Spider-Man 3" . ?e_1 <screenwriter> ?e_3 . ?e_3 <pred:name> "Sam Raimi" . ?e_2 <pred:name> "Topher Grace" . ?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: Sam Raimi
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Spider-Man 3
function: And
dependencies: 1
2
function: Find
inputs: Topher Grace
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
Answer: Eddie Brock