Question: Which is longer, Howard the Duck produced by Ian Bryce or The History Boys?
Choices:
A Prairie Home Companion
Rebecca
The History Boys
The Hunchback of Notre Dame
Talk to Her
Pleasantville
Training Day
Howard the Duck
The Towering Inferno
The Fifth Element
Program:
function: Find
inputs: Ian Bryce
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Howard the Duck
function: And
dependencies: 1
2
function: Find
inputs: The History Boys
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Howard the Duck" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Ian Bryce" .   } UNION { ?e <pred:name> "The History Boys" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Howard the Duck