Question: Which is longer, drama film The Island or Caravaggio that is 93 minutes long?
Choices:
Curse of the Golden Flower
The Fifth Element
Talk to Her
Pleasantville
Caravaggio
The Hunchback of Notre Dame
The Island
Training Day
A Prairie Home Companion
The Towering Inferno
Answer: The Island
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Island" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" . } UNION { ?e <pred:name> "Caravaggio" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "93"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Island
function: And
dependencies: 1
2
function: Find
inputs: Caravaggio
function: FilterNum
dependencies: 4
inputs: duration
93 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater