Question: What is the role of a cast member Max von Sydow's character  Flash Gordon (the one that is designed by Danilo Donati)?
Choices:
Leslie Knope
Joseph II
Thomas More
Clotho
Persephone
Mr. Waternoose
Ming the Merciless
Mayor Quimby
David 8
Robert Langdon
Answer: Ming the Merciless
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Flash Gordon" . ?e_1 <production_designer> ?e_3 . ?e_3 <pred:name> "Danilo Donati" . ?e_2 <pred:name> "Max von Sydow" . ?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: Danilo Donati
function: Relate
dependencies: 0
inputs: production designer
backward
function: Find
inputs: Flash Gordon
function: And
dependencies: 1
2
function: Find
inputs: Max von Sydow
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role