Question: Which is longer, The Last of the Mohicans published on 1936-01-01 or Psycho starring Viggo Mortensen?
Choices:
Curse of the Golden Flower
Training Day
The Last of the Mohicans
Psycho
The Towering Inferno
Rebecca
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
The Fifth Element
Program:
function: Find
inputs: The Last of the Mohicans
function: FilterDate
dependencies: 0
inputs: publication date
1936-01-01
=
function: Find
inputs: Viggo Mortensen
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Psycho
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Last of the Mohicans" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1936-01-01"^^xsd:date . } UNION { ?e <pred:name> "Psycho" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Viggo Mortensen" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Psycho