Question: What is the character role of Anthony Head in Buffy the Vampire Slayer (the one that is originally aired on UPN?
Choices:
Josiah Bartlet
Pieter van Ruijven
Agamemnon
Bane
Gus Fring
John Hartigan
Rupert Giles
Ra's al Ghul
Ricki Tarr
Hermione Granger
Program:
function: Find
inputs: UPN
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Buffy the Vampire Slayer
function: And
dependencies: 1
2
function: Find
inputs: Anthony Head
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Buffy the Vampire Slayer" . ?e_1 <original_network> ?e_3 . ?e_3 <pred:name> "UPN" . ?e_2 <pred:name> "Anthony Head" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: Rupert Giles