Question: Which movie is longer, George Washington (the one that is shot in North Carolina) or Spartacus (the one that has Ian McNeice as a cast member)?
Choices: The Challenge
A Christmas Carol
Shackleton
Spartacus
A Streetcar Named Desire
The Goodbye Girl
George Washington
The Late Shift
All Quiet on the Western Front
The Music Man
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "George Washington" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "North Carolina" .   } UNION { ?e <pred:name> "Spartacus" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Ian McNeice" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: North Carolina
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: George Washington
function: And
dependencies: 1
2
function: Find
inputs: Ian McNeice
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Spartacus
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Spartacus