Question: Is Hotel Transylvania or Renaissance published on 2006-01-01 longer?
Choices:
Beauty and the Beast
Renaissance
Aladdin
Lilo & Stitch
Hotel Transylvania
WALL·E
Cinderella
Peter Pan
The Rescuers
Winnie the Pooh
Program:
function: Find
inputs: Renaissance
function: FilterDate
dependencies: 0
inputs: publication date
2006-01-01
=
function: Find
inputs: Hotel Transylvania
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Renaissance" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2006-01-01"^^xsd:date . } UNION { ?e <pred:name> "Hotel Transylvania" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Renaissance