Question: Which of two movies--Shrek Forever After, published 2010-04-21, or The King and I, based on a work of literature--has a shorter running time?
Choices: Renaissance
The King and I
Shrek Forever After
Beauty and the Beast
Peter Pan
Shrek 2
Winnie the Pooh
Lilo & Stitch
The Rescuers
WALL·E
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The King and I" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" . } UNION { ?e <pred:name> "Shrek Forever After" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2010-04-21"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The King and I
function: And
dependencies: 1
2
function: Find
inputs: Shrek Forever After
function: FilterDate
dependencies: 4
inputs: publication date
2010-04-21
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: The King and I