Question: Which one is longer, Cars, released in Bulgaria, or The Transformers: The Movie ?
Choices:
Shrek 2
The Transformers: The Movie
Cars
Aladdin
Peter Pan
Winnie the Pooh
Lilo & Stitch
Renaissance
The Rescuers
Beauty and the Beast
Program:
function: Find
inputs: Bulgaria
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Cars
function: And
dependencies: 1
2
function: Find
inputs: The Transformers: The Movie
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cars" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Bulgaria" .   } UNION { ?e <pred:name> "The Transformers: The Movie" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Cars