Question: Which movie is shorter, The Sorcerer's Apprentice (the one whose distributor is 20th Century Fox) or George Washington (the one whose narrative location is North Carolina)?
Choices: The Challenge
A Christmas Carol
The Sorcerer's Apprentice
The Music Man
George Washington
A Streetcar Named Desire
Shackleton
The Goodbye Girl
The Late Shift
All Quiet on the Western Front
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Sorcerer's Apprentice" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } UNION { ?e <pred:name> "George Washington" . ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "North Carolina" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: The Sorcerer's Apprentice
function: And
dependencies: 1
2
function: Find
inputs: North Carolina
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: George Washington
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: The Sorcerer's Apprentice