Question: Which movie is shorter, National Treasure: Book of Secrets or John Carter (the one that has Willem Dafoe as a cast member)?
Choices:
The Muppets
The Flintstones
The Flintstones in Viva Rock Vegas
Old Dogs
G-Force
National Treasure: Book of Secrets
Gulliver's Travels
Alvin and the Chipmunks: Chipwrecked
John Carter
Enchanted
Program:
function: Find
inputs: National Treasure: Book of Secrets
function: Find
inputs: Willem Dafoe
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: John Carter
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "National Treasure: Book of Secrets" .  } UNION { ?e <pred:name> "John Carter" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Willem Dafoe" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: National Treasure: Book of Secrets