Question: Which movie cost less to make, Die Another Day (the one whose genre is action film) or Moon (the one that mainly depicts artificial intelligence)?
Choices: The Fifth Element
Rebecca
A Prairie Home Companion
Pleasantville
The Towering Inferno
The Hunchback of Notre Dame
Moon
Training Day
Die Another Day
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Die Another Day" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } UNION { ?e <pred:name> "Moon" . ?e <main_subject> ?e_2 . ?e_2 <pred:name> "artificial intelligence" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: action film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Die Another Day
function: And
dependencies: 1
2
function: Find
inputs: artificial intelligence
function: Relate
dependencies: 4
inputs: main subject
backward
function: Find
inputs: Moon
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less
Answer: Moon