Question: Which movie is longer, Hans Christian Andersen (the one whose composer is Frank Loesser) or The Hunchback of Notre Dame (the one whose duration is 133 minute)?
Choices:
The Hunchback of Notre Dame
The Last of the Mohicans
Hamlet
A Prairie Home Companion
Pleasantville
Paris
Hans Christian Andersen
Little Women
Earth
The Scarlet Letter
Program:
function: Find
inputs: Frank Loesser
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Hans Christian Andersen
function: And
dependencies: 1
2
function: Find
inputs: The Hunchback of Notre Dame
function: FilterNum
dependencies: 4
inputs: duration
133 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hans Christian Andersen" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Frank Loesser" . } UNION { ?e <pred:name> "The Hunchback of Notre Dame" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "133"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Hunchback of Notre Dame