Question: Which movie is longer, The Three Musketeers (the one whose duration is 116 minute) or Fantastic Four (the one that has Ioan Gruffudd as a cast member)?
Choices:
The Three Musketeers
Pleasantville
The Towering Inferno
Curse of the Golden Flower
Rebecca
Talk to Her
The Hunchback of Notre Dame
Training Day
A Prairie Home Companion
Fantastic Four
Answer: The Three Musketeers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "116"^^xsd:double . } UNION { ?e <pred:name> "Fantastic Four" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ioan Gruffudd" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Three Musketeers
function: FilterNum
dependencies: 0
inputs: duration
116 minute
=
function: Find
inputs: Ioan Gruffudd
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Fantastic Four
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater