Question: Does Anna Karenina (that has Michael Gough as a cast member) or Alfie (whose release date is 2004-01-01) have the longer running time?
Choices:
Training Day
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
Curse of the Golden Flower
Alfie
The Fifth Element
Talk to Her
Anna Karenina
A Prairie Home Companion
Program:
function: Find
inputs: Michael Gough
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Anna Karenina
function: And
dependencies: 1
2
function: Find
inputs: Alfie
function: FilterDate
dependencies: 4
inputs: publication date
2004-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anna Karenina" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Michael Gough" . } UNION { ?e <pred:name> "Alfie" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2004-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Anna Karenina