Question: Which movie is longer, Earth (the one whose duration is 99 minute) or The Sorcerer's Apprentice (the one whose publication date is 2010-09-02)?
Choices:
John Carter
The Flintstones in Viva Rock Vegas
G-Force
Holes
Earth
The Flintstones
National Treasure: Book of Secrets
The Muppets
Old Dogs
The Sorcerer's Apprentice
Answer: The Sorcerer's Apprentice
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Earth" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "99"^^xsd:double . } UNION { ?e <pred:name> "The Sorcerer's Apprentice" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "2010-09-02"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Earth
function: FilterNum
dependencies: 0
inputs: duration
99 minute
=
function: Find
inputs: The Sorcerer's Apprentice
function: FilterDate
dependencies: 2
inputs: publication date
2010-09-02
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater