Question: Who is in the cast of Buffy the Vampire Slayer (the one whose genre is fantasy) (the character role of this statement is Rupert Giles)?
Choices: Richard Gere
David Byrne
Sarah Michelle Gellar
Seth Green
James Marsters
William Henry Harrison
Anthony Head
Sylvester Stallone
Max Fleischer
Rahul Dev Burman
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Buffy the Vampire Slayer" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "fantasy" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e ] <character_role> ?qpv . ?qpv <pred:value> "Rupert Giles" .  }
Program:
function: Find
inputs: fantasy
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Buffy the Vampire Slayer
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: QFilterStr
dependencies: 4
inputs: character role
Rupert Giles
function: FilterConcept
dependencies: 5
inputs: human
function: What
dependencies: 6
Answer: Anthony Head