Question: Which movie is longer, From the Earth to the Moon (the one whose start time is 1998-04-05) or Mr. & Mrs. Smith (the one whose start time is 1996-09-20)?
Choices:
Edge of Darkness
George Washington
The Pacific
The Diary of Anne Frank
Mr. & Mrs. Smith
The Civil War
From the Earth to the Moon
The Ten Commandments
Battlestar Galactica
Roots
Program:
function: Find
inputs: From the Earth to the Moon
function: FilterDate
dependencies: 0
inputs: start time
1998-04-05
=
function: Find
inputs: Mr. & Mrs. Smith
function: FilterDate
dependencies: 2
inputs: start time
1996-09-20
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "From the Earth to the Moon" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "1998-04-05"^^xsd:date . } UNION { ?e <pred:name> "Mr. & Mrs. Smith" . ?e <start_time> ?pv_2 . ?pv_2 <pred:date> "1996-09-20"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: From the Earth to the Moon