Question: Which movie is longer, The Three Musketeers (the one whose publication date is 1994-01-27) or Star Wars: Episode I – The Phantom Menace?
Choices:
G-Force
Old Dogs
The Flintstones
The Muppets
National Treasure: Book of Secrets
The Three Musketeers
Star Wars: Episode I – The Phantom Menace
John Carter
Alvin and the Chipmunks: Chipwrecked
The Flintstones in Viva Rock Vegas
Answer: Star Wars: Episode I – The Phantom Menace
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1994-01-27"^^xsd:date . } UNION { ?e <pred:name> "Star Wars: Episode I – The Phantom Menace" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Three Musketeers
function: FilterDate
dependencies: 0
inputs: publication date
1994-01-27
=
function: Find
inputs: Star Wars: Episode I – The Phantom Menace
function: SelectBetween
dependencies: 1
2
inputs: duration
greater