Question: Which movie is shorter, Sherlock Holmes (the one whose production company is 20th Century Fox) or A Beautiful Mind?
Choices:
A Beautiful Mind
Pleasantville
Curse of the Golden Flower
Talk to Her
The Hunchback of Notre Dame
The Fifth Element
A Prairie Home Companion
Sherlock Holmes
The Towering Inferno
Rebecca
Answer: Sherlock Holmes
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sherlock Holmes" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } UNION { ?e <pred:name> "A Beautiful Mind" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Sherlock Holmes
function: And
dependencies: 1
2
function: Find
inputs: A Beautiful Mind
function: SelectBetween
dependencies: 3
4
inputs: duration
less