Question: Which has a greater duration, Some Kind of Monster or Mr. Smith Goes to Washington (which was nominated for an Academy Award for Best Director)?
Choices: The Towering Inferno
Some Kind of Monster
Pleasantville
A Prairie Home Companion
Mr. Smith Goes to Washington
The Hunchback of Notre Dame
The Fifth Element
Rebecca
Curse of the Golden Flower
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Some Kind of Monster" .  } UNION { ?e <pred:name> "Mr. Smith Goes to Washington" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Director" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Some Kind of Monster
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Mr. Smith Goes to Washington
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: Some Kind of Monster