Question: Which movie is longer, Cleopatra (the one whose duration is 177 minute) or Hollyoaks?
Choices:
The Diary of Anne Frank
George Washington
Cleopatra
The Ten Commandments
The Civil War
Battlestar Galactica
Hollyoaks
Roots
The Pacific
The Stand
Program:
function: Find
inputs: Cleopatra
function: FilterNum
dependencies: 0
inputs: duration
177 minute
=
function: Find
inputs: Hollyoaks
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cleopatra" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "177"^^xsd:double . } UNION { ?e <pred:name> "Hollyoaks" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Cleopatra