Question: Which one is shorter, Avatar (the one that origins from United States of America) or ParaNorman ?
Choices:
Piranha 3D
Avatar
The Smurfs
Frankenweenie
Carrie
ParaNorman
The Adventures of Ford Fairlane
Richard Taylor
Naked Lunch
Romeo and Juliet
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Avatar
function: And
dependencies: 1
2
function: Find
inputs: ParaNorman
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Avatar" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "ParaNorman" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: ParaNorman