Question: Which movie is shorter, Along Came Polly or Night at the Museum: Battle of the Smithsonian (the one whose genre is adventure film)?
Choices:
Talk to Her
Pleasantville
Rebecca
Curse of the Golden Flower
Along Came Polly
The Fifth Element
A Prairie Home Companion
Night at the Museum: Battle of the Smithsonian
Training Day
The Towering Inferno
Answer: Along Came Polly
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Along Came Polly" .  } UNION { ?e <pred:name> "Night at the Museum: Battle of the Smithsonian" . ?e <genre> ?e_1 . ?e_1 <pred:name> "adventure film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Along Came Polly
function: Find
inputs: adventure film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Night at the Museum: Battle of the Smithsonian
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less