Question: Does Shark Tale (that has Angelina Jolie as a voice actor) or Winnie the Pooh (whose release date is 2011-10-21) have the longer runtime?
Choices: Beauty and the Beast
Renaissance
Lilo & Stitch
Aladdin
Shark Tale
Shrek 2
WALL·E
Cinderella
The Rescuers
Winnie the Pooh
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shark Tale" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Angelina Jolie" . } UNION { ?e <pred:name> "Winnie the Pooh" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2011-10-21"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Angelina Jolie
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Shark Tale
function: And
dependencies: 1
2
function: Find
inputs: Winnie the Pooh
function: FilterDate
dependencies: 4
inputs: publication date
2011-10-21
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Shark Tale