Question: Which one is longer, April (length is 78 minutes) or One Flew Over the Cuckoo's Nest (genre is drama film)?
Choices:
April
Curse of the Golden Flower
Rebecca
Pleasantville
Talk to Her
The Fifth Element
One Flew Over the Cuckoo's Nest
A Prairie Home Companion
The Hunchback of Notre Dame
The Towering Inferno
Answer: One Flew Over the Cuckoo's Nest
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "April" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "78"^^xsd:double . } UNION { ?e <pred:name> "One Flew Over the Cuckoo's Nest" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: April
function: FilterNum
dependencies: 0
inputs: duration
78 minute
=
function: Find
inputs: drama film
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: One Flew Over the Cuckoo's Nest
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater