Question: What is the character role of Peter Dinklage in Game of Thrones (the one that is a notable work of Jason Momoa) which has Peter Dinklage in the cast?
Choices: Ronon Dex
Poseidon
V
Deacon Owl
Amanda Grayson
Tyrion Lannister
Carrie Bradshaw
Georg Johannes von Trapp
Ryan Howard
Rallo Tubbs
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Game of Thrones" . ?e_3 <notable_work> ?e_1 . ?e_3 <pred:name> "Jason Momoa" . ?e_2 <pred:name> "Peter Dinklage" . ?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: Jason Momoa
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Game of Thrones
function: And
dependencies: 1
2
function: Find
inputs: Peter Dinklage
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
Answer: Tyrion Lannister