Question: Which movie has the longer duration, Hilary and Jackie or The Wizard of Oz?
Choices:
Training Day
Pleasantville
Talk to Her
A Prairie Home Companion
Hilary and Jackie
The Towering Inferno
Rebecca
The Fifth Element
The Hunchback of Notre Dame
The Wizard of Oz
Program:
function: Find
inputs: Hilary and Jackie
function: Find
inputs: Academy Award for Best Picture
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: The Wizard of Oz
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hilary and Jackie" .  } UNION { ?e <pred:name> "The Wizard of Oz" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Picture" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hilary and Jackie