Question: Which movie cost less, The Amazing Spider-Man (the one that mainly depicts terrorism) or Sky Captain and the World of Tomorrow?
Choices:
The Amazing Spider-Man
The Fifth Element
Pleasantville
Rebecca
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
Training Day
Sky Captain and the World of Tomorrow
Curse of the Golden Flower
Program:
function: Find
inputs: terrorism
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: The Amazing Spider-Man
function: And
dependencies: 1
2
function: Find
inputs: Sky Captain and the World of Tomorrow
function: SelectBetween
dependencies: 3
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Amazing Spider-Man" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "terrorism" .   } UNION { ?e <pred:name> "Sky Captain and the World of Tomorrow" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sky Captain and the World of Tomorrow