Question: Who performs in Angel (the one whose publication date is 1997-03-10) which presents Buffy the Vampire Slayer (the one that has Anthony Head as a cast member)?
Choices: Tina Turner
Mike Myers
Duran Duran
Andrew Garfield
Nick Nolte
David Boreanaz
Adele
Antonio Banderas
Prince
Madonna
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Angel" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1997-03-10"^^xsd:date . ?e_2 <pred:name> "Buffy the Vampire Slayer" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "Anthony Head" . ?e_1 <present_in_work> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <present_in_work> ; <pred:fact_t> ?e_2 ] <performer> ?qpv .  }
Program:
function: Find
inputs: Angel
function: FilterDate
dependencies: 0
inputs: publication date
1997-03-10
=
function: Find
inputs: Anthony Head
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Buffy the Vampire Slayer
function: And
dependencies: 3
4
function: QueryRelationQualifier
dependencies: 1
5
inputs: present in work
performer
Answer: David Boreanaz