Question: Which one, Final Destination (the one whose producer is Toby Emmerich) or Ice Age (the one whose publication date is 2002), has greater duration?
Choices:
Star Wars
The Fast and the Furious
Ice Age
The Smurfs
Die Hard
The Mummy
Carry On
Batman
Rugrats
Final Destination
Answer: Ice Age
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Final Destination" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Toby Emmerich" . } UNION { ?e <pred:name> "Ice Age" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> 2002 . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Toby Emmerich
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Final Destination
function: And
dependencies: 1
2
function: Find
inputs: Ice Age
function: FilterYear
dependencies: 4
inputs: publication date
2002
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater