Question: Which movie is shorter, Terror in the Aisles or Seven (the one whose genre is drama film)?
Choices:
The Fifth Element
Pleasantville
A Prairie Home Companion
Seven
Terror in the Aisles
The Towering Inferno
The Hunchback of Notre Dame
Training Day
Rebecca
Curse of the Golden Flower
Program:
function: Find
inputs: Terror in the Aisles
function: Find
inputs: drama film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Seven
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Terror in the Aisles" .  } UNION { ?e <pred:name> "Seven" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Terror in the Aisles