Question: Which one, Friends (the one whose director is D. W. Griffith) or An Alan Smithee Film: Burn Hollywood Burn, has less duration?
Choices:
Frankenstein
The Town
The Animatrix
The Fugitive
Neighbours
Friends
An Alan Smithee Film: Burn Hollywood Burn
Robin Hood
Eve
David Copperfield
Program:
function: Find
inputs: D. W. Griffith
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Friends
function: And
dependencies: 1
2
function: Find
inputs: An Alan Smithee Film: Burn Hollywood Burn
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Friends" . ?e <director> ?e_1 . ?e_1 <pred:name> "D. W. Griffith" .   } UNION { ?e <pred:name> "An Alan Smithee Film: Burn Hollywood Burn" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Friends