Question: Does the musical film New Orleans or does Knocked Up have the longer run-time?
Choices:
Knocked Up
Rebecca
The Fifth Element
Curse of the Golden Flower
The Hunchback of Notre Dame
Training Day
The Towering Inferno
Pleasantville
A Prairie Home Companion
New Orleans
Program:
function: Find
inputs: musical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: New Orleans
function: And
dependencies: 1
2
function: Find
inputs: Knocked Up
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Orleans" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" .   } UNION { ?e <pred:name> "Knocked Up" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Knocked Up