Question: What is the character roel of Val Kilmer in The Doors (the one whose director of photography is Robert Richardson)?
Choices:
Jim Garrison
Timon
Raymond Langston
Tinker Bell
him/herself
King Triton
Crazy Cat Lady
Norman Bates
Jim Morrison
Samantha Jones
Answer: Jim Morrison
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Doors" . ?e_1 <director_of_photography> ?e_3 . ?e_3 <pred:name> "Robert Richardson" . ?e_2 <pred:name> "Val Kilmer" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: Robert Richardson
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: The Doors
function: And
dependencies: 1
2
function: Find
inputs: Val Kilmer
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role