Question: Does Ronaldo (that originates in the United Kingdom) or War and Peace (that received an Academy Award for Best Foreign Language Film) have the shorter runtime?
Choices:
A Prairie Home Companion
Talk to Her
Rebecca
War and Peace
The Towering Inferno
Training Day
Curse of the Golden Flower
Pleasantville
Ronaldo
The Hunchback of Notre Dame
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Ronaldo
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Foreign Language Film
function: Relate
dependencies: 4
inputs: award received
backward
function: Find
inputs: War and Peace
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ronaldo" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } UNION { ?e <pred:name> "War and Peace" . ?e <award_received> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Foreign Language Film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Ronaldo