Question: Which is longer, Anna Karenina (with a story set in Saint Petersburg) or Footloose (which lasts 107 minutes)?
Choices:
Footloose
Curse of the Golden Flower
Training Day
The Hunchback of Notre Dame
Anna Karenina
A Prairie Home Companion
Pleasantville
Talk to Her
The Fifth Element
The Towering Inferno
Program:
function: Find
inputs: Saint Petersburg
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Anna Karenina
function: And
dependencies: 1
2
function: Find
inputs: Footloose
function: FilterNum
dependencies: 4
inputs: duration
107 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anna Karenina" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Saint Petersburg" . } UNION { ?e <pred:name> "Footloose" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "107"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Anna Karenina