Question: Keith Richards of The Rolling Stones is cast in what role on  Pirates of the Caribbean: At World's End, also featuring Geoffrey Rush as a cast member?
Choices:
Sephiroth
Peeta Mellark
Donna Noble
Robert Epps
Angelo 'Snaps' Provolone
White Rabbit
Angelo Dundee
Sam Witwicky
Moloch
Captain Teague
Answer: Captain Teague
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Pirates of the Caribbean: At World's End" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Geoffrey Rush" . ?e_2 <pred:name> "Keith Richards" . ?e_2 <part_of> ?e_4 . ?e_4 <pred:name> "The Rolling Stones" . ?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: Geoffrey Rush
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Pirates of the Caribbean: At World's End
function: And
dependencies: 1
2
function: Find
inputs: The Rolling Stones
function: Relate
dependencies: 4
inputs: part of
backward
function: Find
inputs: Keith Richards
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: cast member
character role