Question: Which is sorter, Enemy at the Gates or Julius Caesar (biographical film)?
Choices:
Pleasantville
Curse of the Golden Flower
Training Day
Enemy at the Gates
Julius Caesar
Talk to Her
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
The Fifth Element
Program:
function: Find
inputs: Enemy at the Gates
function: Find
inputs: biographical film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Julius Caesar
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Enemy at the Gates" .  } UNION { ?e <pred:name> "Julius Caesar" . ?e <genre> ?e_1 . ?e_1 <pred:name> "biographical film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Enemy at the Gates