Question: Which movie is longer, Cyrano de Bergerac (the one whose genre is romance film) or The Merry Widow (the one whose duration is 105 minute)?
Choices:
A Prairie Home Companion
Training Day
Cyrano de Bergerac
The Merry Widow
The Hunchback of Notre Dame
The Fifth Element
Pleasantville
Curse of the Golden Flower
Rebecca
The Towering Inferno
Program:
function: Find
inputs: romance film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Cyrano de Bergerac
function: And
dependencies: 1
2
function: Find
inputs: The Merry Widow
function: FilterNum
dependencies: 4
inputs: duration
105 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cyrano de Bergerac" . ?e <genre> ?e_1 . ?e_1 <pred:name> "romance film" . } UNION { ?e <pred:name> "The Merry Widow" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "105"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Cyrano de Bergerac