Question: Does The Phantom of the Opera, published 1925-01-01, or psychological horror genre's The Haunting have a longer run-time?
Choices: A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
Talk to Her
Rebecca
The Phantom of the Opera
The Haunting
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Phantom of the Opera" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1925-01-01"^^xsd:date . } UNION { ?e <pred:name> "The Haunting" . ?e <genre> ?e_1 . ?e_1 <pred:name> "psychological horror" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Phantom of the Opera
function: FilterDate
dependencies: 0
inputs: publication date
1925-01-01
=
function: Find
inputs: psychological horror
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: The Haunting
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
Answer: The Haunting