Question: Was it cheaper to make The Illusionist, with a 110-minute run-time, or action film Grimsby ?
Choices:
Rebecca
Training Day
The Illusionist
The Fifth Element
Pleasantville
Grimsby
Talk to Her
The Towering Inferno
Curse of the Golden Flower
The Hunchback of Notre Dame
Answer: The Illusionist
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Illusionist" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "110"^^xsd:double . } UNION { ?e <pred:name> "Grimsby" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Illusionist
function: FilterNum
dependencies: 0
inputs: duration
110 minute
=
function: Find
inputs: action film
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Grimsby
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: cost
less