Question: Which movie is longer, The Lord of the Rings (the one whose duration is 132 minute) or Cars (the one whose official website is https://www.pixar.com/feature-films/cars)?
Choices:
Lilo & Stitch
Aladdin
Renaissance
Beauty and the Beast
Shrek 2
The Lord of the Rings
The Rescuers
Winnie the Pooh
Peter Pan
Cars
Answer: The Lord of the Rings
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Lord of the Rings" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "132"^^xsd:double . } UNION { ?e <pred:name> "Cars" . ?e <official_website> ?pv_2 . ?pv_2 <pred:value> "https://www.pixar.com/feature-films/cars" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Lord of the Rings
function: FilterNum
dependencies: 0
inputs: duration
132 minute
=
function: Find
inputs: Cars
function: FilterStr
dependencies: 2
inputs: official website
https://www.pixar.com/feature-films/cars
function: SelectBetween
dependencies: 1
3
inputs: duration
greater