Question: Does A Single Man (that was nominated for an Academy Award for Best Actor) or The Patriot (that was nominated for an Academy Award for Best Picture) have the longer runtime?
Choices:
A Single Man
The Fifth Element
Rebecca
Training Day
Pleasantville
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
Curse of the Golden Flower
The Patriot
Program:
function: Find
inputs: Academy Award for Best Actor
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: A Single Man
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Picture
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: The Patriot
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Single Man" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Actor" .   } UNION { ?e <pred:name> "The Patriot" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Picture" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Patriot