Question: Which cost less, The Vow (the one whose genre is drama film) or Chariots of Fire (the one whose duration is 118 minute)?
Choices:
Rebecca
Training Day
The Vow
Pleasantville
The Fifth Element
Curse of the Golden Flower
The Towering Inferno
A Prairie Home Companion
Chariots of Fire
The Hunchback of Notre Dame
Answer: Chariots of Fire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Vow" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" . } UNION { ?e <pred:name> "Chariots of Fire" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "118"^^xsd:double . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Vow
function: And
dependencies: 1
2
function: Find
inputs: Chariots of Fire
function: FilterNum
dependencies: 4
inputs: duration
118 minute
=
function: SelectBetween
dependencies: 3
5
inputs: cost
less