Question: Which one is longer, Pirates of the Caribbean: At World's End (the one whose publication date is 2007-05-25) or Alice in Wonderland (the one whose director is Tim Burton)?
Choices:
The Muppets
Old Dogs
Pirates of the Caribbean: At World's End
National Treasure: Book of Secrets
Alice in Wonderland
Holes
The Flintstones
Alvin and the Chipmunks: Chipwrecked
The Flintstones in Viva Rock Vegas
John Carter
Answer: Pirates of the Caribbean: At World's End
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pirates of the Caribbean: At World's End" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2007-05-25"^^xsd:date . } UNION { ?e <pred:name> "Alice in Wonderland" . ?e <director> ?e_1 . ?e_1 <pred:name> "Tim Burton" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Pirates of the Caribbean: At World's End
function: FilterDate
dependencies: 0
inputs: publication date
2007-05-25
=
function: Find
inputs: Tim Burton
function: Relate
dependencies: 2
inputs: director
backward
function: Find
inputs: Alice in Wonderland
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater