Question: Which movie cost less to make, Wonder Woman (the one whose publication date is 2017-06-15) or State of Play (the one whose duration is 127 minute)?
Choices: The Hunchback of Notre Dame
Talk to Her
Rebecca
The Fifth Element
State of Play
Training Day
Wonder Woman
The Towering Inferno
Curse of the Golden Flower
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wonder Woman" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2017-06-15"^^xsd:date . } UNION { ?e <pred:name> "State of Play" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "127"^^xsd:double . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Wonder Woman
function: FilterDate
dependencies: 0
inputs: publication date
2017-06-15
=
function: Find
inputs: State of Play
function: FilterNum
dependencies: 2
inputs: duration
127 minute
=
function: SelectBetween
dependencies: 1
3
inputs: cost
less
Answer: State of Play