Question: What is the character role of Peter O'Toole in Troy (the one whose publication date is 2004-05-13)?
Choices:
Priam
Polonius
Alex Cross
Tweedledee
Lord Voldemort
Johnny Ola
Lara Lor-Van
Diego
Friar Tuck
Arnold Schwarzenegger
Program:
function: Find
inputs: Troy
function: FilterDate
dependencies: 0
inputs: publication date
2004-05-13
=
function: Find
inputs: Peter O'Toole
function: QueryRelationQualifier
dependencies: 1
2
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Troy" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "2004-05-13"^^xsd:date . ?e_2 <pred:name> "Peter O'Toole" . ?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: Priam