Question: Which film has the longer runtime, The Illusionist (whose genre is thriller) or 16 Blocks?
Choices:
Curse of the Golden Flower
Pleasantville
The Fifth Element
The Hunchback of Notre Dame
The Towering Inferno
Rebecca
A Prairie Home Companion
Training Day
The Illusionist
16 Blocks
Program:
function: Find
inputs: thriller
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Illusionist
function: And
dependencies: 1
2
function: Find
inputs: 16 Blocks
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Illusionist" . ?e <genre> ?e_1 . ?e_1 <pred:name> "thriller" .   } UNION { ?e <pred:name> "16 Blocks" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Illusionist