Question: Which movie is longer, The Cardinal (the one whose publication date is 1936-01-01) or Monster (the one that mainly depicts lesbian)?
Choices:
The Fifth Element
A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
Monster
The Cardinal
Pleasantville
Talk to Her
Training Day
Rebecca
Program:
function: Find
inputs: The Cardinal
function: FilterDate
dependencies: 0
inputs: publication date
1936-01-01
=
function: Find
inputs: lesbian
function: Relate
dependencies: 2
inputs: main subject
backward
function: Find
inputs: Monster
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Cardinal" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1936-01-01"^^xsd:date . } UNION { ?e <pred:name> "Monster" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "lesbian" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Monster