Question: Which is shorter, The Challenge originating in Japan or Sunshine, published April 6, 2007?
Choices:
Sunshine
The Fifth Element
Curse of the Golden Flower
A Prairie Home Companion
Training Day
Talk to Her
The Challenge
Rebecca
The Towering Inferno
Pleasantville
Program:
function: Find
inputs: Japan
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Challenge
function: And
dependencies: 1
2
function: Find
inputs: Sunshine
function: FilterDate
dependencies: 4
inputs: publication date
2007-04-06
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Challenge" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Japan" . } UNION { ?e <pred:name> "Sunshine" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2007-04-06"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sunshine