Question: Which one is longer, Shopgirl or Gone with the Wind (the one that received Academy Award for Best Director) ?
Choices:
Shopgirl
Pleasantville
Rebecca
Gone with the Wind
The Hunchback of Notre Dame
A Prairie Home Companion
Talk to Her
The Towering Inferno
Curse of the Golden Flower
Training Day
Answer: Gone with the Wind
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shopgirl" .  } UNION { ?e <pred:name> "Gone with the Wind" . ?e <award_received> ?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: Shopgirl
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 1
inputs: award received
backward
function: Find
inputs: Gone with the Wind
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater