Question: Does Shrek (whose release region is Hungary) or Up (that mainly portrays aviation) have the lower cost?
Choices: Up
Lilo & Stitch
Shrek 2
Winnie the Pooh
Peter Pan
Renaissance
Aladdin
WALL·E
Shrek
The Rescuers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shrek" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Hungary" .   } UNION { ?e <pred:name> "Up" . ?e <main_subject> ?e_2 . ?e_2 <pred:name> "aviation" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Hungary
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Shrek
function: And
dependencies: 1
2
function: Find
inputs: aviation
function: Relate
dependencies: 4
inputs: main subject
backward
function: Find
inputs: Up
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less
Answer: Shrek