Question: Is the King and I which won the Academy Award for Best Actor or Milk, released on 09/01/2008 longer?
Choices:
Pleasantville
The Hunchback of Notre Dame
A Prairie Home Companion
The King and I
Training Day
Rebecca
The Towering Inferno
The Fifth Element
Milk
Curse of the Golden Flower
Answer: The King and I
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The King and I" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Actor" . } UNION { ?e <pred:name> "Milk" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2008-09-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Academy Award for Best Actor
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: The King and I
function: And
dependencies: 1
2
function: Find
inputs: Milk
function: FilterDate
dependencies: 4
inputs: publication date
2008-09-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater