Question: Which movie is longer, TMNT (the one whose publication date is 2007-04-06) or Winnie the Pooh (the one whose official website is http://movies.disney.com/winnie-the-pooh)?
Choices:
Winnie the Pooh
Renaissance
Cinderella
The Rescuers
Peter Pan
Shrek 2
WALL·E
Aladdin
TMNT
Beauty and the Beast
Answer: TMNT
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "TMNT" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2007-04-06"^^xsd:date . } UNION { ?e <pred:name> "Winnie the Pooh" . ?e <official_website> ?pv_2 . ?pv_2 <pred:value> "http://movies.disney.com/winnie-the-pooh" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: TMNT
function: FilterDate
dependencies: 0
inputs: publication date
2007-04-06
=
function: Find
inputs: Winnie the Pooh
function: FilterStr
dependencies: 2
inputs: official website
http://movies.disney.com/winnie-the-pooh
function: SelectBetween
dependencies: 1
3
inputs: duration
greater