Question: Which movie is longer, Star Wars Episode V: The Empire Strikes Back (the one that has Frank Oz as a voice actor) or Casino Royale (the one whose publication date is 2006-11-14)?
Choices:
A Prairie Home Companion
Training Day
Star Wars Episode V: The Empire Strikes Back
The Towering Inferno
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
Casino Royale
Talk to Her
Curse of the Golden Flower
Program:
function: Find
inputs: Frank Oz
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Star Wars Episode V: The Empire Strikes Back
function: And
dependencies: 1
2
function: Find
inputs: Casino Royale
function: FilterDate
dependencies: 4
inputs: publication date
2006-11-14
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Wars Episode V: The Empire Strikes Back" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Frank Oz" . } UNION { ?e <pred:name> "Casino Royale" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2006-11-14"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Casino Royale