Question: Which movie is longer, Secret of the Wings or Shrek the Third (the one whose cost is 160000000 United States dollar)?
Choices:
Secret of the Wings
Beauty and the Beast
WALL·E
Shrek the Third
The Rescuers
Winnie the Pooh
Lilo & Stitch
Shrek 2
Aladdin
Peter Pan
Program:
function: Find
inputs: Secret of the Wings
function: Find
inputs: Shrek the Third
function: FilterNum
dependencies: 1
inputs: cost
160000000 United States dollar
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Secret of the Wings" . } UNION { ?e <pred:name> "Shrek the Third" . ?e <cost> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "160000000"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Shrek the Third