Question: What is the character role of Ioan Gruffud in Fantastic Four: Rise of the Silver Surfer (the one that is shot in British Columbia)?
Choices:
Maid Marian
Iago
Bunny Lebowski
Seeley Booth
Arthur Weasley
Donna Hayward
Mister Fantastic
Moses
Spike
Preston Burke
Answer: Mister Fantastic
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Fantastic Four: Rise of the Silver Surfer" . ?e_1 <filming_location> ?e_3 . ?e_3 <pred:name> "British Columbia" . ?e_2 <pred:name> "Ioan Gruffudd" . ?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: British Columbia
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Fantastic Four: Rise of the Silver Surfer
function: And
dependencies: 1
2
function: Find
inputs: Ioan Gruffudd
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role