Question: Pianist Keith Richards was cast in which role on Pirates of the Caribbean: On Stranger Tides?
Choices:
Herbert Sobel
Stan the Man
Josie Packard
Nikola Tesla
Leo Glynn
Edward Alleyn
David 8
Captain Teague
Marla Singer
Chupadogra
Answer: Captain Teague
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Pirates of the Caribbean: On Stranger Tides" . ?e_2 <pred:name> "Keith Richards" . ?e_3 <famous_people> ?e_2 . ?e_3 <pred:name> "piano" . ?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: Pirates of the Caribbean: On Stranger Tides
function: Find
inputs: piano
function: Relate
dependencies: 1
inputs: famous people
forward
function: Find
inputs: Keith Richards
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: cast member
character role