Question: Which movie is longer, Edge of Darkness (the one whose end time is 1985-12-09) or Boston Legal?
Choices:
Roots
Boston Legal
The Civil War
George Washington
Battlestar Galactica
The Diary of Anne Frank
Emma
The Stand
The Ten Commandments
Edge of Darkness
Program:
function: Find
inputs: Edge of Darkness
function: FilterDate
dependencies: 0
inputs: end time
1985-12-09
=
function: Find
inputs: Boston Legal
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Edge of Darkness" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1985-12-09"^^xsd:date . } UNION { ?e <pred:name> "Boston Legal" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Edge of Darkness