Question: What is the character role of Harold Raims in Ghostbusters (the one whose director is Ivan Reitman)?
Choices:
Clara Clayton
Egon Spengler
Lyle Straight
Aragorn
Clay Bertrand
John Hartigan
Stabbington Brother
Jim Levenstein
Headless Horseman
Hamilton Jordan
Program:
function: Find
inputs: Ivan Reitman
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Ghostbusters
function: And
dependencies: 1
2
function: Find
inputs: Harold Ramis
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Ghostbusters" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "Ivan Reitman" . ?e_2 <pred:name> "Harold Ramis" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: Egon Spengler