Question: Which is shorter, the musical film Labyrinth or Earth, released on 2009-04-22?
Choices:
Earth
The Flintstones in Viva Rock Vegas
Labyrinth
The Flintstones
G-Force
John Carter
National Treasure: Book of Secrets
Holes
The Muppets
Old Dogs
Answer: Labyrinth
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Labyrinth" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" . } UNION { ?e <pred:name> "Earth" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-04-22"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: musical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Labyrinth
function: And
dependencies: 1
2
function: Find
inputs: Earth
function: FilterDate
dependencies: 4
inputs: publication date
2009-04-22
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less