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