Question: What character role does Mark Gatiss play as a cast member in the Game of thrones (the notable work of Peter Dinklage)?
Choices:
Hikaru Sulu
Mephisto
Dick Hallorann
Harry Pierpont
Richie Roberts
Abraham Whistler
James J. Braddock
Louis C. Fraina
Goldmember
Tycho Nestoris
Program:
function: Find
inputs: Peter Dinklage
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Game of Thrones
function: And
dependencies: 1
2
function: Find
inputs: Mark Gatiss
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Game of Thrones" . ?e_3 <notable_work> ?e_1 . ?e_3 <pred:name> "Peter Dinklage" . ?e_2 <pred:name> "Mark Gatiss" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: Tycho Nestoris