Question: Which movie is shorter, Tarzan (the one whose duration is 88 minute) or Renaissance (the one whose genre is neo-noir)?
Choices:
Peter Pan
WALL·E
The Rescuers
Cinderella
Beauty and the Beast
Lilo & Stitch
Renaissance
Tarzan
Aladdin
Shrek 2
Program:
function: Find
inputs: Tarzan
function: FilterNum
dependencies: 0
inputs: duration
88 minute
=
function: Find
inputs: neo-noir
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Renaissance
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tarzan" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "88"^^xsd:double . } UNION { ?e <pred:name> "Renaissance" . ?e <genre> ?e_1 . ?e_1 <pred:name> "neo-noir" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tarzan