Question: Which person is in the cast of Harry Potter and the Half-Blood Prince (the one that has Alan Rickman as a cast member) (the character role of this statement is Albus Dumbledore)?
Choices:
Helena Bonham Carter
Richard Harris
Michael Gambon
Geraldine Somerville
William Henry Harrison
Timothy Spall
Sylvester Stallone
Alan Rickman
Julie Walters
David Thewlis
Program:
function: Find
inputs: Alan Rickman
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Half-Blood Prince
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: QFilterStr
dependencies: 4
inputs: character role
Albus Dumbledore
function: FilterConcept
dependencies: 5
inputs: human
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Harry Potter and the Half-Blood Prince" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Alan Rickman" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e ] <character_role> ?qpv . ?qpv <pred:value> "Albus Dumbledore" .  }
Answer: Michael Gambon