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