Question: Which was cheaper to make: Frankenstein (run-time 123 minutes) or the musical film Tommy?
Choices:
Rebecca
Pleasantville
A Prairie Home Companion
Frankenstein
The Hunchback of Notre Dame
Training Day
The Towering Inferno
Curse of the Golden Flower
The Fifth Element
Tommy
Answer: Tommy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Frankenstein" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "123"^^xsd:double . } UNION { ?e <pred:name> "Tommy" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Frankenstein
function: FilterNum
dependencies: 0
inputs: duration
123 minute
=
function: Find
inputs: musical film
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Tommy
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: cost
less