Question: Which is shorter, Earth produced by Discovery Channel or Splash published on 1984-06-29?
Choices:
John Carter
The Flintstones in Viva Rock Vegas
Alvin and the Chipmunks: Chipwrecked
The Muppets
Earth
Holes
The Flintstones
National Treasure: Book of Secrets
Old Dogs
G-Force
Program:
function: Find
inputs: Discovery Channel
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Earth
function: And
dependencies: 1
2
function: Find
inputs: Splash
function: FilterDate
dependencies: 4
inputs: publication date
1984-06-29
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Earth" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Discovery Channel" . } UNION { ?e <pred:name> "Splash" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1984-06-29"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Earth