Question: Which is longer in duration, the Tsui Hark produced The Master or Awakenings?
Choices:
The Fifth Element
The Master
Curse of the Golden Flower
The Towering Inferno
Pleasantville
Talk to Her
Awakenings
The Hunchback of Notre Dame
A Prairie Home Companion
Training Day
Program:
function: Find
inputs: Tsui Hark
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Master
function: And
dependencies: 1
2
function: Find
inputs: Awakenings
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Master" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Tsui Hark" .   } UNION { ?e <pred:name> "Awakenings" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Awakenings