Question: Which is longer, The Sweet Hereafter or The Last Emperor starring Cary-Hiroyuki Tagawa?
Choices:
Pleasantville
Training Day
The Last Emperor
A Prairie Home Companion
Curse of the Golden Flower
The Fifth Element
The Hunchback of Notre Dame
Rebecca
The Towering Inferno
The Sweet Hereafter
Program:
function: Find
inputs: The Sweet Hereafter
function: Find
inputs: Cary-Hiroyuki Tagawa
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Last Emperor
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Sweet Hereafter" .  } UNION { ?e <pred:name> "The Last Emperor" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Cary-Hiroyuki Tagawa" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Last Emperor