Question: What person is a cast member in the character role of Ellen Ripley in Alien: Resurrection and a cast member in Cedar Rapids (whose narrative location is Iowa)?
Choices:
David Byrne
William Henry Harrison
Max Fleischer
Rahul Dev Burman
Paul Simon
Sylvester Stallone
Sigourney Weaver
James E. Reilly
Babyface
Simon Cowell
Program:
function: Find
inputs: Alien: Resurrection
function: Relate
dependencies: 0
inputs: cast member
forward
function: QFilterStr
dependencies: 1
inputs: character role
Ellen Ripley
function: FilterConcept
dependencies: 2
inputs: human
function: Find
inputs: Iowa
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: Cedar Rapids
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: cast member
forward
function: FilterConcept
dependencies: 8
inputs: human
function: And
dependencies: 3
9
function: What
dependencies: 10
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Alien: Resurrection" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e ] <character_role> ?qpv . ?qpv <pred:value> "Ellen Ripley" . ?e_2 <cast_member> ?e . ?e_2 <pred:name> "Cedar Rapids" . ?e_2 <narrative_location> ?e_3 . ?e_3 <pred:name> "Iowa" .  }
Answer: Sigourney Weaver