Question: What is the character role of Halley Berry in Catwoman (the one that has Bruce Berman as an executive producer)?
Choices:
Chupadogra
Eleanor of Aquitaine
Inspector Lestrade
RoboCop
The Dude
Cloud Strife
Will Scarlet
Tony Soprano
Number 2
Patience Phillips
Answer: Patience Phillips
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Catwoman" . ?e_1 <executive_producer> ?e_3 . ?e_3 <pred:name> "Bruce Berman" . ?e_2 <pred:name> "Halle Berry" . ?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: Bruce Berman
function: Relate
dependencies: 0
inputs: executive producer
backward
function: Find
inputs: Catwoman
function: And
dependencies: 1
2
function: Find
inputs: Halle Berry
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role