Question: What is the character role of Paul Shaffer in Hercules (the one that has Charlton Heston as a voice actor)?
Choices:
Constance MacKenzie
Diane Lockhart
Clumsy Smurf
Joan Holloway
Alexei Volkoff
Alessandro Cagliostro
Cinna
Walt Lloyd
Hermes
Preston Burke
Answer: Hermes
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Hercules" . ?e_1 <voice_actor> ?e_3 . ?e_3 <pred:name> "Charlton Heston" . ?e_2 <pred:name> "Paul Shaffer" . ?e_1 <voice_actor> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <voice_actor> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: Charlton Heston
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Hercules
function: And
dependencies: 1
2
function: Find
inputs: Paul Shaffer
function: QueryRelationQualifier
dependencies: 3
4
inputs: voice actor
character role