Question: Which movie is longer, Love Story (the one that was nominated for Academy Award for Best Director) or Julius Caesar (the one whose duration is 117 minute)?
Choices:
Julius Caesar
The Hunchback of Notre Dame
Rebecca
A Prairie Home Companion
Love Story
Pleasantville
Talk to Her
The Towering Inferno
The Fifth Element
Curse of the Golden Flower
Answer: Julius Caesar
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Love Story" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Director" . } UNION { ?e <pred:name> "Julius Caesar" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "117"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Love Story
function: And
dependencies: 1
2
function: Find
inputs: Julius Caesar
function: FilterNum
dependencies: 4
inputs: duration
117 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater