Question: Which has a greater duration, Earth (which has a duration of 115 minutes) or Atlantic City (which has Louis Malle as its director)?
Choices:
Curse of the Golden Flower
The Hunchback of Notre Dame
Training Day
Talk to Her
Earth
A Prairie Home Companion
Rebecca
The Fifth Element
Pleasantville
The Towering Inferno
Program:
function: Find
inputs: Earth
function: FilterNum
dependencies: 0
inputs: duration
115 minute
=
function: Find
inputs: Louis Malle
function: Relate
dependencies: 2
inputs: director
backward
function: Find
inputs: Atlantic City
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Earth" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "115"^^xsd:double . } UNION { ?e <pred:name> "Atlantic City" . ?e <director> ?e_1 . ?e_1 <pred:name> "Louis Malle" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Earth