Question: Which movie is shorter, Immortals or Tower of London (the one that has Paul Frees as a cast member)?
Choices:
The Fifth Element
The Hunchback of Notre Dame
A Prairie Home Companion
Rebecca
Immortals
Curse of the Golden Flower
Tower of London
The Towering Inferno
Pleasantville
Training Day
Program:
function: Find
inputs: Immortals
function: Find
inputs: Paul Frees
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Tower of London
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Immortals" .  } UNION { ?e <pred:name> "Tower of London" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Paul Frees" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tower of London