Question: Which movie cost less, Casablanca (the one that mainly depicts World War II) or 21 Jump Street (the one whose release region is Taiwan)?
Choices:
Pleasantville
The Towering Inferno
Curse of the Golden Flower
Casablanca
A Prairie Home Companion
Rebecca
Talk to Her
Training Day
The Hunchback of Notre Dame
The Fifth Element
Program:
function: Find
inputs: World War II
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: Casablanca
function: And
dependencies: 1
2
function: Find
inputs: Taiwan
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: 21 Jump Street
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Casablanca" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "World War II" .   } UNION { ?e <pred:name> "21 Jump Street" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Taiwan" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Casablanca