Question: What is the character role of Leonard Nimoy in Star Trek (the one that is a notable work of Zoe Saldana)?
Choices:
Whitey Duvall
Spock
Jorah Mormont
Philoctetes
Senator Stern
Eric Forman
Daphne
Stick
Speckles
Che Guevara
Answer: Spock
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Star Trek" . ?e_3 <notable_work> ?e_1 . ?e_3 <pred:name> "Zoe Saldana" . ?e_2 <pred:name> "Leonard Nimoy" . ?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: Zoe Saldana
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Star Trek
function: And
dependencies: 1
2
function: Find
inputs: Leonard Nimoy
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role