Question: Which has a greater duration, The Flintstones (whose publication date is 1994-05-27) or Invincible (distributed by Walt Disney Pictures)?
Choices: The Muppets
Holes
Enchanted
Old Dogs
The Flintstones
G-Force
Invincible
Alvin and the Chipmunks: Chipwrecked
National Treasure: Book of Secrets
The Flintstones in Viva Rock Vegas
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Flintstones" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1994-05-27"^^xsd:date . } UNION { ?e <pred:name> "Invincible" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Walt Disney Pictures" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Flintstones
function: FilterDate
dependencies: 0
inputs: publication date
1994-05-27
=
function: Find
inputs: Walt Disney Pictures
function: Relate
dependencies: 2
inputs: distributor
backward
function: Find
inputs: Invincible
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
Answer: Invincible