Question: Which movie is longer, The Lord of the Rings (the one that origins from United States of America) or Toy Story (the one whose release region is Denmark)?
Choices: Lilo & Stitch
Peter Pan
Shrek 2
The Rescuers
WALL·E
Aladdin
Toy Story
Beauty and the Beast
The Lord of the Rings
Renaissance
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Lord of the Rings" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Toy Story" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Denmark" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Lord of the Rings
function: And
dependencies: 1
2
function: Find
inputs: Denmark
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Toy Story
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: The Lord of the Rings