Question: Which movie is shorter, Kansas City (the one that has Joshua Redman as a cast member) or 3:10 to Yuma (the one whose publication date is 2007-01-01)?
Choices: Pleasantville
Talk to Her
Rebecca
The Hunchback of Notre Dame
Training Day
The Fifth Element
The Towering Inferno
Kansas City
3:10 to Yuma
A Prairie Home Companion
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kansas City" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Joshua Redman" . } UNION { ?e <pred:name> "3:10 to Yuma" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2007-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Joshua Redman
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Kansas City
function: And
dependencies: 1
2
function: Find
inputs: 3:10 to Yuma
function: FilterDate
dependencies: 4
inputs: publication date
2007-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: Kansas City