Question: Which movie is longer, A Clockwork Orange (the one whose duration is 136 minute) or Dirty Dancing (the one that is shot in North Carolina)?
Choices:
Curse of the Golden Flower
Talk to Her
A Prairie Home Companion
The Hunchback of Notre Dame
The Towering Inferno
Training Day
Dirty Dancing
Pleasantville
The Fifth Element
A Clockwork Orange
Answer: A Clockwork Orange
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Clockwork Orange" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "136"^^xsd:double . } UNION { ?e <pred:name> "Dirty Dancing" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "North Carolina" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: A Clockwork Orange
function: FilterNum
dependencies: 0
inputs: duration
136 minute
=
function: Find
inputs: North Carolina
function: Relate
dependencies: 2
inputs: filming location
backward
function: Find
inputs: Dirty Dancing
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater