Question: Which movie is shorter, Alvin and the Chipmunks: Chipwrecked (the one that origins from United States of America) or Enchanted?
Choices:
Enchanted
Gulliver's Travels
Alvin and the Chipmunks: Chipwrecked
The Flintstones
Holes
John Carter
The Muppets
The Flintstones in Viva Rock Vegas
Old Dogs
G-Force
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Alvin and the Chipmunks: Chipwrecked
function: And
dependencies: 1
2
function: Find
inputs: Enchanted
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alvin and the Chipmunks: Chipwrecked" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Enchanted" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Alvin and the Chipmunks: Chipwrecked