Question: What was the character role of David Bowie, famous for progressive rock, cast in The Prestige ?
Choices:
Batman
Pinky
Calibos
Inspector Lestrade
Rajah
Tyler Durden
László Almásy
Samuel Gerard
RoboCop
Nikola Tesla
Answer: Nikola Tesla
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Prestige" . ?e_2 <pred:name> "David Bowie" . ?e_3 <famous_people> ?e_2 . ?e_3 <pred:name> "progressive rock" . ?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: The Prestige
function: Find
inputs: progressive rock
function: Relate
dependencies: 1
inputs: famous people
forward
function: Find
inputs: David Bowie
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: cast member
character role