Question: Which movie is longer, Spy Game (the one whose publication date is 2002-03-14) or Waterloo (the one that has Orson Welles as a cast member)?
Choices:
Curse of the Golden Flower
Rebecca
The Towering Inferno
Spy Game
The Fifth Element
The Hunchback of Notre Dame
A Prairie Home Companion
Pleasantville
Talk to Her
Waterloo
Program:
function: Find
inputs: Spy Game
function: FilterDate
dependencies: 0
inputs: publication date
2002-03-14
=
function: Find
inputs: Orson Welles
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Waterloo
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spy Game" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2002-03-14"^^xsd:date . } UNION { ?e <pred:name> "Waterloo" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Orson Welles" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Waterloo