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