Question: What is the name of the character played for Colm Feore as a cast member in Thor (the one that was shot in Los Angeles)?
Choices:
J. Edgar Hoover
Alvin Kurtzweil
Kenneth Parcell
Joan Holloway
Stannis Baratheon
Laufey
Dwight McCarthy
Gríma Wormtongue
Mandarin
White Witch
Answer: Laufey
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Thor" . ?e_1 <filming_location> ?e_3 . ?e_3 <pred:name> "Los Angeles" . ?e_2 <pred:name> "Colm Feore" . ?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: Los Angeles
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Thor
function: And
dependencies: 1
2
function: Find
inputs: Colm Feore
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role