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