Question: Which is longer, National Treasure: Book of Secrets or John Carter, script written by Andrew Stanton?
Choices:
Alvin and the Chipmunks: Chipwrecked
The Muppets
Holes
Old Dogs
Enchanted
John Carter
The Flintstones
The Flintstones in Viva Rock Vegas
Gulliver's Travels
G-Force
Answer: John Carter
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "National Treasure: Book of Secrets" .  } UNION { ?e <pred:name> "John Carter" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Andrew Stanton" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: National Treasure: Book of Secrets
function: Find
inputs: Andrew Stanton
function: Relate
dependencies: 1
inputs: screenwriter
backward
function: Find
inputs: John Carter
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater