Question: Which movie is shorter, Gettysburg (the one whose genre is war film) or Who Framed Roger Rabbit?
Choices:
My-HiME
Magic Knight Rayearth
The Polar Express
Who Framed Roger Rabbit
Ponyo on the Cliff by the Sea
Gettysburg
Superman
A Christmas Carol
Anastasia
Code Geass
Program:
function: Find
inputs: war film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Gettysburg
function: And
dependencies: 1
2
function: Find
inputs: Who Framed Roger Rabbit
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gettysburg" . ?e <genre> ?e_1 . ?e_1 <pred:name> "war film" .   } UNION { ?e <pred:name> "Who Framed Roger Rabbit" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Who Framed Roger Rabbit