Question: Which movie is longer, Savages (the one whose duration is 106 minute) or High School Musical (the one that received 58th Primetime Emmy Awards)?
Choices:
Pleasantville
Talk to Her
Savages
A Prairie Home Companion
The Hunchback of Notre Dame
Training Day
High School Musical
The Towering Inferno
Rebecca
The Fifth Element
Answer: Savages
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Savages" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "106"^^xsd:double . } UNION { ?e <pred:name> "High School Musical" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "58th Primetime Emmy Awards" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Savages
function: FilterNum
dependencies: 0
inputs: duration
106 minute
=
function: Find
inputs: 58th Primetime Emmy Awards
function: Relate
dependencies: 2
inputs: award received
backward
function: Find
inputs: High School Musical
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater