Question: Which film has the longer runtime, Iris (in the erotic thriller genre) or Traffic (nominated for the BAFTA Award for Best Adapted Screenplay)?
Choices:
The Towering Inferno
The Hunchback of Notre Dame
Iris
Training Day
Traffic
Curse of the Golden Flower
Pleasantville
Rebecca
A Prairie Home Companion
The Fifth Element
Program:
function: Find
inputs: erotic thriller
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Iris
function: And
dependencies: 1
2
function: Find
inputs: BAFTA Award for Best Adapted Screenplay
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Traffic
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Iris" . ?e <genre> ?e_1 . ?e_1 <pred:name> "erotic thriller" .   } UNION { ?e <pred:name> "Traffic" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "BAFTA Award for Best Adapted Screenplay" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Traffic