Question: Which one is longer, Flags of Our Fathers or Anastasia, distributed by 20th Century Fox
Choices:
Flags of Our Fathers
Rebecca
Pleasantville
The Hunchback of Notre Dame
Curse of the Golden Flower
The Fifth Element
The Towering Inferno
Talk to Her
Anastasia
Training Day
Program:
function: Find
inputs: Flags of Our Fathers
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 1
inputs: distributor
backward
function: Find
inputs: Anastasia
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Flags of Our Fathers" .  } UNION { ?e <pred:name> "Anastasia" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Flags of Our Fathers